:root {
  /* Encyclopédie de dojo : papier de gi, encre indigo, rouge de sceau. Colonne de lecture à gauche, navigation en haut. */
  --paper: #f5f6f3;
  --panel: #eaece6;
  --ink: #1c2231;
  --mute: #5a6170;
  --rule: #d6d9d2;
  --ai: #2d4a7c;
  --shu: #a8262c;
  --band: #1a2033;
  --band-ink: #f3f2ec;
  --band-mute: #b6bccb;
  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131720; --panel: #1b2030; --ink: #e6e7e2; --mute: #a3a9b6;
    --rule: #2c3343; --ai: #93abdb; --shu: #e2676c; --band: #0b0e15; --band-ink: #eeede6; --band-mute: #9aa1b0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131720; --panel: #1b2030; --ink: #e6e7e2; --mute: #a3a9b6;
  --rule: #2c3343; --ai: #93abdb; --shu: #e2676c; --band: #0b0e15; --band-ink: #eeede6; --band-mute: #9aa1b0; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
}
a { color: var(--ai); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--shu); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* En-tête */
.site-head { border-bottom: 1px solid var(--rule); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-seal {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--shu); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  border-radius: 3px;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.01em; }
.brand-tld { color: var(--mute); font-weight: 500; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--shu); font-weight: 700; }

/* Contenu */
.content { padding: 8px 0 80px; }
.content > * { max-width: 70ch; }
.content > .lineage-fig, .content > section { max-width: none; }
.content > section > :not(.tatami) { max-width: 70ch; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin: 0 0 0.4em; font-weight: 800; }
h2 { font-size: 1.6rem; margin: 2.4em 0 0.55em; }
h2::before { content: ""; display: block; width: 44px; height: 5px; background: var(--shu); margin-bottom: 14px; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.note { color: var(--mute); font-size: 0.95rem; border-left: 3px solid var(--rule); padding-left: 14px; margin-top: 2em; }
.jp { font-family: var(--display); font-weight: 500; color: var(--mute); margin-left: 0.35em; }

/* Accueil : la plaque du dojo de Kobe */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start; max-width: none; margin-bottom: 8px; }
.plaque {
  position: relative; writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 9vw, 6.2rem); line-height: 1;
  color: var(--ink); background: var(--panel); border: 1px solid var(--rule);
  padding: 34px 28px 72px; letter-spacing: 0.08em;
}
.plaque-seal {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  writing-mode: horizontal-tb; display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--shu); color: #fff; font-size: 1.15rem; font-weight: 800; border-radius: 3px; letter-spacing: 0;
}
.hero-text { max-width: 60ch; padding-top: 8px; }

.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 700; color: var(--mute); }
.facts dd { margin: 0; }

.index-list { list-style: none; padding: 0; margin: 0; }
.index-list li { border-bottom: 1px solid var(--rule); }
.index-list a { display: grid; grid-template-columns: 13rem 1fr; gap: 16px; padding: 14px 0; text-decoration: none; color: var(--ink); }
.index-list strong { font-family: var(--display); font-size: 1.12rem; color: var(--ai); }
.index-list span { color: var(--mute); }
.index-list a:hover strong { text-decoration: underline; }

/* Chronologie */
.timeline { list-style: none; margin: 1em 0 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 8px 0 8px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 17px; width: 10px; height: 10px; background: var(--paper); border: 2px solid var(--shu); border-radius: 50%; }
.timeline .year { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--shu); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; }

/* Listes de définitions */
.lineages, .principles, .titles, .lexicon { margin: 1em 0 0; }
.lineages > div, .principles > div, .titles > div, .lexicon > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.lineages dt, .principles dt, .titles dt, .lexicon dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.lineages dd, .principles dd, .titles dd, .lexicon dd { margin: 4px 0 0; }
.principles .jp { color: var(--shu); margin: 0 0.4em 0 0; font-weight: 700; }

.cols { columns: 2 18rem; column-gap: 32px; padding-left: 1.1em; }
.cols li { break-inside: avoid; margin-bottom: 6px; }

