/* ==========================================================================
   Trinity Grammar — 2028 Scholarships hub + detail template (proof v1)
   Scoped under .ts so it sits safely on top of the existing WP theme.
   ========================================================================== */

:root {
  --ts-green: #14260b;
  --ts-ink: #19250f;
  --ts-ink-70: rgba(25, 37, 15, .72);
  --ts-ink-50: rgba(25, 37, 15, .5);
  --ts-line: rgba(25, 37, 15, .14);
  --ts-sage: #c1cfba;
  --ts-sage-soft: #dde5d8;
  --ts-sage-light: #eef2eb;
  --ts-cream: #ebe9e1;
  --ts-paper: #f6f5f0;
  --ts-section: clamp(56px, 7vw, 96px); /* gap between page sections, both templates */
  --ts-bold-track: .03em; /* the site has no Jakarta 600 file, so bold is synthesised and crowds; open it up */
  --ts-gold: #f2be37;
  --ts-gold-deep: #d9a41b;
  --ts-white: #fff;
  --ts-serif: 'Sentinent', 'sentinent', Georgia, serif;
  --ts-sans: 'Jakarta', 'Plus Jakarta Sans', system-ui, sans-serif;
  --ts-hdr: 78px;
  --ts-max: 1240px;
  --ts-gutter: clamp(16px, 4vw, 40px);
  --ts-radius: 14px;
}

/* ---------- base / reset inside scope ---------- */
.ts { font-family: var(--ts-sans); color: var(--ts-ink); font-size: 16px; line-height: 1.75; }
.ts *, .ts *::before, .ts *::after { box-sizing: border-box; }
.ts strong { font-weight: 600; }
.ts h1, .ts h2, .ts h3, .ts h4 { font-family: var(--ts-serif); color: inherit; margin: 0; letter-spacing: -.01em; }
.ts h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 200; line-height: 1.02; }
.ts h2 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 200; line-height: 1.1; }
/* sub-heading inside a section (H3): one step below the section headline */
.ts .ts-subhead { font-size: clamp(26px, 2.4vw, 34px); font-weight: 200; line-height: 1.15; }
.ts h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 400; line-height: 1.2; }
.ts h4 { font-size: 19px; font-weight: 400; line-height: 1.3; }
.ts p { margin: 0 0 1em; font-size: 16px; line-height: 1.75; color: inherit; }
.ts p:last-child { margin-bottom: 0; }
.ts a { color: inherit; }
.ts ul, .ts ol { margin: 0; padding: 0; }
.ts img { max-width: 100%; display: block; }
.ts section[id], .ts [data-anchor] { scroll-margin-top: calc(var(--ts-hdr) + 84px); }

/* the theme leaves the canvas transparent and wraps <main> in a 1120px column:
   paint our own background edge to edge and let our layout break out of it */
