/* ==========================================================================
   Taekwondo department page. Indigo spectrum, firmer and more rectilinear
   geometry than Dance while keeping the same radius and type system.
   Composition: full-width active hero, belt-order pathway, outcomes split,
   ITF standard, instructor story, real timetable with filters, trial close.
   ========================================================================== */

:root{
  --t-ink:#151243;
  --t-deep:#3A32B5;
  --t-mid:#4F46E5;
  --t-soft:#F0F0FC;
  --t-soft-2:#E9E9FA;
  --t-line:#DFDFF6;
}

.tkd-page main{padding-bottom:0}

/* ---------- Hero: one wide training image, copy on a firm panel below ---------- */
.t-hero{margin:12px 0 clamp(96px,11vw,150px)}
.t-back{display:inline-flex;align-items:center;gap:8px;width:max-content;margin-bottom:20px;color:var(--soft);font-size:13px;font-weight:600;transition:color .2s ease}
.t-back:hover{color:var(--ink)}
.t-hero-frame{position:relative;border-radius:20px;overflow:hidden;background:var(--t-soft)}
.t-hero-frame img{display:block;width:100%;height:clamp(320px,42vw,520px);object-fit:cover;object-position:center 34%}
.t-hero-bar{display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(36px,5vw,80px);align-items:end;padding:clamp(30px,3.4vw,44px) clamp(28px,3.4vw,46px);background:var(--t-ink);color:#fff}
/* No max-width: the 1.25fr grid column already sets the measure. The old 660px
   cap was sized for a four word heading and forced the client's longer ones
   onto an extra line inside a column that had room to spare. */
.t-hero-bar h1{margin:0;font-size:clamp(37px,3.92vw,54px);line-height:1.2;text-wrap:pretty}
.t-hero-side>p{max-width:400px;margin:0 0 22px;color:#C4C2E8;font-size:14px;line-height:1.6}
/* Primary button, then the secondary link beneath it. These were flex rows that
   happened to wrap at different widths on each page, because the labels differ in
   length: "Book a taekwondo trial" is 30px wider than "Book a dance trial", so
   Taekwondo stacked while Dance did not. Stacking is now deliberate. */
.t-actions{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.t-primary{display:inline-flex;align-items:center;gap:10px;padding:13px 17px;background:#fff;color:var(--ink);border-radius:8px;font-size:13px;font-weight:600;transition:background .2s ease}
.t-primary:hover{background:#EDEAF0}
.t-primary i,.t-text-link i,.t-trial-action>a i:last-child,.t-story-link i{transition:transform .2s ease}
.t-primary:hover i,.t-text-link:hover i,.t-trial-action>a:hover i:last-child,.t-story-link:hover i{transform:translate(3px,-3px)}
.t-text-link{display:inline-flex;align-items:center;gap:7px;color:#C9C5D2;font-size:13px;font-weight:600;transition:color .2s ease}
.t-text-link:hover{color:#fff}
/* fact strip sits directly under the hero, square edged, firm */
.t-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin:0;padding:0;list-style:none;background:var(--t-line);border:1px solid var(--t-line);border-radius:0 0 14px 14px;overflow:hidden}
.t-facts li{display:flex;align-items:center;gap:12px;padding:20px 24px;background:#fff}
.t-facts i{font-size:22px;color:var(--t-mid)}
.t-facts b{display:block;font-size:15px;letter-spacing:.1px}
.t-facts span{display:block;color:#63608C;font-size:11px}

/* ---------- Opening ---------- */
.t-opening{max-width:1120px;margin:0 auto clamp(96px,11vw,150px);display:grid;grid-template-columns:1.12fr .78fr;gap:clamp(50px,9vw,140px);align-items:end}
.t-opening>div>i{display:block;margin-bottom:18px;color:var(--t-mid);font-size:34px}
.t-opening h2{max-width:660px;margin:0;font-size:clamp(37px,4.4vw,59px);line-height:1.2;text-wrap:pretty}
.t-opening>p{max-width:420px;margin:0 0 7px;color:var(--soft);font-size:15px;line-height:1.6}

/* ---------- Grading pathway: firm rectilinear blocks ---------- */
.t-pathway{max-width:1120px;margin:0 auto clamp(96px,11vw,150px)}
.t-pathway-head{display:grid;grid-template-columns:1fr .68fr;gap:clamp(40px,6vw,90px);align-items:end;margin-bottom:36px}
.t-pathway-head h2{margin:0;font-size:clamp(30px,3.2vw,42px);line-height:1.2;text-wrap:pretty}
.t-pathway-head p{margin:0;color:var(--soft);font-size:14px;line-height:1.6}
.t-levels{display:grid;grid-template-columns:repeat(5,1fr);gap:2px;margin:0;padding:0;list-style:none;border-radius:14px;overflow:hidden}
.t-level{display:flex;flex-direction:column;min-height:212px;padding:26px 24px;background:var(--t-soft);color:var(--t-ink)}
.t-level:nth-child(2){background:#E4E4F9}
.t-level:nth-child(3){background:#D2D1F5;}
.t-level:nth-child(4){background:var(--t-mid);color:#fff}
.t-level:nth-child(5){background:var(--t-ink);color:#fff}
.t-level>i{font-size:26px;margin-bottom:auto;color:var(--t-deep)}
.t-level:nth-child(4)>i,.t-level:nth-child(5)>i{color:#C9C6F6}
.t-level b{display:block;margin-top:20px;font-size:19px;letter-spacing:.1px}
.t-level span{display:block;margin-top:5px;min-height:4.4em;font-size:12px;line-height:1.45;color:#4E4A7A}
.t-level:nth-child(4) span,.t-level:nth-child(5) span{color:#C3C0EE}
.t-pathway-note{margin:18px 2px 0;color:#6A6580;font-size:12px}

/* ---------- Outcomes: what training builds ---------- */
.t-outcomes{max-width:1120px;margin:0 auto clamp(96px,11vw,150px);display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(40px,6vw,80px);align-items:center}
.t-outcomes figure{margin:0;border-radius:18px;overflow:hidden}
.t-outcomes figure img{display:block;width:100%;height:clamp(340px,38vw,470px);object-fit:cover;object-position:center 30%}
.t-outcomes h2{margin:0 0 18px;font-size:clamp(30px,3.36vw,43px);line-height:1.2;text-wrap:pretty}
.t-outcomes>div>p{max-width:430px;margin:0 0 30px;color:var(--soft);font-size:15px;line-height:1.6}
.t-outcome-list{display:grid;gap:2px;margin:0;padding:0;list-style:none;border-radius:14px;overflow:hidden}
.t-outcome-list li{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start;padding:22px 24px;background:var(--t-soft)}
.t-outcome-list i{font-size:22px;color:var(--t-deep)}
.t-outcome-list b{display:block;margin-bottom:4px;font-size:15px;letter-spacing:.1px}
.t-outcome-list span{display:block;color:#5A567F;font-size:13px;line-height:1.55}

/* ---------- ITF standard and instructor story ---------- */
.t-story{max-width:1120px;margin:0 auto clamp(96px,11vw,150px);display:grid;grid-template-columns:.95fr 1.05fr;gap:16px}
.t-standard{padding:clamp(36px,4vw,52px);background:var(--t-soft-2);color:var(--ink);border-radius:18px;display:flex;flex-direction:column;align-items:flex-start}
.t-standard>i{font-size:34px;color:var(--t-deep);margin-bottom:22px}
.t-standard h2{margin:0 0 14px;font-size:clamp(26px,2.72vw,35px);line-height:1.2;text-wrap:pretty}
.t-standard>p{margin:0 0 24px;color:#524D7B;font-size:14px;line-height:1.6}
.t-standard dl{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;margin:0;width:100%}
.t-standard dt{font-size:11px;color:#6B6796}
.t-standard dd{margin:4px 0 0;font-size:14px;font-weight:600}
.t-instructor{border-radius:18px;overflow:hidden;background:var(--t-soft);display:grid;grid-template-rows:auto 1fr}
.t-instructor figure{margin:0;height:300px;overflow:hidden}
.t-instructor figure img{width:100%;height:100%;object-fit:cover;object-position:center 32%}
.t-instructor-copy{padding:clamp(30px,3.4vw,44px)}
.t-instructor-copy h3{margin:0 0 4px;font-size:19px;letter-spacing:.1px}
.t-instructor-copy>p:first-of-type{margin:0 0 18px;color:var(--soft);font-size:12px;font-weight:600}
.t-instructor-copy>p:last-of-type{margin:0;color:#544F7C;font-size:14px;line-height:1.6}

/* ---------- Timetable ---------- */
.t-timetable{max-width:1120px;margin:0 auto clamp(96px,11vw,150px);display:grid;grid-template-columns:.66fr 1.34fr;gap:clamp(50px,8vw,110px);align-items:start;padding:clamp(48px,6vw,80px);background:var(--t-soft);border-radius:20px}
.t-timetable-side>i{display:block;margin-bottom:18px;font-size:32px;color:var(--t-mid)}
.t-timetable-side h2{margin:0 0 18px;font-size:clamp(26px,2.56vw,34px);line-height:1.2;text-wrap:pretty}
.t-timetable-side>p{margin:0 0 26px;color:#544F7C;font-size:14px;line-height:1.6}
.t-filters{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}
.t-filters button{appearance:none;border:0;border-radius:6px;padding:10px 12px;background:#E7E4EC;color:#4A3F58;font:600 12px/1 'Switzer',sans-serif;cursor:pointer;transition:background .2s ease,color .2s ease}
.t-filters button:hover{background:#DCD8E3}
.t-filters .is-active{background:var(--ink);color:#fff}
.t-schedule{padding:4px 26px;background:#fff;border-radius:14px}
.t-schedule article{display:grid;grid-template-columns:74px 116px 1fr auto;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid #EDECF8}
.t-schedule article:last-child{border-bottom:0}
.t-schedule article[hidden]{display:none}
.t-schedule .t-day{color:#6D699A;font-size:11px;font-weight:600}
.t-schedule time{color:var(--t-ink);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.t-schedule h3{margin:0;font:600 15px/1.25 'Switzer',sans-serif;letter-spacing:.1px}
.t-schedule p{margin:2px 0 0;color:#6B678F;font-size:11px}
.t-schedule .t-teacher{display:flex;align-items:center;gap:7px;color:#6D699A;font-size:11px;white-space:nowrap}
.t-schedule .t-teacher i{font-size:15px;color:var(--t-mid)}
.t-empty{margin:16px 0;color:var(--muted);font-size:13px}

/* ---------- Trial close ---------- */
.t-trial{max-width:1120px;margin:0 auto clamp(80px,9vw,120px);display:grid;grid-template-columns:1fr .85fr .75fr;gap:clamp(34px,6vw,78px);align-items:center;padding:clamp(48px,7vw,78px);background:var(--t-deep);color:#fff;border-radius:20px}
.t-trial>div:first-child>i{display:block;margin-bottom:15px;color:#C6C3F7;font-size:31px}
.t-trial h2{margin:0;font-size:clamp(30px,3.12vw,42px);line-height:1.2;text-wrap:pretty}
.t-trial>p{margin:0;color:#D3D1F5;font-size:14px;line-height:1.6}
.t-trial-action>a{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;padding:14px 16px;background:#fff;color:var(--ink);border-radius:8px;font-size:13px;font-weight:600;transition:background .2s ease}
.t-trial-action>a:hover{background:#EDEAF0}
.t-trial-action>span{display:block;margin-top:12px;color:#BFBCEF;font-size:11px}
.t-trial-action>span a{color:#fff;font-weight:600}

@media(max-width:1000px){
  .t-hero{margin-bottom:96px}
  .t-hero-bar{grid-template-columns:1fr;gap:26px;align-items:start}
  .t-facts{grid-template-columns:1fr 1fr;border-radius:0 0 14px 14px}
  .t-opening{grid-template-columns:1fr;gap:30px}
  .t-pathway-head{grid-template-columns:1fr;gap:18px}
  .t-levels{grid-template-columns:repeat(3,1fr)}
  .t-level{min-height:190px}
  .t-outcomes{grid-template-columns:1fr;gap:36px}
  .t-outcomes figure img{height:340px}
  .t-story{grid-template-columns:1fr;gap:14px}
  .t-timetable{grid-template-columns:1fr;gap:40px}
  .t-timetable-side{max-width:620px}
  .t-filters{display:flex;flex-wrap:wrap}
  .t-filters button{min-width:104px}
  .t-trial{grid-template-columns:1fr 1fr}
  .t-trial-action{grid-column:2}
  .t-trial>p{grid-column:1}
}

@media(max-width:680px){
  .t-hero{margin:8px 0 80px}
  .t-hero-frame{border-radius:16px}
  .t-hero-frame img{height:250px}
  .t-hero-bar{padding:28px 22px}
  .t-hero-bar h1{font-size:35px}
  .t-facts{grid-template-columns:1fr}
  .t-facts li{padding:16px 20px}
  .t-opening{margin-bottom:80px}
  .t-opening h2{font-size:35px}
  .t-opening>p{font-size:14px}
  .t-pathway{margin-bottom:80px}
  .t-pathway-head h2{font-size:29px}
  .t-levels{grid-template-columns:1fr 1fr}
  .t-level{min-height:172px;padding:22px 20px}
  .t-level b{font-size:17px}
  .t-outcomes{margin-bottom:80px}
  .t-outcomes h2{font-size:30px}
  .t-outcomes figure img{height:260px}
  .t-outcome-list li{padding:20px}
  .t-story{margin-bottom:80px}
  .t-standard{padding:32px 24px;border-radius:16px}
  .t-standard h2{font-size:26px}
  .t-standard dl{grid-template-columns:1fr;gap:14px}
  .t-instructor{border-radius:16px}
  .t-instructor figure{height:240px}
  .t-instructor-copy{padding:28px 22px}
  .t-timetable{margin-bottom:80px;padding:40px 22px;border-radius:16px;gap:34px}
  .t-timetable-side h2{font-size:27px}
  .t-filters{display:grid;grid-template-columns:1fr 1fr}
  .t-schedule{padding:2px 16px}
  .t-schedule article{grid-template-columns:58px 1fr;gap:6px 12px;padding:16px 0}
  .t-schedule time{grid-column:2;grid-row:1}
  .t-schedule .t-day{grid-column:1;grid-row:1}
  .t-schedule>article>div{grid-column:1/-1}
  .t-schedule .t-teacher{grid-column:1/-1}
  .t-trial{margin-bottom:70px;padding:44px 26px;grid-template-columns:1fr;gap:26px;border-radius:16px}
  .t-trial h2{font-size:32px}
  .t-trial>p,.t-trial-action{grid-column:1}
}

/* Level and age filter sets, added 2026-08-10 with the real timetable. */
.t-filter-sets{display:flex;flex-direction:column;gap:16px;margin-top:18px}
.t-note{margin:14px 0 0;max-width:70ch;color:var(--quiet);font-size:12.5px;line-height:1.6}
.t-schedule article[hidden]{display:none}
