/* Layout concept: "tatami" — a clean white mat, ink type, one bold band of
   Kiiroi yellow, and the obi (belt) ladder used as the club's signature divider. */
:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --tint: #f7f7f4;
  --wash: #fffaea;
  --wash-strong: #fff1bf;
  --wash-green: #eef7f1;
  --wash-blue: #eef3fb;
  --wash-orange: #fff3e8;
  --ink: #16181d;
  --muted: #595d66;
  --line: #e4e4dd;
  --kiiroi: #f5c400;
  --on-kiiroi: #2b2200;
  --link: #1e3e8c;
  --focus: #1e3e8c;

  --belt-white: #ffffff;
  --belt-yellow: #f5c400;
  --belt-orange: #f28c1b;
  --belt-green: #2e9e4f;
  --belt-blue: #1f5fbf;
  --belt-brown: #7a4a25;
  --belt-black: #16181d;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 6px;
  --wrap: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 850; font-stretch: 112%; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; font-stretch: 108%; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 750; }
p { margin: 0; max-width: 65ch; }
.label {
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--kiiroi); color: var(--on-kiiroi); padding: 8px 12px; z-index: 50; }

.wrap {
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- Obi ladder: the club signature ---------- */
.obi {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 10px;
}
.obi span:nth-child(1) { background: var(--belt-white); box-shadow: inset 0 0 0 1px var(--line); }
.obi span:nth-child(2) { background: var(--belt-yellow); }
.obi span:nth-child(3) { background: var(--belt-orange); }
.obi span:nth-child(4) { background: var(--belt-green); }
.obi span:nth-child(5) { background: var(--belt-blue); }
.obi span:nth-child(6) { background: var(--belt-brown); }
.obi span:nth-child(7) { background: var(--belt-black); }

/* ---------- Header ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--paper);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo { display: grid; place-items: center; width: 64px; height: 64px; flex: none; }
.brand-logo img { width: 64px; height: 64px; object-fit: contain; }
.brand-logo img + .brand-mark { display: none; }
.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--kiiroi);
  color: var(--on-kiiroi);
  display: grid;
  place-items: center;
  font: 700 1.5rem/1 "Noto Sans JP", var(--body);
}
.brand-name { font-family: var(--display); font-weight: 850; font-stretch: 115%; font-size: 1.4rem; letter-spacing: 0.04em; }
.brand-name small { display: block; font-weight: 600; font-stretch: 85%; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); }

.nav-toggle {
  display: none;
  font: 700 0.9rem var(--body);
  background: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
}
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--kiiroi); border-radius: 0; }
.site-nav .nav-cta { background: var(--kiiroi); color: var(--on-kiiroi); margin-left: 8px; }
.site-nav .nav-cta:hover { background: #ffd31a; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav[data-open="false"] { display: none; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter-r) 16px var(--gutter-l); }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.stack { display: grid; gap: 16px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: end; }
.hero-kicker { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.hero-kanji { font: 700 1.5rem/1 "Noto Sans JP", var(--body); color: var(--ink); }
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--kiiroi) 58%, var(--kiiroi) 92%, transparent 92%); padding-inline: 0.05em; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-top: 24px; color: var(--muted); }
.hero-lead strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font: 700 1rem/1 var(--body);
  text-decoration: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.btn:hover { background: var(--tint); text-decoration: none; }
.btn-primary { background: var(--kiiroi); border-color: var(--kiiroi); color: var(--on-kiiroi); }
.btn-primary:hover { background: #ffd31a; }

/* Next-training card */
.next {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.next-body { padding: 24px; display: grid; gap: 14px; }
.next-date { font-family: var(--display); font-weight: 850; font-stretch: 110%; font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.1; }
.next-rows { display: grid; gap: 8px; margin: 0; }
.next-rows div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px dashed var(--line); }
.next-rows dt { font-weight: 700; }
.next-rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.next-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Training cards ---------- */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.group-age { font-family: var(--display); font-weight: 900; font-stretch: 120%; font-size: 3.2rem; line-height: 1; }
.timetable { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; font-variant-numeric: tabular-nums; }
.timetable dt { font-weight: 700; }
.timetable dd { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.fact { display: grid; gap: 6px; padding-top: 16px; border-top: 3px solid var(--ink); }
.fact strong { font-family: var(--display); font-stretch: 105%; font-size: 1.15rem; }
.fact p { color: var(--muted); }

/* ---------- Yellow band ---------- */
.band { background: var(--kiiroi); color: var(--on-kiiroi); }
.band .wrap { padding-block: clamp(48px, 8vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.band .label { color: var(--on-kiiroi); opacity: 0.75; }
.band h2 { color: var(--on-kiiroi); }
.band p { color: var(--on-kiiroi); }
.band blockquote { margin: 0; font-family: var(--display); font-stretch: 105%; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.band cite { display: block; margin-top: 14px; font: 700 0.95rem var(--body); font-style: normal; }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.photo { border-radius: 10px; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-missing { display: none; }
.split:has(.photo.is-missing) { grid-template-columns: minmax(0, 1fr); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-item { display: grid; gap: 6px; align-content: start; padding-top: 16px; border-top: 3px solid var(--ink); }
.contact-item address { font-style: normal; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(44px, 7vw, 80px) clamp(28px, 4vw, 44px); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head p { color: var(--muted); font-size: 1.12rem; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.subnav a { padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.subnav a:hover { border-color: var(--ink); }

/* ---------- Belt ladder (exam ages) ---------- */
.ladder { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.ladder-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 20px; }
.ladder-row + .ladder-row { border-top: 1px solid var(--line); }
.ladder-head { background: var(--tint); }
.belt-chip {
  height: 16px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  background: var(--c1);
}
.belt-chip.duo { background: linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%); }
.ladder-name { font-weight: 700; }
.ladder-name small { display: block; color: var(--muted); font-weight: 400; }
.ladder-age { font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* ---------- Program explorer ---------- */
.belt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.belt-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  font: 700 0.95rem var(--body);
  cursor: pointer;
}
.belt-tab .belt-chip { width: 26px; height: 10px; }
.belt-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.belt-tab[disabled] { opacity: 0.45; cursor: not-allowed; }
.program { display: grid; gap: 28px; }
.program-group h3 { margin-bottom: 10px; }
.tech-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tech-list li { display: grid; grid-template-columns: minmax(0, 32%) minmax(0, 1fr) auto auto; gap: 16px; padding: 14px 18px; align-items: center; }
.tech-name small { display: block; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.video-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--kiiroi); color: var(--on-kiiroi); font-weight: 700; font-size: 0.82rem; text-decoration: none; white-space: nowrap; }
.video-btn:hover { background: #ffd31a; }
.video-btn svg { width: 10px; height: 10px; fill: currentColor; }
.video-none { width: 64px; }
.tech-list li + li { border-top: 1px solid var(--line); }
.tech-name { font-weight: 700; }
.tech-trans { color: var(--muted); }
.tag { font-size: 0.8rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: var(--tint); border: 1px solid var(--line); white-space: nowrap; }
.empty { padding: 24px; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 20px; display: grid; gap: 10px; }
.faq ul { margin: 0; padding-left: 1.2em; }

/* ---------- Lists, prices, downloads ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { padding-left: 28px; position: relative; max-width: 70ch; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 4px; background: var(--kiiroi); }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 6px; align-content: start; }
.price-amount { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price p { color: var(--muted); font-size: 0.95rem; }
.iban { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.iban code { font: 700 1.1rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.copy-btn { font: 700 0.85rem var(--body); padding: 6px 12px; border-radius: var(--radius); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.downloads a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.downloads a:hover { border-color: var(--ink); }
.downloads .ext { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 10px; align-content: start; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.person { display: grid; gap: 10px; align-content: start; }
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  position: relative;
  display: grid;
  place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.portrait .initials { font-family: var(--display); font-weight: 850; font-stretch: 115%; font-size: 2rem; color: var(--muted); }
.person-name { font-weight: 700; line-height: 1.3; }
.person-role { color: var(--muted); font-size: 0.92rem; }
.person.lead { grid-column: span 2; grid-row: span 2; }
.person.lead .person-name { font-size: 1.3rem; }

.integrity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.integrity .card ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- Calendar ---------- */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; align-items: start; }
.event-date { display: grid; justify-items: center; padding: 10px 6px; border-radius: 8px; background: var(--tint); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.event-date .d { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: 2rem; line-height: 1; }
.event-date .m { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.event-date .y { font-size: 0.75rem; color: var(--muted); }
.event.is-exam .event-date { background: var(--kiiroi); color: var(--on-kiiroi); border-color: var(--kiiroi); }
.event.is-exam .event-date .y { color: var(--on-kiiroi); }
.event.is-off .event-date { background: transparent; border-style: dashed; }
.event-body { display: grid; gap: 6px; }
.event-kind { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.event.is-past { opacity: 0.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--kiiroi); color: var(--on-kiiroi); }
.site-footer .wrap { padding-block: 48px 32px; display: grid; gap: 32px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer a { color: var(--on-kiiroi); }
.site-footer p, .site-footer address { font-style: normal; color: var(--on-kiiroi); }
.site-footer .label, .site-footer .brand-name small { color: var(--on-kiiroi); opacity: 0.75; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; color: var(--on-kiiroi); border-top: 1px solid rgba(43, 34, 0, 0.2); padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person.lead { grid-column: span 3; grid-row: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: end; }
}
@media (max-width: 820px) {
  .hero .wrap, .band .wrap, .split, .integrity { grid-template-columns: minmax(0, 1fr); }
  .groups, .facts, .contact-grid, .prices, .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .tech-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .tech-trans { grid-column: 1 / -1; grid-row: 2; }
  .tech-list .tag { grid-column: 1; grid-row: 3; justify-self: start; }
  .video-btn, .video-none { grid-column: 2; grid-row: 1; }
  .ladder-row { grid-template-columns: 72px minmax(0, 1fr); }
  .ladder-age { grid-column: 2; }
  .ladder-head .ladder-age { display: none; }
}
@media (max-width: 560px) {
  .brand-logo, .brand-logo img { width: 48px; height: 48px; }
  .brand-mark { width: 44px; height: 44px; font-size: 1.2rem; }
  .brand-name { font-size: 1.15rem; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person.lead { grid-column: span 2; grid-template-columns: minmax(0, 1fr); }
  .event { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; }
  body { font-size: 16px; }
}

/* ---------- Colour hints: small pieces of belt colour ---------- */
/* each section gets its own belt colour for the little bar before its label */
main > section:nth-of-type(5n+1) { --accent: var(--belt-yellow); }
main > section:nth-of-type(5n+2) { --accent: var(--belt-orange); }
main > section:nth-of-type(5n+3) { --accent: var(--belt-green); }
main > section:nth-of-type(5n+4) { --accent: var(--belt-blue); }
main > section:nth-of-type(5n+5) { --accent: var(--belt-brown); }
.section-head .label, .page-head .label, .split > .stack > .label {
  display: inline-flex; align-items: center; gap: 10px;
}
.section-head .label::before, .page-head .label::before, .split > .stack > .label::before {
  content: ""; width: 22px; height: 6px; border-radius: 2px; background: var(--accent, var(--kiiroi));
}
.band .label::before { background: var(--on-kiiroi); }

/* soft washes on alternating blocks */
main > section { --tint-local: color-mix(in srgb, var(--accent, var(--kiiroi)) 9%, #ffffff); --tint-edge: color-mix(in srgb, var(--accent, var(--kiiroi)) 28%, #ffffff); }
.wash { background: var(--wash); background: var(--tint-local); }
main > section.accent-yellow { --accent: var(--belt-yellow); }
main > section.accent-orange { --accent: var(--belt-orange); }
main > section.accent-green { --accent: var(--belt-green); }
main > section.accent-blue { --accent: var(--belt-blue); }
.page-head { background: linear-gradient(180deg, var(--wash) 0%, var(--paper) 100%); }
.hero { background: radial-gradient(circle at 82% 42%, var(--wash-strong) 0, rgba(255, 241, 191, 0) 34%); }

/* belt-piece chips on cards */
.group::before, .price::before, .card::before {
  content: ""; width: 34px; height: 8px; border-radius: 2px; background: var(--chip, var(--kiiroi));
}
.groups > .group:nth-child(1) { --chip: var(--belt-yellow); }
.groups > .group:nth-child(2) { --chip: var(--belt-orange); }
.group-age { color: var(--ink); }
.prices > .price:nth-child(1) { --chip: var(--belt-yellow); }
.prices > .price:nth-child(2) { --chip: var(--belt-orange); }
.prices > .price:nth-child(3) { --chip: var(--belt-green); }
.cards-3 > .card:nth-child(1), .integrity > .card:nth-child(1) { --chip: var(--belt-green); }
.cards-3 > .card:nth-child(2), .integrity > .card:nth-child(2) { --chip: var(--belt-blue); }
.cards-3 > .card:nth-child(3) { --chip: var(--belt-orange); }

/* coloured rules above facts and contact blocks */
.facts > .fact:nth-child(1), .contact-grid > .contact-item:nth-child(1) { border-top-color: var(--belt-yellow); }
.facts > .fact:nth-child(2), .contact-grid > .contact-item:nth-child(2) { border-top-color: var(--belt-green); }
.facts > .fact:nth-child(3), .contact-grid > .contact-item:nth-child(3) { border-top-color: var(--belt-blue); }

/* next-training card and IBAN get a warm wash */
.next-body { background: linear-gradient(180deg, var(--wash) 0%, var(--surface) 70%); }
.iban { background: var(--tint-local); border-color: var(--tint-edge); }

/* people: warm placeholders, coloured initials */
.portrait { background: var(--tint-local); }
.people > .person:nth-child(5n+1) .initials { color: var(--belt-orange); }
.people > .person:nth-child(5n+2) .initials { color: var(--belt-green); }
.people > .person:nth-child(5n+3) .initials { color: var(--belt-blue); }
.people > .person:nth-child(5n+4) .initials { color: var(--belt-brown); }
.people > .person:nth-child(5n+5) .initials { color: #c79a00; }
.person-role { display: inline-flex; align-items: center; gap: 6px; }

/* FAQ, subnav, downloads */
.faq summary::after {
  content: "+"; display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%; background: var(--tint-edge); color: var(--ink); font-size: 1.1rem;
}
.faq details[open] summary::after { content: "–"; background: var(--accent); color: #ffffff; }
.faq details[open] { border-color: var(--tint-edge); }
.subnav a:hover { border-color: var(--kiiroi); background: var(--wash); }
.downloads a { border-left: 6px solid var(--belt-orange); }
.downloads li:first-child a { border-left-color: var(--belt-yellow); }
.downloads .ext { background: var(--wash); padding: 3px 8px; border-radius: 4px; color: var(--on-kiiroi); }

/* program: heading chip in the selected belt colour */
.program-group h3 { display: flex; align-items: center; gap: 10px; }
.program-group h3::before { content: ""; width: 22px; height: 6px; border-radius: 2px; background: var(--beltc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.belt-tab[aria-selected="true"] { background: var(--surface); }
#programma { --accent: var(--beltc, var(--kiiroi)); background: var(--beltc, var(--kiiroi)); transition: background-color 0.35s ease; }
#programma .tech-list, #programma .empty { background: var(--surface); }
@media (prefers-reduced-motion: reduce) { #programma { transition: none; } }

/* calendar: colour per kind */
.event.is-club .event-date { background: var(--wash-green); border-color: #cfe7d7; }
.event.is-match .event-date { background: var(--wash-blue); border-color: #d3e0f5; }
.event.is-exam { border-color: var(--wash-strong); }
.event.is-off .event-date { background: var(--tint); }

/* ladder rows: faint hover wash */
.ladder-row:not(.ladder-head):hover { background: var(--tint-local); }

.wash .portrait { background: var(--surface); box-shadow: inset 0 0 0 1px var(--tint-edge); }

/* warm orange block: pairs with the yellow band and footer */
main > section.wash-warm { --accent: var(--belt-orange); background: color-mix(in srgb, var(--belt-orange) 16%, #ffffff); }
main > section.wash-warm .card, main > section.wash-warm .contact-item { position: relative; }
/* a page that keeps every block white */
.page-plain .page-head { background: var(--paper); }

/* exam program: full belt colour; text flips to white on dark belts */
#programma .section-head .label, #programma .program > .label, #programma .section-head p { color: var(--on-kiiroi); opacity: 0.85; }
#programma .section-head .label::before, #programma .program-group h3::before { background: currentColor; box-shadow: none; }
#programma[data-tone="dark"] { color: #ffffff; }
#programma[data-tone="dark"] h2, #programma[data-tone="dark"] .program-group h3,
#programma[data-tone="dark"] .section-head .label, #programma[data-tone="dark"] .program > .label,
#programma[data-tone="dark"] .section-head p { color: #ffffff; }
#programma .tech-list, #programma .empty { color: var(--ink); border-color: transparent; }
#programma .belt-tab { border-color: transparent; }
#programma .belt-tab[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px rgba(255, 255, 255, 0.6); }

/* glow block with the belt stripe on top (home contact) */
main > section.glow { padding-top: 0; background: radial-gradient(circle at 84% 62%, var(--wash-strong) 0, rgba(255, 241, 191, 0) 36%), var(--paper); }
main > section.glow > .obi { margin-bottom: clamp(56px, 9vw, 104px); }

/* ---------- Header: logo as a yellow tab above the yellow belt piece ---------- */
@media (min-width: 1100px) {
  .site-header .wrap { max-width: none; padding-left: 0; }
  .brand-name { width: calc(100vw / 7); text-align: center; }
  .brand { gap: 0; }
  .brand-logo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(100% / 7);
    width: calc(100% / 7);
    height: auto;
    background: var(--kiiroi);
    display: grid;
    place-items: center;
    z-index: 1;
  }
  .brand-logo img { width: 72px; height: 72px; }
  .brand-logo .brand-mark { width: auto; height: auto; background: transparent; font-size: 3rem; }
  .brand-logo:hover { background: #ffd31a; }
}

/* ---------- Bigger logo and club name ---------- */
.site-header .wrap { min-height: 96px; }
.brand-logo, .brand-logo img { width: 76px; height: 76px; }
.brand-mark { width: 68px; height: 68px; font-size: 1.9rem; }
.brand-name { font-size: 1.8rem; letter-spacing: 0.05em; }
.brand-name small { font-size: 0.82rem; }
@media (min-width: 1100px) {
  .site-header .wrap { min-height: 116px; }
  .brand-logo { width: calc(100% / 7); height: auto; }
  .brand-logo img { width: 100px; height: 100px; }
  .brand-logo .brand-mark { width: auto; height: auto; font-size: 4.4rem; }
  .brand-name { font-size: 2.3rem; }
  .brand-name small { font-size: 0.9rem; margin-top: 2px; }
}
@media (max-width: 560px) {
  .site-header .wrap { min-height: 76px; }
  .brand-logo, .brand-logo img { width: 56px; height: 56px; }
  .brand-mark { width: 52px; height: 52px; font-size: 1.45rem; }
  .brand-name { font-size: 1.35rem; }
  .brand-name small { font-size: 0.72rem; }
}
.site-footer .brand-name { font-size: 1.8rem; }

/* header: the white belt piece flows into the white name area (no outline) */
.site-header .obi span:nth-child(1) { box-shadow: none; }

/* ---------- Feature block: text left, photo fills the whole right half ---------- */
main > section.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-block: 0;
}
.feature-text {
  display: grid;
  gap: 16px;
  align-content: center;
  padding-block: clamp(56px, 9vw, 104px);
  padding-left: max(16px, env(safe-area-inset-left, 0px), calc(100% - var(--wrap) / 2));
  padding-right: clamp(28px, 5vw, 72px);
}
.feature-text > .label { display: inline-flex; align-items: center; gap: 10px; }
.feature-text > .label::before { content: ""; width: 22px; height: 6px; border-radius: 2px; background: var(--accent, var(--kiiroi)); }
.feature-photo { position: relative; min-height: 520px; background: var(--line); }
.feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 35%; }
.feature-photo.is-missing { display: none; }
main > section.feature:has(.feature-photo.is-missing) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 820px) {
  main > section.feature { grid-template-columns: minmax(0, 1fr); }
  .feature-text { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .feature-photo { min-height: 0; aspect-ratio: 4 / 3; max-width: 100%; }
}

/* ---------- Logo moves into the page; header carries the club name ---------- */
.site-header .brand-logo { display: none; }
.site-header .brand { gap: 0; }

.hero-logo {
  display: grid;
  place-items: center;
  background: var(--kiiroi);
  text-decoration: none;
  height: 140px;
  margin-bottom: 32px;
}
.hero-logo img { width: auto; height: 82%; max-width: 100%; object-fit: contain; }
.hero-logo img + .brand-mark { display: none; }
.hero-logo .brand-mark { width: auto; height: auto; background: transparent; font-size: 4.5rem; }
.page-head.with-logo .hero-logo { height: 110px; margin-bottom: 24px; }
.page-head.with-logo .hero-logo .brand-mark { font-size: 3.4rem; }

@media (min-width: 1100px) {
  /* header: name centred over the white + yellow belt pieces */
  .site-header .wrap { max-width: none; padding-left: 0; }
  .site-header .brand-name { width: calc(200vw / 7); text-align: center; font-size: 2.8rem; letter-spacing: 0.16em; }
  .site-header .brand-name small { font-size: 0.95rem; letter-spacing: 0.3em; }

  /* opening section: big logo block on the left, two belt pieces wide */
  section.with-logo { display: grid; grid-template-columns: calc(100% * 2 / 7) minmax(0, 1fr); align-items: start; }
  section.with-logo > .hero-logo { height: auto; aspect-ratio: 1 / 1; margin: 0; }
  section.with-logo > .wrap { max-width: none; margin: 0; padding-left: clamp(36px, 4vw, 72px); }
  .hero.with-logo { padding-top: 0; }
  .hero.with-logo h1 { font-size: clamp(2.6rem, 4.6vw, 5rem); }
  .page-head.with-logo { padding-top: 0; }
  .page-head.with-logo > .hero-logo { aspect-ratio: 16 / 9; height: auto; }
  .page-head.with-logo > .wrap { padding-top: clamp(36px, 4vw, 60px); }
  .hero.with-logo > .wrap { padding-top: clamp(40px, 5vw, 80px); }
  .hero-logo .brand-mark { font-size: 9rem; }
  .page-head.with-logo .hero-logo .brand-mark { font-size: 5.5rem; }
}

/* the club photo shows in full: frame matches the photo's 4:3 shape */
.feature-photo { min-height: 0; aspect-ratio: 4 / 3; }
.feature-photo img { object-position: 50% 50%; }

.next-rows dd { white-space: nowrap; }
.next-rows dt { min-width: 0; }

/* ---------- Logo blends into the page (transparent, no yellow block) ---------- */
.hero-logo, section.with-logo > .hero-logo { background: transparent; }
.hero-logo:hover { background: transparent; }
.hero-logo img { filter: drop-shadow(0 10px 24px rgba(43, 34, 0, 0.12)); }
.hero-logo .brand-mark {
  background: var(--kiiroi); border-radius: 50%;
  width: 120px; height: 120px; display: grid; place-items: center;
}
@media (min-width: 1100px) {
  section.with-logo > .hero-logo { padding: clamp(24px, 3vw, 56px); }
  section.with-logo > .hero-logo img { width: 100%; height: 100%; }
  .hero-logo .brand-mark { width: 78%; height: auto; aspect-ratio: 1 / 1; }
  .page-head.with-logo > .hero-logo { aspect-ratio: 16 / 10; padding: clamp(16px, 2vw, 32px); }

  /* header: much bigger KIIROI with "Judoclub Geel" beside it */
  .site-header .wrap { padding-left: clamp(24px, 3vw, 56px); }
  .site-header .brand-name {
    width: auto; text-align: left;
    display: flex; align-items: center; gap: 18px;
    font-size: clamp(2.6rem, 3.8vw, 4.4rem); letter-spacing: 0.12em; line-height: 1;
  }
  .site-header .brand-name small {
    font-size: 1rem; letter-spacing: 0.22em; margin: 0; opacity: 1; color: var(--muted);
    padding-left: 18px; border-left: 3px solid var(--kiiroi); line-height: 1.3;
  }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .hero.with-logo > .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero.with-logo .next { max-width: 520px; }
}
@media (max-width: 560px) {
  .site-header .brand-name { font-size: 1.7rem; letter-spacing: 0.1em; }
}

/* mobile/tablet: give the logo a fixed size so it can never grow past its band */
@media (max-width: 1099px) {
  .hero-logo { height: auto; padding-block: 8px; }
  .hero-logo img { width: 128px; height: 128px; max-width: none; }
  .page-head.with-logo .hero-logo { height: auto; }
  .page-head.with-logo .hero-logo img { width: 96px; height: 96px; }
}
