/* ==============================================================
   Tabidachi v3 spine + blocks (owner's design, approved 11 Nov 2026).
   Source: new-page-docs/design-import/v3/project/v3/v3.css; guide for builders: new-page-docs/v3-blocks.md.
   Opt in: <body class="v3"> and the page content inside <div class="wrap">. Every rule is scoped to
   `.v3 .wrap` (resets under :where(), so trip.js, hotel cards and other injected parts keep their own
   styles), so pages without the class look exactly as before.
   Not ported: the mock's header (.hd, .logo, .pill), footer (.ft), guide button (.fab) and Where next (.wn):
   the real chrome, hubnav.js and hubnav_sync.py's blocks do those jobs. Raw colours are mapped to tokens.
   Layout variables (--maxw --pad --rail --sec --gap --readw --colgap --hd) live on .v3, not :root.
   ===================================================================== */
/* ==============================================================
   Tabidachi v3 — one spine for every page
   Builds on v0-static/assets/redesign-tokens.css (tokens unchanged).
   Rules in one line each:
   1. One left edge. Every block starts at the content edge. Nothing is centred narrow.
   2. Two widths only: .read (prose, FAQ, tips: 720px) and full main column (cards, tables, maps).
   3. Desktop ≥1280: main column + 340px sticky Stay rail. Below that the rail folds into the page.
   4. Blue = clickable. Never blue for emphasis or labels.
   5. A bordered card with an arrow row is a link. A flat tinted panel is information.
   ===================================================================== */
:where(.v3 .wrap) *{box-sizing:border-box;margin:0;padding:0}

body.v3{overflow-x:clip;font-family:var(--sans);color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:where(.v3 .wrap) img{display:block;max-width:100%}
:where(.v3 .wrap) a{color:inherit;text-decoration:none}
:where(.v3 .wrap) button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

.v3{
  --maxw:1440px;                      /* content width cap: 1920 screens get 1440 + margins */
  --pad:clamp(16px,4vw,64px);         /* side gutter: 16 phone → 64 desktop */
  --rail:340px;
  --colgap:clamp(32px,4vw,64px);
  --sec:clamp(56px,7vw,96px);          /* between sections */
  --head:clamp(16px,2vw,24px);         /* section head → content */
  --gap:clamp(12px,1.4vw,20px);        /* card grid gap */
  --readw:720px;
  --hd:60px;
}

/* ---------- type ---------- */
.v3 .wrap .k{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3)}
/* a Japanese label next to its English or romaji (owner, 15 Nov 2026): light and grey wherever it sits, bold or not */
.v3 .wrap .jp{font-family:var(--jp);font-weight:400;font-style:normal;color:var(--ink-3);font-size:.9em;letter-spacing:0}
.v3 .wrap :is(b,strong,th,h3,h4,dt) .jp{font-weight:400;color:var(--ink-3)}
.v3 .wrap .num{font-family:var(--mono);font-feature-settings:'tnum'}
:where(.v3 .wrap) h1,:where(.v3 .wrap) h2,:where(.v3 .wrap) h3{font-weight:500;letter-spacing:-.02em;text-wrap:balance}
.v3 .wrap .h1{font-size:clamp(36px,4.6vw,64px);line-height:1;letter-spacing:-.035em}
.v3 .wrap .h2{font-size:clamp(26px,2.6vw,36px);line-height:1.1}
.v3 .wrap .h3{font-size:clamp(18px,1.5vw,21px);line-height:1.2;letter-spacing:-.01em}
.v3 .wrap .dek{font-size:clamp(16px,1.25vw,18px);color:var(--ink-2);line-height:1.5;text-wrap:pretty}
.v3 .wrap .prose p{color:var(--ink-2);font-size:16px;line-height:1.7;text-wrap:pretty}
.v3 .wrap .prose p+p{margin-top:14px}
.v3 .wrap .muted{color:var(--ink-3)}
.v3 .wrap .serif{font-family:var(--serif);font-style:italic;font-weight:400}

/* ---------- links (rule 4) ---------- */
.v3 .wrap .gl{color:var(--ink);font-weight:500;text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:1.5px;text-underline-offset:3px}
.v3 .wrap .gl:after{content:" →";color:var(--accent);font-size:.85em}
.v3 .wrap .gl:hover{color:var(--accent)}
.v3 .wrap .ext{color:var(--ink-2);text-decoration:underline dotted var(--ink-4);text-underline-offset:3px}
.v3 .wrap .ext:after{content:"↗";font-size:.75em;color:var(--ink-4);margin-left:2px}
.v3 .wrap .go{color:var(--accent);font-weight:500;font-size:13px}
.v3 .wrap .go:after{content:" →"}

/* ---------- buttons ---------- */
.v3 .wrap .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 16px;border-radius:var(--r-control);font-size:13.5px;font-weight:600;white-space:nowrap;transition:background .2s}
.v3 .wrap .btn--book{background:var(--ink);color:var(--paper)}            /* affiliate: always dark, always ↗ */
.v3 .wrap .btn--book:after{content:"↗";font-weight:400;opacity:.7}
.v3 .wrap .btn--book:hover{background:var(--ink-2)}
.v3 .wrap .btn--line{border:1px solid var(--rule-2);background:var(--surface);color:var(--ink)}
.v3 .wrap .btn--line:hover{border-color:var(--ink)}
.v3 .wrap .btn--accent{background:var(--accent);color:#fff}
.v3 .wrap .btn--sm{height:32px;padding:0 12px;font-size:12.5px}

/* ---------- frame ---------- */
.v3 .wrap{max-width:calc(var(--maxw) + var(--pad)*2);margin:0 auto;padding-inline:var(--pad)}
/* One left edge for the whole page: the shared chrome outside .wrap (header, season strip, rail, Where next,
   affiliate note, footer) sits on the same 1440 spine and gutter as the content, not the old 1200 container. */
.v3 .tb-header__inner,.v3 .tb-season-band__inner,.v3 .tb-rail-wrap,.v3 .tb-aff-note--foot{max-width:calc(var(--maxw) + var(--pad)*2);padding-left:var(--pad);padding-right:var(--pad);box-sizing:border-box}
.v3 .tb-footer,.v3 .hn-next{padding-left:var(--pad);padding-right:var(--pad)}
.v3 .tb-footer__inner,.v3 .hn-next__in{max-width:var(--maxw)}
.v3 .tb-aff-note--foot{text-align:left}
/* The pass band inside the main column takes the column's edge, not a second gutter. */
.v3 .main .tb-passband{padding-left:0;padding-right:0}
.v3 .main .tb-passband__inner{max-width:none}

/* MOBILE RULE M1 · header under 600px: logo, season kanji, menu. Nothing else.
   Why: at 360px the full row (logo + "Autumn" pill + Plan a trip + menu) is 1px wider than the screen and pushes the menu off the edge.
   "Plan a trip" moves into the ☰ menu; the season pill keeps only its kanji (same as approved Hub Navigation 05). */

.v3 .wrap .crumb{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding-block:14px;font-size:13px;color:var(--ink-3)}
.v3 .wrap .crumb a{color:var(--ink-2)}
.v3 .wrap .crumb a:hover{color:var(--accent)}
.v3 .wrap .crumb .sep{color:var(--ink-4)}
.v3 .wrap .crumb .r{margin-left:auto;font-family:var(--mono);font-size:11.5px}
@media (max-width:767px){.v3 .wrap .crumb .r{margin-left:0;width:100%}}

/* main + rail (rule 3) */
.v3 .wrap .layout{display:grid;grid-template-columns:minmax(0,1fr) var(--rail);column-gap:var(--colgap);align-items:start}
.v3 .wrap .main{min-width:0}
.v3 .wrap .main>section,.v3 .wrap .main>.sec{margin-top:var(--sec);scroll-margin-top:calc(var(--hd) + 20px)}
.v3 .wrap .main>section:first-child{margin-top:0}
.v3 .wrap .rail{position:sticky;top:calc(var(--hd) + 20px);display:flex;flex-direction:column;gap:14px}
.v3 .wrap .only-narrow{display:none}
@media (min-width:1280px){.v3 .wrap .main>.only-narrow:first-child+section{margin-top:0}}
@media (max-width:1279px){
  .v3 .wrap .layout{grid-template-columns:minmax(0,1fr)}
  .v3 .wrap .rail{display:none}
  .v3 .wrap .only-narrow{display:block}
}
.v3 .wrap .read{max-width:var(--readw)}

/* ---------- B04 section head ---------- */
.v3 .wrap .sh{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 32px;flex-wrap:wrap;margin-bottom:var(--head)}
.v3 .wrap .sh__t{display:flex;flex-direction:column;gap:6px;max-width:var(--readw)}
.v3 .wrap .sh__t .h2 .jp{font-size:.55em;color:var(--ink-3);margin-left:10px;letter-spacing:0}
.v3 .wrap .sh__t p{color:var(--ink-3);font-size:14.5px;text-wrap:pretty}
.v3 .wrap .sh__a{font-size:13.5px}

/* ---------- B01 spoke hero ---------- */
.v3 .wrap .sh-hero{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--colgap);align-items:stretch;padding-bottom:8px}
.v3 .wrap .sh-hero__t{display:flex;flex-direction:column;gap:16px;padding-top:8px}
.v3 .wrap .sh-hero__t .h1 .jp{display:block;font-size:.36em;color:var(--ink-3);letter-spacing:.02em;margin-top:10px}
.v3 .wrap .sh-hero__img{border-radius:var(--r-feature);min-height:340px;position:relative;overflow:hidden}
.v3 .wrap .sh-hero__img figcaption{position:absolute;left:14px;bottom:12px;font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:rgba(0,0,0,.45);padding:3px 8px;border-radius:4px}
.v3 .wrap .stamp{display:flex;gap:14px;flex-wrap:wrap;font-family:var(--mono);font-size:11.5px;color:var(--ink-3)}
.v3 .wrap .stamp b{color:var(--summer);font-weight:500}
@media (max-width:899px){
  .v3 .wrap .sh-hero{grid-template-columns:minmax(0,1fr)}
  .v3 .wrap .sh-hero__img{order:-1;min-height:0;aspect-ratio:16/9;border-radius:var(--r-card)}
}
@media (max-width:599px){
  .v3 .wrap .sh-hero__img{aspect-ratio:5/2}
}

