/*
  Lift ticket + trail map.
  Colour roles come from Japanese piste grading: green (初級), red (中級), black (上級).
  Green = value / good for us. Red = Japan feel / watch out. Black = ink.
  General Sans for everything: one family, weight and size do the work.
  The lift ticket is the one bold element. Everything else stays quiet.
*/
:root {
  --snow: oklch(98.4% 0.005 250);
  --paper: oklch(99.6% 0.002 250);
  --ink: oklch(21% 0.025 262);
  --ink-soft: oklch(44% 0.02 262);
  --ink-faint: oklch(62% 0.015 262);
  --rule: oklch(89% 0.01 255);
  --hole: oklch(91% 0.008 255);
  --red: oklch(53% 0.2 26);
  --green: oklch(50% 0.13 152);
  --red-tint: oklch(95% 0.03 26);
  --green-tint: oklch(95% 0.03 152);
  --sky: oklch(95.5% 0.018 240);
  --warn-bg: oklch(95% 0.06 85);
  --warn-edge: oklch(80% 0.13 80);
  --warn-ink: oklch(36% 0.08 65);
  --line-hokuriku: oklch(58% 0.12 55);
  --line-yamagata: oklch(48% 0.14 300);
  --seg-1: oklch(78% 0.012 262);
  --seg-2: oklch(64% 0.018 262);
  --seg-3: oklch(50% 0.022 262);
  --seg-4: oklch(28% 0.025 262);
  --seg-5: oklch(53% 0.2 26);
  --seg-6: oklch(85% 0.01 262);

  --f-sign: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-kanji: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 6vw, 2.8rem);
  --step-4: clamp(3.2rem, 13vw, 7rem);

  --radius: 6px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--snow); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.5; font-variant-numeric: tabular-nums; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-sign); font-stretch: 68%; font-weight: 700; line-height: 1; letter-spacing: -0.005em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.block { padding-block: clamp(48px, 9vw, 96px) 0; display: grid; gap: 20px; }
.block > h2 { font-size: var(--step-3); }
.lede { color: var(--ink-soft); max-width: 52ch; }
.small { font-size: var(--step--1); color: var(--ink-soft); max-width: 68ch; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(76svh, 680px); min-height: 440px; color: var(--paper); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(18% 0.03 262 / 0.82) 0%, oklch(18% 0.03 262 / 0.2) 48%, oklch(18% 0.03 262 / 0) 70%); }
.hero-copy { position: absolute; inset: auto 0 0 0; z-index: 1; padding-block: 0 clamp(24px, 5vw, 48px); }
.hero-copy .wrap { display: grid; gap: 14px; }
.hero h1 { font-size: var(--step-4); font-stretch: 62%; font-weight: 700; line-height: 0.9; }
.hero p { font-size: var(--step-1); max-width: 34ch; line-height: 1.35; }
.hero .when { font-size: var(--step--1); opacity: 0.85; }
.hero .credit { position: absolute; z-index: 1; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 12px); font-size: 0.72rem; opacity: 0.8; }

.masthead { padding-block: clamp(28px, 6vw, 56px) 0; display: grid; gap: 10px; }
.masthead h1 { font-size: var(--step-3); font-stretch: 62%; font-weight: 700; }
.masthead p { color: var(--ink-soft); max-width: 60ch; }
.masthead + main > .block:first-child { padding-top: 28px; }

