/* ==========================================================================
   Maynooth Taekwon-Do School — site styles
   Colours are taken from the club logo (red / blue / black).
   ========================================================================== */

:root {
  --red: #c8232c;
  --red-dark: #a11a22;
  --red-soft: #fbeaea;
  --blue: #1f4596;
  --blue-dark: #142f69;
  --blue-soft: #e9eef8;
  --ink: #15171c;
  --ink-2: #2a2e37;
  --muted: #5d6472;
  --line: #e4e0d8;
  --bg: #ffffff;
  --bg-alt: #f6f4f0;
  --gold: #e0a526;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 23, 28, .06), 0 8px 24px rgba(21, 23, 28, .07);
  --shadow-lg: 0 2px 4px rgba(21, 23, 28, .06), 0 20px 48px rgba(21, 23, 28, .14);

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.55rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }

.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200, 35, 44, .28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--red); display: inline-flex; align-items: center; gap: 6px;
}
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c9ccd3; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #e8eaee; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); max-width: 1320px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.brand-sub { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a,
.main-nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 10px 11px; border-radius: 8px;
  background: none; border: 0; cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 1240px) and (min-width: 1081px) {
  .header-cta { display: none; }
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > button:hover,
.main-nav > ul > li.open > button { color: var(--red); background: var(--red-soft); }
.main-nav > ul > li.active > a,
.main-nav > ul > li.active > button { color: var(--red); }
.main-nav .caret { width: 10px; height: 10px; transition: transform .2s; }
.main-nav li.open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translate(-50%, 6px);
  min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 460px; }
