/* TPSS page. Everything here is scoped to main.tpss, so it does nothing on other pages.
   Colour comes from the library painting and each one carries a meaning:
   sandstone = classical physics, coral = statistical physics, soft blue = relativity, marigold = quantum physics (light),
   night navy = ink and the closing exam. The page stays on the site's off-white throughout. */
.tpss {
  --stone: #c2a886; --stone-ink: #6a5334; --stone-wash: #f0e6d5;
  --coral: #de8068; --coral-ink: #9c3d28; --coral-wash: #f8e3da;
  --blue: #8ea2cc;  --blue-ink: #2c4a8c;  --blue-wash: #e3e9f5;
  --gold: #d9a441;  --gold-ink: #7a540a;  --gold-wash: #f8ebcc;
  --night: #1a2744;
  --serif: "QW Titles", var(--sans);
  --pad: clamp(8px, 3vw, 40px);
  gap: 0;
}
.tpss .m-c { --tint: var(--stone); --tint-ink: var(--stone-ink); --tint-wash: var(--stone-wash); }
.tpss .m-s { --tint: var(--coral); --tint-ink: var(--coral-ink); --tint-wash: var(--coral-wash); }
.tpss .m-r { --tint: var(--blue);  --tint-ink: var(--blue-ink);  --tint-wash: var(--blue-wash); }
.tpss .m-q { --tint: var(--gold);  --tint-ink: var(--gold-ink);  --tint-wash: var(--gold-wash); }
.tpss ol, .tpss ul { list-style: none; margin: 0; padding: 0; }
.tpss > section:not(.tile) { padding: clamp(44px, 6.4vw, 80px) var(--pad); }
.tpss .t-head { display: flex; flex-direction: column; gap: 12px; max-width: 34em; margin-bottom: clamp(28px, 4vw, 48px); }
.tpss .t-head p { font-size: clamp(17px, 1.6vw, 19px); }

/* ---------- Hero: the copy and a pile of four textbooks on the left, the painting in an arch on the right ---------- */
.t-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: 1fr repeat(6, auto) 1fr;
  column-gap: clamp(24px, 5vw, 72px); row-gap: 16px; padding: clamp(12px, 3vw, 36px) var(--pad) clamp(36px, 5vw, 60px); }
.t-hero > * { grid-column: 1; justify-self: start; }
.t-hero > .back { grid-row: 2; }
.t-hero > .eyebrow { grid-row: 3; }
.t-hero > h1 { grid-row: 4; font-size: clamp(38px, 5vw, 62px); }
.t-hero > .lede { grid-row: 5; max-width: 30em; }
.t-hero > .actions { grid-row: 6; }
.t-hero > .t-stack { grid-row: 7; justify-self: stretch; }
.t-hero > .t-arch { grid-column: 2; grid-row: 1 / -1; justify-self: end; align-self: center; }

.t-stack { display: flex; flex-direction: column-reverse; max-width: 440px; margin-top: 14px !important; padding-bottom: 0; border-bottom: 2px solid var(--night); }
.t-stack li { position: relative; width: var(--w); margin-left: var(--x); height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 26px 0 16px; background: var(--tint); color: var(--night); font-size: 15.5px; font-weight: 600; letter-spacing: -.012em;
  border-radius: 6px 3px 3px 6px; box-shadow: inset 0 -3px 0 rgba(26,39,68,.13), inset 5px 0 0 rgba(26,39,68,.1); white-space: nowrap; }