/* ---------- B01b photo band (header v3 spec section 9) ----------
   Pages with a real hero photo: the photo runs full window width from the top of the page, only 300px high, with
   the kicker and the H1 on it; the breadcrumb row, dek, stats, Q&A and the stay strip follow in .wrap
   (scripts/hero_band.py writes the markup; hero_tone.py sets body[data-hero]). Pages with no photo keep the
   split .sh-hero and data-hero="none". */
.fb-hero{position:relative;isolation:isolate;overflow:hidden;color:#fff;height:clamp(280px,34vh,340px);background:var(--paper-3)}
@media (max-height:899px){.fb-hero{height:240px}}
@media (max-width:899px){.fb-hero{height:330px}}
/* only pages still on the old in-flow .tb-header: the band slides up under it (the new .tb-nav floats) */
.v3:not(.has-tb-nav) .tb-header+.fb-hero{margin-top:-72px}
@media (max-width:899px){.v3:not(.has-tb-nav) .tb-header+.fb-hero{margin-top:-58px}}
.fb-hero__img{position:absolute;inset:0;margin:0;background-color:var(--paper-3);background-size:cover;background-repeat:no-repeat;background-position:var(--focus,50% 40%)}
.fb-hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(rgba(0,0,0,.30),transparent 34%,transparent 48%,rgba(0,0,0,.62))}
.fb-hero__on{position:absolute;left:0;right:0;bottom:22px;z-index:2}
.v3 .fb-hero__on.wrap .k{display:block;color:rgba(255,255,255,.85);text-shadow:0 1px 8px rgba(0,0,0,.4)}
.v3 .fb-hero__on.wrap .h1{margin-top:8px;color:#fff;font-size:clamp(34px,4.2vw,60px);text-shadow:0 1px 18px rgba(0,0,0,.35)}
.v3 .fb-hero__on.wrap .h1 .jp{display:block;margin-top:8px;font-size:.36em;color:rgba(255,255,255,.88);letter-spacing:.02em}
.v3 .fb-hero__img figcaption{position:absolute;z-index:2;right:max(var(--pad),calc((100% - var(--maxw))/2));bottom:12px;max-width:min(46ch,50%);font-family:var(--mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase;line-height:1.35;color:#fff;background:rgba(0,0,0,.45);padding:3px 8px;border-radius:4px}
.v3 .fb-hero__img figcaption:empty{display:none}
.fb-hero__sent{position:absolute;left:0;bottom:0;width:1px;height:1px;pointer-events:none}
@media (max-width:899px){
  /* caption top-right, under the search button */
  .v3 .fb-hero__img figcaption{top:64px;bottom:auto;right:16px;max-width:56%;text-align:right}
}
/* what was under the H1 in the split hero: one column under the band */
.v3 .wrap .sh-hero--fb{display:block;padding-bottom:8px}
.v3 .wrap .sh-hero--fb .sh-hero__t{padding-top:0;max-width:none}
.v3 .wrap .sh-hero--fb .dek{max-width:var(--readw)}

/* ---------- page morph (header v3 spec section 10): cross-document view transition ---------- */
@view-transition{navigation:auto}
.fb-hero__img{view-transition-name:hero}
::view-transition-group(hero){animation-duration:.55s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
::view-transition-old(root),::view-transition-new(root){animation-duration:.25s}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}

/* ---------- B02 stat strip ---------- */
.v3 .wrap .stats{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.v3 .wrap .stat{display:flex;flex-direction:column;gap:3px;padding:14px 18px 16px;border-left:1px solid var(--rule);min-width:0}
.v3 .wrap .stat:first-child{border-left:0}
.v3 .wrap .stat .k{font-size:10.5px}
.v3 .wrap .stat b{font-size:clamp(22px,2vw,28px);font-weight:500;letter-spacing:-.02em;line-height:1.1;font-feature-settings:'tnum'}
.v3 .wrap .stat b small{font-size:13px;color:var(--ink-3);font-weight:400;margin-left:3px;letter-spacing:0}
.v3 .wrap .stat span{font-size:12.5px;color:var(--ink-3);line-height:1.35}
.v3 .wrap .stat b span:not(.yen__fx){font-size:inherit;color:inherit;line-height:inherit}
.v3 .wrap a.stat{color:var(--ink);transition:background .2s}
.v3 .wrap a.stat:hover{background:var(--accent-soft)}
.v3 .wrap a.stat .go{margin-top:auto;padding-top:6px;font-size:12.5px}
@media (max-width:767px){
  .v3 .wrap .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v3 .wrap .stat:nth-child(2n+1){border-left:0}
  .v3 .wrap .stat:nth-child(n+3){border-top:1px solid var(--rule)}
  .v3 .wrap .stat{padding:12px 14px}
}

/* ---------- B03 quick answers ---------- */
.v3 .wrap .qa{display:grid;gap:0;border-top:1px solid var(--rule)}
.v3 .wrap .qa>div{display:grid;grid-template-columns:150px 1fr;gap:16px;padding:10px 0;border-bottom:1px solid var(--rule);font-size:14.5px}
.v3 .wrap .qa dt{font-weight:500}
.v3 .wrap .qa dd{color:var(--ink-2)}
@media (max-width:599px){.v3 .wrap .qa>div{grid-template-columns:minmax(0,1fr);gap:2px}}

/* ---------- B06 key-value / schedule ---------- */
.v3 .wrap .kv{display:grid;grid-template-columns:repeat(var(--n,2),minmax(0,1fr));gap:var(--gap)}
.v3 .wrap .panel{background:var(--paper-2);border-radius:var(--r-card);padding:18px 20px}   /* flat = info, not a link */
.v3 .wrap .panel h3{font-size:15px;font-weight:600;letter-spacing:0;margin-bottom:10px;display:flex;justify-content:space-between;gap:10px}
.v3 .wrap .panel h3 .k{font-weight:500}
.v3 .wrap .rows{display:grid}
.v3 .wrap .rows>div{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-top:1px solid var(--rule);font-size:14px}
.v3 .wrap .rows>div:first-child{border-top:0}
.v3 .wrap .rows dt{color:var(--ink-2)}
.v3 .wrap .rows dd{font-family:var(--mono);font-size:13px;text-align:right;color:var(--ink)}
.v3 .wrap .rows dd.free{color:var(--summer);font-weight:500}
@media (max-width:899px){.v3 .wrap .kv{grid-template-columns:minmax(0,1fr)}}

/* ---------- card grids ---------- */
.v3 .wrap .grid{display:grid;grid-template-columns:repeat(var(--c,3),minmax(0,1fr));gap:var(--gap)}
@media (min-width:1700px){.v3 .wrap .grid--x4{--c:4}}
/* force the column count down even when a page sets --c inline */
@media (max-width:1023px){.v3 .wrap .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:599px){.v3 .wrap .grid{grid-template-columns:minmax(0,1fr)}}
/* swipe row on phones (stay cards, sights) */
@media (max-width:767px){
  .v3 .wrap .swipe{display:grid;grid-auto-flow:column;grid-auto-columns:82%;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:calc(var(--pad)*-1);padding-inline:var(--pad);scroll-padding-inline:var(--pad);gap:12px;scrollbar-width:none}
  .v3 .wrap .swipe>*{scroll-snap-align:start}
}
.v3 .wrap .img{background:var(--paper-3) center/cover no-repeat}

/* ---------- B08 stay card (affiliate) ---------- */
.v3 .wrap .stay{display:flex;flex-direction:column;border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);overflow:hidden;transition:border-color .2s,transform .2s}
.v3 .wrap .stay:hover{border-color:var(--ink);transform:translateY(-2px)}
.v3 .wrap .stay .img{aspect-ratio:3/2;position:relative}
.v3 .wrap .tag{position:absolute;top:10px;left:10px;font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;background:var(--surface);color:var(--ink);padding:4px 8px;border-radius:999px}
.v3 .wrap .stay__b{padding:14px 16px 16px;display:flex;flex-direction:column;gap:4px;flex:1}
.v3 .wrap .stay__n{font-size:16px;font-weight:500;line-height:1.25}
.v3 .wrap .stay__m{font-size:12.5px;color:var(--ink-3)}
.v3 .wrap .stay__m .jp{display:block;margin:0 0 2px}
.v3 .wrap .stay__w{font-size:13.5px;color:var(--ink-2);line-height:1.45;margin-top:4px}
.v3 .wrap .chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.v3 .wrap .chip{font-size:11.5px;padding:3px 8px;border-radius:999px;background:var(--paper-2);color:var(--ink-2);border:1px solid var(--rule)}
.v3 .wrap .chip--walk{background:var(--accent-soft);border-color:transparent;color:var(--accent-ink)}
.v3 .wrap .stay__f{margin-top:auto;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.v3 .wrap .price{display:flex;flex-direction:column;line-height:1.15}
.v3 .wrap .price small{font-size:11px;color:var(--ink-3)}
.v3 .wrap .price b{font-size:16px;font-weight:600;font-feature-settings:'tnum'}
.v3 .wrap .stay .btn{flex:0 0 auto}

/* ---------- B09 guide link card (internal) ---------- */
.v3 .wrap .lc{display:flex;flex-direction:column;border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);overflow:hidden;color:var(--ink);transition:border-color .2s,transform .2s}
.v3 .wrap .lc:hover{border-color:var(--ink);transform:translateY(-2px)}
.v3 .wrap .lc .img{aspect-ratio:16/10}
.v3 .wrap .lc__b{padding:12px 14px 14px;display:flex;flex-direction:column;gap:4px;flex:1}
.v3 .wrap .lc__t{font-weight:500;font-size:15.5px;line-height:1.25}
.v3 .wrap .lc__t .jp{font-size:.85em;color:var(--ink-3);margin-left:6px}
.v3 .wrap .lc__m{font-size:13px;color:var(--ink-3);line-height:1.4}
.v3 .wrap .lc__go{margin-top:auto;padding-top:10px;display:flex;justify-content:space-between;align-items:baseline;font-size:12.5px;font-weight:500;color:var(--accent)}
.v3 .wrap .lc__go span{font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-4);font-weight:400}

/* ---------- B10 sight / feature (info, image left) ---------- */
.v3 .wrap .sight{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(16px,2.4vw,32px);align-items:start;padding-block:clamp(16px,2vw,24px);border-top:1px solid var(--rule)}
.v3 .wrap .sight:first-child{border-top:0;padding-top:0}
.v3 .wrap .sight .img{aspect-ratio:4/3;border-radius:var(--r-card)}
.v3 .wrap .sight__b{display:flex;flex-direction:column;gap:8px}
.v3 .wrap .sight__b .k{display:flex;gap:10px}
.v3 .wrap .sight__b p{color:var(--ink-2);font-size:15px;line-height:1.65;text-wrap:pretty}
.v3 .wrap .facts{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;color:var(--ink-3);margin-top:2px}
.v3 .wrap .facts b{color:var(--ink);font-weight:500}
@media (max-width:767px){.v3 .wrap .sight{grid-template-columns:minmax(0,1fr)}.v3 .wrap .sight .img{aspect-ratio:16/9}}

/* ---------- B11 compact sight list (the "beyond the headline" items) ---------- */
.v3 .wrap .mini-list{display:grid;grid-template-columns:repeat(var(--c,2),minmax(0,1fr));gap:0 var(--colgap);border-top:1px solid var(--rule)}
.v3 .wrap .mini-list>div{display:grid;grid-template-columns:72px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid var(--rule);align-items:start}
.v3 .wrap .mini-list .img{height:56px;border-radius:8px}
.v3 .wrap .mini-list b{font-weight:500;font-size:14.5px;display:block}
.v3 .wrap .mini-list b .jp{font-size:.85em;color:var(--ink-3);margin-left:6px}
.v3 .wrap .mini-list span{font-size:13px;color:var(--ink-3);line-height:1.4}
@media (max-width:767px){.v3 .wrap .mini-list{--c:1}}

/* ---------- B07 data table ---------- */
.v3 .wrap .tbl{border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);overflow:auto}
.v3 .wrap .tbl table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:680px}
.v3 .wrap .tbl th{font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);font-weight:500;text-align:left;padding:10px 14px;background:var(--paper-2);border-bottom:1px solid var(--rule)}
.v3 .wrap .tbl td{padding:11px 14px;border-bottom:1px solid var(--rule);vertical-align:top;color:var(--ink-2)}
.v3 .wrap .tbl tr:last-child td{border-bottom:0}
.v3 .wrap .tbl td:first-child{color:var(--ink);font-weight:500;white-space:nowrap}
.v3 .wrap .tbl td:first-child .jp{color:var(--ink-3);font-weight:400;margin-left:4px}
.v3 .wrap .tbl td.n{font-family:var(--mono);font-size:12.5px;white-space:nowrap}
.v3 .wrap .tbl tr.hi td{background:color-mix(in oklch,var(--accent) 5%,var(--surface))}
.v3 .wrap .dotg{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--summer);margin-right:6px}
.v3 .wrap .doty{background:var(--autumn)}
.v3 .wrap .dotn{background:var(--ink-4)}
/* table → cards on phones */
@media (max-width:767px){
  .v3 .wrap .tbl--cards{border:0;background:none;overflow:visible}
  .v3 .wrap .tbl--cards table,.v3 .wrap .tbl--cards tbody,.v3 .wrap .tbl--cards tr,.v3 .wrap .tbl--cards td{display:block;min-width:0}
  .v3 .wrap .tbl--cards thead{display:none}
  .v3 .wrap .tbl--cards tr{border:1px solid var(--rule);border-radius:12px;background:var(--surface);padding:10px 14px;margin-bottom:8px}
  .v3 .wrap .tbl--cards td{border:0;padding:3px 0}
  .v3 .wrap .tbl--cards td[data-l]:before{content:attr(data-l);font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-4);display:inline-block;width:92px}
}