.main-nav li.open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1081px) {
  .main-nav li.has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .main-nav li.has-dropdown:hover .caret { transform: rotate(180deg); }
}
.dropdown h5 {
  margin: 6px 12px 4px; font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.dropdown a:hover { background: var(--bg-alt); color: var(--red); }
.dropdown a.current { color: var(--red); background: var(--red-soft); }

.header-cta { flex: none; }
.header-cta .btn { padding: 10px 20px; font-size: 1rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  /* backdrop-filter would make the header the containing block for the fixed menu */
  .site-header { backdrop-filter: none; background: #fff; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto;
    padding: 12px 24px 40px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility .25s;
    margin: 0;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a, .main-nav > ul > li > button { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.3rem; border-radius: 0; }
  .main-nav > ul > li > a:hover, .main-nav > ul > li > button:hover, .main-nav > ul > li.open > button { background: none; }
  .dropdown, .dropdown.wide {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; min-width: 0; padding: 0 0 12px;
    display: none; grid-template-columns: 1fr;
  }
  .main-nav li.open > .dropdown { display: block; transform: none; }
  .dropdown a { font-size: 1.02rem; padding: 10px 12px; }
  .mobile-cta { display: block !important; margin-top: 24px; }
  .mobile-cta .btn { width: 100%; }
}
.mobile-cta { display: none; }

@media (max-width: 640px) {
  .topbar-social { display: none; }
  .topbar-contact { gap: 16px; }
  .brand-name { font-size: 1.2rem; }
  .brand img { width: 44px; height: 44px; }
  :root { --header-h: 68px; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 20%, #22396f 0%, transparent 60%), linear-gradient(135deg, #0f1522 0%, #172448 100%);
  color: #fff;
  padding: 88px 0 96px;
}
.hero::before {
  /* subtle taegeuk swirl in the background */
  content: ""; position: absolute; right: -180px; top: -140px; width: 620px; height: 620px; border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(200,35,44,.35) 0 50%, rgba(31,69,150,.35) 50% 100%);
  filter: blur(2px); opacity: .5;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: .98; }
.hero h1 em { font-style: normal; color: #ff5a60; }
.hero .eyebrow { color: #ff7a7f; }
.hero .lede { color: #c9d0de; font-size: 1.22rem; margin-bottom: 30px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 6px solid rgba(255,255,255,.08); }
.hero-badge {
  position: absolute; left: -26px; bottom: -26px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 18px 12px 12px;
  box-shadow: var(--shadow-lg);
}
.hero-badge img { width: 56px; height: 56px; border: 0; box-shadow: none; border-radius: 0; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.hero-badge span { font-size: .82rem; color: var(--muted); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-facts div { font-size: .92rem; color: #c9d0de; }
.hero-facts strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; line-height: 1.1; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-badge { left: 12px; bottom: -22px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #c9ccd3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

/* Justified body text. Falls back to left-aligned on narrow screens, where justifying leaves big gaps. */
.justify p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.nowrap { white-space: nowrap; } /* keep hyphenated phrases like "up-and-down" on one line */
.justify .card p, .justify .testimonial p, .justify .skill p { text-align: left; } /* short card blurbs look gappy when justified */
@media (max-width: 600px) { .justify p { text-align: left; } }

/* Circular crop for logos supplied on a square white background (e.g. the ITF logo) */
img.round-logo { border-radius: 50%; background: #fff; object-fit: cover; }
.hero-badge img.round-logo { width: 52px; height: 52px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.media-left > :first-child { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Little Dragons feature ---------- */
.dragons-feature {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch;
  background: linear-gradient(135deg, #0e7c66 0%, #16a085 60%, #2cc39f 100%);
  border-radius: 24px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.dragons-feature .df-media { min-height: 340px; background: center/cover no-repeat; }
.dragons-feature .df-body { padding: 48px 48px 44px; position: relative; }
.dragons-feature h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 6px; }
.dragons-feature .eyebrow { color: #ffe36e; }
.dragons-feature p { color: #e5fbf4; font-size: 1.08rem; }
.age-pill { display: inline-block; background: #ffe36e; color: #1a3d34; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.df-skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; padding: 0; list-style: none; }
.df-skills li { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 4px 12px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
@media (max-width: 900px) {
  .dragons-feature { grid-template-columns: 1fr; }
  .dragons-feature .df-media { min-height: 260px; }
  .dragons-feature .df-body { padding: 32px 26px; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .text-link { margin-top: auto; }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d6d0c4; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.blue { background: var(--blue-soft); color: var(--blue); }
.card-icon.green { background: #e3f6f0; color: #0e7c66; }
.card-icon.gold { background: #fdf3dc; color: #a26f06; }
.card-icon.ink { background: #ebecef; color: var(--ink); }

/* ---------- Welcome / feature blocks ---------- */
.photo-stack { position: relative; }
.photo-stack img { border-radius: 16px; box-shadow: var(--shadow-lg); }
.photo-stack .ps-main { width: 100%; }
.photo-stack .ps-small { position: absolute; width: 42%; right: -18px; bottom: -34px; border: 6px solid #fff; }
@media (max-width: 900px) { .photo-stack .ps-small { right: 10px; } }
/* Portrait main photo (e.g. a full-length action shot) with a round logo overlapping bottom-right */
.photo-stack.portrait { max-width: 440px; margin: 0 auto; }
.photo-stack.portrait .ps-main { width: 86%; }
.photo-stack.portrait .ps-small { width: 38%; right: 0; bottom: -24px; border: 6px solid #fff; }
.photo-stack img.round-logo { border-radius: 50%; }
@media (max-width: 900px) { .photo-stack.portrait .ps-small { right: 0; } }

.tenets { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.tenets li { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }

.signoff { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.signoff img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--bg-alt); }
.signoff strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.signoff span { font-size: .9rem; color: var(--muted); }

.quote-block {
  position: relative; background: #fff; border-radius: 20px; padding: 44px 40px 36px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.quote-block::before { content: "“"; position: absolute; top: -18px; left: 30px; font-family: Georgia, serif; font-size: 7rem; line-height: 1; color: var(--red); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat-strip > div { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--ink); line-height: 1; margin-bottom: 6px; }
.stat-strip span { font-size: .92rem; color: var(--muted); }
.stat-strip > div { position: relative; }
.stat-strip strong { padding-right: 48px; }
.stat-strip .stat-icon {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--red-soft); color: var(--red);
}
.stat-strip .stat-icon svg { width: 22px; height: 22px; }
.stat-strip > div:nth-child(3) .stat-icon { background: var(--blue-soft); color: var(--blue); }
.stat-strip > div:nth-child(4) .stat-icon { background: #e3f6f0; color: #0e7c66; }
.stat-strip img.stat-icon { background: #fff; box-shadow: 0 0 0 1px var(--line); }
/* Badge-shaped logos (e.g. Garda crest) shown whole, without a circular crop */
.stat-strip img.stat-icon.badge-logo { width: 48px; height: 48px; top: 14px; right: 14px; border-radius: 0; box-shadow: none; background: transparent; object-fit: contain; }
@media (max-width: 1000px) { .stat-strip { grid-template-columns: 1fr 1fr; } .stat-strip > div:nth-child(2) { border-right: 0; } .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.affiliation { display: flex; align-items: center; gap: 28px; }
.affiliation img { width: 150px; flex: none; }
@media (max-width: 600px) { .affiliation { flex-direction: column; align-items: flex-start; } .affiliation img { width: 120px; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, #9c1720 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; border-radius: 50%;
  transform: translateY(-50%);
  background: conic-gradient(from 200deg, rgba(255,255,255,.14) 0 50%, rgba(31,69,150,.55) 50% 100%);
}
.cta-band .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #ffe1e2; margin: 0; font-size: 1.1rem; max-width: 56ch; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1117; color: #a9adb8; font-size: .95rem; }
.site-footer a { color: #d8dbe2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 56px; height: 56px; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.35rem; text-transform: uppercase; line-height: 1.05; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: #ff6b70; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s; }
.social a:hover { background: var(--red); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f1522 0%, #1a2a55 100%);
  color: #fff; padding: 64px 0 60px;
}
.page-hero::after {
  content: ""; position: absolute; right: -90px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(200,35,44,.45) 0 50%, rgba(31,69,150,.5) 50% 100%);
  opacity: .55;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero .eyebrow { color: #ff7a7f; }
.page-hero .lede { color: #c9d0de; margin: 0; }
.breadcrumb { font-size: .85rem; color: #9aa3b5; margin-bottom: 18px; }
.breadcrumb a { color: #c9d0de; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.page-hero.dragons { background: linear-gradient(135deg, #0b5e4e 0%, #16a085 100%); }
.page-hero.dragons .eyebrow { color: #ffe36e; }
.page-hero.dragons .lede { color: #dff7ef; }

/* ---------- Inner page layout (sidebar + article) ---------- */
.page-layout { display: grid; grid-template-columns: 270px 1fr; gap: 56px; padding-top: 56px; padding-bottom: 88px; align-items: start; }
.page-layout.no-side { grid-template-columns: 1fr; }
.sidenav { position: sticky; top: calc(var(--header-h) + 24px); }
.sidenav-box { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 14px; margin-bottom: 18px; }
.sidenav h5 { margin: 4px 10px 8px; font-family: var(--font-head); font-size: .88rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sidenav ul { list-style: none; margin: 0 0 10px; padding: 0; }
.sidenav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; border-left: 3px solid transparent; }
.sidenav a:hover { background: #fff; color: var(--red); }
.sidenav a.current { background: #fff; color: var(--red); border-left-color: var(--red); box-shadow: var(--shadow); }
.side-cta { background: var(--ink); color: #c9ccd3; border-radius: var(--radius); padding: 22px 20px; font-size: .93rem; }
.side-cta strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.35rem; text-transform: uppercase; margin-bottom: 6px; line-height: 1.1; }
.side-cta .btn { width: 100%; margin-top: 14px; padding: 11px 16px; font-size: 1rem; }
@media (max-width: 960px) {
  .page-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .sidenav { position: static; order: 2; }
  .side-cta { display: none; }
}

/* ---------- Prose (article content) ---------- */
.prose { min-width: 0; max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child, .prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red); }
.prose .figure-right { float: right; margin: 6px 0 20px 28px; max-width: 42%; }
.prose .figure-right img, .prose figure img { border-radius: 12px; box-shadow: var(--shadow); }
.prose figure { margin: 0 0 1.4em; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose .clear { clear: both; }
@media (max-width: 600px) { .prose .figure-right { float: none; margin: 0 0 20px; max-width: 100%; } }

.callout { background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 10px; padding: 18px 22px; margin: 0 0 1.4em; }
.callout p:last-child { margin: 0; }
.callout.red { background: var(--red-soft); border-color: var(--red); }

/* Draft notes: things for the club to review / supply. Search for "draft-note" to find and remove. */
.draft-note {
  background: #fff8db; border: 2px dashed #e0b200; border-radius: 10px;
  padding: 12px 16px; margin: 0 0 1.4em; font-size: .9rem; color: #5c4700;
}
.draft-note::before { content: "Draft note: "; font-weight: 700; }

.meaning-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 20px; }
.meaning { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.meaning .ko { font-size: 2.2rem; font-weight: 700; color: var(--red); line-height: 1.1; }
.meaning strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--ink); text-transform: uppercase; }
.meaning span { font-size: .92rem; color: var(--muted); }
.meaning.total { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); }
.meaning.total strong { color: #fff; }
.meaning.total span { color: #c9ccd3; }
@media (max-width: 600px) { .meaning-grid { grid-template-columns: 1fr; } }

.oath { background: var(--ink); color: #eef0f4; border-radius: 18px; padding: 34px 36px; margin: 0 0 1.6em; font-size: 1.18rem; line-height: 1.8; position: relative; overflow: hidden; }
.oath::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: conic-gradient(from 200deg, rgba(200,35,44,.5) 0 50%, rgba(31,69,150,.6) 50% 100%); opacity: .5; }
.oath p { margin: 0; position: relative; z-index: 1; }
.oath .intro { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: #ff7a7f; font-size: 1.05rem; margin-bottom: 8px; }
.oath.muted { background: var(--bg-alt); color: var(--ink-2); font-size: 1.05rem; }
.oath.muted::after { display: none; }
.oath.muted .intro { color: var(--muted); }

.tenet-list { display: grid; gap: 14px; margin: 20px 0; }
.tenet { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tenet .num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; }
.tenet:nth-child(even) .num { background: var(--blue-soft); color: var(--blue); }
.tenet h3 { margin: 0 0 2px; }
.tenet .ko { font-size: .95rem; color: var(--muted); margin-bottom: 8px; display: block; }
.tenet p { margin: 0; }

.check-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 !important; font-weight: 500; }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; margin: 0 !important; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }

/* ---------- Belts ---------- */
.belt { --belt: #fff; --tag: transparent; position: relative; display: inline-block; width: 120px; height: 18px; border-radius: 4px; background: var(--belt); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.belt::after { content: ""; position: absolute; right: 14px; top: 0; bottom: 0; width: 14px; background: var(--tag); }
.belt.sm { width: 64px; height: 12px; border-radius: 3px; }
.belt.sm::after { right: 8px; width: 8px; }
.b-white { --belt: #fbfbfb; }
.b-yellow { --belt: #f5cf1d; }
.b-green { --belt: #2f9e44; }
.b-blue { --belt: #1f4596; }
.b-red { --belt: #c8232c; }
.b-black { --belt: #111; }
.t-yellow { --tag: #f5cf1d; }
.t-green { --tag: #2f9e44; }
.t-blue { --tag: #1f4596; }
.t-red { --tag: #c8232c; }
.t-black { --tag: #111; }
/* Black belt degree bars: add dan-1 … dan-9 for the number of gold bars */
/* Black belt degree: gold Roman numeral on the belt (dan-1 ... dan-9) */
.belt.dan::after {
  content: "I";
  width: auto; background: none; right: 10px; top: 50%; bottom: auto; transform: translateY(-50%);
  color: #e0a526; font: 700 12px/1 Georgia, "Times New Roman", serif; letter-spacing: .02em;
}
.belt.sm.dan::after { font-size: 9px; right: 6px; }
.belt.dan.dan-1::after { content: "I"; } .belt.dan.dan-2::after { content: "II"; } .belt.dan.dan-3::after { content: "III"; }
.belt.dan.dan-4::after { content: "IV"; } .belt.dan.dan-5::after { content: "V"; } .belt.dan.dan-6::after { content: "VI"; }
.belt.dan.dan-7::after { content: "VII"; } .belt.dan.dan-8::after { content: "VIII"; } .belt.dan.dan-9::after { content: "IX"; }

.belt-table { display: grid; gap: 12px; margin: 20px 0 28px; }
.belt-row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.belt-row .belts { display: grid; gap: 10px; }
.belt-row .belts div { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.belt-row h3 { margin: 0 0 4px; font-size: 1.4rem; }
.belt-row p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 600px) { .belt-row { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Accordions (details/summary) ---------- */
.accordion { display: grid; gap: 10px; margin: 0 0 1.6em; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.accordion summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 14px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .2s;
}
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.accordion details[open] summary { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.accordion .acc-body { padding: 18px 22px 8px; }
.accordion .acc-body h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin: 14px 0 6px; }
.accordion .acc-body h4:first-child { margin-top: 0; }
.accordion .acc-body ul { margin-bottom: 12px; }
.accordion .acc-body .stance { font-weight: 600; color: var(--ink); }
.kr { color: var(--muted); font-style: italic; }
/* Grading syllabus: two columns inside each grade */
.accordion .acc-body.syl-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 32px; }
@media (max-width: 640px) { .accordion .acc-body.syl-grid { grid-template-columns: 1fr; } }
.syl-to { margin-left: auto; font-size: .85rem; font-weight: 500; color: var(--muted); padding-right: 8px; }
@media (max-width: 480px) { .syl-to { display: none; } }
.syl-key { font-size: .9rem; color: var(--muted); }
/* Waiting-time table has grade names in columns 1 and 3 */
table.terms.wait-table td:nth-child(3) { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.terms.wait-table td:nth-child(2), table.terms.wait-table td:nth-child(4) { color: var(--ink-2); }
.acc-tools { display: flex; gap: 10px; margin-bottom: 14px; }
.acc-tools button { font: inherit; font-size: .88rem; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; color: var(--ink-2); }
.acc-tools button:hover { border-color: var(--red); color: var(--red); }

/* ---------- Patterns ---------- */
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 18px 0 30px; }
.pattern { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.pattern header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pattern h3 { margin: 0; font-size: 1.6rem; }
.pattern .moves { font-family: var(--font-head); font-weight: 600; color: var(--red); white-space: nowrap; font-size: 1.05rem; }
.pattern .grade { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.pattern p { margin: 0; font-size: .96rem; text-align: left; }
a.pattern { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.pattern:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d6d0c4; color: inherit; }
a.pattern .text-link { margin-top: auto; padding-top: 6px; }
.pattern-top { display: flex; gap: 14px; align-items: center; }
.pattern-top .pattern-diagram { flex: none; width: 64px; height: 64px; }
/* Thumbnails are built with thicker lines and no letters */
.pattern-diagram .pd-line.pd-thick { stroke-width: 15; }
.pattern-top .pd-dot { stroke-width: 5; }
.pattern-top .diagram-pending { flex: none; width: 64px; height: 64px; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center; font-size: .65rem; color: var(--muted); text-align: center; line-height: 1.2; }
.pattern.pending { background: var(--bg-alt); box-shadow: none; }
.pattern .pending-note { margin-top: auto; padding-top: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pattern-top header { flex: 1; min-width: 0; }

/* Pattern diagrams (inline SVG) */
.pattern-diagram .pd-bg { fill: var(--blue-soft); }
.pattern-diagram .pd-line { stroke: var(--blue); stroke-width: 7; stroke-linecap: round; }
.pattern-diagram .pd-dot { fill: var(--red); stroke: #fff; stroke-width: 3; }
.pattern-diagram .pd-label { font-family: var(--font-head); font-weight: 700; font-size: 20px; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }

/* Pattern step-by-step pages */
.pattern-head { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; margin-bottom: 26px; }
.pattern-head .grade { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.diagram-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); text-align: center; }
.diagram-card svg { width: 100%; height: auto; display: block; }
.diagram-card figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) { .pattern-head { grid-template-columns: 1fr; } .diagram-card { max-width: 240px; } }
.routine { counter-reset: move; list-style: none; padding: 0 !important; margin: 0 0 18px; display: grid; gap: 8px; }
.routine li { counter-increment: move; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 !important; }
.routine li::before { content: counter(move); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.routine .step-note { display: block; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--blue); }
.routine li > :not(.step-note) { min-width: 0; }
.routine-end { font-weight: 600; color: var(--ink); background: var(--bg-alt); border-radius: 10px; padding: 12px 16px; }
.pattern-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.pattern-nav a { text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-transform: uppercase; }
.pattern-nav a:hover { color: var(--red); }
.pattern-nav a span { display: block; font-family: var(--font-body); font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.pattern-nav .pn-next { text-align: right; }
.pattern-nav .pn-all { font-size: .95rem; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
table.terms { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
table.terms th { text-align: left; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .95rem; padding: 12px 16px; }
table.terms td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.terms tr:nth-child(even) td { background: #faf9f6; }
table.terms td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.terms td:nth-child(3) { color: var(--muted); }

.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chip-nav a { text-decoration: none; font-size: .88rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); }
.chip-nav a:hover { border-color: var(--red); color: var(--red); background: #fff; }

.search-box { position: relative; margin: 0 0 18px; }
.search-box input { width: 100%; font: inherit; padding: 13px 16px 13px 44px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.search-box input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.no-results { display: none; padding: 16px; color: var(--muted); }

/* ---------- Instructors ---------- */
.chief { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.chief-photo { background: linear-gradient(160deg, var(--blue-soft), var(--red-soft)); border-radius: 20px; overflow: hidden; position: sticky; top: calc(var(--header-h) + 24px); }
.chief-photo img { width: 100%; }
.chief-photo .cap { background: var(--ink); color: #fff; padding: 14px 18px; }
.chief-photo .cap strong { display: block; font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; }
.chief-photo .cap span { font-size: .85rem; color: #c9ccd3; }
@media (max-width: 860px) { .chief { grid-template-columns: 1fr; } .chief-photo { position: static; max-width: 320px; } }

.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.creds .card { padding: 22px; }
.creds .card h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin-bottom: 10px; }
.creds ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.creds li { margin-bottom: .3em; }
.creds .full { grid-column: 1 / -1; }
.creds .cols-2 { columns: 2; column-gap: 28px; }
@media (max-width: 700px) { .creds { grid-template-columns: 1fr; } .creds .cols-2 { columns: 1; } }

.timeline { list-style: none; padding: 0 !important; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 12px 28px; margin: 0 !important; font-size: .93rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 22px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline strong { color: var(--ink); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.team-photo { aspect-ratio: 4 / 4.2; display: grid; place-items: center; background: linear-gradient(160deg, #eef1f8 0%, #f8eaea 100%); position: relative; }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-photo .initials { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; box-shadow: var(--shadow); }
.team-photo .ph-label { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.team-body { padding: 16px 18px 18px; }
.team-body h3 { font-size: 1.35rem; margin: 0 0 6px; }
.team-body .rank { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.team-body .role { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { text-align: left; }
.contact-card .big { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--ink); text-decoration: none; display: block; margin: 4px 0 6px; word-break: break-word; }
.contact-card .big:hover { color: var(--red); }
.map-wrap { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--bg-alt); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 600px) { .map-wrap { aspect-ratio: 4 / 5; } }
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
@media (max-width: 760px) { .directions { grid-template-columns: 1fr; } }

.trial-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; margin-bottom: 44px; }
.trial-panel .tp-body { padding: 40px; }
.trial-panel .tp-side { background: var(--ink); color: #c9ccd3; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.trial-panel .tp-side .btn { width: 100%; }
.trial-panel .tp-side small { color: #9aa1ad; text-align: center; }
@media (max-width: 800px) { .trial-panel { grid-template-columns: 1fr; } .trial-panel .tp-body, .trial-panel .tp-side { padding: 28px 24px; } }

/* ---------- Little Dragons page ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0 30px; }
.skill { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
.skill .n { position: absolute; top: 16px; right: 18px; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: #e3f6f0; line-height: 1; }
.skill h3 { color: #0e7c66; margin-bottom: 6px; position: relative; }
.skill p { font-size: .94rem; margin: 0; color: var(--muted); position: relative; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 18px 0 30px; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: var(--shadow); position: relative; font-style: italic; margin: 0; }
.testimonial::before { content: "“"; font-family: Georgia, serif; font-size: 3.4rem; line-height: 1; color: #16a085; position: absolute; top: 6px; left: 16px; opacity: .35; }
.testimonial p { margin: 14px 0 0; position: relative; }
.testimonial.kid::before { color: var(--gold); opacity: .6; }
.dragons-banner { border-radius: 14px; background: #fff; padding: 10px; box-shadow: var(--shadow); margin-bottom: 28px; }

/* ---------- Misc ---------- */
.program-list { display: grid; gap: 16px; margin: 24px 0 30px; }
.program { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.program:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.program .card-icon { margin: 0; }
.program h3 { margin: 0 0 2px; font-size: 1.4rem; }
.program p { margin: 0; color: var(--muted); font-size: .95rem; }
.program .go { color: var(--red); font-size: 1.4rem; }
@media (max-width: 560px) { .program { grid-template-columns: 48px 1fr; } .program .go { display: none; } }

.rules-list { counter-reset: rule; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.rules-list li { counter-increment: rule; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 14px 64px; margin: 0 !important; }
.rules-list li::before { content: counter(rule); position: absolute; left: 20px; top: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--red); line-height: 1.2; }
.rules-list li strong { color: var(--ink); }
.rules-section { margin-top: 44px; scroll-margin-top: 110px; }
.rules-section > h2 { margin-top: 0; }
.rules-section > p { text-align: justify; }
.rules-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding: 0 !important; list-style: none; }
.rules-toc li { margin: 0 !important; }
.rules-toc a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-size: .92rem; font-weight: 500; }
.rules-toc a:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 600px) { .rules-section > p { text-align: left; } }

.sparring-types { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 20px 0 26px; }
.sparring-types > * { background: var(--ink); color: #fff; border-radius: 12px; padding: 18px 8px; text-align: center; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; line-height: 1.15; text-decoration: none; transition: transform .15s, background .15s; }
.sparring-types > *:last-child { background: var(--red); }
.sparring-types a:hover { transform: translateY(-3px); background: var(--blue); color: #fff; }
.sparring-types a.current { background: var(--blue); }
.sparring-types strong { display: block; font-size: 2rem; }
@media (max-width: 800px) { .sparring-types { grid-template-columns: repeat(3, 1fr); } }

/* Step sparring routines */
.spar-list { display: grid; gap: 18px; margin: 20px 0 30px; }
.spar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.spar-card h3 { margin: 0; padding: 12px 20px; background: var(--ink); color: #fff; font-size: 1.35rem; }
.spar-card dl { margin: 0; display: grid; grid-template-columns: 140px 1fr; }
.spar-card dt, .spar-card dd { margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); }
.spar-card dl > :nth-child(1), .spar-card dl > :nth-child(2) { border-top: 0; }
.spar-card dt { font-weight: 700; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; }
.spar-card dt.atk { color: var(--red); }
.spar-card dt.def { color: var(--blue); }
.spar-card dt.ctr { color: #9c1720; }
.spar-card dt.msr, .spar-card dt.wd { color: var(--ink); }
.spar-card dd em { display: block; color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .spar-card dl { grid-template-columns: 1fr; } .spar-card dd { border-top: 0; padding-top: 0; } }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 24px; }
.points div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.points strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--red); line-height: 1; }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }

.back-top { font-size: .85rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