.t-stack li::after { content: ""; position: absolute; right: 0; top: 4px; bottom: 5px; width: 12px; border-radius: 0 2px 2px 0;
  background: repeating-linear-gradient(180deg, #fffdf9 0 2px, #ddd5c4 2px 3px); }
.t-stack small { font-size: 13px; font-weight: 500; opacity: .78; }

.t-arch { position: relative; margin: 0; width: min(100%, 430px); aspect-ratio: 4 / 5; }
.t-arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.t-arch .hero-dove { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.t-arch i { position: absolute; left: var(--x); top: var(--y); width: calc(18px * var(--s, 1)); height: calc(18px * var(--s, 1)); background: var(--gold);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); opacity: .8; animation: twinkle 3.6s ease-in-out infinite; animation-delay: calc(var(--s, 1) * -2.3s); }

@media (max-width: 860px) {
  .t-hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .t-hero > * { grid-row: auto !important; }
  .t-hero > .t-arch { grid-column: 1; justify-self: center; width: min(86%, 340px); margin-top: 20px; }
  .t-hero > h1 { font-size: clamp(36px, 10vw, 52px); }
}

/* ---------- A shelf of books between the hero and the page ---------- */
.t-shelf { height: 62px; margin: 0 var(--pad); background: url("img/tpss-shelf.svg") repeat-x left bottom / auto 60px; border-bottom: 2px solid var(--night); opacity: .9; }

/* ---------- In brief: a ruled index card under a lamp ---------- */
.t-brief { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.t-brief-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 28px; }
.t-lamp { width: 48px; height: 150px; overflow: visible; }
.t-lamp .halo { fill: var(--gold); opacity: .2; }
.t-lamp .glass { fill: var(--gold); stroke: var(--night); stroke-width: 1.6; stroke-linejoin: round; }
.t-lamp .post { fill: none; stroke: var(--night); stroke-width: 2.6; stroke-linecap: round; }
.t-lamp .cap { fill: var(--night); }
.t-brief-side .t-lamp { width: 64px; height: 200px; margin-left: 12%; }
.t-ruled { --rule: 32px; position: relative; background: var(--panel); border-radius: 4px 18px 18px 4px; padding: calc(var(--rule) * 1) clamp(20px, 3vw, 40px) calc(var(--rule) * 1.5 - 1px) clamp(64px, 7vw, 96px);
  background-image: linear-gradient(90deg, transparent calc(clamp(64px, 7vw, 96px) - 22px), rgba(222,128,104,.55) 0, rgba(222,128,104,.55) calc(clamp(64px, 7vw, 96px) - 20.5px), transparent 0),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--rule) - 1px), rgba(142,162,204,.42) 0 var(--rule));
  background-position: 0 0, 0 -4px; rotate: -.6deg; box-shadow: 0 1px 0 rgba(26,39,68,.08), 0 18px 40px -28px rgba(26,39,68,.35); }
.t-ruled::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 14px;
  background: radial-gradient(circle, var(--bg) 6px, rgba(26,39,68,.1) 6.5px, transparent 7.5px) center / 14px calc(100% / 3) repeat-y; }
.t-ruled > div { padding-bottom: var(--rule); }
.t-ruled > div:last-child { padding-bottom: 0; }
.t-ruled p { line-height: var(--rule); font-size: 17px; }
.t-ruled .label { font-size: 13.5px; color: var(--coral-ink); letter-spacing: .01em; }
@media (max-width: 860px) {
  .t-brief { grid-template-columns: minmax(0, 1fr); }
  .t-brief-side { position: static; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .t-brief-side .t-lamp { width: 40px; height: 125px; margin: 0 8px -34px 0; position: relative; z-index: 1; }
  .t-ruled { rotate: none; --rule: 28px; padding-left: 56px; background-image: linear-gradient(90deg, transparent 40px, rgba(222,128,104,.55) 0, rgba(222,128,104,.55) 41.5px, transparent 0),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--rule) - 1px), rgba(142,162,204,.42) 0 var(--rule)); }
  .t-ruled::before { left: 12px; }
  .t-ruled p { font-size: 16px; }
}