/* ---------- B12 numbered tips ---------- */
.v3 .wrap .tips{counter-reset:t;display:grid;border-top:1px solid var(--rule)}
.v3 .wrap .tips li{list-style:none;counter-increment:t;display:grid;grid-template-columns:40px 1fr;gap:4px 12px;padding:14px 0;border-bottom:1px solid var(--rule)}
.v3 .wrap .tips li:before{content:counter(t,decimal-leading-zero);font-family:var(--mono);font-size:12px;color:var(--ink-3);padding-top:3px;grid-row:span 2}
.v3 .wrap .tips b{font-weight:600;grid-column:2}
.v3 .wrap .tips span{color:var(--ink-2);font-size:14.5px;grid-column:2}

/* ---------- B13 callout ---------- */
.v3 .wrap .callout{display:grid;grid-template-columns:auto 1fr;gap:14px;border-radius:var(--r-card);padding:16px 18px;background:color-mix(in oklch,var(--autumn) 10%,var(--surface));border:1px solid color-mix(in oklch,var(--autumn) 35%,var(--surface));font-size:14.5px;color:var(--ink-2)}
.v3 .wrap .callout>i{font-style:normal;font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;color:var(--autumn);padding-top:3px}
.v3 .wrap .callout b{color:var(--ink)}
.v3 .wrap .callout--risk{background:color-mix(in oklch,var(--thunder) 9%,var(--surface));border-color:color-mix(in oklch,var(--thunder) 32%,var(--surface))}
.v3 .wrap .callout--risk>i{color:color-mix(in oklch,var(--thunder) 70%,var(--ink))}