html, body { overflow-x: clip; }
.site-main.ts { background: var(--ts-white); box-shadow: 0 0 0 100vmax var(--ts-white); clip-path: inset(0 -100vmax); }
.ts-bleed { width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.ts-wrap { width: 100vw; position: relative; left: 50%; margin-left: -50vw; padding-left: max(var(--ts-gutter), calc((100vw - var(--ts-max)) / 2 + var(--ts-gutter))); padding-right: max(var(--ts-gutter), calc((100vw - var(--ts-max)) / 2 + var(--ts-gutter))); }
.ts-bleed .ts-wrap { width: auto; left: auto; margin-left: 0; }
.ts-lead { font-size: clamp(17px, 1.5vw, 20px) !important; line-height: 1.6 !important; }
.ts-muted { color: var(--ts-ink-70); }
.ts-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ts-nowrap { white-space: nowrap; } /* keeps a phrase on one line, e.g. "Music Scholarships" */


/* ---------- buttons (mirrors live site pill buttons) ---------- */
.ts-btn { display: inline-flex; align-items: center; gap: 12px; font: 500 14px/1 var(--ts-sans); text-decoration: none !important; border-radius: 999px; padding: 14px 18px 14px 22px; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.ts-btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.ts-btn:hover svg { transform: translateX(3px); }
/* primary: dark green / white. On dark green surfaces (fee panel, mobile bar)
   it flips to gold so it doesn't disappear into the background */
.ts-btn--gold { background: var(--ts-green); color: var(--ts-white) !important; }
.ts-btn--gold:hover { background: #2a4a1c; }
.ts-fee .ts-btn--gold, .ts-register__cta .ts-btn--gold { background: var(--ts-gold); color: var(--ts-green) !important; }
.ts-fee .ts-btn--gold:hover, .ts-register__cta .ts-btn--gold:hover { background: var(--ts-gold-deep); }
.ts-btn--line { border-color: currentColor; color: inherit; background: transparent; }
.ts-btn--line:hover { background: var(--ts-ink); color: var(--ts-white) !important; border-color: var(--ts-ink); }
.ts-on-dark .ts-btn--line:hover { background: var(--ts-white); color: var(--ts-green) !important; border-color: var(--ts-white); }
.ts-btn--dark { background: var(--ts-green); color: var(--ts-white) !important; }
.ts-btn--dark:hover { background: #24401a; }
.ts-btn--block { width: 100%; justify-content: space-between; }
.ts-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; text-decoration: none !important; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ts-link svg { width: 16px; height: 16px; transition: transform .2s; }
.ts-link:hover svg { transform: translateX(3px); }
.ts-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- breadcrumb ---------- */
.ts-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; font-size: 12px; color: var(--ts-ink-70); margin: 0 0 28px !important; }
/* in the hero the crumbs sit at the bottom of the text panel (as on the live site);
   the two auto margins keep the main content centred above them */
.ts-hero__copy > :first-child { margin-top: auto; }
.ts-hero__copy > .ts-crumbs { margin: auto 0 0 !important; padding-top: 40px; }
.ts-crumbs li { display: inline-flex; gap: 10px; align-items: center; }
.ts-crumbs li + li::before { content: "|"; opacity: .5; }
.ts-crumbs a { text-decoration: none; }
.ts-crumbs a:hover { text-decoration: underline; }

/* ---------- hero (same split as live page: sage panel + photo) ---------- */
.ts-hero { background: var(--ts-cream); display: grid; grid-template-columns: 1fr 1fr; min-height: min(720px, calc(100vh - var(--ts-hdr))); }
.ts-hero__copy { padding: clamp(40px, 6vw, 88px) var(--ts-gutter) clamp(40px, 5vw, 72px) max(var(--ts-gutter), calc((100vw - var(--ts-max)) / 2 + var(--ts-gutter))); display: flex; flex-direction: column; justify-content: center; }
.ts-hero__copy h1 { margin-bottom: 24px; }
.ts-hero__copy .ts-lead { max-width: 30em; margin-bottom: 28px; }
.ts-hero__media { position: relative; overflow: hidden; background: var(--ts-green); }
.ts-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes ts-pulse { 0% { box-shadow: 0 0 0 0 rgba(20,38,11,.5); } 70% { box-shadow: 0 0 0 10px rgba(20,38,11,0); } 100% { box-shadow: 0 0 0 0 rgba(20,38,11,0); } }

/* announcement bar: sits between the site header and the hero */
.ts-announce { background: var(--ts-gold); color: var(--ts-green); }
.ts-announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.ts .ts-announce__msg { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ts-green); }
.ts-announce__msg i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ts-green); animation: ts-pulse 2s infinite; }
@keyframes ts-pulse-light { 0% { box-shadow: 0 0 0 0 rgba(242,190,55,.55); } 70% { box-shadow: 0 0 0 9px rgba(242,190,55,0); } 100% { box-shadow: 0 0 0 0 rgba(242,190,55,0); } }
.ts-announce__link { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 14px; font-weight: 500; color: var(--ts-green) !important; text-decoration: none !important; }
.ts-announce__link svg { width: 16px; height: 16px; transition: transform .2s; }
.ts-announce__link:hover svg { transform: translateX(3px); }
.ts-announce__short { display: none; }
@media (max-width: 600px) { .ts-announce__inner { gap: 12px; } .ts .ts-announce__msg, .ts-announce__link { font-size: 13px; } .ts-announce__long { display: none; } .ts-announce__short { display: inline; } }
@media (prefers-reduced-motion: reduce) { .ts-announce__msg i { animation: none; } }
.ts-announce--dock { display: none; }

/* quick facts strip (detail hero) */