/* ---------- Modules: a stair of four steps, quantum at the top, where the dove lands ---------- */
.t-modules .t-head { max-width: min(34em, 48%); margin-bottom: calc(clamp(28px, 4vw, 48px) - 2 * var(--rise)); }
.t-modules { --rise: 68px; }
.t-stair { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.t-step { position: relative; display: flex; flex-direction: column; gap: 10px; margin-top: calc((4 - var(--n)) * var(--rise)); padding: 20px clamp(14px, 1.7vw, 22px) 22px;
  background: var(--tint-wash); border-top: 5px solid var(--tint); }
.t-step::before { content: ""; position: absolute; left: -7px; right: 0; top: -5px; height: 5px; background: var(--tint); border-radius: 3px 0 0 3px; }   /* the tread's nosing */
.t-step:first-child { border-radius: 0 0 0 var(--r-md); }
.t-step:last-child { border-radius: 0 0 var(--r-md) 0; }
.t-step:last-child::before { border-radius: 3px; right: 0; }
.t-step-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 64px; }
.t-month-tag { font-size: 14px; font-weight: 600; color: var(--tint-ink); }
.t-step h3 { font-family: var(--serif); font-size: clamp(25px, 2.5vw, 31px); letter-spacing: -.01em; line-height: 1.1; }
.t-step .muted { color: #474f63; }
.t-glyph { width: 96px; height: 64px; flex: none; fill: none; stroke: var(--tint-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.t-glyph .thin { stroke-width: 1.1; }
.t-glyph .dash { stroke-dasharray: 2.5 3.5; }
.t-glyph .fill { fill: var(--tint); }
.t-glyph .dot { fill: var(--tint-ink); stroke: none; }
.t-glyph .bars { stroke: var(--tint); stroke-width: 5.5; stroke-linecap: butt; }
.t-glyph .tint { stroke: var(--tint); stroke-width: 2.6; }
.t-glyph .ray { stroke: var(--tint); stroke-linecap: round; }
/* the stone wall under the higher steps: only the room a step has to spare */
.t-wall { flex: 1; min-height: 6px; margin: 4px calc(-1 * clamp(14px, 1.7vw, 22px)); opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='44'%3E%3Cpath d='M0 .5h72M0 22.5h72M18 0v22M54 22v22' fill='none' stroke='%231a2744' stroke-opacity='.2'/%3E%3C/svg%3E") left bottom;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 44px); mask-image: linear-gradient(180deg, transparent, #000 44px); }
.t-ref { color: var(--tint-ink); padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--tint) 60%, transparent); }
.t-perch { position: absolute; right: 4%; bottom: calc(100% + 5px); width: 170px; height: 130px; pointer-events: none; }
@media (max-width: 960px) {
  .t-modules .t-head { max-width: 34em; margin-bottom: clamp(28px, 4vw, 48px); }
  .t-stair { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 620px; }
  .t-step { margin-top: 0; margin-left: calc((var(--n) - 1) * 14px); border-radius: 0 !important; }
  .t-step::before { right: auto; width: 60%; }
  .t-step:last-child { border-radius: 0 0 var(--r-md) var(--r-md) !important; }
  .t-wall { display: none; }
  .t-perch { top: auto; bottom: auto; right: 10px; top: 58px; width: 96px; height: 84px; display: none; }
}

/* ---------- Calendar ---------- */
.t-cal-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.t-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.t-month { background: var(--panel); border-radius: var(--r-lg); padding: 18px 16px 16px; }
.t-month-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 6px 10px; }
.t-month-h h3 { font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; }
.t-month-h span { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.t-week, .t-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; }
.t-week span { font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 4px 0 6px; letter-spacing: 0; }
.t-week span:first-child { color: var(--night); }
.t-days { row-gap: 2px; }
.t-days > * { width: 100%; max-width: 40px; aspect-ratio: 1; display: grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums; color: #8b8f9c; }
.t-sun { position: relative; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 50%; background: var(--tint); color: var(--night) !important; font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--tint); transition: scale .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.t-sun:hover { scale: 1.1; }
.t-sun[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--tint), 0 0 0 2px var(--bg), 0 0 0 4.5px var(--night); scale: 1.06; }
.t-month .t-sun[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--tint), 0 0 0 2px var(--panel), 0 0 0 4.5px var(--night); }
.t-sun:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; border-radius: 50%; }
.t-sun.t-off { --tint: transparent; background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(26,39,68,.16) 3px 4.5px); color: var(--faint) !important; font-weight: 500; text-decoration: line-through;
  box-shadow: inset 0 0 0 1.5px rgba(26,39,68,.28); }
.t-sun.t-off[aria-pressed=true] { box-shadow: inset 0 0 0 1.5px rgba(26,39,68,.28), 0 0 0 2px var(--panel), 0 0 0 4.5px var(--night); }
.t-sun.t-exam { --tint: var(--night); color: var(--bg) !important; border-radius: 9px; }
.t-sun.t-exam:focus-visible { border-radius: 9px; }
.t-may { grid-column: 1; }
.t-legend { grid-column: 2; align-self: center; display: grid; grid-template-columns: 1fr; gap: 7px; padding: 4px 8px 4px 14px; font-size: 14px; color: var(--muted); }
.t-legend li { display: flex; align-items: center; gap: 10px; }
.t-legend i { width: 14px; height: 14px; border-radius: 50%; background: var(--tint); flex: none; }
.t-legend .t-off i { background: repeating-linear-gradient(135deg, transparent 0 2.5px, rgba(26,39,68,.2) 2.5px 4px); box-shadow: inset 0 0 0 1.5px rgba(26,39,68,.28); }
.t-legend .t-exam i { background: var(--night); border-radius: 4px; }

