/* Layout: photo-led LP. Full-bleed photo heroes with a hard-court-blue wash, a facts bar riding the hero edge, court-blue feature bands with regulation court lines, then document-like detail with a sticky per-event partner rail. */
:root {
  --paper: #F3F5F8;
  --surface: #FFFFFF;
  --ink: #141F36;
  --muted: #566078;
  --rule: #D4DAE4;
  --link: #2A4C97;
  --court: #2A4C97;
  --court-deep: #172E62;
  --night: #0E1A36;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C2CDE6;
  --court-line: rgba(255,255,255,.22);
  --ball: #DCEB3A;
  --ball-ink: #15203A;
  --wash: #E4EAF6;
  --f-mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "BIZ UDPGothic", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1527; --surface: #141F37; --ink: #E8ECF4; --muted: #9AA6BE; --rule: #25324F;
    --link: #AFC5F6; --court: #234389; --court-deep: #15295A; --night: #08101F; --wash: #1B2A4A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D1527; --surface: #141F37; --ink: #E8ECF4; --muted: #9AA6BE; --rule: #25324F;
  --link: #AFC5F6; --court: #234389; --court-deep: #15295A; --night: #08101F; --wash: #1B2A4A;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85; }
a { color: var(--link); }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.mincho { font-family: var(--f-mincho); }

/* top bar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); color: var(--on-dark); }
.topbar .wrap { display: flex; align-items: center; gap: 10px 20px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); margin-right: auto; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { font-family: var(--f-mincho); font-weight: 800; font-size: 19px; }
.brand span { font-size: 12px; color: var(--on-dark-muted); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 14px; padding: 6px 10px; color: var(--on-dark-muted); }
.nav a:hover { color: var(--on-dark); }
.nav a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -3px 0 var(--ball); }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--on-dark-muted); font: 700 13px/1 var(--f-body); padding: 8px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ball); color: var(--ball-ink); }
@media (max-width: 560px) { .brand span { display: none; } .brand b { font-size: 17px; } }

/* photo hero */
.hero { position: relative; color: var(--on-dark); background: var(--court-deep); overflow: hidden; isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(14,26,54,.94) 0%, rgba(23,46,98,.82) 38%, rgba(23,46,98,.35) 68%, rgba(14,26,54,.15) 100%),
              linear-gradient(0deg, rgba(14,26,54,.75) 0%, rgba(14,26,54,0) 40%); }