/* ---------- layout with sticky "Explore" aside (Scotch-style) ---------- */
.ts-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 96px); }
.ts-aside { position: relative; }
.ts-explore { position: sticky; top: calc(var(--ts-hdr) + 24px); }
.ts .ts-explore__title { font-family: var(--ts-sans); font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0 0 14px; }
.ts-explore ol { list-style: none; border-left: 1px solid var(--ts-line); }
.ts-explore ol a { display: block; padding: 9px 0 9px 18px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; text-decoration: none; color: var(--ts-ink-70); transition: color .2s, border-color .2s; }
.ts-explore ol a:hover { color: var(--ts-ink); }
.ts-explore ol a.is-active { color: var(--ts-ink); border-left-color: var(--ts-gold-deep); font-weight: 500; }
.ts-explore__cta { margin-top: 28px; padding: 20px; background: var(--ts-gold); color: var(--ts-green); border-radius: var(--ts-radius); }
.ts-explore__cta p { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }

.ts-main > section + section { margin-top: var(--ts-section); }
.ts-sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.ts-sechead p { max-width: 48em; margin-top: 14px; }

/* ---------- overview: label + statement, then key questions (Exeter-style) ---------- */
.ts-statement { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--ts-line); }
.ts-statement--solo { grid-template-columns: minmax(0, 1fr); border-bottom: 0; padding-bottom: 0; }
.ts .ts-statement__big { font-family: var(--ts-serif); font-weight: 200; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; margin: 0 0 20px !important; }
/* one rounded light-green panel; subgrid keeps question / answer / text / link rows level across columns */
.ts-questions { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: 0; row-gap: 0; margin-top: 40px; padding: clamp(24px, 3vw, 36px) 0; background: var(--ts-sage-light); border-radius: var(--ts-radius); }
.ts-q { padding: 0 clamp(14px, 1.2vw, 18px); /* room for the tracked bold questions on one line */ display: grid; grid-template-rows: subgrid; grid-row: span 4; }
.ts-q + .ts-q { border-left: 1px solid rgba(20,38,11,.14); }
/* question = small bold sans label; the serif answer is what the eye lands on first */
.ts .ts-q h3 { font-family: var(--ts-sans); font-size: 12.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0; margin-bottom: 18px; }
.ts .ts-q .ts-q__answer { white-space: nowrap; font-family: var(--ts-serif); font-size: clamp(22px, 2vw, 28px); font-weight: 200; line-height: 1.1; margin-bottom: 10px; color: var(--ts-green); }
.ts-q p { font-size: 14px; line-height: 1.6; color: var(--ts-ink-70); }
/* footer link styled like the tile footer: keyline, label left, arrow right */
.ts-q .ts-link { display: flex; justify-content: space-between; align-items: center; align-self: end; justify-self: stretch; margin-top: 20px; padding: 16px 0 0; border-bottom: 0; border-top: 1px solid rgba(20,38,11,.14); font-size: 14px; font-weight: 500; }
.ts-q .ts-link svg { width: 20px; height: 20px; }

/* ---------- filter chips ---------- */
.ts-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-chip { font: 500 13px/1 var(--ts-sans); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ts-line); background: var(--ts-white); color: var(--ts-ink); cursor: pointer; transition: all .2s; }
.ts-chip:hover { border-color: var(--ts-ink); }
.ts-chip[aria-pressed="true"] { background: var(--ts-green); color: var(--ts-white); border-color: var(--ts-green); }