/* Katas */
.lineage h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.count { font-family: var(--body); font-size: 0.95rem; font-weight: 400; color: var(--mute); }
.kata-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0 24px; }
.kata-grid li { padding: 8px 0; border-bottom: 1px dotted var(--rule); }

/* Ceintures */
.belts { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.belts li { display: flex; align-items: center; gap: 10px; }
.belt { display: inline-block; width: 36px; height: 12px; background: var(--belt); border: 1px solid var(--mute); border-radius: 2px; }
.belt-rouge { --belt: #b3262d; }
.belt-kohaku { background: repeating-linear-gradient(90deg, #b3262d 0 6px, #ffffff 6px 12px); }

.sources { padding-left: 1.1em; }
.sources li { margin-bottom: 8px; }

/* Pied de page */
.site-foot { border-top: 1px solid var(--rule); background: var(--panel); color: var(--mute); font-size: 0.94rem; }
.foot-row { padding: 28px 0 36px; display: grid; gap: 10px; }
.foot-row p { margin: 0; max-width: 68ch; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; }


/* Étapes numérotées (séquences réelles) */
.steps { padding-left: 1.4em; margin: 1em 0; }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps li::marker { font-family: var(--display); font-weight: 700; color: var(--shu); }

/* Tableau de progression */
.table-wrap { overflow-x: auto; }
.prog { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.prog th, .prog td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prog thead th { color: var(--mute); font-weight: 700; font-size: 0.92rem; }
.prog tbody th { font-family: var(--display); font-weight: 700; white-space: nowrap; width: 7.5rem; }

.toc { color: var(--mute); }
.lexicon + h2, h2 + .lexicon { margin-top: 0.3em; }


/* Bandeaux encre */
.band { background: var(--band); color: var(--band-ink); overflow: hidden; margin-bottom: 8px; }
.band-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; min-height: 230px; padding: 44px 0 48px; }
.band-text { max-width: 62ch; position: relative; z-index: 1; }
.band h1 { color: var(--band-ink); font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 0.35em; }
.band .lead { color: var(--band-ink); opacity: 0.92; margin: 0; }
.band p { color: var(--band-mute); }
.band a { color: var(--band-ink); }
.band-kanji {
  font-family: var(--display); font-weight: 800; line-height: 0.9; color: var(--band-ink); opacity: 0.13;
  writing-mode: vertical-rl; text-orientation: upright; font-size: clamp(5rem, 13vw, 10rem);
  margin: -60px 0; user-select: none;
}
.band-home .home-row { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; padding: 56px 0 64px; }
.home-plaque { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; border: 1px solid rgba(243,242,236,0.22); padding: 30px 26px 26px; }
.home-kanji { writing-mode: vertical-rl; text-orientation: upright; font-family: var(--display); font-weight: 800; font-size: clamp(4.4rem, 10vw, 7.8rem); line-height: 1; letter-spacing: 0.06em; color: var(--band-ink); }
.seal { display: grid; place-items: center; width: 46px; height: 46px; background: var(--shu); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.4rem; border-radius: 3px; }
.band-home h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.band-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 11px 20px; background: var(--shu); color: #fff !important; text-decoration: none; font-weight: 700; border-radius: 3px; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid rgba(243,242,236,0.45); }

/* Grille tatami */
.tatami { list-style: none; padding: 0; margin: 1em 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.tatami li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tatami a { display: grid; grid-template-columns: 4.2rem 1fr; grid-template-rows: auto 1fr; column-gap: 16px; padding: 22px 22px 24px; height: 100%; text-decoration: none; color: var(--ink); transition: background 0.15s; }
.tatami a:hover { background: var(--panel); }
.t-kanji { grid-row: 1 / 3; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--mute); opacity: 0.55; writing-mode: vertical-rl; text-orientation: upright; justify-self: center; }
.tatami a:hover .t-kanji { color: var(--shu); opacity: 1; }
.tatami strong { font-family: var(--display); font-size: 1.25rem; color: var(--ink); margin-bottom: 4px; }
.t-text { color: var(--mute); font-size: 0.97rem; }

/* Schéma de lignée */
.lineage-fig { margin: 0.5em 0 0; max-width: 680px; }
.lineage-fig svg { width: 100%; height: auto; display: block; }
.ln-edges path { fill: none; stroke: var(--mute); stroke-width: 1.4; }
.ln-edges .ln-dash { stroke-dasharray: 5 5; }
.ln-head { fill: var(--mute); }
.ln-node rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.ln-key rect { fill: var(--shu); }
.lineage-fig text { text-anchor: middle; fill: var(--ink); font-family: var(--body); }
.ln-name { font-family: var(--display) !important; font-weight: 700; font-size: 17px; }
.ln-sub { font-size: 13px; fill: var(--mute) !important; }
.ln-inv { fill: #fff !important; font-size: 18px; }
.belt-blanche { --belt: #ffffff; }
.belt-jaune { --belt: #f2c618; }
.belt-orange { --belt: #e9832a; }
.belt-verte { --belt: #3b8d47; }
.belt-bleue { --belt: #2f62b3; }
.belt-marron { --belt: #6e4126; }
.belt-noire { --belt: #151515; }
.ln-start { text-anchor: start; }
.ln-note { font-size: 12.5px; fill: var(--mute) !important; font-style: italic; }


/* Positions */
.stance-group { margin-top: 1em; }
.stance { margin: 2.2em 0 2.8em; }
.stance h3 { font-size: 1.45rem; margin: 0 0 0.35em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.stance p { max-width: 70ch; }
.stance-fig { margin: 1.2em 0 0; max-width: 960px; border: 1px solid var(--rule); border-radius: 6px; background: #f5f6f3; overflow: hidden; }
.sf-panels { display: grid; grid-template-columns: 460fr 400fr; align-items: start; }
.sf-panels img { display: block; width: 100%; height: auto; }
.sf-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; padding: 16px 24px 20px; border-top: 1px solid #d6d9d2; color: #1c2231; font-size: 0.97rem; }
.sf-marks { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.sf-marks li { counter-increment: m; position: relative; padding-left: 32px; margin-bottom: 6px; }
.sf-marks li::before { content: counter(m); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #a8262c; color: #fff; font-weight: 700; font-size: 0.8rem; display: grid; place-items: center; }
.sf-facts { margin: 0; }
.sf-facts div { display: flex; gap: 8px; margin-bottom: 6px; }
.sf-facts dt { font-weight: 700; color: #a8262c; }
.sf-facts dd { margin: 0; }
.summary td, .summary th { font-variant-numeric: normal; }
.compare { max-width: 640px; }
.summary tbody th { width: auto; }
.summary a { color: var(--ai); }
.content > section > .stance, .content > .stance-fig, .content > section > .stance-fig { max-width: none; }


/* Partage */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 44px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); max-width: none !important; }
.share-label { font-size: 0.9rem; font-weight: 700; color: var(--mute); margin-right: 4px; }
.sh { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 0.88rem; text-decoration: none; cursor: pointer; line-height: 1.2; }
.sh:hover { border-color: var(--ink); }
.sh:focus-visible { outline: 3px solid var(--ai); outline-offset: 2px; }
.sh svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.sh-wa svg { fill: #1f9d55; }
.sh-fb svg { fill: #1877f2; }
.sh[hidden], .share.is-native .sh-fb, .share.is-native .sh-copy { display: none; }
.share-status { color: var(--mute); font-size: 0.88rem; }
.share-status:empty { display: none; }
.mini-share { margin-left: auto; font-family: var(--body); font-size: 0.85rem; font-weight: 400; color: var(--mute); text-decoration: none; border: 1px solid var(--rule); border-radius: 3px; padding: 3px 10px; }
.mini-share:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 720px) {
  .band-row { grid-template-columns: 1fr; min-height: 0; padding: 32px 0 36px; }
  .band-kanji { position: absolute; right: -14px; top: 4px; font-size: 6rem; margin: 0; opacity: 0.07; }
  .band { position: relative; }
  .band-home .home-row { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 44px; }
  .home-plaque { flex-direction: row; justify-content: space-between; padding: 16px 20px; }
  .home-kanji { writing-mode: horizontal-tb; font-size: 3.4rem; }
  .tatami a { grid-template-columns: 3rem 1fr; padding: 18px 16px; }
  .t-kanji { font-size: 1.9rem; }
  .sf-panels, .sf-legend { grid-template-columns: 1fr; }
  .sf-legend { padding: 14px 16px 16px; }
  .facts > div, .index-list a, .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* ===== v2 : navigation groupée ===== */
.head-row { flex-wrap: nowrap; }
.mainnav { margin-left: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.dd > summary, .nav-link { list-style: none; cursor: pointer; display: block; padding: 8px 12px; border-radius: 3px; color: var(--ink); text-decoration: none; font-size: 0.98rem; border-bottom: 2px solid transparent; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.dd[open] > summary::after { transform: translateY(0) rotate(-135deg); }
.dd > summary:hover, .nav-link:hover { background: var(--panel); }
.dd > summary.is-current, .nav-link[aria-current="page"] { border-bottom-color: var(--shu); font-weight: 700; border-radius: 3px 3px 0 0; }
.dd-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 12px 30px rgba(20, 24, 36, 0.14); z-index: 20; }
.dd-menu a { display: block; padding: 10px 12px; border-radius: 3px; text-decoration: none; color: var(--ink); }
.dd-menu a:hover { background: var(--panel); }
.dd-menu a strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.dd-menu a span { display: block; color: var(--mute); font-size: 0.88rem; }
.dd-menu a[aria-current="page"] strong { color: var(--shu); }
.nav .nav-link { padding: 8px 12px; border-bottom: 2px solid transparent; }
.nav .nav-link[aria-current="page"] { border-bottom-color: var(--shu); }
.nav .dd-menu a, .nav .dd-menu a[aria-current="page"] { padding: 10px 12px; border-bottom: 0; }
.menu-btn { display: none; margin-left: auto; font: inherit; font-weight: 700; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); cursor: pointer; }

/* ===== bandeau : fil d'Ariane et date ===== */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--body); font-size: 0.9rem; color: var(--band-mute); }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: 0.6; }
.crumbs a { color: var(--band-mute); text-decoration: none; }
.crumbs a:hover { color: var(--band-ink); text-decoration: underline; }
.band-meta { margin: 14px 0 0; font-size: 0.88rem; color: var(--band-mute); }
.h1-jp { font-weight: 500; font-size: 0.55em; color: var(--band-mute); margin-left: 0.3em; }

/* ===== mise en page avec sommaire ===== */
.content > * { max-width: none; }
.content > section > :not(.tatami) { max-width: none; }
.layout { display: block; }
.article > :where(p, ul, ol, dl, h2, h3, .note, .lead), .article section > :where(p, ul, ol, dl, h2, h3) { max-width: 70ch; }
.article > .stance-cards, .article section > .stance-cards, .article > .tatami, .article section > .tatami { max-width: none; }
@media (min-width: 1100px) {
  .layout.has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 56px; align-items: start; }
}
.toc-col { position: sticky; top: 24px; margin-top: 2.6em; }
.toc { border-left: 2px solid var(--rule); padding-left: 16px; }
.toc-title { font-family: var(--display); font-weight: 700; margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 6px; font-size: 0.93rem; line-height: 1.4; }
.toc a { color: var(--mute); text-decoration: none; }
.toc a:hover { color: var(--shu); }
@media (max-width: 1099px) { .toc-col { display: none; } }

/* ===== précédent / suivant ===== */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 56px 0 0; max-width: 70ch; }
.pn { display: block; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink); }
.pn:hover { border-color: var(--ink); }
.pn span { display: block; font-size: 0.85rem; color: var(--mute); }
.pn strong { font-family: var(--display); font-size: 1.1rem; }
.pn-next { text-align: right; grid-column: 2; }
.pn-prev strong::before { content: "← "; color: var(--mute); }
.pn-next strong::after { content: " →"; color: var(--mute); }

/* ===== cartes de positions ===== */
.stance-cards { list-style: none; padding: 0; margin: 1em 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stance-cards a { display: block; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--ink); background: #f5f6f3; height: 100%; }
.stance-cards a:hover { border-color: var(--ink); }
.stance-cards img { display: block; width: 100%; height: auto; border-bottom: 1px solid #d6d9d2; }
.stance-cards strong { display: block; padding: 10px 14px 0; font-family: var(--display); font-size: 1.1rem; color: #1c2231; }
.stance-cards strong .jp { font-size: 0.85rem; }
.stance-cards span:not(.jp) { display: block; padding: 2px 14px 12px; font-size: 0.9rem; color: #5a6170; }
.errors li { margin-bottom: 8px; }
.errors li::marker { content: "✕  "; color: var(--shu); font-weight: 700; }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: " →"; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--rule); padding: 4px 0; max-width: 70ch; }
.faq-item summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.12rem; padding: 12px 0; }
.faq-item p { margin: 0 0 14px; }
.faq-q h2 { font-size: 1.35rem; }
.faq-q h2::before { width: 28px; height: 4px; }

/* ===== lexique : recherche ===== */
.lex-search { margin: 0 0 8px; max-width: 70ch; }
.lex-search label { display: block; font-weight: 700; margin-bottom: 6px; }
.lex-search input { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--mute); border-radius: 4px; background: var(--paper); color: var(--ink); }
.lex-search input:focus { outline: 3px solid var(--shu); outline-offset: 1px; }
.lex-count { color: var(--mute); font-size: 0.92rem; min-height: 1.3em; margin: 6px 0 0; }
.link-list li { margin-bottom: 10px; }
.katas-t tbody th { white-space: normal; width: 30%; }
.katas-t td:nth-child(2) { font-style: italic; }

/* ===== pied de page ===== */
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 32px; padding: 40px 0 24px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-grid a { color: var(--mute); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-h { font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.foot-about p { margin: 12px 0 0; max-width: 40ch; }
.foot-about .brand { color: var(--ink); }
.foot-bottom { border-top: 1px solid var(--rule); padding: 14px 0 24px; }
.foot-bottom p { margin: 0; }

/* ===== mobile ===== */
@media (max-width: 899px) {
  .menu-btn { display: inline-block; }
  html.js .mainnav { display: none; }
  html.js .mainnav.open { display: block; }
  .head-row { flex-wrap: wrap; }
  .mainnav { flex-basis: 100%; margin: 0; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .dd-menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; background: transparent; }
  .dd > summary, .nav .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .dd > summary.is-current, .nav .nav-link[aria-current="page"] { border-bottom-color: var(--rule); color: var(--shu); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .prevnext { grid-template-columns: 1fr; }
  .pn-next { grid-column: 1; }
}

/* ===== impression ===== */
@media print {
  .site-head, .site-foot, .share, .prevnext, .toc-col, .mini-share, .band-kanji, .lex-search, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band { background: #fff; color: #000; }
  .band h1, .band .lead, .band p, .crumbs ol { color: #000 !important; }
  a { color: #000; text-decoration: none; }
  .stance-fig, .table-wrap, figure, tr { break-inside: avoid; }
}
/* ------------------------------------------------------------------ portraits des maîtres */
.ph { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--panel); border-radius: 3px; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0;
}
.ph::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(28, 34, 49, 0.12); border-radius: 3px; pointer-events: none; }
.ph-empty { display: grid; place-items: center; background: linear-gradient(160deg, #23293d, var(--band)); }
.ph-mono { font-family: var(--display); font-weight: 800; color: var(--band-ink); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.ph-empty::before { content: ""; position: absolute; right: 10%; bottom: 8%; width: 18%; aspect-ratio: 1; background: var(--shu); opacity: .85; border-radius: 2px; }
.pt { margin: 0; }
.pt a { display: block; color: inherit; text-decoration: none; }
.pt a:hover .ph { box-shadow: 0 0 0 2px var(--shu); }
.pt a:focus-visible { outline: 3px solid var(--ai); outline-offset: 3px; }
.pt figcaption { margin-top: 8px; font-size: 0.9rem; line-height: 1.3; }
.pt figcaption strong { display: block; font-family: var(--display); font-weight: 700; color: var(--ink); }
.pt figcaption span { color: var(--mute); font-size: 0.85rem; }
.pt-inline { float: right; width: 168px; margin: 4px 0 16px 24px; }
.pt-mini { float: right; width: 108px; margin: 0 0 12px 20px; }
.pt-mini figcaption span { display: none; }
.pt-row { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 18px; max-width: 760px; }
.pt-row li { margin: 0; }
.pt-pair { grid-template-columns: repeat(2, minmax(0, 168px)); }
.pt-lineage { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; counter-reset: gen; }
.pt-lineage li { position: relative; }
.pt-lineage li + li::before { content: ""; position: absolute; left: -14px; top: 38%; width: 10px; height: 2px; background: var(--shu); }
h2 + .pt-inline, h2 + .pt-mini { margin-top: 2px; }
.article h2 { clear: both; }

/* Page « Les maîtres » */
.mcards { display: grid; gap: 22px; margin: 6px 0 32px; }
.mcard { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; padding-top: 22px; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.mcard:first-child { border-top: 0; padding-top: 6px; }
.mcard h3 { margin: 0 0 2px; font-size: 1.3rem; }
.mc-kanji { font-size: 0.95rem; color: var(--mute); margin-left: 10px; font-weight: 500; letter-spacing: 0.06em; }
.mc-role { margin: 0 0 8px; color: var(--shu); font-weight: 700; font-size: 0.92rem; }
.mc-text p { margin-top: 0; }
.mc-more { margin-bottom: 0; font-size: 0.92rem; }
.mcard:target .ph { box-shadow: 0 0 0 3px var(--shu); }
.note-photos { color: var(--mute); font-size: 0.92rem; border-top: 1px solid var(--rule); padding-top: 14px; }

@media (max-width: 640px) {
  .pt-inline { width: 120px; margin-left: 16px; }
  .pt-mini { width: 84px; }
  .pt-lineage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-lineage li:nth-child(3)::before { display: none; }
  .mcard { grid-template-columns: 96px 1fr; gap: 14px; }
  .mcard h3 { font-size: 1.12rem; }
  .mc-kanji { display: block; margin: 2px 0 0; }
}
.mc-note { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--mute); line-height: 1.3; }
@media print { .pt-inline, .pt-mini { width: 110px; } }
@media (max-width: 700px) {
  .prog.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prog.stack, .prog.stack tbody, .prog.stack tr, .prog.stack tbody th, .prog.stack td { display: block; width: auto; }
  .prog.stack tr { padding: 14px 0 12px; border-bottom: 1px solid var(--rule); }
  .prog.stack tbody th { white-space: normal; padding: 0 0 6px; border: 0; font-size: 1.12rem; }
  .prog.stack td { border: 0; padding: 4px 0; }
  .prog.stack td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 700; color: var(--mute); letter-spacing: 0.01em; }
  .prog.stack td:empty { display: none; }
}
/* ------------------------------------------------------------------ agenda */
.ev[hidden], .ev-m[hidden], .ev-y[hidden], .ev-year[hidden] { display: none; }
.ev-list, .ev-past, .ev-undated, .ev-help, .ev-next, .ev-filters { max-width: 900px; }
.ev-next { background: var(--panel); border-left: 4px solid var(--shu); padding: 12px 16px; margin: 0 0 22px; }
.ev-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ev-filter-label { margin: 0; font-weight: 700; color: var(--mute); font-size: .9rem; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: .88rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip:focus-visible { outline: 3px solid var(--ai); outline-offset: 2px; }
.ev-count { margin: 0; font-size: .88rem; }
.ev-y { margin-top: 1.6em; }
.ev-m { font-family: var(--body); font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--mute); margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.ev { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 16px 0 18px; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.ev:target { background: linear-gradient(90deg, rgba(168,38,44,.07), transparent 60%); }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--band); color: var(--band-ink); border-radius: 4px; padding: 8px 4px 9px; align-self: start; line-height: 1.05; }
.ev-wd { font-size: .72rem; color: var(--band-mute); }
.ev-day { font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin: 2px 0; }
.ev-day-sm { font-size: 1.1rem; margin: 6px 0 4px; }
.ev-mon { font-size: .78rem; font-weight: 700; color: #f0c9cb; }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .82rem; }
.ev-tag { padding: 1px 8px; border-radius: 3px; font-weight: 700; background: var(--panel); color: var(--ink); }
.ev-competition { background: #f3dcdd; color: #7e1c21; }
.ev-stage { background: #dde5f1; color: #23406e; }
.ev-grade { background: #e8e3d4; color: #5b4a1c; }
.ev-seminaire { background: #dcebe2; color: #23593a; }
.ev-org { color: var(--mute); }
.ev-status { padding: 1px 8px; border-radius: 3px; border: 1px dashed var(--mute); color: var(--mute); }
.ev-st-annule { border-color: var(--shu); color: var(--shu); text-decoration: line-through; }
.ev-title { font-size: 1.22rem; margin: 2px 0 8px; }
.ev-facts { margin: 0; display: grid; gap: 4px; }
.ev-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.ev-facts dt { color: var(--mute); font-size: .88rem; }
.ev-facts dd { margin: 0; }
.ev-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.ev-btn { font-size: .88rem; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); }
.ev-btn:hover { border-color: var(--ink); }
.ev-btn-ics { border-color: var(--ai); color: var(--ai); }
.ev-check { margin: 10px 0 0; font-size: .78rem; color: var(--mute); }
.ev.has-flyer { grid-template-columns: 74px 1fr 120px; }
.ev-flyer { align-self: start; display: block; }
.ev-flyer img { display: block; width: 120px; height: auto; border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 1px 3px rgba(28,34,49,.12); }
.ev-flyer:hover img { border-color: var(--ink); }
.ev-undated { padding-left: 20px; }
.ev-undated li { margin-bottom: 8px; }
.ev-past { margin-top: 6px; }
.ev-past-year { border-bottom: 1px solid var(--rule); }
.ev-past-year summary { cursor: pointer; padding: 12px 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.ev-past .ev { opacity: .82; }
.ev-past .ev-btn-ics { display: none; }
.ev-help { margin-top: 40px; padding: 18px 20px; background: var(--panel); border-radius: 4px; }
.ev-help h2 { margin-top: 0; font-size: 1.15rem; }
.ev-help h2::before { display: none; }
.home-next { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center; padding: 14px 16px; background: var(--panel); border-radius: 4px; text-decoration: none; color: inherit; max-width: 760px; }
.home-next:hover { background: #e2e5dd; }
.home-next strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.home-next > div > span { color: var(--mute); }
@media (max-width: 640px) {
  .ev, .ev.has-flyer { grid-template-columns: 58px 1fr; gap: 12px; }
  .ev-flyer { grid-column: 2; }
  .ev-flyer img { width: 140px; }
  .ev-day { font-size: 1.35rem; }
  .ev-facts div { grid-template-columns: 1fr; gap: 0; }
  .ev-facts dt { font-size: .78rem; font-weight: 700; }
}
.series { font-size: .92rem; color: var(--mute); }
.kata-steps { padding-left: 1.3em; }
.kata-steps li { margin-bottom: .7em; }
/* ------------------------------------------------------------------ annuaire des clubs */
.cl[hidden], .cl-region[hidden] { display: none; }
.cl-list, .cl-legend, .cl-filters { max-width: 900px; }
.cl-filters { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.cl-filters .ev-count { grid-column: 1 / -1; }
.cl-legend { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.cl-legend li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.cl-legend img { display: block; width: 40px; height: 40px; }
.cl { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.cl:target { background: linear-gradient(90deg, rgba(168,38,44,.07), transparent 60%); }
.cl-logo { display: block; width: 56px; height: 56px; border-radius: 50%; }
.cl-logo-none { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--panel); color: var(--mute); font-family: var(--display); font-size: 1.5rem; }
.cl-logo-sm { width: 40px; height: 40px; font-size: 1.1rem; }
.cl-name { font-size: 1.18rem; margin: 2px 0 4px; }
.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .85rem; color: var(--mute); }
.cl-org { padding: 1px 8px; border-radius: 3px; font-weight: 700; font-size: .8rem; }
.cl-kofukan { background: #f3dcdd; color: #7e1c21; }
.cl-yamada { background: #ece6d2; color: #5b4a1c; }
.cl-autre { background: var(--panel); color: var(--ink); }
.cl-addr, .cl-teach { margin: 0 0 2px; }
.cl-teach { color: var(--mute); font-size: .95rem; }
.cl .ev-links { margin-top: 10px; }
.cl-fix { margin: 8px 0 0; font-size: .78rem; }
.cl-fix a { color: var(--mute); }
.cl-map { max-width: 900px; margin: 8px 0 28px; }
.cl-map svg { display: block; width: 100%; max-width: 620px; height: auto; }
.cl-land path { fill: var(--panel); stroke: #b9bdb3; stroke-width: .8; stroke-linejoin: round; }
.cl-dot .pt { stroke: #fff; stroke-width: 1.6; transition: r .15s; }
.cl-dot .hit { fill: transparent; }
.cl-dot:hover .pt, .cl-dot:focus .pt { r: 8; }
.cl-dot:focus { outline: none; }
.cl-dot:focus-visible .pt { stroke: var(--ink); stroke-width: 2.5; }
.cl-dot.is-off { opacity: .15; pointer-events: none; }
.dot-kofukan .pt, .cl-key.dot-kofukan { fill: #a8262c; background: #a8262c; }
.dot-yamada .pt, .cl-key.dot-yamada { fill: #9a7a22; background: #9a7a22; }
.dot-autre .pt, .cl-key.dot-autre { fill: #1c2231; background: #1c2231; }
.cl-zoom { fill: none; stroke: var(--mute); stroke-width: 1; stroke-dasharray: 2 2; }
.cl-inset-bg { fill: var(--paper); }
.cl-inset-frame { fill: none; stroke: var(--mute); stroke-width: 1; }
.cl-dep path { fill: var(--panel); stroke: #a9ada3; stroke-width: .8; stroke-linejoin: round; }
.cl-dep text { font: 600 9px var(--body); fill: #8a8f86; text-anchor: middle; }
.cl-inset text { font: 600 11px var(--body); fill: var(--mute); }
.cl-map figcaption { font-size: .88rem; color: var(--mute); margin-top: 6px; }
.cl-map figcaption small { font-size: .78rem; }
.cl-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 10px; vertical-align: -1px; }
.cl-key:first-child { margin-left: 0; }
@media (max-width: 640px) {
  .cl { grid-template-columns: 44px 1fr; gap: 12px; }
  .cl-logo, .cl-logo-none { width: 44px; height: 44px; }
  .cl-filters { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prog.uv thead { display: none; }
  .prog.uv tr, .prog.uv th, .prog.uv td { display: block; }
  .prog.uv th { padding-bottom: 2px; border-bottom: 0; }
  .prog.uv td { padding-top: 0; }
}
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 13px; height: 13px; border: 1.5px solid var(--mute); border-radius: 3px; }
.notion-nav { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bk-intro { margin-top: 28px; }
.bk-list { list-style: none; padding: 0; max-width: 820px; }
.bk { padding: 14px 0 16px 18px; border-left: 3px solid var(--rule); margin-bottom: 14px; }
.bk-author { margin: 0; font-size: .9rem; font-weight: 700; color: var(--mute); }
.bk-title { margin: 2px 0 2px; font-size: 1.15rem; }
.bk-title cite { font-style: italic; }
.bk-sub { margin: 0 0 4px; color: var(--mute); }
.bk-meta { margin: 0 0 6px; font-size: .88rem; color: var(--mute); }
.bk-note { margin: 0; }
.foot-grid .foot-social { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 6px; }
.foot-social li { margin: 0; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--mute); border: 1px solid var(--rule); }
.foot-social a:hover, .foot-social a:focus-visible { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.tile-group { font-size: 1.05rem; margin: 30px 0 12px; color: var(--mute); font-family: var(--body); font-weight: 700; }
.tile-group:first-of-type { margin-top: 8px; }