/* ---------- B14 price ladder ---------- */
.v3 .wrap .ladder{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.v3 .wrap .ladder>div{padding:16px 18px;border-left:1px solid var(--rule);display:flex;flex-direction:column;gap:6px}
.v3 .wrap .ladder>div:first-child{border-left:0}
.v3 .wrap .ladder b{font-size:20px;font-weight:500;font-feature-settings:'tnum';letter-spacing:-.01em}
.v3 .wrap .ladder span{font-size:13px;color:var(--ink-3);line-height:1.4}
.v3 .wrap .ladder .bar{height:4px;border-radius:4px;background:var(--paper-3);position:relative;margin:4px 0 2px}
.v3 .wrap .ladder .bar i{position:absolute;top:0;bottom:0;border-radius:4px;background:var(--accent)}
@media (max-width:899px){.v3 .wrap .ladder{grid-template-columns:repeat(2,minmax(0,1fr))}.v3 .wrap .ladder>div:nth-child(3){border-left:0}.v3 .wrap .ladder>div:nth-child(n+3){border-top:1px solid var(--rule)}}
/* phones: a ¥XX,XXX–¥XX,XXX range always stays on one line */
@media (max-width:599px){.v3 .wrap .ladder>div{padding:12px 12px 14px}.v3 .wrap .ladder b{font-size:clamp(14px,4.2vw,17px);white-space:nowrap;letter-spacing:-.02em}}

/* ---------- B15 date / event card (info unless it has a .go row) ---------- */
.v3 .wrap .ev{display:grid;grid-template-columns:64px 1fr;gap:16px;padding:16px 18px;border-radius:var(--r-card);background:var(--paper-2)}
.v3 .wrap .ev__d{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:10px;background:var(--surface);border:1px solid var(--rule);height:64px;line-height:1}
.v3 .wrap .ev__d b{font-size:22px;font-weight:500;font-feature-settings:'tnum'}
.v3 .wrap .ev__d small{font-family:var(--mono);font-size:10px;letter-spacing:.08em;color:var(--ink-3);margin-top:4px}
.v3 .wrap .ev h3{font-size:16px;font-weight:500;letter-spacing:0}
.v3 .wrap .ev h3 .jp{font-size:.85em;color:var(--ink-3);margin-left:6px}
.v3 .wrap .ev p{font-size:13.5px;color:var(--ink-2);margin-top:4px}
.v3 .wrap .ev .facts{margin-top:8px}
.v3 .wrap .ev>div{min-width:0}
/* phones: date sits on top as a pill, content full width underneath */
@media (max-width:599px){
  .v3 .wrap .ev{grid-template-columns:minmax(0,1fr);gap:10px;padding:14px 16px}
  .v3 .wrap .ev__d{flex-direction:row;align-items:baseline;justify-content:flex-start;gap:6px;height:auto;width:max-content;padding:5px 12px;border-radius:999px}
  .v3 .wrap .ev__d b{font-size:17px}
  .v3 .wrap .ev__d small{margin-top:0}
}

/* ---------- B16 route rows (getting there) ---------- */
.v3 .wrap .route{display:grid;border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.v3 .wrap .route>div{display:grid;grid-template-columns:minmax(0,1.3fr) 90px 90px minmax(0,1fr);gap:16px;align-items:center;padding:14px 18px;border-top:1px solid var(--rule);font-size:14px}
.v3 .wrap .route>div:first-child{border-top:0}
.v3 .wrap .route b{font-weight:500}
.v3 .wrap .route small{display:block;font-size:12.5px;color:var(--ink-3)}
.v3 .wrap .route .t,.v3 .wrap .route .p{font-family:var(--mono);font-size:13px}
.v3 .wrap .line-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ink-2)}
.v3 .wrap .line-chip i{width:10px;height:4px;border-radius:2px;background:var(--hakutaka)}
.v3 .wrap .pass{display:inline-block;font-family:var(--mono);font-size:10px;letter-spacing:.06em;padding:2px 6px;border-radius:4px;border:1px solid var(--jr);color:var(--summer);margin:2px 4px 0 0}
@media (max-width:767px){.v3 .wrap .route>div{grid-template-columns:1fr auto;gap:4px 12px}.v3 .wrap .route .p{text-align:right}.v3 .wrap .route>div>:last-child{grid-column:1/-1}}

/* ---------- B18 FAQ ---------- */
.v3 .wrap .faq{border-top:1px solid var(--rule)}
.v3 .wrap .faq details{border-bottom:1px solid var(--rule)}
.v3 .wrap .faq summary{list-style:none;display:flex;justify-content:space-between;gap:16px;padding:16px 0;font-weight:500;font-size:16px;cursor:pointer}
.v3 .wrap .faq summary::-webkit-details-marker{display:none}
.v3 .wrap .faq summary:after{content:"+";font-weight:300;font-size:22px;line-height:1;color:var(--ink-3)}
.v3 .wrap .faq details[open] summary:after{content:"–"}
.v3 .wrap .faq details>div{padding:0 0 18px;color:var(--ink-2);font-size:15px;line-height:1.65;max-width:68ch}

/* ---------- rail ---------- */
.v3 .wrap .rc{border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);padding:16px}
.v3 .wrap .rc>.k{display:flex;justify-content:space-between;margin-bottom:10px}
.v3 .wrap .rh{display:grid;grid-template-columns:64px 1fr;gap:12px;padding:10px 0;border-top:1px solid var(--rule);align-items:center}
.v3 .wrap .rh:first-child{border-top:0;padding-top:0}
.v3 .wrap .rh .img{height:56px;border-radius:8px}
.v3 .wrap .rh b{display:block;font-weight:500;font-size:14px;line-height:1.25}
.v3 .wrap .rh small{display:block;font-size:12px;color:var(--ink-3)}
.v3 .wrap .rh .btn{margin-top:6px}
.v3 .wrap .rh-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.v3 .wrap .rh-row .num{font-size:12.5px}
.v3 .wrap .toc{display:flex;flex-direction:column;font-size:13.5px}
.v3 .wrap .toc a{display:flex;justify-content:space-between;padding:6px 10px;border-left:2px solid var(--rule);color:var(--ink-2)}
.v3 .wrap .toc a:hover{color:var(--ink);border-left-color:var(--ink-4)}
.v3 .wrap .toc a.on{border-left-color:var(--accent);color:var(--ink);font-weight:500;background:var(--paper-2)}
.v3 .wrap .toc a em{font-style:normal;font-family:var(--mono);font-size:10.5px;color:var(--ink-4)}
.v3 .wrap .rc--next{display:grid;grid-template-columns:56px 1fr;gap:12px;align-items:center;color:var(--ink)}
.v3 .wrap .rc--next .img{height:48px;border-radius:8px}
.v3 .wrap .rc--next b{font-weight:500;font-size:14px;display:block}
.v3 .wrap .rc--next small{font-size:12px;color:var(--accent);font-weight:500}

/* ---------- B17 stay strip (narrow screens: the rail's hotels inline) ---------- */
.v3 .wrap .strip{border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);padding:14px}
.v3 .wrap .strip__h{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.v3 .wrap .strip__l{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:767px){.v3 .wrap .strip__l{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:78%;overflow-x:auto;scroll-snap-type:x mandatory}.v3 .wrap .strip__l>*{scroll-snap-align:start}}

/* ---------- where next + footer (from Hub Navigation Final) ---------- */

.v3 .wrap .sub{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;font-weight:600;margin:32px 0 12px}
.v3 .wrap .line{display:flex;align-items:flex-start;border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);padding:22px 20px 18px;position:relative;overflow-x:auto}
.v3 .wrap .line:before{content:"";position:absolute;left:48px;right:48px;top:29px;height:3px;background:linear-gradient(90deg,var(--hakutaka),var(--accent))}
.v3 .wrap .st{flex:1 0 84px;display:flex;flex-direction:column;align-items:center;gap:6px;position:relative;color:var(--ink);text-align:center}
.v3 .wrap .st i{width:14px;height:14px;border-radius:50%;background:var(--surface);border:3px solid var(--ink)}
.v3 .wrap .st.here i{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 5px var(--accent-soft)}
.v3 .wrap .st b{font-size:14px;font-weight:500}
.v3 .wrap .st small{font-family:var(--mono);font-size:11px;color:var(--ink-3)}
.v3 .wrap .st u{text-decoration:none;font-size:12px;color:var(--accent)}

/* ---------- mobile guide button (approved, Hub Navigation 03) ---------- */

/* ---------- utilities ---------- */
.v3 .wrap .mt-s{margin-top:12px}.v3 .wrap .mt-m{margin-top:20px}.v3 .wrap .mt-l{margin-top:32px}
.v3 .wrap .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* ==============================================================
   MOBILE RULES (phones < 600px unless stated). Each rule says what changes
   from desktop and why. Full list with pictures: "v3 Block System" § 07,
   and v3/MOBILE_RULES.md. Do not undo these when porting.
   ===================================================================== */

/* M5 · Guide cards (.lc) inside a grid become compact rows: 96px thumb left, text right.
   Why: 57% of sessions are phones. A full-width 16:10 photo per link turned "More in Kanazawa"
   into four screens of scrolling for four links. The row keeps the photo as a cue, not a poster. */
@media (max-width:599px){
  .v3 .wrap .grid>.lc{display:grid;grid-template-columns:96px minmax(0,1fr)}
  .v3 .wrap .grid>.lc .img{aspect-ratio:auto;height:100%;min-height:84px}
  .v3 .wrap .grid>.lc .lc__b{padding:10px 12px}
  .v3 .wrap .grid>.lc .lc__go{padding-top:6px}
}