/* ---------- controls ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.ctl { display: flex; align-items: center; gap: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.seg button { font: inherit; font-size: var(--step--1); font-weight: 600; padding: 7px 12px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- lift tickets ---------- */
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px 24px; }
.ticket {
  --stub: 104px;
  position: relative; display: grid; grid-template-rows: auto 1fr;
  background: var(--paper); border-radius: 10px; text-decoration: none; color: inherit;
  box-shadow: 0 1px 0 var(--rule), 0 0 0 1px var(--rule);
  transition: transform 160ms cubic-bezier(.22, 1, .36, 1);
}
.ticket:active { transform: scale(0.985); }
@media (hover: hover) { .ticket:hover .t-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; } }
.t-photo { position: relative; aspect-ratio: 16 / 8; border-radius: 10px 10px 0 0; overflow: hidden; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-body { display: grid; grid-template-columns: 1fr var(--stub); position: relative; }
/* tear line with punched notches top and bottom */
.t-body::before { content: ""; position: absolute; top: 12px; bottom: 12px; right: var(--stub); border-left: 2px dashed var(--rule); }
.t-notch { position: absolute; right: calc(var(--stub) - 10px); width: 20px; height: 20px; border-radius: 50%; background: var(--snow); box-shadow: inset 0 0 0 1px var(--rule); }
.t-notch.top { top: -10px; clip-path: inset(50% 0 0 0); }
.t-notch.bottom { bottom: -10px; clip-path: inset(0 0 50% 0); }
.t-main { padding: 16px 18px 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.t-name { font-size: var(--step-2); }
.t-line { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.35; }
.t-stub { padding: 16px 10px 18px; display: grid; justify-items: center; align-content: space-between; gap: 10px; text-align: center; }
.t-kanji { font-family: var(--f-kanji); writing-mode: vertical-rl; font-size: 1.35rem; line-height: 1.1; letter-spacing: 0.08em; color: var(--ink); }
.t-price { font-family: var(--f-sign); font-stretch: 70%; font-weight: 700; font-size: 1.7rem; line-height: 1; }
.t-pp { font-size: 0.7rem; color: var(--ink-soft); line-height: 1.2; }
.t-est { font-size: 0.7rem; color: var(--red); font-weight: 600; }

/* punch-hole scores */
.punches { display: grid; gap: 6px; margin: 0; }
.punch { display: grid; grid-template-columns: 5.6em auto 1.4em; justify-content: start; align-items: center; gap: 8px; font-size: var(--step--1); }
.punch dt { color: var(--ink-soft); }
.punch dd { margin: 0; display: contents; }
.holes { display: flex; gap: 4px; }
.holes i { width: 11px; height: 11px; border-radius: 50%; background: var(--hole); flex: none; }
.punch[data-k="japan"] i.on { background: var(--red); }
.punch[data-k="ski"] i.on { background: var(--ink); }
.punch[data-k="value"] i.on { background: var(--green); }
.punch .n { font-weight: 700; text-align: right; }

@media (max-width: 480px) {
  .ticket { --stub: 78px; }
  .t-main { padding: 14px 12px 16px 14px; }
  .t-kanji { font-size: 1.1rem; }
  .t-price { font-size: 1.35rem; }
  .punch { grid-template-columns: 4.9em auto 1.3em; gap: 6px; }
  .holes { gap: 3px; }
  .holes i { width: 8px; height: 8px; }
}

/* small ratings */
.marks { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 0.78rem; color: var(--ink-soft); }
.marks li { display: inline-flex; align-items: center; gap: 5px; }
.marks svg { width: 16px; height: 16px; color: var(--ink); }
.pips { letter-spacing: 1px; color: var(--ink); font-size: 0.7rem; }
.pips .off { color: var(--hole); }

/* ---------- rail map ---------- */
.railmap { background: var(--sky); border-radius: 12px; padding: clamp(8px, 2vw, 20px); overflow-x: auto; }
.railmap svg { display: block; width: 100%; min-width: 680px; height: auto; }
.railmap text { fill: var(--ink); font-family: var(--f-body); }
.railmap .muted { fill: var(--ink-soft); }
.railmap .sign { font-family: var(--f-sign); font-stretch: 70%; font-weight: 700; }
.railmap a:hover .sign, .railmap a:focus .sign { text-decoration: underline; }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step--1); color: var(--ink-soft); margin: 0; padding: 0; list-style: none; }
.key li { display: inline-flex; align-items: center; gap: 7px; }
.key i { width: 22px; height: 5px; border-radius: 3px; display: inline-block; }