.hero .wrap { padding-block: 72px 112px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 48px; align-items: start; }
.hero .wrap.single { grid-template-columns: minmax(0, 1fr); }
.hero-body { display: grid; gap: 20px; min-width: 0; max-width: 680px; }
.series { font-size: 15px; color: var(--on-dark-muted); margin: 0; }
.vtitle { writing-mode: vertical-rl; font-family: var(--f-mincho); font-weight: 800; font-size: clamp(60px, 8.4vw, 112px); line-height: 1; letter-spacing: .08em; margin: 0; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.htitle { font-family: var(--f-mincho); font-weight: 800; font-size: clamp(38px, 6.4vw, 80px); line-height: 1.08; margin: 0; text-wrap: balance; }
.home-title { font-family: var(--f-mincho); font-weight: 800; font-size: clamp(36px, 6vw, 76px); line-height: 1.25; margin: 0; text-wrap: balance; }
.subtitle { font-family: var(--f-mincho); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.45; margin: 0; }
.lead { color: var(--on-dark-muted); margin: 0; max-width: 36em; font-size: 17px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 15px/1 var(--f-body); padding: 15px 22px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; }
.btn-ball { background: var(--ball); color: var(--ball-ink); }
.btn-ball:hover { filter: brightness(1.06); }
.btn-line { border-color: rgba(255,255,255,.6); color: var(--on-dark); background: rgba(14,26,54,.2); }
.btn-line:hover { background: rgba(255,255,255,.1); }
.btn-court { background: var(--court); color: #fff; }
.switcher { display: flex; grid-column: 1 / -1; width: fit-content; max-width: 100%; border-bottom: 1px solid rgba(255,255,255,.3); }
.switcher a { text-decoration: none; padding: 6px 16px 10px 0; margin-right: 12px; font-size: 15px; color: var(--on-dark-muted); }
.switcher a[aria-current="page"] { color: var(--on-dark); box-shadow: inset 0 -3px 0 var(--ball); }
@media (max-width: 560px) { .hero .wrap { gap: 16px 20px; padding-block: 44px 96px; } .vtitle { font-size: 58px; } }

/* facts bar riding the hero edge */
.factbar { position: relative; z-index: 2; margin-top: -64px; }
.factbar .grid { background: var(--surface); border-radius: 6px; box-shadow: 0 18px 40px -20px rgba(14,26,54,.45); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.fact { padding: 18px 22px; border-right: 1px solid var(--rule); display: grid; gap: 2px; min-width: 0; }
.fact:last-child { border-right: 0; }
.fact .lbl { font-size: 13px; color: var(--muted); }
.fact .val { font-family: var(--f-mincho); font-weight: 800; font-size: clamp(20px, 2.3vw, 27px); line-height: 1.3; font-variant-numeric: tabular-nums; }
.fact .sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ballnum { display: inline-block; background: var(--ball); color: var(--ball-ink); border-radius: 999px; padding: 0 .35em; min-width: 1.5em; text-align: center; }
@media (max-width: 820px) { .factbar .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }

/* section scaffolding */
.band { padding-block: 80px; }
.band.tight { padding-block: 56px; }
.band.court { background: var(--court); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.band.night { background: var(--night); color: var(--on-dark); }
.court-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.court-lines * { fill: none; stroke: var(--court-line); stroke-width: 5; }
.court-lines .net { stroke-dasharray: 18 14; stroke-width: 7; }
.sec-h { display: grid; gap: 6px; margin-bottom: 28px; max-width: 760px; }
.sec-h h2 { font-family: var(--f-mincho); font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; margin: 0; text-wrap: balance; }
.sec-h p { margin: 0; color: var(--muted); font-size: 16px; }
.court .sec-h p, .night .sec-h p { color: var(--on-dark-muted); }
.note { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; line-height: 1.7; white-space: nowrap; vertical-align: 2px; }
.tag.plan { background: var(--ball); color: var(--ball-ink); }
.tag.soft { border: 1px solid var(--rule); color: var(--muted); font-weight: 400; }

/* featured world champs (home) */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; border-radius: 8px; overflow: hidden; background: var(--court-deep); }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0,1fr); } }
.feature-img { position: relative; min-height: 340px; }
.feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-img .stamp { position: absolute; left: 20px; bottom: 20px; background: var(--ball); color: var(--ball-ink); font-family: var(--f-mincho); font-weight: 800; font-size: 22px; padding: 6px 14px; border-radius: 4px; line-height: 1.3; }
.feature-body { padding: 36px; display: grid; gap: 18px; align-content: start; color: var(--on-dark); }
.feature-body h3 { font-family: var(--f-mincho); font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.3; margin: 0; }
.feature-body p { margin: 0; color: var(--on-dark-muted); }
.ftiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (max-width: 480px) { .ftiles { grid-template-columns: minmax(0,1fr); } }
.ftile { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 16px; text-decoration: none; color: var(--on-dark); display: grid; gap: 6px; }
.ftile:hover { background: rgba(255,255,255,.12); border-color: var(--ball); }
.ftile b { font-family: var(--f-mincho); font-size: 22px; font-weight: 800; }
.ftile span { font-size: 14px; color: var(--on-dark-muted); }
.ftile .flagrow { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 4px; }
.ftile .flagrow img { width: 22px; height: 16px; object-fit: cover; border-radius: 1px; }