/* M6 · Tables become labelled cards (.tbl--cards). The highlight moves from the cells to the whole card.
   Why: a 680px table on a 360px screen hides the columns that matter behind a sideways scroll. */
@media (max-width:767px){
  .v3 .wrap .tbl--cards tr.hi{background:color-mix(in oklch,var(--accent) 6%,var(--surface));border-color:color-mix(in oklch,var(--accent) 30%,var(--rule))}
  .v3 .wrap .tbl--cards tr.hi td{background:none}
  /* Cells wrap inside the card: nowrap first cells and long fare/name strings pushed cards to 460–680px. */
  .v3 .wrap .tbl--cards table{width:100%}
  .v3 .wrap .tbl--cards td,.v3 .wrap .tbl--cards td:first-child,.v3 .wrap .tbl--cards td.n{white-space:normal;overflow-wrap:anywhere}
  .v3 .wrap .tbl--cards td *{max-width:100%}
}

/* M9 · Route rows: two lines instead of four columns.
   Line 1 = leg name + time (right). Line 2 = note/pass chips + fare (right).
   Why: four columns at 360px gave the fare 40px and broke "Bus fare" onto two lines. */
@media (max-width:767px){
  .v3 .wrap .route>div{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
  .v3 .wrap .route .t{grid-column:2;grid-row:1;text-align:right}
  .v3 .wrap .route .p{grid-column:2;grid-row:2;text-align:right;align-self:center}
  .v3 .wrap .route>div>:last-child{grid-column:1;grid-row:2}
}

/* M12 · The guide button (.fab) floats over the page, so the page ends with 80px of space.
   Why: without it the button covers the last footer links. */

/* M16 · Tap targets: small buttons grow to 40px high on phones.
   Why: 32px "Check rates" buttons are below the 40–44px comfortable tap size; these are the money clicks. */
@media (max-width:599px){.v3 .wrap .btn--sm{height:40px;padding:0 14px;font-size:13px}}

/* M17 · Card action rows (.lc__go): the grey meta label hides when the card is narrower than 300px.
   Why: "Peak dates" + "UNTIL LATE NOV" wrapped into four broken lines. The link is what matters. */
.v3 .wrap .lc{container-type:inline-size}
@container (max-width:300px){.v3 .wrap .lc__go span{display:none}}

/* M18 · Section head: the action link sits under the dek, left aligned (never right-floated alone). */
@media (max-width:599px){.v3 .wrap .sh{flex-direction:column;align-items:flex-start;gap:10px}}

/* M21 · The Shinkansen line scrolls sideways on phones and fades at the right edge.
   Why: 7–9 stops at 84px each don't fit 360px; the fade shows there's more to swipe instead of a hard cut-off name. */
@media (max-width:767px){.v3 .wrap .line,.v3 .wrap .hline{-webkit-mask-image:linear-gradient(90deg,#fff 85%,transparent);mask-image:linear-gradient(90deg,#fff 85%,transparent)}}

/* ==============================================================
   B22 · MAP + STAYS (Stay22 sights-and-hotels map)
   One per page, inside the Stay section, replacing the 3 big stay cards on pages that have a map.
   Collapsed ("half block"): map 7/12 left, the 3 picks 5/12 right. Expand button = theatre mode:
   the map takes the whole main column at 16:9 and the picks sit in a row underneath. Esc or the
   button collapses it. The live iframe loads only when the block is within one screen (lazy).
   Phones (M22): no live map in the page. A poster with "Open the live map" opens a full-screen sheet.
   Why: an embedded map swallows one-finger scrolling on phones, so people get stuck in it.
   ===================================================================== */
.v3 .wrap .ms{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--gap);align-items:stretch}
.v3 .wrap .ms__map{position:relative;border-radius:var(--r-card);overflow:hidden;border:1px solid var(--rule);background:var(--paper-3) center/cover no-repeat;min-height:420px}
.v3 .wrap .ms__map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.v3 .wrap .ms__top{position:absolute;left:12px;right:12px;top:12px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;pointer-events:none}
.v3 .wrap .ms__top>*{pointer-events:auto}
.v3 .wrap .ms__badge{display:flex;flex-direction:column;gap:6px;background:rgba(255,255,255,.94);backdrop-filter:blur(6px);border:1px solid var(--rule);border-radius:10px;padding:8px 12px;box-shadow:0 6px 18px -10px rgba(0,0,0,.35)}
.v3 .wrap .ms__badge b{font-size:13.5px;font-weight:600}
.v3 .wrap .ms__live{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--summer)}
.v3 .wrap .ms__live:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--summer);box-shadow:0 0 0 3px color-mix(in oklch,var(--summer) 25%,transparent)}
.v3 .wrap .ms__legend{display:flex;gap:12px;font-size:12px;color:var(--ink-2)}
.v3 .wrap .ms__legend i{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:var(--accent);color:#fff;font-style:normal;font-size:9px;margin-right:5px;vertical-align:-3px}
.v3 .wrap .ms__legend i.p{border-radius:4px;background:#fff;color:var(--ink);border:1px solid var(--rule-2);width:auto;padding:0 4px;font-family:var(--mono)}
.v3 .wrap .ms__x{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 12px 0 10px;border-radius:999px;background:color-mix(in srgb,var(--ink) 86%,transparent);color:#fff;font-size:13px;font-weight:600;box-shadow:0 6px 18px -8px rgba(0,0,0,.5)}
.v3 .wrap .ms__x svg{width:16px;height:16px}
.v3 .wrap .ms__x:hover{background:var(--ink-2)}
.v3 .wrap .ms__foot{position:absolute;left:12px;bottom:12px;font-size:11.5px;color:var(--ink-2);background:rgba(255,255,255,.9);border-radius:6px;padding:4px 8px}
.v3 .wrap .ms__open{display:none}
.v3 .wrap .ms__list{display:flex;flex-direction:column;border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);padding:6px 16px}
.v3 .wrap .ms__list .k{padding:10px 0 4px;display:flex;justify-content:space-between}
.v3 .wrap .ms__list .rh{padding:12px 0;border-top:1px solid var(--rule)}
.v3 .wrap .ms__list .rh:first-child{border-top:0}
.v3 .wrap .ms__list .rh .img{height:72px}
.v3 .wrap .ms__list .rh{grid-template-columns:96px 1fr}
.v3 .wrap .ms__list .more{margin-top:auto;padding:12px 0;border-top:1px solid var(--rule);font-size:13px}
/* theatre mode */
.v3 .wrap .ms.is-wide{grid-template-columns:minmax(0,1fr)}
.v3 .wrap .ms.is-wide .ms__map{min-height:0;aspect-ratio:16/9}
.v3 .wrap .ms.is-wide .ms__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 var(--gap);padding:6px 16px 10px}
.v3 .wrap .ms.is-wide .ms__list>.k,.v3 .wrap .ms.is-wide .ms__list>.more{grid-column:1/-1}
.v3 .wrap .ms.is-wide .ms__list .rh{border-top:0}
.v3 .wrap .ms .ms__x .lbl-in{display:none}
.v3 .wrap .ms.is-wide .ms__x .lbl-in{display:inline}
.v3 .wrap .ms.is-wide .ms__x .lbl-out{display:none}
/* tablet: map on top (16:10), list below */
@media (max-width:1023px){
  .v3 .wrap .ms{grid-template-columns:minmax(0,1fr)}
  .v3 .wrap .ms__map{min-height:0;aspect-ratio:16/10}
  .v3 .wrap .ms .ms__x{display:none}
}
/* M22 · phones: poster + "Open the live map" → full-screen sheet; no iframe in the page */
@media (max-width:767px){
  .v3 .wrap .ms__map iframe{display:none}
  .v3 .wrap .ms__map{aspect-ratio:4/3}
  .v3 .wrap .ms__open{display:flex;position:absolute;left:12px;right:12px;bottom:12px;justify-content:center;align-items:center;gap:8px;height:48px;border-radius:12px;background:var(--ink);color:var(--paper);font-weight:600;font-size:15px;box-shadow:0 10px 24px -10px rgba(0,0,0,.5)}
  .v3 .wrap .ms__foot{display:none}
  .v3 .wrap .ms__legend{display:none}
}
.v3 .wrap .ms-sheet{position:fixed;inset:0;z-index:50;background:var(--paper);display:none;flex-direction:column}
.v3 .wrap .ms-sheet.is-open{display:flex}
.v3 .wrap .ms-sheet__hd{display:flex;align-items:center;justify-content:space-between;gap:10px;height:56px;padding:0 12px 0 16px;border-bottom:1px solid var(--rule)}
.v3 .wrap .ms-sheet__hd b{font-size:15px;font-weight:600}
.v3 .wrap .ms-sheet__hd button{width:40px;height:40px;border-radius:50%;background:var(--paper-3);font-size:18px}
.v3 .wrap .ms-sheet__map{flex:1;background:var(--paper-3) center/cover no-repeat;position:relative}
.v3 .wrap .ms-sheet__picks{display:grid;grid-auto-flow:column;grid-auto-columns:82%;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--rule);background:var(--surface)}
.v3 .wrap .ms-sheet__picks .rh{scroll-snap-align:start;border:1px solid var(--rule);border-radius:12px;padding:8px;grid-template-columns:72px 1fr}
.v3 .wrap .ms-sheet__picks .rh .img{height:60px}
/* rail link into the map */
.v3 .wrap .rc .maplink{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--rule);font-size:13px;font-weight:500;color:var(--accent)}
.v3 .wrap .rc .maplink svg{width:15px;height:15px}
/* While the map + stays block is on screen the rail's hotel card steps back (same three hotels side by side reads as a glitch). */
.v3 .wrap .rc--stays{transition:opacity .25s}
body.v3.ms-in-view .wrap .rc--stays{opacity:.25;pointer-events:none}
.v3 .wrap .ms{scroll-margin-top:calc(var(--hd) + 16px)}
.v3 .wrap .ms__open svg{width:18px;height:18px;flex:0 0 auto}
.v3 .wrap .ms__list .rh,.v3 .wrap .ms-sheet__picks .rh{grid-template-columns:96px minmax(0,1fr)}.v3 .wrap .ms-sheet__picks .rh{grid-template-columns:72px minmax(0,1fr)}.v3 .wrap .ms__list .rh-row,.v3 .wrap .ms-sheet__picks .rh-row{flex-wrap:wrap;gap:6px 8px}