/* ---------- scholarship tiles ---------- */
.ts-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.ts-tile { position: relative; display: flex; flex-direction: column; background: var(--ts-white); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); overflow: hidden; text-decoration: none !important; color: var(--ts-ink) !important; transition: transform .25s; }
.ts-tile:hover { transform: translateY(-4px); }
.ts-tile[hidden] { display: none; }
.ts-tile__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ts-sage); }
.ts-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ts-tile:hover .ts-tile__img img { transform: scale(1.04); }
/* per-photo crop tweaks */
.ts-tile__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ts-tile__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ts-pill { font-size: 11px; font-weight: 500; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: var(--ts-sage-light); line-height: 1.2; }
.ts-pill--gold { background: #fbecc3; }
.ts-tile h3 { margin-bottom: 10px; }
.ts-tile p { font-size: 14px; line-height: 1.6; color: var(--ts-ink-70); flex: 1; }
.ts-tile__more { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; border-top: 1px solid var(--ts-line); padding-top: 16px; }
.ts-tile__more svg { width: 20px; height: 20px; transition: transform .2s; }
.ts-tile:hover .ts-tile__more svg { transform: translateX(4px); }
.ts-tile--compact .ts-tile__img { aspect-ratio: 16 / 9; }

/* ---------- comparison table ---------- */
.ts-table-wrap { border: 1px solid var(--ts-line); border-radius: var(--ts-radius); overflow: hidden; background: var(--ts-white); }
.ts-table { width: 100%; border-collapse: collapse; margin: 0 !important; font-size: 14px; }
.ts-table thead { background: var(--ts-green); color: var(--ts-white); }
.ts-table th { text-align: left; font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: none; padding: 16px 18px; border: 0; background: transparent; color: inherit; }
.ts-table tbody tr { border-top: 0; background: var(--ts-white) !important; }
.ts-table tbody tr:nth-child(even) { background: var(--ts-paper) !important; }
.ts-table td { padding: 18px; vertical-align: top; line-height: 1.5; border: 0; }
.ts-table td:first-child { font-family: var(--ts-serif); font-size: 18px; font-weight: 400; }
.ts-table td:first-child a { text-decoration: none; border-bottom: 1px solid var(--ts-line); }
.ts-table td:first-child a:hover { border-color: currentColor; }
.ts-table .ts-close { font-weight: 600; white-space: nowrap; }
.ts-table-note { font-size: 13px; color: var(--ts-ink-70); margin-top: 14px !important; }

/* ---------- key dates timeline ---------- */
.ts-dates { list-style: none; position: relative; }
/* every row is the same padded, rounded box; one light-green highlight (JS) slides to the hovered row */
.ts-date { position: relative; z-index: 1; display: grid; grid-template-columns: 128px 1fr; gap: 32px; padding: 22px; border-radius: var(--ts-radius); align-items: start; }
.ts-dates__hl { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 0; background: var(--ts-sage-light); border-radius: var(--ts-radius); pointer-events: none; transition: transform .4s cubic-bezier(.2,.75,.25,1), height .4s cubic-bezier(.2,.75,.25,1); }
.ts-dates.has-hl .ts-date--now { background: transparent; }
/* keylines split the plain rows; they fade out where they would touch the highlight */
.ts-date::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; border-bottom: 1px solid var(--ts-line); transition: opacity .3s; }
.ts-date.is-hl::after, .ts-date:has(+ .ts-date.is-hl)::after,
.ts-dates:not(.has-hl) .ts-date--now::after, .ts-dates:not(.has-hl) .ts-date:has(+ .ts-date--now)::after { opacity: 0; }
/* tags flip to dark green on whichever row is highlighted */
.ts-date .ts-pill { transition: background-color .3s, color .3s; }
.ts-date.is-hl .ts-pill, .ts-dates:not(.has-hl) .ts-date--now .ts-pill { background: var(--ts-green); color: var(--ts-white); }
@media (prefers-reduced-motion: reduce) { .ts-dates__hl { transition: none; } }
.ts-date__when { font-family: var(--ts-serif); line-height: 1; }
.ts-date__when b { display: block; font-size: 32px; font-weight: 200; }
.ts-date__when span { display: block; font-family: var(--ts-sans); font-size: 13px; letter-spacing: 0; text-transform: none; margin-top: 6px; color: var(--ts-ink-70); white-space: nowrap; }
.ts-date h3 { font-size: 21px; margin-bottom: 6px; }
.ts-date p { font-size: 14px; color: var(--ts-ink-70); line-height: 1.6; }
.ts-date__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.ts-date--now { background: var(--ts-sage-light); }