.t-detail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
.t-day { --tint: var(--line-2); --tint-ink: var(--muted); --tint-wash: var(--panel); position: relative; background: var(--panel); border-radius: var(--r-lg); padding: 26px clamp(20px, 2.4vw, 32px) 28px;
  border-top: 6px solid var(--tint); display: flex; flex-direction: column; gap: 14px; }
.t-day.t-exam { --tint: var(--night); --tint-ink: var(--night); }
.t-day-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.t-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--tint-ink); background: var(--tint-wash); border-radius: var(--pill); padding: 4px 12px 4px 10px; }
.t-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tint); }
.t-day.t-off .t-chip, .t-day.t-exam .t-chip { background: var(--accent-soft); }
.t-no { font-size: 13.5px; color: var(--faint); }
.t-no b { color: var(--ink); font-variant-numeric: tabular-nums; }
.t-date { display: flex; flex-direction: column; }
.t-date span { font-size: 14px; color: var(--muted); }
.t-date strong { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.015em; }
.t-topic { font-size: 19px; font-weight: 600; letter-spacing: -.018em; line-height: 1.3; text-wrap: balance; }
.t-topic + .t-topic { padding-top: 12px; border-top: 1px solid var(--line); }
.t-sub { display: flex; flex-direction: column; gap: 5px; font-size: 15px; color: var(--muted); padding-top: 12px !important; border-top: 1px solid var(--line); }
.t-sub li { position: relative; padding-left: 16px; line-height: 1.4; }
.t-sub li::before { content: ""; position: absolute; left: 1px; top: .58em; width: 6px; height: 1.5px; background: var(--tint); }
.t-nav { display: none; gap: 8px; justify-content: flex-end; }
.t-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--panel); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s var(--ease), scale .15s var(--ease); }
.t-nav button:hover { background: #fff; }
.t-nav button:active { scale: .94; }
.t-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* with tpss.js running, one date shows at a time; without it, every date is listed */
.t-live .t-day:not(.on) { display: none; }
.t-live .t-nav { display: flex; }
.t-live .t-day { min-height: 392px; }
@media (prefers-reduced-motion: no-preference) {
  .t-live .t-day.on > * { animation: t-in .45s var(--ease) both; }
  .t-live .t-day.on > :nth-child(2) { animation-delay: .03s; } .t-live .t-day.on > :nth-child(3) { animation-delay: .06s; } .t-live .t-day.on > :nth-child(n+4) { animation-delay: .09s; }
}
@keyframes t-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 960px) {
  .t-cal-grid { grid-template-columns: minmax(0, 1fr); }
  .t-detail { position: static; }
  /* on a phone the chosen date rides along the bottom edge while the months scroll past */
  .t-live .t-detail { position: sticky; top: auto; bottom: 10px; z-index: 3; }
  .t-live .t-day { min-height: 0; max-height: 46vh; overflow: auto; padding: 14px 64px 16px 18px; gap: 6px; border-top-width: 5px; box-shadow: 0 18px 44px -12px rgba(26,39,68,.38), 0 0 0 1px rgba(26,39,68,.07); }
  .t-live .t-date { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .t-live .t-date strong { font-size: 27px; order: -1; }
  .t-live .t-topic { font-size: 16.5px; }
  .t-live .t-topic + .t-topic { padding-top: 6px; }
  .t-live .t-sub { flex-direction: row; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; padding-top: 8px !important; }
  .t-live .t-sub li { padding-left: 0; }
  .t-live .t-sub li::before { content: none; }
  .t-live .t-sub li:not(:last-child)::after { content: "·"; margin: 0 .5em; color: var(--tint-ink); font-weight: 700; }
  .t-live .t-nav { position: absolute; right: 10px; top: 14px; flex-direction: column; gap: 6px; z-index: 1; }
  .t-live .t-nav button { background: var(--bg); width: 42px; height: 42px; }
}
@media (max-width: 560px) {
  .t-months { grid-template-columns: minmax(0, 1fr); }
  .t-may, .t-legend { grid-column: 1; }
  .t-legend { grid-template-columns: 1fr 1fr; padding: 6px 6px 0; }
  .t-days > * { max-width: 42px; font-size: 15px; }
}

/* ---------- How it works: three lamps along one line ---------- */
.t-path { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); padding-top: 4px !important; }
.t-path::before { content: ""; position: absolute; left: 0; right: 0; top: 152px; height: 2px; background: var(--night); border-radius: 2px; }
.t-path li { display: flex; flex-direction: column; gap: 8px; }
.t-path .t-lamp { margin: 0 0 22px 6px; }
.t-fig { font-family: var(--serif); font-size: clamp(34px, 4vw, 50px); line-height: 1.05; letter-spacing: -.015em; color: var(--ink); }
.t-path li:nth-child(1) .t-fig { color: var(--ink); }
.t-path h3 { font-size: 20px; color: var(--gold-ink); }
@media (max-width: 860px) {
  .t-path { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-left: 62px !important; }
  .t-path::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .t-path li { position: relative; }
  .t-path .t-lamp { position: absolute; left: -62px; top: -4px; margin: 0; width: 46px; height: 144px; background: var(--bg); clip-path: inset(0 0 66% 0); }
  .t-path .t-lamp .post { display: none; }
  .t-path li { min-height: 64px; }
}