/* ---------- site integration (not in the mock) ---------- */
/* Body type of the mock, kept inside the content so the real header and footer keep theirs. */
.v3 .wrap{font-size:15px;line-height:1.55}
/* MOBILE RULE M1 on the real header (.tb-header): under 600px only logo, season kanji chip and menu.
   Why: as in the mock, the full row does not fit 360px. The language link is copied into the menu drawer
   by redesign-mobile-nav.js and search sits in the drawer foot; Plan a trip goes with them. */
@media (max-width:599px){
  .v3 .tb-header__actions .tb-btn,.v3 .tb-header__actions .tb-lang{display:none}
}
/* v3 hotel cards (.rh) are <article class="rh" data-hotel> for hotel_sync.py: photo "rh__img img" (a link to
   Agoda once synced), name h4.rh__name, button a.rh__book. Same look as the mock's span/b markup. */
.v3 .wrap .rh .rh__img{display:block}
.v3 .wrap .rh__name{display:block;font-weight:500;font-size:14px;line-height:1.25;letter-spacing:0}
.v3 .wrap .rh>div{min-width:0}
/* B17 strip on phones: the cards swipe (M-rule in the strip block above); the sheet's picks are cloned by JS. */
/* trip.js "Add to trip" on the small .rh thumbnails: a smaller button so it does not cover the photo. */
.v3 .wrap .rh .tbt-save--card{transform:scale(.72);transform-origin:top right}
.v3 .wrap .rh .rh__img{position:relative}
/* B11 without thumbnails (.mini-list--text): items that have no photo of their own. */
.v3 .wrap .mini-list--text>div{grid-template-columns:minmax(0,1fr)}
.v3 .wrap .mini-list--text>div>span>span{display:block;margin-top:2px}
/* Flat info panels (B06) may hold a short paragraph instead of rows. */
.v3 .wrap .panel p{font-size:14px;line-height:1.55}
/* B22 with the live map (not in the mock, which only showed the poster): once the iframe has loaded
   (.is-live, set by redesign-v3.js) our badge and hint step aside, because Stay22 draws its own search bar,
   legend and buttons in those corners. Expand / Shrink stays. */
.v3 .wrap .ms__map.is-live .ms__badge,.v3 .wrap .ms__map.is-live .ms__foot{display:none}
.v3 .wrap .ms__map.is-live .ms__top{right:auto;top:auto;bottom:36px;left:12px}
/* B22 phone sheet: above the hubnav guide button and toasts; long pick copy clamps to two lines. */
.v3 .wrap .ms-sheet{z-index:1200}
.v3 .wrap .ms-sheet__picks .rh small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.v3 .wrap .ms-sheet__picks .rh small .go{display:none}
/* B22: the live map in the phone sheet (the mock showed the poster there). */
.v3 .wrap .ms-sheet__map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* The hubnav drawer opens from the breadcrumb hub name and the rail (data-hn-open="crumb|rail"). */
.v3 .wrap button[data-hn-open]{color:var(--ink-2);font-size:inherit;text-decoration:underline dotted var(--ink-4);text-underline-offset:3px}
.v3 .wrap .rc button[data-hn-open]{color:var(--accent);text-decoration:none;font-weight:500;font-size:13px}