/* ---------- how to apply + fees (Choate / Lawrenceville-style) ---------- */
.ts-apply { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; }
.ts-steps { list-style: none; counter-reset: s; }
.ts-steps li { counter-increment: s; position: relative; padding: 0 0 28px 64px; }
/* numbered dark green circles joined by a vertical line */
.ts-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -6px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ts-green); color: var(--ts-white); font-family: var(--ts-sans); font-size: 14px; font-weight: 500; line-height: 1; }
.ts-steps li::after { content: ""; position: absolute; left: 21.5px; top: 38px; bottom: -6px; width: 1px; background: rgba(20,38,11,.25); }
.ts-steps li:last-child::after { display: none; }
.ts-steps h3 { font-size: 21px; margin-bottom: 6px; }
.ts-steps p { font-size: 15px; color: var(--ts-ink-70); line-height: 1.6; }
.ts-fee { background: var(--ts-green); color: var(--ts-white); border-radius: var(--ts-radius); padding: clamp(24px, 3vw, 36px); position: sticky; top: calc(var(--ts-hdr) + 24px); }
.ts .ts-fee__amount { font-family: var(--ts-serif); font-weight: 200; font-size: 76px; line-height: 1; margin: 0 0 6px; color: var(--ts-gold); }
.ts .ts-fee__sub { font-size: 14px; opacity: .8; margin-bottom: 26px !important; }
.ts-fee dl { margin: 0 0 26px; border-top: 1px solid rgba(255,255,255,.18); }
.ts-fee dl div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.ts-fee dl div:last-child { border-bottom: 0; }
.ts-fee dl:last-child { margin-bottom: 0; } /* no button under the list: the panel padding closes it, same as the top */
.ts-fee dl:last-child div:last-child { padding-bottom: 0; }
.ts-fee dt { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ts-fee dd { margin: 0; font-size: 14px; line-height: 1.55; opacity: .82; }

/* ---------- FAQ ---------- */
.ts-faq { border-top: 1px solid var(--ts-line); }
.ts-faq details { border-bottom: 1px solid var(--ts-line); }
.ts-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--ts-serif); font-size: clamp(18px, 1.6vw, 21px); font-weight: 400; line-height: 1.35; }
.ts-faq summary::-webkit-details-marker { display: none; }
.ts-faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ts-line); background: var(--ts-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319250f' stroke-width='1.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s, background-color .25s; }
.ts-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--ts-gold); border-color: var(--ts-gold); }
.ts-faq summary:hover { color: var(--ts-green); }
.ts-faq__a { padding: 0 64px 26px 0; color: var(--ts-ink-70); }
.ts-faq__a ul { padding-left: 1.2em; margin: 0 0 1em; }
.ts-faq__a li { margin-bottom: 4px; }

/* ---------- register interest band + form ---------- */
.ts-register { background: var(--ts-green); color: var(--ts-white); padding: clamp(56px, 8vw, 112px) 0; }
/* hub: the band runs straight into the dark footer, so an edge-to-edge keyline splits them */
.ts-register--end { position: relative; }
.ts-register--end::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.ts-register__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.ts-register h2 { color: var(--ts-white); margin-bottom: 20px; }
.ts-register__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; } /* detail pages: headline + Apply now, no form */
.ts .ts-register__cta h2 { margin: 0; max-width: 16em; line-height: 1.32; } /* long headlines break onto two lines so the button stays beside them; leading 20% above the 1.1 headline default */
.ts-register__copy p { opacity: .85; }
.ts-register__copy strong { font-weight: 600; color: var(--ts-white); }
.ts-register__list { list-style: none; margin-top: 28px !important; }
.ts-register__list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: 15px; }
.ts-register__list li:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.ts-register__list li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ts-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314260b' stroke-width='2.4'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

