/* Afternoon tea: "What's on the stand" (12 Nov 2026).
   A fine-line drawing of the stand, three RT plates with their blue rims, held beside the list
   while it is read. The stand draws itself once, then each plate is laid with its own tier as
   that tier reaches the middle of the screen; the plate being read takes a lantern-gold wash.
   Clean lines only, no textures. Reduced motion: the finished drawing, laid, from the start. */

html body #rt-site.rt-shell #siteWrapper.v2 {
  & .ts {
    --art: 150px; --gap: clamp(28px, 4vw, 64px); --line: var(--v2-rim);
    display: grid; grid-template-columns: var(--art) minmax(0, 1fr); gap: 0 var(--gap); align-items: start;
  }
  & .ts-art { position: sticky; top: 132px; padding-top: 4px; }
  & .ts-art svg { display: block; width: 100%; height: auto; overflow: visible; }

  /* the drawing */
  & .ts-rod circle, & .ts-rod > path:not(.ts-foot) { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-linecap: round; }
  & .ts-foot { fill: var(--v2-plate); stroke: var(--line); stroke-width: 1.2; }
  & .ts-edge { fill: var(--v2-plate); stroke: var(--line); stroke-width: 1.2; stroke-linejoin: round; }
  & .ts-top { fill: var(--v2-plate); stroke: var(--line); stroke-width: 1.2; }
  & .ts-rim { fill: none; stroke: var(--line); stroke-width: .7; opacity: .7; }
  & .ts-hub { fill: var(--line); }
  & .ts-wash { fill: var(--v2-ochre); opacity: 0; transition: opacity .6s ease; }
  & .ts-food path { fill: var(--v2-plate); stroke: var(--v2-navy); stroke-width: .8; stroke-linejoin: round; stroke-linecap: round; }
  & .ts[data-on="1"] .ts-plate--1 .ts-wash,
  & .ts[data-on="2"] .ts-plate--2 .ts-wash,
  & .ts[data-on="3"] .ts-plate--3 .ts-wash { opacity: .26; }

  /* the list */
  & .ts-list { list-style: none; margin: 0; padding: 0; }
  & .ts-list > li { padding: 0 0 clamp(44px, 5vw, 64px); transition: opacity .5s ease; }
  & .ts-list > li:last-child { padding-bottom: 0; }
  & .ts-tier { margin: 0 0 6px; font: 500 11px/1.4 var(--v2-text); letter-spacing: .16em; text-transform: uppercase; color: var(--v2-rim); }
  & .ts-list h3 { font-size: clamp(28px, 2.4vw, 36px) !important; line-height: 1.1 !important; margin: 0 0 18px; }
  & .ts-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  & .ts-items li { display: block; padding: 0; border: 0; }
  & .ts-items b { display: block; font: 400 19px/1.25 var(--v2-display); margin-bottom: 3px; }
  & .ts-items span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--v2-ink-2); }

  /* on the side: lined up under the list, its label under the stand */
  & .ts-side { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: var(--art, 150px) minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 64px); align-items: baseline; }
  & .ts-side > i { font: italic 400 16px/1.3 var(--v2-display); color: var(--v2-rim); text-align: right; }
  & .ts-side b { display: block; font: 400 19px/1.25 var(--v2-display); margin-bottom: 3px; }
  & .ts-side span { font-size: 14.5px; color: var(--v2-ink-2); }
}

/* Phones: a slimmer stand in a narrow column; the list reads straight down beside it */
@media (max-width: 900px) {
  html body #rt-site.rt-shell #siteWrapper.v2 {
    & .ts, & .ts-side { --art: 100px; --gap: 18px; grid-template-columns: 100px minmax(0, 1fr); gap: 0 18px; }
    & .ts-art { top: 150px; }
    & .ts-items { grid-template-columns: 1fr; gap: 14px; }
    & .ts-list h3 { font-size: 28px !important; margin-bottom: 14px; }
    & .ts-items b { font-size: 18px; }
    & .ts-items span { font-size: 14px; }
    & .ts-side > i { font-size: 14px; }
  }
}
@media (max-width: 340px) {
  html body #rt-site.rt-shell #siteWrapper.v2 :is(.ts, .ts-side) { grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; }
}

/* The moment */
@media (prefers-reduced-motion: no-preference) {
  html body #rt-site.rt-shell #siteWrapper.v2 {
    /* the post and ring draw themselves */
    & .ts-rod circle, & .ts-rod > path:not(.ts-foot) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.45, 0, .2, 1); }
    & .ts-foot { opacity: 0; transition: opacity .5s ease .9s; }
    & .ts.is-in .ts-rod circle, & .ts.is-in .ts-rod > path { stroke-dashoffset: 0; }
    & .ts.is-in .ts-foot { opacity: 1; }
    /* each plate opens out from the post */
    & .ts-plate { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleX(0); opacity: 0;
      transition: transform .8s cubic-bezier(.2, .7, .1, 1) var(--d), opacity .3s ease var(--d); }
    & .ts.is-in .ts-plate { transform: none; opacity: 1; }
    /* and is laid when its tier is read: each piece set down in turn */
    & .ts-food path { opacity: 0; transform: translateY(-7px); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--k) * .12s + .1s); }
    & .ts.seen-1 .ts-plate--1 .ts-food path,
    & .ts.seen-2 .ts-plate--2 .ts-food path,
    & .ts.seen-3 .ts-plate--3 .ts-food path { opacity: 1; transform: none; }
  }
}