/* ---------- hotels pages (recipe R, 11 Nov 2026) ---------- */
/* Pills above the name of a stay card (scripts/hotel_pills.py writes <div class="stay__pills" data-gen="pill">). */
.v3 .wrap .stay__pills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:2px}
.v3 .wrap .spill{font-family:var(--mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:var(--paper-2);color:var(--ink-2);border:1px solid var(--rule)}
.v3 .wrap .spill--pick{background:var(--accent-soft);border-color:transparent;color:var(--accent-ink)}
.v3 .wrap .stay__img{display:block;position:relative}
.v3 .wrap .stay__m{display:block}
.v3 .wrap .stay__m .am-badge{margin-right:8px;vertical-align:1px}
.v3 .wrap .stay__f .gl{font-size:12.5px}
.v3 .wrap .stay .chip b{font-weight:500;color:var(--ink)}
/* The standout stay: the same card laid out wide (layout in the hubs block below; type sizes here). */
@media (min-width:1024px){
  .v3 .wrap .stay--feature .stay__b{padding:20px 24px}
  .v3 .wrap .stay--feature .stay__n{font-size:22px}
  .v3 .wrap .stay--feature .stay__w{font-size:15px}
}
/* Area map and tables on the spine: no 1200px box, no own gutters. */
.v3 .wrap .am{padding:0;background:none}
.v3 .wrap .am__inner{max-width:none;padding:0;margin:0}
.v3 .wrap .tbl--wide td:first-child{white-space:normal}
.v3 .wrap .tbl--wide td{min-width:0}
.v3 .wrap .callout.hp-notice{margin-top:24px}
.v3 .wrap .tb-onsen-xlink{margin:var(--s-sec,48px) 0}
.v3 .wrap .am{border:0}
.v3 .wrap .am--inline{margin:8px 0 32px}
.v3 .wrap .am--inline .am__title,.v3 .wrap .am--inline .am__lede{padding:0}
.v3 .wrap .am__layout{grid-template-columns:minmax(0,1fr) minmax(0,330px);justify-content:start;margin-top:0}
.v3 .wrap .tb-oxl{max-width:none;margin:0}
@media (max-width:899px){.v3 .wrap .am__layout{grid-template-columns:minmax(0,1fr)}}
.v3 .wrap .tbl a[href^="#"]::after{content:none}

/* ---------- destination hubs (recipe H, 11 Nov 2026) ---------- */
/* The guide index (generated by hubnav_sync) sits in .wrap under the hero: its own padding and 1200px box go,
   so it starts on the same left edge as the H1 and runs the full main width. */
.v3 .wrap .hn-index{padding:0;margin-top:clamp(24px,3vw,40px);background:none}
.v3 .wrap .hn-index__in{max-width:none;margin:0}
.v3 .wrap .hn-index + .layout{margin-top:var(--sec)}
/* Klook "Book ahead" carousels (guide-planner.css) and the train planner: full main width, no own gutter. */
.v3 .wrap .gp-bkx{padding:0;background:none}
.v3 .wrap .gp-bkx__in{max-width:none;margin:0}
.v3 .wrap .gp-pw{margin-bottom:24px}
.v3 .wrap .hn-tabs{min-width:0}
/* Standout stay: the B08 card laid out as a feature (photo left, copy right) from 1024px. */
.v3 .wrap .stay--feature{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
.v3 .wrap .stay--feature .stay__img{aspect-ratio:auto;min-height:300px}
.v3 .wrap .stay--feature .stay__b{justify-content:center}
@media (max-width:1023px){.v3 .wrap .stay--feature{display:flex;flex-direction:column}.v3 .wrap .stay--feature .stay__img{aspect-ratio:16/10;min-height:0}}
.v3 .wrap .main>section>.ms{margin-top:var(--sec)}
.v3 .wrap .route b .jp{margin-left:6px;font-weight:400;color:var(--ink-3)}
.v3 .wrap .route .line-chip{margin-right:6px}
/* Second booking route on a stay card (Rakuten Travel next to Check rates), as the old hotels pages had. */
.v3 .wrap .stay__f .stay__alt{font-size:12.5px;white-space:nowrap}
/* Dated stays (20 Nov 2026): one or two dated book buttons under the card copy */
.v3 .wrap .stay__f--dates{flex-wrap:wrap;justify-content:flex-start;gap:8px}
.v3 .wrap .stay__f--dates .price{flex:1 0 100%;flex-direction:row;align-items:baseline;gap:6px}

/* ==============================================================
   v3F (owner's "v3F Block System", 15 Nov 2026). Loads last, so it wins over the v3 rules above.
   Markup: scripts/v3f_sync.py (page top) and docs-wip/reference/v3-blocks.md (v3F blocks and templates).
   Rules: R4 one meta row, R6 the rail starts level with the answer, R8 stats are an open ledger, R12 72px between
   sections (48 on phones), 20px head to content, 16px between blocks, R16 one compact stay item, R19 black = booking.
   ===================================================================== */
.v3{--sec:72px;--head:20px;--colgap:48px}
@media (max-width:899px){.v3{--sec:48px}}

/* R4 · meta row: breadcrumb left, checked date right. Read time and timer: the rail at 1280+, here below that. */
.v3 .wrap .crumb{padding:16px 0 0;margin-bottom:18px}
.v3 .wrap .crumb .r{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;letter-spacing:.03em}
.v3 .wrap .crumb .r__read{display:none}
.v3 .wrap .crumb .rt{display:none}
@media (max-width:1279px){.v3 .wrap .crumb .r__read,.v3 .wrap .crumb .rt{display:inline-flex}}
.v3:not(:has(.wrap .rail)) .wrap .crumb .r__read,.v3:not(:has(.wrap .rail)) .wrap .crumb .rt{display:inline-flex}
@media (max-width:899px){.v3 .wrap .crumb .r{margin-left:0;width:100%}}
.v3 .wrap .rt{height:24px;gap:6px;padding:0 9px 0 6px;border-radius:12px;font-size:11px;letter-spacing:.03em;background:none}
.v3 .wrap .rt i{width:12px;height:12px}
.v3 .wrap .rc>.k{align-items:center;gap:8px}
.v3 .wrap .rc>.k .rt{text-transform:none}
.v3 .wrap .rc>.k:has(.rt)>span:nth-child(2){margin-left:auto}

/* R2 · text head: no photo, no band. Kicker, H1 and its Japanese label on the spine, under the solid header. */
.v3 .wrap.th{padding-top:clamp(20px,3vw,36px)}
.v3 .wrap.th .h1{margin-top:8px}
.v3 .wrap.th .h1 .jp,.v3 .fb-hero__on.wrap .h1 .jp{display:inline-block;margin:0 0 0 14px;font-size:.34em;letter-spacing:0;vertical-align:.2em}
.v3 .wrap.th .h1 .jp{color:var(--ink-3)}
.v3 .th__photo{display:none}

/* R3 · Add to trip on the photo: the header's glass, not a paper button */
.fb-hero .tbt-save--page{background:rgba(17,19,18,.64);-webkit-backdrop-filter:blur(19px);backdrop-filter:blur(19px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);color:#fff;height:38px;font-size:13.5px;font-weight:500}
.fb-hero .tbt-save--page:hover{background:rgba(17,19,18,.78)}

/* R5 · one strip: the season strip steps aside when the page has a Now line; both are one 40px line */
.tb-season-band[hidden]{display:none!important}
.v3 .tb-hl-strip{background:none;color:var(--ink-2);border-bottom:1px solid var(--rule)}
.v3 .tb-hl-strip__inner{max-width:calc(var(--maxw) + var(--pad)*2);padding:0 var(--pad);height:40px;min-height:0;gap:10px;font-size:13px;white-space:nowrap;overflow:hidden}
.v3 .tb-hl-strip__dot{width:7px;height:7px;background:var(--accent)}
.v3 .tb-hl-strip__kicker{font-family:var(--sans);font-size:13px;letter-spacing:0;text-transform:none;opacity:1;font-weight:600;color:var(--ink)}
.v3 .tb-hl-strip__text{overflow:hidden;text-overflow:ellipsis}
.v3 .tb-hl-strip__arrow{margin-left:auto;color:var(--accent);font-weight:400}
@media (max-width:599px){.v3 .tb-hl-strip__arrow{display:none}.v3 .tb-hl-strip__kicker{display:inline}}

/* R6 · the answer: first block of the main column, so the rail starts level with the intro */
.v3 .wrap .ans{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.v3 .wrap .ans>*{min-width:0}
.v3 .wrap .ans .dek{max-width:var(--readw);margin:0}
.v3 .wrap .ans .qa{border-top:0}
.v3 .wrap .ans .qa>div:first-child{padding-top:0}
.v3 .wrap .main>.ans+.only-narrow{margin-top:24px}
@media (min-width:1280px){.v3 .wrap .main>.ans+.only-narrow+section{margin-top:var(--sec)}}

/* R7 · In brief: the detail of the answer, after the quick answers. Spans the column; text in the reading measure. */
.v3 .wrap .brief{display:grid;grid-template-columns:90px minmax(0,1fr);gap:16px;padding:16px 20px;border-radius:var(--r-card);background:var(--accent-soft);font-size:15px;line-height:1.55;color:var(--ink-2)}
.v3 .wrap .brief>.k{color:var(--accent);padding-top:3px}
.v3 .wrap .brief p{margin:0;max-width:820px}
.v3 .wrap .brief p+p{margin-top:8px}
.v3 .wrap .brief b,.v3 .wrap .brief strong{color:var(--ink);font-weight:600}
.v3 .wrap .brief a{color:var(--accent)}
@media (max-width:899px){.v3 .wrap .brief{grid-template-columns:minmax(0,1fr);gap:6px}}

/* R8, R9 · stats: an open ledger, first figure flush on the spine; a link sits on the sub line */
.v3 .wrap .stats{border:0;border-top:1px solid var(--ink);border-bottom:1px solid var(--rule);border-radius:0;background:none;overflow:visible}
.v3 .wrap .stat{padding:14px 18px}
.v3 .wrap .stat:first-child{padding-left:0}
.v3 .wrap .stat b{white-space:nowrap}
.v3 .wrap a.stat:hover{background:none}
.v3 .wrap a.stat:hover .go{text-decoration:underline;text-underline-offset:3px}
.v3 .wrap .stat__s{display:flex;justify-content:space-between;align-items:baseline;gap:4px 12px;flex-wrap:wrap}
.v3 .wrap .stat__s>span:first-child{font-size:12.5px;color:var(--ink-3);line-height:1.35}
.v3 .wrap a.stat .stat__s .go{margin:0 0 0 auto;padding:0;white-space:nowrap;font-size:12.5px}
@media (max-width:899px){
  .v3 .wrap .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v3 .wrap .stat{padding:12px 14px;border-top:0}
  .v3 .wrap .stat:nth-child(2n+1){border-left:0;padding-left:0}
  .v3 .wrap .stat:nth-child(n+3){border-top:1px solid var(--rule)}
  .v3 .wrap .stat b,.v3 .wrap .stat b .yen__fx{white-space:normal;overflow-wrap:anywhere}
}

/* R12 · rhythm: 72px between sections, 20px head to content, 16px between blocks; nothing else */
.v3 .wrap .main>section>*+*,.v3 .wrap .main>.sec>*+*{margin-top:16px}
.v3 .wrap .main>section>.sh+*,.v3 .wrap .main>.sec>.sh+*{margin-top:0}
.v3 .wrap .main>section.ans>*+*{margin-top:0}
/* R13 · two widths: prose, steps and FAQ at 720; everything else the main column */
.v3 .wrap .faq,.v3 .wrap .tips{max-width:var(--readw)}

/* R16-R18 · one stay item everywhere: 64px photo, name, one line, price, 28px black pill; the strip fits itself */
.v3 .wrap .rh{grid-template-columns:64px minmax(0,1fr);gap:12px}
.v3 .wrap .rh .img,.v3 .wrap .rh .rh__img{height:64px;border-radius:8px}
.v3 .wrap .rh__name,.v3 .wrap .rh b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v3 .wrap .rh small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v3 .wrap .rh-row{margin-top:5px;gap:8px}
.v3 .wrap .rh-row .num,.v3 .wrap .rh-row .muted{font-family:var(--mono);font-size:11.5px;color:var(--ink-2);white-space:nowrap}
.v3 .wrap .rh .btn--book,.v3 .wrap .f-book{height:28px;padding:0 11px;border-radius:14px;font-size:12px;margin-top:0;flex:none}
.v3 .wrap .rh>div>.btn--book{margin-top:5px}
.v3 .wrap .strip{padding:14px 16px}
.v3 .wrap .strip__l{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px 28px}
.v3 .wrap .strip__l>.rh{border-top:0;padding:0}
.v3 .wrap .strip__l>.rh:nth-child(n+5){display:none}
@media (max-width:767px){.v3 .wrap .strip__l{display:flex;overflow-x:auto;scrollbar-width:none;gap:16px}.v3 .wrap .strip__l>.rh{flex:none;width:270px}}
@media (max-width:599px){.v3 .wrap .rh .btn--book{height:32px}}

/* F04 · sell card (tours, tickets, passes, car hire, eSIM): a real photo, a price and one black button; three across */
.v3 .wrap .f-cards{display:grid;grid-template-columns:repeat(var(--c,3),minmax(0,1fr));gap:16px}
.v3 .wrap .f-card{display:flex;flex-direction:column;border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);overflow:hidden;color:var(--ink);transition:border-color .15s,transform .2s,box-shadow .2s}
.v3 .wrap a.f-card:hover,.v3 .wrap .f-card:has(a:hover){border-color:var(--ink-3);transform:translateY(-2px);box-shadow:0 14px 26px -20px rgba(0,0,0,.4)}
.v3 .wrap .f-card>.img{display:block;height:150px;position:relative}
.v3 .wrap .f-card .tag{position:absolute;left:10px;top:10px;font-family:var(--mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase;background:rgba(255,255,255,.92);color:var(--ink);padding:3px 8px;border-radius:999px}
.v3 .wrap .f-card__b{padding:14px 16px 0;display:grid;gap:5px}
.v3 .wrap .f-card__b b{font-size:16px;font-weight:500;line-height:1.25}
.v3 .wrap .f-card__b b .jp{font-size:.8em;margin-left:6px}
.v3 .wrap .f-card__b .m{font-family:var(--mono);font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3)}
.v3 .wrap .f-card__b p{margin:0;font-size:13px;line-height:1.45;color:var(--ink-3);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.v3 .wrap .f-card__f{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px 14px;font-size:13px}
.v3 .wrap .f-card__f>span:first-child{font-family:var(--mono);font-size:12px;color:var(--ink-2)}
.v3 .wrap .f-book{display:inline-flex;align-items:center;gap:5px;background:var(--ink);color:var(--paper);font-weight:600;white-space:nowrap}
.v3 .wrap .f-book::after{content:"↗";font-weight:400;opacity:.7}
.v3 .wrap .f-book:hover{background:var(--ink-2)}
@media (max-width:1180px){.v3 .wrap .f-cards{--c:2!important}}
@media (max-width:599px){.v3 .wrap .f-cards{grid-template-columns:minmax(0,1fr)!important}}

/* F05 · tables: English 500, Japanese light grey after it; status as a chip. F06 · date cards carry a chip. */
.v3 .wrap .tbl td:first-child b,.v3 .wrap .tbl td:first-child strong{font-weight:500}
.v3 .wrap .tbl td .jp{font-weight:400;color:var(--ink-3);font-size:.92em;margin-left:6px}
.v3 .wrap .f-chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:11px;font-family:var(--mono);font-size:10px;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;vertical-align:middle}
.v3 .wrap .f-chip.ok{background:#E3F0E4;color:#22642B}.v3 .wrap .f-chip.usual{background:#F6EEDC;color:#7A5A1C}.v3 .wrap .f-chip.na{background:var(--paper-3);color:var(--ink-3)}
.v3 .wrap .ev .f-chip{margin-top:6px}

/* F07 · day block (itineraries, road trips): one per day, ending with that night's stay */
.v3 .wrap .f-days{display:grid;border-top:1px solid var(--rule)}
.v3 .wrap .f-day{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;padding:18px 0;border-bottom:1px solid var(--rule)}
.v3 .wrap .f-day__h b{display:block;font-size:17px;font-weight:500}
.v3 .wrap .f-day__h span{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.v3 .wrap .f-legs{display:grid;gap:8px;margin:0 0 12px;padding:0;list-style:none}
.v3 .wrap .f-legs li{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;font-size:14.5px;color:var(--ink-2)}
.v3 .wrap .f-legs li>span:first-child{font-family:var(--mono);font-size:12px;color:var(--ink);padding-top:2px}
.v3 .wrap .f-day .rh{max-width:420px;padding:10px 12px;border:0;border-radius:12px;background:var(--paper-2)}
@media (max-width:899px){.v3 .wrap .f-day{grid-template-columns:minmax(0,1fr);gap:10px}}

/* An area stay card's own guide link (owner, 15 Nov 2026): a footer row under the card, our guide (→) or every
   hotel in the area on Agoda (↗), so it is plain which is ours and which leaves the site. */
.v3 .wrap .stay__more{display:flex;align-items:center;gap:6px;padding:11px 16px;border-top:1px solid var(--rule);font-size:13px;font-weight:500;color:var(--accent);text-decoration:none}
.v3 .wrap .stay__more:hover{background:var(--accent-soft)}
.v3 .wrap a.stay__more.gl{color:var(--accent)}
.v3 .wrap a.stay__more[data-agoda-city]{color:var(--ink-2)}
.v3 .wrap a.stay__more[data-agoda-city]::after{content:"↗";font-size:.85em;color:var(--ink-4)}

/* Approximate local price after a yen price (assets/fx.js, owner 15 Nov 2026): quiet, never bold, never split. */
.yen__fx{font-size:.82em;font-weight:400;color:var(--ink-3);white-space:nowrap;letter-spacing:0}
.v3 .wrap .stat b .yen__fx{font-size:12px}
.v3 .wrap .rh-row .yen__fx{display:block;font-size:10.5px;margin-top:1px}
.v3 .wrap .f-card__f .yen__fx{font-size:10.5px}
.v3 .wrap .rh-row .num,.v3 .wrap .rh-row .muted{white-space:normal}
.v3 .wrap .f-card__f img[width="1"]{position:absolute;width:1px;height:1px;overflow:hidden}
.v3 .wrap .f-card__f{position:relative}

/* ---------- B30 lean guide layout (23 Nov 2026) ----------
   Opt-in: <div class="layout layout--lean"> holds <nav class="qrail"> (the page's own questions, each a link to its
   answer), <main class="main"> and the usual <aside class="rail">.
   >= 1280px: three columns, question rail left (sticky), main, stays and discovery rail right. Gaps and the right rail
   are a little tighter than the two-column layout so main keeps about 620px at 1280 and about 710px at 1440 and wider.
   < 1280px: one column; the same nav sits at the top of main as a compact numbered list (grid order, no second copy). */
.v3 .wrap .layout--lean .qrail{margin-bottom:var(--head)}
.v3 .wrap .qrail__h{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin-bottom:10px}
.v3 .wrap .qrail ol{list-style:none;counter-reset:q;display:flex;flex-direction:column}
.v3 .wrap .qrail li{counter-increment:q}
.v3 .wrap .qrail a{display:grid;grid-template-columns:2ch 1fr;gap:8px;padding:8px 10px;border-left:2px solid var(--rule);font-size:13.5px;line-height:1.45;color:var(--ink-2)}
.v3 .wrap .qrail a::before{content:counter(q);font-family:var(--mono);font-size:11px;color:var(--ink-4);padding-top:2px}
.v3 .wrap .qrail a:hover{color:var(--ink);border-left-color:var(--ink-4)}
.v3 .wrap .qrail a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.v3 .wrap .qrail a.on,.v3 .wrap .qrail a[aria-current]{border-left-color:var(--accent);color:var(--ink);font-weight:500;background:var(--paper-2)}
.v3 .wrap .layout--lean .main [id]{scroll-margin-top:calc(var(--hd) + 20px)}
.v3 .wrap .rc-links{list-style:none;display:flex;flex-direction:column;font-size:13.5px}
.v3 .wrap .rc-links li+li{border-top:1px solid var(--rule)}
.v3 .wrap .rc-links a{display:block;padding:8px 0;color:var(--accent);font-weight:500}
.v3 .wrap .rc-links a:hover{text-decoration:underline}
@media (max-width:1279px){
  .v3 .wrap .layout--lean .qrail{border:1px solid var(--rule);border-radius:var(--r-card);background:var(--surface);padding:14px 16px 8px}
  .v3 .wrap .layout--lean .qrail ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
  .v3 .wrap .layout--lean .qrail a{border-left:0;border-top:1px solid var(--rule);padding:9px 2px}
  .v3 .wrap .layout--lean .qrail a.on,.v3 .wrap .layout--lean .qrail a[aria-current]{background:none;color:var(--accent)}
}
@media (max-width:700px){
  .v3 .wrap .layout--lean .qrail ol{grid-template-columns:minmax(0,1fr)}
}
@media (min-width:1280px){
  .v3 .wrap .layout--lean{--rail:300px;--qw:190px;--colgap:32px;grid-template-columns:var(--qw) minmax(0,1fr) var(--rail)}
  .v3 .wrap .layout--lean .qrail{position:sticky;top:calc(var(--hd) + 20px);margin-bottom:0;max-height:calc(100vh - var(--hd) - 40px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
}
@media (min-width:1440px){
  .v3 .wrap .layout--lean{--rail:320px;--qw:210px;--colgap:40px}
}