.ts-form { background: var(--ts-white); color: var(--ts-ink); border-radius: var(--ts-radius); padding: clamp(24px, 3vw, 40px); }
.ts-form h3 { margin-bottom: 6px; }
.ts-form__fields > p { margin-bottom: 36px !important; }
.ts-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ts-field { display: flex; flex-direction: column; gap: 6px; }
.ts-field--full { grid-column: 1 / -1; }
.ts-field label, .ts-field legend { font-size: 13px; font-weight: 500; color: var(--ts-ink); margin: 0; padding: 0; line-height: 1.3; }
.ts-field input, .ts-field select { width: 100%; height: 48px; margin: 0 !important; padding: 0 14px; border: 1px solid rgba(25,37,15,.25) !important; border-radius: 10px !important; background: var(--ts-white); font: 15px var(--ts-sans); color: var(--ts-ink); box-shadow: none !important; transition: border-color .2s, box-shadow .2s; }
.ts-field input:focus, .ts-field select:focus { outline: none; border-color: var(--ts-green) !important; box-shadow: 0 0 0 3px rgba(193,207,186,.8) !important; }
.ts-field.is-invalid input, .ts-field.is-invalid select { border-color: #b3261e !important; }
.ts-field__err { display: none; font-size: 12px; color: #b3261e; }
.ts-field.is-invalid .ts-field__err { display: block; }
.ts-field fieldset { border: 0; margin: 0; padding: 0; }
.ts-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ts-check { position: relative; }
.ts-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ts-check span { display: inline-block; font-size: 13px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(25,37,15,.25); cursor: pointer; transition: all .2s; user-select: none; }
.ts-check input:checked + span { background: var(--ts-green); color: var(--ts-white); border-color: var(--ts-green); }
.ts-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(193,207,186,.9); }
.ts-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ts-ink-70); }
.ts-consent input { width: 18px; height: 18px; margin: 2px 0 0 !important; flex: none; accent-color: var(--ts-green); }
.ts-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.ts-form__foot small { flex: 1 1 220px; font-size: 12px; line-height: 1.5; color: var(--ts-ink-70); }
.ts-form__foot small a { color: var(--ts-ink); text-decoration: underline; text-underline-offset: 2px; }
.ts-form__done { display: none; text-align: center; padding: 32px 8px; }
.ts-form__done svg { width: 56px; height: 56px; margin: 0 auto 16px; display: block; }
.ts-form.is-sent .ts-form__fields { display: none; }
.ts-form.is-sent .ts-form__done { display: block; }

.ts-enquire { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 28px 32px; background: var(--ts-cream); border-radius: var(--ts-radius); margin-top: 40px; }
.ts-enquire p { margin: 0; max-width: 38em; font-size: 15px; }

/* ---------- detail page ---------- */

.ts-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 80px); padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 96px); }
.ts-detail__main > section + section { margin-top: var(--ts-section); }
.ts-detail__main h2 { margin-bottom: 44px; }
/* headline + intro paragraph: same rhythm as the hub section heads (14px, then 44px to the content) */
.ts-detail__main h2:has(+ p) { margin-bottom: 14px; }
.ts .ts-detail__main h2 + p { margin-bottom: 44px; }
.ts-aside--detail { display: none; }
.ts-applycard { position: sticky; top: calc(var(--ts-hdr) + 24px); background: var(--ts-sage-light); border: 0; border-radius: var(--ts-radius); padding: 26px; }
.ts .ts-applycard h3 { font-family: var(--ts-sans); font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: 0; margin-bottom: 20px; }
.ts-applycard dl { margin: 0 0 20px; }
.ts-applycard dl div:first-child { border-top: 0; }
.ts-applycard dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(20,38,11,.12); font-size: 14px; line-height: 1.45; }
.ts-applycard dt { color: var(--ts-ink-70); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; padding-top: 1px; }
.ts-applycard dd { margin: 0; font-weight: 500; }
.ts-applycard .ts-btn + .ts-btn { margin-top: 10px; }
.ts-applycard__nav { list-style: none; margin-top: 26px !important; padding-top: 0 !important; }
.ts-applycard__nav a { display: block; font-size: 14px; padding: 5px 0 5px 14px; text-decoration: none; color: var(--ts-ink-70); border-left: 2px solid transparent; }
.ts-applycard__nav a.is-active { color: var(--ts-ink); border-left-color: var(--ts-gold-deep); font-weight: 500; }