.routes { display: none; margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.routes a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.routes b { font-family: var(--f-sign); font-stretch: 70%; font-weight: 700; font-size: 1.2rem; }
.routes .h { font-weight: 700; }
.routes small { grid-column: 1 / -1; color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 640px) {
  .railmap, .key.rail { display: none; }
  .routes { display: block; }
}

/* ---------- snow chart ---------- */
.snow { overflow-x: auto; }
.snow svg { display: block; width: 100%; max-width: 760px; min-width: 460px; height: auto; }
.snow text { fill: var(--ink); font-family: var(--f-body); }
.snow .muted { fill: var(--ink-soft); }

/* ---------- cost bars ---------- */
.costs { display: grid; gap: 14px; max-width: 860px; }
.cost-row { display: grid; grid-template-columns: 12em 1fr 4.5em; gap: 14px; align-items: center; text-decoration: none; }
.cost-row b { font-weight: 600; }
.cost-row:hover b { text-decoration: underline; }
.cost-bar { display: flex; height: 22px; border-radius: 4px; overflow: hidden; background: var(--hole); }
.cost-bar span { height: 100%; }
.cost-bar span.est { background-image: repeating-linear-gradient(135deg, transparent 0 4px, oklch(100% 0 0 / 0.35) 4px 7px); }
.cost-row .tot { text-align: right; font-weight: 700; }
@media (max-width: 560px) {
  .cost-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .cost-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- week comparison ---------- */
.weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 40px; }
.week h3 { font-size: var(--step-2); }
.week .dates { color: var(--ink-soft); font-size: var(--step--1); margin-top: 4px; }
.pm { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; border-top: 1.5px solid var(--ink); padding-top: 12px; }
.pm li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: baseline; }
.pm li::before { font-weight: 700; font-size: 1.05rem; text-align: center; }
.pm .plus::before { content: "+"; color: var(--green); }
.pm .minus::before { content: "−"; color: var(--red); }

/* ---------- plain lists ---------- */
.notes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 40px; border-top: 1.5px solid var(--ink); }
.notes li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.notes svg { width: 24px; height: 24px; }
.notes b { display: block; font-weight: 700; margin-bottom: 2px; }
.notes p { color: var(--ink-soft); font-size: 0.94rem; }
.notes a { text-underline-offset: 3px; }
.ruled { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.ruled li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(8em, 12em) 1fr; gap: 6px 20px; }
.ruled b { font-weight: 700; }
.ruled span { color: var(--ink-soft); }
@media (max-width: 520px) { .ruled li { grid-template-columns: 1fr; } }

footer { margin-top: clamp(56px, 10vw, 112px); padding-block: 24px 40px; border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--ink-soft); }
footer .wrap { display: grid; gap: 6px; }
footer a { text-underline-offset: 3px; }

/* ---------- trip page ---------- */
.trip-hero { height: min(64svh, 560px); min-height: 380px; }
.back { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 14px); left: max(14px, env(safe-area-inset-left, 0px)); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--step--1); padding: 8px 14px; border-radius: var(--radius); }
.trip-hero h1 { font-size: clamp(2.8rem, 11vw, 5.6rem); }
.trip-hero .kanji { font-family: var(--f-kanji); font-size: clamp(1.1rem, 3vw, 1.5rem); letter-spacing: 0.12em; }
.trip-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .trip-cols { grid-template-columns: minmax(0, 1fr); } }
.trip-cols > div { display: grid; gap: 36px; min-width: 0; }
.trip-cols h2 { font-size: var(--step-2); margin-bottom: 12px; }
.facts { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts svg { width: 24px; height: 24px; margin-top: 2px; }
.facts b { display: block; font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }

/* receipt */
.receipt { background: var(--paper); padding: 20px 20px 28px; position: relative; box-shadow: 0 0 0 1px var(--rule);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom left / 16px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle 6px at 8px 100%, transparent 98%, #000) bottom left / 16px 8px repeat-x; }
.receipt .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.receipt .head h2 { margin: 0; }
.lines { display: grid; gap: 8px; margin: 0; }
.lines div { display: flex; align-items: baseline; gap: 6px; }
.lines dt { white-space: nowrap; }
.lines .dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); min-width: 12px; }
.lines dd { margin: 0; font-weight: 600; white-space: nowrap; }
.lines dd.est { color: var(--red); }
.lines .total { border-top: 1.5px solid var(--ink); padding-top: 10px; margin-top: 4px; font-size: 1.15rem; }
.lines .total dt, .lines .total dd { font-weight: 700; }
.receipt .small { margin-top: 12px; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-family: var(--f-sign); font-stretch: 70%; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }

.gw { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.gw .pm { margin-top: 0; }
.wide-photo { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
.out { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.out a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.out a span { color: var(--ink-soft); font-weight: 400; font-size: var(--step--1); }
.others { display: flex; flex-wrap: wrap; gap: 8px; }
.others a { text-decoration: none; font-weight: 600; font-size: var(--step--1); padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); }

@media (prefers-reduced-motion: reduce) { .ticket { transition: none; } }

/* One family throughout: headings get weight and tight tracking, not a second face. */
h1, h2, h3, .t-price, .routes b, .steps li::before, .railmap .sign { font-weight: 600; letter-spacing: -0.02em; font-synthesis: none; }
.block > h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.05; }
.masthead h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 700; line-height: 1; }
.t-name { font-size: 1.35rem; line-height: 1.1; }
.t-price { font-size: 1.45rem; }
.t-kanji { font-weight: 500; }
.week h3, .trip-cols h2 { font-size: 1.35rem; }
.trip-hero h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); font-weight: 700; line-height: 1; }
.routes b { font-size: 1.1rem; }
@media (max-width: 480px) { .t-price { font-size: 1.2rem; } .t-name { font-size: 1.2rem; } }

/* price ranges */
.t-to { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.cost-bar span.upto { background: repeating-linear-gradient(90deg, var(--seg-1) 0 2px, transparent 2px 5px); opacity: .7; }
.key .upto-key { width: 12px; height: 12px; background: repeating-linear-gradient(90deg, var(--seg-1) 0 2px, transparent 2px 5px); }
.cost-row { grid-template-columns: 12em 1fr 7.5em; }
@media (max-width: 560px) { .cost-row { grid-template-columns: 1fr auto; } }

/* day-by-day plan */
.days { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.days li { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.days .d { font-weight: 600; line-height: 1.2; }
.days small { display: block; color: var(--ink-soft); font-size: var(--step--1); font-weight: 400; }

/* urgent availability warnings */
.t-alert { margin-top: 10px; padding: 8px 10px; border-radius: var(--radius); background: var(--red-tint); color: oklch(38% 0.15 26); font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
.alert-banner { margin: 24px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--red-tint); color: oklch(38% 0.15 26); font-weight: 600; }

/* week switch, listings, moving day */
.seg-row { margin-bottom: 14px; }
.seg-row .seg button { padding: 6px 10px; }
.stays { margin-top: 10px; }
.stays a { display: grid; grid-template-columns: 1fr; gap: 2px; font-weight: 400; }
.stays a b { font-weight: 700; }
.stays a span { font-size: 0.78rem; }
.move { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--sky); }
.move svg { width: 24px; height: 24px; }
.move b { display: block; }
.marks li.mv { color: var(--ink); font-weight: 600; }

/* warning blocks: Notion-style callout (soft yellow fill, emoji, plain text, no border) */
.t-alert, .alert-banner { display: flex; gap: 8px; align-items: flex-start; background: oklch(96.5% 0.035 90); color: var(--ink); border: 0; border-radius: 4px; font-weight: 400; }
.t-alert { margin-top: 12px; padding: 10px 12px 10px 10px; font-size: 0.86rem; line-height: 1.5; }
.alert-banner { margin: 24px 0 0; padding: 16px 16px 16px 12px; font-size: 0.98rem; line-height: 1.5; }
.t-alert .ic, .alert-banner .ic { font-size: 1.15em; line-height: 1.3; flex: none; }
.t-alert .when, .alert-banner .when { color: var(--ink-soft); }

.t-other { margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: var(--green); }
.t-other.dearer { color: var(--ink-soft); }

/* ===== review pass: thinner tickets, one switch, quieter colour ===== */
.controls { gap: 10px; }
.t-stub { align-content: start; gap: 14px; }
.t-pricebox { display: grid; gap: 2px; }
.t-alert { margin-top: 0; padding: 7px 10px; font-size: 0.82rem; line-height: 1.35; }
.t-other { margin-top: 0; }
.t-main { gap: 12px; }
@media (max-width: 480px) {
  .t-photo { aspect-ratio: auto; height: 120px; }
  .t-line { font-size: 0.88rem; }
}

.notes-under { display: grid; gap: 6px; }
.linkish { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* cost bars: rooms in ink, everything else grey, outline to the mid-range total */
.cost-bar { position: relative; background: transparent; overflow: visible; display: flex; }
.cost-bar .upto { position: absolute; left: 0; top: 0; bottom: 0; border: 1.5px solid var(--ink-faint); border-radius: 4px; background: none; opacity: 1; }
.cost-bar .seg-stay { background: var(--ink); border-radius: 4px 0 0 4px; }
.cost-bar .seg-rest { background: var(--seg-1); }

/* snow chart drawn at real width */
.snow svg { min-width: 0; max-width: 100%; }

/* trip page header and photo */
.trip-head { gap: 8px; }
.back-link { justify-self: start; font-weight: 600; font-size: var(--step--1); text-underline-offset: 3px; margin-bottom: 8px; }
.trip-head .kanji { font-family: var(--f-kanji); font-weight: 500; color: var(--ink-soft); letter-spacing: 0.1em; }
.trip-head .meta { font-size: var(--step--1); color: var(--ink-soft); }
.trip-photo { margin-top: 20px; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 8; }
.trip-photo img { width: 100%; height: 100%; object-fit: cover; }
.trip-controls { margin-top: 20px; }
.receipt h2 { margin-bottom: 12px; }
.lines .est { color: var(--ink-faint); font-weight: 400; font-size: 0.8em; }

/* where we'd stay: one row per inn */
.stays { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.stays > li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.stays .tier { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; }
.inn { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-decoration: none; }
.inn-name { font-weight: 600; }
.inn-name small { color: var(--ink-soft); font-weight: 400; }
.inn-price { font-weight: 700; text-align: right; }
.inn-what { grid-column: 1 / -1; color: var(--ink-soft); font-size: var(--step--1); }
.inn:hover .inn-name { text-decoration: underline; }

/* second pass */
.cost-bar span.upto { background: none; }
.stays a.inn { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; }
.inn-what { font-size: 0.84rem; }
/* two-base trips: one short vertical column per town, read right to left */
.t-kanji { display: flex; flex-direction: row-reverse; gap: 2px; writing-mode: horizontal-tb; }
.t-kanji > span { writing-mode: vertical-rl; }
.t-kanji.pair { font-size: 1.05rem; }

/* other currency: swaps in place on hover, or on tap on a phone */
.money .m-alt { display: none; }
.money:hover .m-cur, .money:focus-visible .m-cur, .money.show .m-cur { display: none; }
.money:hover .m-alt, .money:focus-visible .m-alt, .money.show .m-alt { display: inline; }
.money:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

/* stub: kanji at the top, price block pinned to the bottom */
.t-stub { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 14px; }
.t-week { margin-top: 8px; font-size: 0.66rem; line-height: 1.25; color: var(--ink-soft); font-weight: 500; }
.t-week.cheaper { color: var(--green); font-weight: 600; }

/* yes/no feature icons on tickets */
.has { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 0.74rem; }
.has li { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 500; }
.has svg { width: 17px; height: 17px; flex: none; }
.has li.no { color: var(--ink-faint); opacity: 0.55; }
.has li.no span:not(.sr) { text-decoration: line-through; text-decoration-thickness: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* half-point punch holes and score sources */
.punch[data-k="japan"] i.half { background: linear-gradient(90deg, var(--red) 50%, var(--hole) 50%); }
.punch[data-k="ski"] i.half { background: linear-gradient(90deg, var(--ink) 50%, var(--hole) 50%); }
.score-src { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 0.84rem; color: var(--ink-soft); }
.score-src b { display: block; color: var(--ink); font-weight: 600; }
.punch { grid-template-columns: 5.6em auto 1.8em; }
