/* Nijo Castle Today — night pages (/night/ and /night/map/).
   Night colors apply inside <main> only, so the shared header and footer keep their daytime colors. */

.night-page { background: #10141b; color: #ece6dc; }
.night-page .site-footer { background: var(--plaster); color: var(--granite); }

.night-page main {
  --ink: #ece6dc; --mute: #a8a397; --card: #181d26; --line: #2b3240; --accent: #ffb547;
  /* site variables, remapped for the dark background */
  --paper: #181d26; --rule: #2b3240; --granite: #a8a397; --lacquer: #ffb547; --lacquer-soft: #2a2416;
  color: var(--ink);
}
.night-page main a { color: var(--accent); }
.night-page main a:hover { color: #fff; }
.night-page .btn { color: #10141b; }
.night-page .btn:hover { background: var(--ink); color: #10141b; }
.night-page .btn-line { color: var(--accent); }
.night-page .btn-line:hover { background: var(--accent); color: #10141b; }

/* The "Tonight" card keeps the daytime card colors (white card, same green / brown / red) */
.night-page .status { --paper: #fff; --ink: #1f1c18; --granite: #615a50; --rule: #e0dbd0; color: #1f1c18; }

/* Chips with the key facts */
.night-page .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; padding: 0; list-style: none; }
.night-page .facts li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14.5px; }
.night-page .facts b { color: var(--accent); font-weight: 700; }

/* Highlighted notice */
.night-page .note { background: #231d12; border: 1px solid #5a4724; border-radius: 18px; padding: 12px 14px; margin: 18px 0; max-width: 68ch; }
.night-page .note p:last-child { margin-bottom: 0; }
.night-page .note ul { margin: 6px 0 0; padding-left: 20px; }
.night-page .note li { margin: 3px 0; }

/* /night/: map thumbnail, works list, ticket buttons */
.night-thumb { display: block; margin: 1rem 0 0.8rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); max-width: 46rem; }
.night-thumb img { width: 100%; }
.night-works { padding-left: 1.4rem; max-width: var(--measure); }
.night-works li { margin: 0.35rem 0; }
.night-page .table-scroll table { min-width: 28rem; }

/* ---------- /night/map/ (from the bundled page; scoped to .night-map) ---------- */
.night-map { max-width: 1040px; margin: 0 auto; padding: 24px 16px 64px; }
.night-map h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -0.01em; }
.night-map h2 { font-size: clamp(22px, 3.6vw, 28px); line-height: 1.2; margin: 56px 0 8px; }
.night-map p { margin: 0 0 12px; max-width: 68ch; }
.night-map .crumb { font-size: 14px; color: var(--mute); margin: 0 0 8px; }
.night-map .crumb a { color: var(--mute); }
.night-map .lead { font-size: 18px; }
.night-map .bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 10px; }
.night-map .zoom { margin-left: auto; display: flex; gap: 6px; }
.night-map .zoom button { font: inherit; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; font-size: 20px; cursor: pointer; color: var(--ink); margin: 0; }
.night-map .mapwrap { border: 1px solid var(--line); border-radius: 12px; background: #0e1219; overflow: auto; -webkit-overflow-scrolling: touch; max-height: 82vh; }
.night-map .mapwrap svg { display: block; width: calc(100% * var(--z, 1)); height: auto; }
.night-map .hint { font-size: 14px; color: var(--mute); margin: 8px 0 0; }
.night-map .sel { margin: 12px 0 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 8px; min-height: 76px; }
.night-map .sel b { font-size: 17px; }
.night-map .sel .jp { color: var(--mute); margin-left: 8px; font-size: 15px; }
.night-map .sel p { margin: 4px 0 0; }
.night-map .key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--mute); }
.night-map .key i { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.night-map .key i.sq { border-radius: 3px; }
.night-map .list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.night-map .list li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.night-map .list button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 34px 1fr; gap: 10px; width: 100%; padding: 12px 14px; cursor: pointer; }
.night-map .list button:focus-visible { outline: 3px solid var(--accent); border-radius: 8px; }
.night-map .list .no { width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 14px; display: grid; place-items: center; color: #10141b; }
.night-map .list .nm { font-weight: 650; line-height: 1.3; }
.night-map .list .jp { display: block; color: var(--mute); font-size: 13.5px; font-weight: 400; margin-top: 2px; }
.night-map .list .sub { display: block; font-size: 14px; color: var(--accent); margin-top: 3px; }
.night-map .list .ds { display: block; font-size: 14.5px; color: #cfc9be; margin-top: 4px; line-height: 1.5; }
.night-map .list li.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.night-map .no.t-pm { background: #ffb547; }
.night-map .no.t-light, .night-map .no.t-tea { background: #f39ab0; }
.night-map .no.c-gate { background: #fff; border-radius: 6px; }
.night-map .no.c-facility { background: #b9c7dc; border-radius: 6px; }
.night-map .no.c-food { background: #f6d36b; border-radius: 6px; }
.night-map .no.c-access { background: #6cc7bd; border-radius: 6px; }
.night-map .more { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.night-map .more a { display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: 15px; border: 1px solid var(--ink); color: var(--ink); }
.night-map .more a.pri { background: var(--accent); border-color: var(--accent); color: #10141b; }
.night-map .src { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); max-width: none; }

/* SVG drawing classes for the inline night map (unchanged from the bundled page) */
.night-map .mapwrap svg{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background:#0e1219}
.water{fill:#183549}.land{fill:#262b35}.wall{stroke:#3f4655;stroke-width:6}.stone{fill:#3a404c}
.green{fill:#1f3329}.path{fill:none;stroke:#353b47;stroke-width:11;stroke-linecap:round}
.nino{fill:#8c4b40}.hon{fill:#5a4a35}.bldg{fill:#4a4239}.bldg2{fill:#7a6038}.gate{fill:#8a8379}
.wallline{fill:none;stroke:#7a6038;stroke-width:6}.road{fill:#1a1e26}
.off{fill:#06080c;opacity:.62}
.lbl-off{font-size:22px;font-style:italic;fill:#9298a4;letter-spacing:.04em}
.nroute{fill:none;stroke:#ffb547;stroke-width:6;stroke-dasharray:2 13;stroke-linecap:round;stroke-linejoin:round}
.nroute-arrow{fill:#ffb547}
.io-n{font-size:20px;font-weight:800;fill:#ffb547;letter-spacing:.08em}
.lbl-w{font-size:18px;letter-spacing:.22em;fill:#79abc9;font-weight:600}
.lbl-g{font-size:21px;fill:#93b582;font-style:italic}
.lbl-b{font-size:22px;font-weight:700;letter-spacing:.08em;fill:#efe7da}
.lbl-o{font-size:22px;font-weight:700;letter-spacing:.08em;fill:#7a7266}
.lbl-r{font-size:18px;fill:#727887;letter-spacing:.06em}
.lbl-n{font-size:24px;font-weight:700;fill:#efe7da}.north{fill:#efe7da}
.stop,.fac{cursor:pointer}
.stop circle{stroke:#0e1219;stroke-width:4}.stop text{font-size:20px;font-weight:800}
.stop.t-pm circle{fill:#ffb547}.stop.t-pm text{fill:#241503}
.stop.t-light circle,.stop.t-tea circle{fill:#f39ab0}.stop.t-light text,.stop.t-tea text{fill:#2c0a13}
.fac rect{stroke:#0e1219;stroke-width:3}.fac text{font-size:18px;font-weight:800;fill:#0e1219}
.fac.c-gate rect{fill:#ffffff}.fac.c-facility rect{fill:#b9c7dc}.fac.c-food rect{fill:#f6d36b}.fac.c-access rect{fill:#6cc7bd}
.stop.on circle{stroke:#ffffff;stroke-width:8}.fac.on rect{stroke:#ffffff;stroke-width:7}
.credit{font-size:15px;fill:#7d8290;letter-spacing:.04em}

/* Rounded redesign (2026-11-05): no daytime glow on the dark page, footer card sits on the dark background */
.night-page::before { display: none; }
.night-page .site-footer { background: transparent; }
.night-page main .lede { color: #cfc8bb; }
.night-page .sources { background: var(--card); box-shadow: 0 0 0 1px var(--line); }

/* /night/ top: YouTube Short beside the title (2026-11-11). Removed by night-video.js after December 5, 2026.
   The player sits inside the card with padding, so nothing covers or crops it. */
.night-hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.night-video { margin: 0.5rem auto 1.25rem; width: min(100%, 17rem); }
.yt-box { position: relative; aspect-ratio: 9 / 16; padding: 8px; border-radius: 24px; background: #06080c; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(255, 181, 71, 0.25); }
.yt-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.night-video figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--mute); text-align: center; }
@media (min-width: 900px) {
  .night-hero.has-video { grid-template-columns: minmax(0, 1fr) 19rem; grid-template-rows: auto auto auto 1fr; column-gap: 3rem; }
  .night-hero.has-video > :not(.night-video) { grid-column: 1; }
  .night-hero.has-video .night-video { grid-column: 2; grid-row: 1 / span 4; width: 100%; margin: 1.5rem 0 0; align-self: start; }
}