.ts-checklist { list-style: none; }
.ts-checklist li { position: relative; padding: 14px 0 14px 40px; border-top: 1px solid var(--ts-line); }
.ts-checklist li:last-child { border-bottom: 1px solid var(--ts-line); }
.ts-checklist li::before { content: ""; position: absolute; left: 0; top: 15px; width: 24px; height: 24px; border-radius: 50%; background: var(--ts-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314260b' stroke-width='2.4'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ts .ts-numbered { list-style: none; counter-reset: n; margin: 20px 0 0 !important; padding: 4px 22px; background: var(--ts-sage-light); border-radius: var(--ts-radius); }
.ts-numbered li { counter-increment: n; display: flex; align-items: center; gap: 20px; padding: 18px 0; font-size: 15px; line-height: 1.5; }
.ts .ts-numbered + p { margin: 24px 0 0; } /* note under the box; the next sub-heading sets the gap below */
.ts-numbered li + li { border-top: 1px solid rgba(20,38,11,.14); }
.ts-numbered li::before { content: counter(n, decimal-leading-zero); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ts-green); color: var(--ts-white); font-family: var(--ts-sans); font-size: 14px; font-weight: 500; line-height: 1; flex: none; }
.ts .ts-detail__main h2 + p:has(+ .ts-subhead) { margin-bottom: 0; } /* the sub-heading sets this gap */
.ts-detail__main .ts-subhead { margin: clamp(40px, 4vw, 56px) 0 24px; } /* closer than a new section, still clear of the content above */
.ts-instruments { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 20px !important; }
.ts-instruments li { font-size: 11px; font-weight: 500; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: var(--ts-sage-light); line-height: 1.2; }
.ts .ts-textlink { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ts .ts-textlink:hover { text-decoration-thickness: 2px; }
.ts-callout { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--ts-radius); background: #fbf1d4; font-size: 15px; line-height: 1.55; margin: 16px 0; }
.ts-callout svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.ts-callout--sage { background: var(--ts-sage-light); }
.ts-gallery { position: relative; }
.ts-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--ts-radius); scrollbar-width: none; }
.ts-gallery__track::-webkit-scrollbar { display: none; }
.ts-gallery__track img { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; scroll-snap-align: start; }
.ts-gallery__nav { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.ts-gallery__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--ts-white); color: var(--ts-ink); cursor: pointer; transition: background-color .2s; }
.ts-gallery__btn:hover { background: var(--ts-gold); }
.ts-gallery__btn svg { width: 20px; height: 20px; }
.ts-gallery__btn--prev svg { transform: rotate(180deg); }
.ts-resources { list-style: none; }
.ts-resources a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; border-top: 1px solid var(--ts-line); text-decoration: none; font-weight: 500; transition: padding .2s; }
.ts-resources li:last-child a { border-bottom: 1px solid var(--ts-line); }
.ts-resources a:hover { padding-left: 12px; }
.ts-resources small { display: block; font-weight: 400; font-size: 13px; color: var(--ts-ink-70); }
.ts-resources svg { width: 20px; height: 20px; flex: none; }

.ts-others { background: var(--ts-cream); padding: clamp(56px, 8vw, 104px) 0; }
@media (min-width: 900px) { .ts-others .ts-tiles { grid-template-columns: repeat(3, 1fr); } }


/* soon toast */
.ts-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 1000; background: var(--ts-ink); color: #fff; font: 14px var(--ts-sans); padding: 12px 18px; border-radius: 10px; transition: all .25s; max-width: calc(100vw - 32px); }
.ts-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* reveal on scroll */
.ts-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.ts-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ts-reveal { opacity: 1; transform: none; transition: none; } }