/* event cards */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tabbtn { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 20px; font: 700 15px var(--f-body); cursor: pointer; }
.tabbtn[aria-pressed="true"] { background: var(--court); color: #fff; border-color: var(--court); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0,1fr); } }
.ecard { background: var(--surface); border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
a.ecard:hover .ecard-img img { transform: scale(1.04); }
.ecard-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--court); max-width: 100%; }
.ecard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ecard.past .ecard-img img { filter: grayscale(.85) brightness(.9); }
.ecard-date { position: absolute; left: 0; bottom: 0; background: var(--night); color: #fff; padding: 8px 14px; font-family: var(--f-mincho); font-weight: 800; font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ecard-date small { font-size: 13px; font-weight: 600; color: var(--on-dark-muted); margin-left: 4px; }
.ecard-grade { position: absolute; right: 12px; top: 12px; background: rgba(14,26,54,.82); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 3px; }
.ecard-grade.hi { background: var(--ball); color: var(--ball-ink); }
.ecard-body { padding: 16px 18px 18px; display: grid; gap: 4px; align-content: start; }
.ecard-body .where { font-size: 14px; color: var(--muted); }
.ecard-body .name { font-family: var(--f-mincho); font-weight: 800; font-size: 20px; line-height: 1.4; }
.ecard-body .status { margin-top: 6px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st { padding: 1px 9px; border-radius: 999px; }
.st.up { background: var(--wash); color: var(--link); }
.st.now { background: var(--ball); color: var(--ball-ink); }
.st.done { color: var(--muted); border: 1px solid var(--rule); font-weight: 400; }
.st.lp { color: var(--link); }

/* 2027 plan mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 200px; gap: 10px; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 170px; } }
.tile { position: relative; border-radius: 6px; overflow: hidden; background: var(--court); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,16,31,.85), rgba(8,16,31,0) 60%); z-index: -1; }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile .cap { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; display: grid; gap: 2px; }
.tile .cap b { font-family: var(--f-mincho); font-weight: 800; font-size: 22px; line-height: 1.25; }
.tile.big .cap b { font-size: clamp(26px, 3vw, 38px); }
.tile .cap span { font-size: 13px; color: var(--on-dark-muted); }
.tile.noimg { background: linear-gradient(135deg, var(--court), var(--court-deep)); }

/* about ITF + links */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0,1fr); gap: 28px; } }
.about-photos { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 200px 200px; gap: 10px; }
.about-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.about-photos img:first-child { grid-row: span 2; }
.pull { font-family: var(--f-mincho); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.6; margin: 0 0 18px; text-wrap: balance; }
.pull b { font-weight: 800; border-bottom: 4px solid var(--ball); }
.about p { margin: 0 0 14px; }
.links { list-style: none; padding: 0; margin: 24px 0 0; display: grid; border-top: 2px solid var(--ink); }
.links li { border-bottom: 1px solid var(--rule); }
.links a { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 14px 0; text-decoration: none; color: var(--ink); align-items: center; }
.links a:hover b { color: var(--link); }
.links b { display: block; font-size: 16px; }
.links span { font-size: 13px; color: var(--muted); }
.links svg { width: 18px; height: 18px; color: var(--muted); }