/* ---------- Fees: five tickets ---------- */
.t-fees .t-head { max-width: 40em; }
.t-tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.t-tickets li { --notch: 9px; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 24px; background: var(--panel); border-radius: 14px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--tear), transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--tear), transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 var(--tear), transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% var(--tear), transparent 98%, #000) right / 51% 100% no-repeat;
  --tear: 138px; }
.t-tickets li::before { content: ""; position: absolute; left: 16px; right: 16px; top: var(--tear); border-top: 2px dashed var(--line-2); }
.t-tickets .label { min-height: 2.9em; color: var(--muted); line-height: 1.35; }
.t-price { font-family: var(--serif); font-size: clamp(30px, 3.1vw, 40px); line-height: 1.05; letter-spacing: -.015em; height: 68px; display: flex; align-items: flex-start; white-space: nowrap; }
.t-price.t-words { font-size: clamp(21px, 2vw, 25px); line-height: 1.15; white-space: normal; text-wrap: balance; }
.t-tickets .small { padding-top: 14px; font-size: 14.5px; }
.t-tickets .t-free { grid-column: 1 / -1; background: var(--gold-wash); }
.t-tickets .t-free .label { color: var(--gold-ink); }
.t-tickets .t-free::before { border-color: rgba(217,164,65,.55); }
.t-tickets .t-free::after { content: ""; position: absolute; right: 22px; bottom: 26px; width: 26px; height: 26px; background: var(--gold);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: twinkle 3.6s ease-in-out infinite; }
.t-fees { padding-bottom: clamp(72px, 9vw, 120px) !important; }
@media (max-width: 1000px) {
  .t-tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-tickets .t-free { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .t-tickets { grid-template-columns: minmax(0, 1fr); }
  .t-tickets li { --tear: 112px; }
  .t-tickets .label { min-height: 0; }
  .t-price { height: 50px; margin-top: 2px; }
  .t-tickets .t-free { --tear: 200px; }
  .t-tickets .t-free::before { display: none; }
}

/* ---------- For schools (the site's painted band) and the way out ---------- */
.tpss > .t-schools p { max-width: min(52ch, 50%); }
@media (max-width: 760px) { .tpss > .t-schools p { max-width: none; } }
.tpss > .t-register { align-items: center; text-align: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: 0; }
.tpss > .t-register h2 { font-size: clamp(26px, 3.4vw, 36px); }
.t-reg-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.t-reg-links li { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Reveal on scroll (tpss.js adds .t-rv to <html>, then .in to each piece as it arrives) ---------- */
.motion.t-rv :is(.t-step, .t-month, .t-legend, .t-detail, .t-tickets li, .t-ruled, .t-path .t-lamp, .t-shelf, .t-brief-side .t-lamp) { transition: opacity 1.1s var(--out), transform 1.1s var(--out), scale .2s var(--ease); }
.motion.t-rv :is(.t-step, .t-month, .t-legend, .t-detail, .t-tickets li, .t-ruled, .t-path .t-lamp, .t-brief-side .t-lamp):not(.in) { opacity: 0; transform: translateY(26px); }
.motion.t-rv .t-shelf { transition: clip-path 1.8s var(--out); clip-path: inset(0); }
.motion.t-rv .t-shelf:not(.in) { clip-path: inset(0 100% 0 0); }
.motion.t-rv .t-path::before { transition: scale 1.6s var(--out); transform-origin: 0 0; }
.motion.t-rv .t-path:not(.in)::before { scale: 0 1; }

/* Chinese: no negative tracking in the serif spots, which fall back to the system font */
:lang(zh) .tpss :is(.t-step h3, .t-month-h h3, .t-date strong, .t-fig, .t-price) { letter-spacing: 0; font-weight: 700; }

/* register: three large entry buttons */
.t-reg-links { width: min(100%, 980px); margin-top: 18px; }
.t-reg-links { align-items: stretch; }
.t-reg-links li > .t-reg-btn { flex: 1; }
@media (min-width: 761px) { .t-reg-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.t-reg-btn { display: flex; flex-direction: column; justify-content: flex-start; align-content: flex-start; gap: 6px; min-height: 132px; padding: 22px 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-2); text-align: left; color: var(--ink); transition: background .2s var(--ease), border-color .2s var(--ease), scale .15s var(--ease); }
.t-reg-btn strong { font-size: clamp(19px, 2vw, 22px); font-weight: 600; }
.t-reg-btn strong::after { content: " \203A"; color: var(--accent-ink); }
.t-reg-btn span { font-size: 15px; color: var(--muted); }
.t-reg-btn:hover { text-decoration: none; background: #fff; border-color: var(--accent-300); }
.t-reg-btn:active { scale: .98; }
/* the first card is the one most visitors want */
.t-reg-links li:first-child .t-reg-btn { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.t-reg-links li:first-child .t-reg-btn span, .t-reg-links li:first-child .t-reg-btn strong::after { color: var(--accent-200); }
.t-reg-links li:first-child .t-reg-btn:hover { background: color-mix(in srgb, var(--accent) 88%, var(--bg)); border-color: var(--accent); }
@media (max-width: 760px) { .t-reg-links { grid-template-columns: 1fr; } .t-reg-btn { min-height: 0; } }

/* partner bar under the hero */
.tpss > .t-partners { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }

/* ---------- Who's behind TPSS: a centred row of round avatars ---------- */
.t-who { text-align: center; }
.t-who .t-head { margin-inline: auto; align-items: center; }
.t-avatars { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px clamp(24px, 5vw, 64px); margin-bottom: clamp(24px, 3vw, 36px) !important; }
.t-avatars li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 150px; }
.t-avatars img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; background: var(--stone-wash); border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2); }
.t-avatars b { font-size: 16px; line-height: 1.3; color: var(--night); }
.t-avatars small { font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (max-width: 640px) { .t-avatars img { width: 64px; height: 64px; } .t-avatars li { width: 118px; } .t-avatars { gap: 22px 12px; } }

/* a phone: one bar along the bottom until the registration section is on screen (tpss.js hides it then) */
.t-bar { display: none; }
@media (max-width: 760px) {
  .tpss > .t-bar { display: flex; justify-content: center; position: sticky; bottom: 12px; margin: 0 12px; z-index: 40; content-visibility: visible; box-shadow: 0 10px 30px -8px rgba(26,39,68,.45); }
  .t-live .t-detail { bottom: 76px; }
}

/* How it works sits on the one navy tile; the lamps, figures and rule are re-inked for a dark ground. */
.tpss > .t-how.tile { margin: clamp(12px, 2.4vw, 32px) var(--pad); padding: clamp(32px, 5vw, 64px) clamp(24px, 4.5vw, 56px); gap: 0; }
.t-how .t-head p, .t-how .muted { color: var(--deep-muted); }
.t-how .t-lamp .post { stroke: var(--deep-muted); }
.t-how .t-lamp .cap { fill: var(--deep-muted); }
.t-how .t-lamp .glass { stroke: var(--deep); }
.t-how .t-lamp .halo { opacity: .35; }
.t-how .t-path::before { background: var(--deep-muted); }
.t-how .t-path li .t-fig { color: var(--deep-ink); }
.t-how .t-path h3 { color: var(--gold); }
.t-how .t-path .t-lamp { background: transparent; }
@media (max-width: 760px) { .t-how .t-path .t-lamp { background: var(--deep); } }

/* ---------- Questions about the exam and certificates ---------- */
.t-faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 46em; }
.t-faq-list details.more-info summary { font-size: 17px; color: var(--ink); font-weight: 500; }
.t-faq-list details.more-info p { font-size: 16px; color: var(--muted); }

/* Why physics, in the age of AI */
.t-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); }
.t-why-head { display: flex; flex-direction: column; gap: 14px; }
.t-why-head h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
.t-why-body { display: flex; flex-direction: column; gap: 18px; font-size: clamp(17px, 1.5vw, 19px); }
@media (max-width: 759px) { .t-why { grid-template-columns: minmax(0, 1fr); } }