/* bold sans (600): extra tracking for legibility */
.ts strong, .ts .ts-explore__title, .ts .ts-q h3, .ts .ts-table th, .ts .ts-table .ts-close,
.ts .ts-fee dt, .ts .ts-applycard h3, .ts .ts-applycard dt { letter-spacing: var(--ts-bold-track); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .ts-questions { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, auto auto 1fr auto); row-gap: 0; }
  .ts-q:nth-child(3) { border-left: 0; }
  /* bottom-right column divider starts level with its question, not at the row line */
  .ts-q:nth-child(4) { border-left-color: transparent; } /* keep the 1px so text stays aligned with the column above */
  .ts-q:nth-child(4)::after { content: ""; position: absolute; left: -1px; top: 28px; bottom: 0; border-left: 1px solid rgba(20,38,11,.14); }
  .ts-q:nth-child(n+3) { position: relative; padding-top: 28px; margin-top: 28px; }
  .ts-q .ts-link { border-top: 0; padding-top: 0; }
  /* row divider inset to the text, not edge to edge */
  .ts-q:nth-child(n+3)::before { content: ""; position: absolute; top: 0; left: clamp(14px, 1.2vw, 18px); right: clamp(14px, 1.2vw, 18px); border-top: 1px solid rgba(20,38,11,.14); }
  .ts-detail { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1023px) {
  /* announcement bar docks to the bottom on tablet and mobile while scrolling (JS clone), until the form */
  .ts-announce--dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform .3s; }
  .ts-announce--dock.is-on { transform: none; }
  /* explore aside becomes a sticky horizontal chip bar under the header */
  .ts-layout { grid-template-columns: minmax(0, 1fr); padding-top: 0; gap: 0; }
  .ts-aside { position: sticky; top: var(--ts-hdr); z-index: 50; margin: 0 calc(var(--ts-gutter) * -1) 40px; background: var(--ts-paper); border-bottom: 1px solid var(--ts-line); }
  .ts-explore { position: static; }
  .ts-explore__title, .ts-explore__cta { display: none; }
  .ts-explore ol { display: flex; overflow-x: auto; border: 0; padding: 0 var(--ts-gutter); scrollbar-width: none; }
  .ts-explore ol::-webkit-scrollbar { display: none; }
  .ts-explore ol a { white-space: nowrap; padding: 16px 14px; border-left: 0; border-bottom: 2px solid transparent; margin: 0; }
  .ts-explore ol a.is-active { border-bottom-color: var(--ts-gold-deep); }
  .ts-main { padding-top: 8px; }

  .ts-detail { grid-template-columns: minmax(0, 1fr); }
  .ts-detail__aside { display: none; }
  .ts-detail { padding-top: 0; }
  .ts-aside--detail { display: block; margin-bottom: 48px; }
  .ts-apply { grid-template-columns: minmax(0, 1fr); }
  .ts-fee { position: static; }
  .ts-register__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .ts-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ts-hero__media { aspect-ratio: 4 / 3; }
  .ts-hero__copy { padding: 36px var(--ts-gutter) 44px; }
  .ts-statement { grid-template-columns: 1fr; gap: 8px; }
  .ts-questions { grid-template-columns: 1fr; grid-template-rows: none; padding: 8px 22px; }
  .ts-q, .ts-q + .ts-q, .ts-q:nth-child(n+3) { display: flex; flex-direction: column; grid-row: auto; padding: 22px 0 6px; margin: 0; border: 0; }
  .ts-q:nth-child(n+3)::before, .ts-q:nth-child(4)::after { content: none; }
  .ts-q + .ts-q { padding-top: 26px; }
  .ts-q .ts-link { align-self: stretch; border-top: 0; padding-top: 0; margin-top: 16px; }
  .ts-q:not(:last-child) { padding-bottom: 24px; border-bottom: 1px solid rgba(20,38,11,.14); }
  /* chip bar slides away once the register form comes into view (JS) */
  .ts-aside { transition: transform .3s, opacity .3s; }
  .ts-aside.is-away { transform: translateY(-100%); opacity: 0; pointer-events: none; }
  .ts-date { grid-template-columns: 1fr; gap: 16px; }
  .ts-date__tags { margin-top: 16px; }
  .ts-date__when b { font-size: 28px; }
  .ts-form__grid { grid-template-columns: 1fr; }
  .ts-gallery__track img { aspect-ratio: 4 / 3; }
  .ts-faq__a { padding-right: 0; }
  .ts-btns .ts-btn { flex: 1 1 auto; justify-content: space-between; }

  /* comparison table → stacked cards */
  .ts-table-wrap { border: 0; background: transparent; border-radius: 0; }
  .ts-table thead { display: none; }
  .ts-table, .ts-table tbody, .ts-table tr, .ts-table td { display: block; width: 100%; }
  .ts-table tbody tr { border: 1px solid var(--ts-line); border-radius: var(--ts-radius); margin-bottom: 12px; padding: 6px 18px; background: var(--ts-white) !important; }
  .ts-table td { padding: 10px 0; display: grid; grid-template-columns: 112px 1fr; gap: 12px; border-top: 1px solid var(--ts-line); }
  .ts-table td::before { content: attr(data-label); font-family: var(--ts-sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ts-ink-70); padding-top: 1px; }
  .ts-table td:first-child { display: block; border-top: 0; font-size: 21px; padding: 12px 0; }
  .ts-table td:first-child::before { display: none; }
  .ts-table td:nth-child(2) { border-top: 0; }
}