/* support */
.support { background: var(--court); color: var(--on-dark); border-radius: 8px; padding: 36px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 20px 32px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
@media (max-width: 760px) { .support { grid-template-columns: minmax(0,1fr); padding: 24px; } }
.support h2 { font-family: var(--f-mincho); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.4; margin: 0 0 8px; }
.support p { color: var(--on-dark-muted); margin: 0; }
.mailbox { background: var(--surface); color: var(--ink); border-radius: 6px; padding: 18px 20px; display: grid; gap: 10px; }
.mailbox .lbl { font-size: 13px; color: var(--muted); }
.mailbox code { font-family: var(--f-body); font-weight: 700; font-size: clamp(17px, 2.2vw, 22px); user-select: all; word-break: break-all; }
.copy { justify-self: start; background: var(--ball); color: var(--ball-ink); border: 0; border-radius: 4px; padding: 10px 16px; font: 700 14px var(--f-body); cursor: pointer; }

/* flag wall */
.cupfilter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.cupfilter button { background: transparent; border: 1px solid rgba(255,255,255,.35); color: var(--on-dark); border-radius: 999px; padding: 7px 16px; font: 700 14px var(--f-body); cursor: pointer; }
.cupfilter button[aria-pressed="true"] { background: var(--ball); border-color: var(--ball); color: var(--ball-ink); }
.flagwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nation { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 12px; display: grid; gap: 8px; transition: opacity .25s; }
.nation.off { opacity: .22; }
.nation.host { border-color: var(--ball); background: rgba(220,235,58,.12); }
.nation .fl { aspect-ratio: 4 / 3; width: 100%; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.12); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.nation .fl img { width: 100%; height: 100%; object-fit: cover; }
.nation .fl.code { display: grid; place-items: center; font-family: var(--f-mincho); font-weight: 800; font-size: 26px; color: #fff; background: rgba(255,255,255,.1); }
.nation .nm { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.nation .nm b { font-size: 14px; line-height: 1.4; }
.nation .nm span { font-family: var(--f-mincho); font-weight: 800; font-size: 13px; color: var(--on-dark-muted); }
.cupdots { display: flex; gap: 4px; }
.cupdots i { font-style: normal; font-size: 11px; line-height: 1; padding: 4px 0; border-radius: 3px; flex: 1; text-align: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.35); }
.cupdots i.on { background: var(--ball); color: var(--ball-ink); font-weight: 700; }
.wallstats { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-bottom: 26px; }
.wallstats div { display: grid; }
.wallstats b { font-family: var(--f-mincho); font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.wallstats span { font-size: 14px; color: var(--on-dark-muted); }

/* layout with rail */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; padding-block: 72px 88px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.layout main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; min-width: 0; }
.layout .sec-h h2 { font-size: clamp(26px, 3vw, 34px); }

/* Japan team */
.lineup { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
@media (max-width: 640px) { .lineup { grid-template-columns: minmax(0,1fr); } }
.squad { background: var(--surface); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 var(--rule); }
.squad-h { background: var(--court); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.squad-h b { font-family: var(--f-mincho); font-weight: 800; font-size: 20px; }
.squad-h span { font-size: 13px; color: var(--on-dark-muted); }
.squad ol { list-style: none; margin: 0; padding: 4px 16px 8px; }
.squad li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; flex-wrap: wrap; }
.squad li:last-child { border-bottom: 0; }
.squad li b { font-family: var(--f-mincho); font-weight: 800; font-size: 19px; }
.squad li span { font-size: 13px; color: var(--muted); }

/* 要項 */
.yoko { list-style: none; margin: 0; padding: 0; counter-reset: y; border-top: 2px solid var(--ink); }
.yoko li { counter-increment: y; display: grid; grid-template-columns: 2.4em 9em minmax(0,1fr); gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.yoko li::before { content: counter(y) "."; font-family: var(--f-mincho); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.yoko .k { font-weight: 700; }
.yoko .v { min-width: 0; }
.yoko .v .note { display: block; }
@media (max-width: 560px) { .yoko li { grid-template-columns: 2em minmax(0,1fr); } .yoko .v { grid-column: 2; } }

/* format / money tiles */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 700px) { .trio { grid-template-columns: minmax(0,1fr); } }
.trio > div { background: var(--surface); border-radius: 8px; padding: 18px; box-shadow: 0 1px 0 var(--rule); display: grid; gap: 4px; align-content: start; }
.trio .big { font-family: var(--f-mincho); font-weight: 800; font-size: 34px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.trio .big small { font-size: 16px; }
.trio b { font-size: 16px; }
.trio span { font-size: 14px; color: var(--muted); }

/* schedule */
.sched { list-style: none; margin: 0; padding: 0; display: grid; }
.sched li { display: grid; grid-template-columns: 7.5em 20px minmax(0,1fr); gap: 0 14px; padding-bottom: 22px; position: relative; }
.sched li::after { content: ""; position: absolute; left: calc(7.5em + 14px + 9px); top: 14px; bottom: 0; width: 2px; background: var(--rule); }
.sched li:last-child::after { display: none; }
.sched .d { font-family: var(--f-mincho); font-weight: 800; font-size: 20px; line-height: 1.4; text-align: right; font-variant-numeric: tabular-nums; }
.sched .d small { display: block; font-family: var(--f-body); font-size: 12px; color: var(--muted); font-weight: 400; }
.sched .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--court); background: var(--paper); margin-top: 4px; position: relative; z-index: 1; }
.sched li.key .dot { background: var(--ball); border-color: var(--ball-ink); }
.sched .t b { display: block; font-size: 17px; }
.sched .t span { font-size: 14px; color: var(--muted); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); counter-reset: s; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 18px 20px 6px 0; border-right: 1px solid var(--rule); }
.steps li + li { padding-left: 20px; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(s); display: block; font-family: var(--f-mincho); font-weight: 800; font-size: 42px; line-height: 1; color: var(--court); margin-bottom: 8px; }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 720px) {
  .steps { grid-template-columns: minmax(0,1fr); }
  .steps li, .steps li + li { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 0 12px; }
  .steps li::before { grid-row: span 2; font-size: 34px; }
}

/* venue */
.venue { border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 0 var(--rule); }
.venue-img { position: relative; aspect-ratio: 21 / 9; max-width: 100%; }
.venue-img img { width: 100%; height: 100%; object-fit: cover; }
.venue-img .cap { position: absolute; left: 0; bottom: 0; background: var(--night); color: #fff; padding: 12px 18px; font-family: var(--f-mincho); font-weight: 800; font-size: 22px; line-height: 1.3; }
.venue-img .cap small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--on-dark-muted); }
.venue-body { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 700px) { .venue-body { grid-template-columns: minmax(0,1fr); } }
.venue-body > div { padding: 18px; border-right: 1px solid var(--rule); display: grid; gap: 2px; align-content: start; }
.venue-body > div:last-child { border-right: 0; }
.venue-body b { font-size: 16px; }
.venue-body span { font-size: 14px; color: var(--muted); }

/* rail */
aside.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; min-width: 0; }
@media (max-width: 960px) { aside.rail { position: static; } }
.rail-box { background: var(--surface); border-radius: 8px; padding: 20px; display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; min-width: 0; box-shadow: 0 1px 0 var(--rule); }
.rail-h b { font-family: var(--f-mincho); font-weight: 800; font-size: 19px; display: block; }
.rail-h span { font-size: 13px; color: var(--muted); }
.partner { display: grid; place-items: center; text-align: center; min-height: 92px; padding: 14px; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink); background: var(--paper); }
.partner b { font-family: var(--f-mincho); font-weight: 800; font-size: 19px; line-height: 1.35; }
.partner small { display: block; font-size: 12px; color: var(--muted); }
.partner:hover { border-color: var(--court); }
.partner.open { border-style: dashed; background: transparent; color: var(--muted); min-height: 64px; font-size: 14px; }
@media (max-width: 960px) { .partners { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; } }
.partners { display: grid; gap: 8px; }
.rail-cta { font-size: 13px; color: var(--muted); line-height: 1.7; }
.rail-cta b { color: var(--ink); word-break: break-all; }
.powered { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.powered .mark { width: 42px; height: 42px; border-radius: 8px; background: #1F1F1F; display: grid; place-items: center; flex: none; }
.powered .mark svg { width: 26px; height: 26px; }
.powered small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.powered b { font-size: 15px; }

/* admin */
.admin { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 32px; padding-block: 48px 80px; align-items: start; }
@media (max-width: 820px) { .admin { grid-template-columns: minmax(0,1fr); } }
.adm-list { display: grid; gap: 6px; }
.adm-item { text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; font: 700 15px/1.5 var(--f-body); color: var(--ink); cursor: pointer; display: grid; }
.adm-item small { font-weight: 400; font-size: 12px; color: var(--muted); }
.adm-item[aria-pressed="true"] { border-color: var(--court); box-shadow: inset 4px 0 0 var(--court); }
.adm-main { display: grid; gap: 20px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 22px; display: grid; gap: 14px; }
.panel h2 { margin: 0; font-family: var(--f-mincho); font-weight: 800; font-size: 22px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fld { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.fld input, .fld textarea, .sprow input { font: 400 15px/1.6 var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 9px 11px; width: 100%; min-width: 0; }
.fld input:focus, .fld textarea:focus, .sprow input:focus { border-color: var(--court); outline: none; box-shadow: 0 0 0 3px var(--wash); }
.sprow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 8px; }
.row-end { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--muted); font: 700 13px var(--f-body); padding: 7px 12px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--court); color: #fff; }
.ghostbtn { background: none; border: 1px dashed var(--court); color: var(--link); border-radius: 4px; padding: 9px; font: 700 14px var(--f-body); cursor: pointer; }

footer { background: var(--night); color: var(--on-dark-muted); padding-block: 36px; font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer a { color: var(--on-dark); }
.mockbar { background: var(--wash); color: var(--muted); font-size: 12px; text-align: center; padding: 6px 16px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* review banner on unpublished event pages */
.draftbar { background: var(--ball); color: var(--ball-ink); font-size: 13px; font-weight: 700; text-align: center; padding: 8px 16px; line-height: 1.6; }
