/* Kings Island section, card 877.
   The trail guide. Kings Island's coasters stand in the woods, so every page is a ranger's guide.
   Each drawn thing carries real data:
     - the trailhead sign is the title, and the slate plank hanging under it is the page's answer;
     - a trail marker is the park's own 1 to 5 thrill level (circle, square, one to three diamonds);
     - a climb bar or a peak is a coaster's real height in feet, to scale;
     - a slate tile is a posted wait or a posted opening time;
     - a lantern tile on the calendar is an open day (gold evening, green full day, amber late night);
     - a blaze on the map is a ride at its real coordinates, in its trail marker's shape.
   Dark mode is the same woods after sunset. Motion stays off the type and honors reduced motion. */

.ki, .ki-hw {
    --wood: #5a3a22;
    --wood2: #7a5230;
    --slate: #26302b;
    --chalk: #f4f1e6;
    --blaze: #e0a11a;
    --display: var(--font-display, "Bricolage Grotesque", system-ui, sans-serif);
    --body: var(--font-text, "Hanken Grotesk", system-ui, sans-serif);
}
.ki {
    --paper: #f6f0e0;
    --card: #fffaf0;
    --ink: #1f2a22;
    --ink2: #55604f;
    --forest: #23543c;
    --forest2: #2f7350;
    --moss: #e4ead2;
    --open: #23764f;
    --warm: #a86400;
    --hot: #b3321c;
    --easy: #2f8f4e;
    --mild: #2468b0;
    --hard: #1c1f1d;
    --rule: rgba(31, 42, 34, .15);
    /* lantern tiles */
    --night-bg: #fbe9b4; --night-bd: #d9a520; --night-ink: #33250a;
    --day-bg: #d3eedc; --day-bd: #2f8f4e; --day-ink: #0f2f1c;
    --late-bg: #f3b96a; --late-bd: #b8650f; --late-ink: #331a02;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
    padding-bottom: 56px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ki {
        --paper: #0f1814; --card: #162119; --ink: #ece7d6; --ink2: #a9b3a2;
        --forest: #8fd0a8; --forest2: #5fae82; --moss: #24362b; --open: #63d39c; --warm: #f0b04c; --hot: #ff8266;
        --easy: #58c47a; --mild: #6aa8ee; --hard: #ece7d6; --rule: rgba(236,231,214,.16);
        --night-bg: #4a380c; --night-bd: #f1b93c; --night-ink: #fdecc0;
        --day-bg: #14402a; --day-bd: #58c47a; --day-ink: #d6f5e2;
        --late-bg: #6b3608; --late-bd: #f59a3a; --late-ink: #ffe3c2;
    }
    :root:not([data-theme="light"]) .ki, :root:not([data-theme="light"]) .ki-hw { --wood: #3b2716; --wood2: #6b4a2c; --blaze: #f1b93c; }
}
:root[data-theme="dark"] .ki {
    --paper: #0f1814; --card: #162119; --ink: #ece7d6; --ink2: #a9b3a2;
    --forest: #8fd0a8; --forest2: #5fae82; --moss: #24362b; --open: #63d39c; --warm: #f0b04c; --hot: #ff8266;
    --easy: #58c47a; --mild: #6aa8ee; --hard: #ece7d6; --rule: rgba(236,231,214,.16);
    --night-bg: #4a380c; --night-bd: #f1b93c; --night-ink: #fdecc0;
    --day-bg: #14402a; --day-bd: #58c47a; --day-ink: #d6f5e2;
    --late-bg: #6b3608; --late-bd: #f59a3a; --late-ink: #ffe3c2;
}
:root[data-theme="dark"] .ki, :root[data-theme="dark"] .ki-hw { --wood: #3b2716; --wood2: #6b4a2c; --blaze: #f1b93c; }

.ki-wrap { max-width: 1040px; margin: 0 auto; padding: 22px 20px 0; }
.ki h1, .ki h2, .ki h3 { font-family: var(--display); letter-spacing: -.02em; color: var(--ink); }
.ki :where(a) { color: var(--forest); text-underline-offset: 3px; }
.ki :where(a):hover { color: var(--ink); }
.ki :where(a, button, summary):focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.ki :where(h2[id], tr[id], li[id]) { scroll-margin-top: 84px; }
.ki-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- Trailhead sign and the plank that hangs under it ---- */
.ki-crumb { margin: 0 0 14px; font-size: 14px; color: var(--ink2); }
.ki-post { max-width: 1040px; }
.ki-sign {
    position: relative; background: linear-gradient(180deg, var(--wood2), var(--wood)); color: #fbf3df;
    border-radius: 14px; padding: 20px 26px 22px;
    box-shadow: inset 0 0 0 3px rgba(0,0,0,.18), inset 0 0 0 6px rgba(255,238,205,.12), 0 14px 26px -18px rgba(40,24,10,.8);
}
.ki-sign::before, .ki-sign::after {
    content: ""; position: absolute; top: 14px; width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #d9d2c2, #6f6a5e); box-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.ki-sign::before { left: 14px; } .ki-sign::after { right: 14px; }
.ki-sign-kicker { margin: 0 0 6px; padding-left: 22px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f3cf7a; }
.ki .ki-h1, .ki-hw .ki-h1 { margin: 0; padding-left: 22px; font-family: var(--display); letter-spacing: -.02em; color: #fbf3df; font-size: clamp(28px, 5.2vw, 50px); line-height: 1.04; font-weight: 800; text-shadow: 0 2px 0 rgba(0,0,0,.28); }
.ki .ki-h1 span, .ki-hw .ki-h1 span { display: block; margin-top: 8px; font-family: var(--body); font-size: clamp(16px, 2.2vw, 20px); font-weight: 600; letter-spacing: 0; color: #f1e3c4; text-shadow: none; }

.ki-hang {
    position: relative; margin: 14px 28px 0; padding: 12px 18px; width: fit-content; max-width: calc(100% - 56px);
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px;
    background: var(--slate); color: var(--chalk); border-radius: 8px;
    box-shadow: inset 0 0 0 2px var(--wood2), 0 12px 22px -18px rgba(20,14,6,.9);
    font-family: var(--display); font-size: clamp(18px, 2.6vw, 24px); line-height: 1.2;
}
.ki-hang::before, .ki-hang::after {
    content: ""; position: absolute; top: -15px; width: 4px; height: 17px; border-radius: 2px;
    background: repeating-linear-gradient(180deg, #8d877a 0 4px, #5c574d 4px 6px);
}
.ki-hang::before { left: 22px; } .ki-hang::after { right: 22px; }
.ki-hang b { font-weight: 800; }
.ki-hang span { font-family: var(--body); font-size: .74em; font-weight: 600; opacity: .9; }
.ki-hang.is-shut b { color: #ffb19f; }
.ki-hang.is-open b { color: #a9ecc6; }

/* The hours board is the plank, three cells wide. */
.ki-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; width: auto; max-width: none; padding: 0; overflow: visible; }
.ki-board-cell { padding: 14px 20px 16px; border-left: 1px dashed rgba(244,241,230,.24); min-width: 0; }
.ki-board-cell:first-child { border-left: 0; }
.ki-board small { display: block; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.ki-board b { display: block; margin-top: 3px; font-size: clamp(26px, 4.6vw, 40px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.ki-board span { display: block; margin-top: 4px; font-size: 15px; }
.ki-board.is-open b, .ki-board.is-shut b { color: var(--chalk); }
.ki-board.is-open .ki-board-cell:first-child b { color: #a9ecc6; }
.ki-board.is-shut .ki-board-cell:first-child b { color: #ffb19f; }

.ki-tabs { margin: 20px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ki-tabs ul { list-style: none; margin: 0 -10px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2px; }
.ki-tabs li { margin: 0; }
.ki-tabs a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 10px; font-weight: 600; font-size: 15.5px; color: var(--ink2); text-decoration: none; border-bottom: 3px solid transparent; }
.ki-tabs a:hover { color: var(--ink); }
.ki-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--forest); }

.ki-sec { margin-top: 44px; }
.ki-sec--first { margin-top: 26px; }
.ki-sec > h2, .ki-sec-top h2 { margin: 0 0 10px; font-size: clamp(23px, 3.3vw, 31px); line-height: 1.12; }
.ki-sec > p { margin: 0 0 16px; color: var(--ink2); max-width: 66ch; }
.ki-sec-top--row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.ki .ki-answer { margin: 20px 0 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.5; max-width: 66ch; color: var(--ink); }
.ki .ki-updated { margin: 8px 0 0; font-size: 14px; color: var(--ink2); }
.ki .ki-cap { margin: 10px 0 0; font-size: 14px; color: var(--ink2); max-width: 66ch; }
.ki .ki-notice { margin: 16px 0 0; padding: 12px 16px; border-left: 5px solid var(--hot); background: var(--card); border-radius: 0 8px 8px 0; font-size: 15.5px; max-width: 66ch; color: var(--ink); }
.ki .ki-notice b { color: var(--hot); }
.ki-crumb :where(a) { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* ---- Trail markers: the park's 1 to 5 thrill level ---- */
.ki-mark { display: inline-flex; align-items: center; gap: 3px; width: 54px; height: 22px; flex: none; }
.ki-mark i { display: block; width: 13px; height: 13px; background: var(--hard); }
.ki-mark--1 i { border-radius: 50%; background: var(--easy); width: 15px; height: 15px; }
.ki-mark--2 i { background: var(--mild); width: 14px; height: 14px; border-radius: 2px; }
.ki-mark--3 i, .ki-mark--4 i, .ki-mark--5 i { transform: rotate(45deg); width: 11px; height: 11px; margin: 0 2px; }

.ki-legend { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; color: var(--ink2); }
.ki-legend li { display: flex; align-items: center; gap: 7px; margin: 0; }
.ki-legend b { color: var(--ink); }
.ki-legend .ki-mark { width: auto; }

/* ---- The register: one coaster per row, climb bar and a slate tile ---- */
.ki-register { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.ki-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.ki-row h3 { margin: 0; font-size: 20px; line-height: 1.15; }
.ki-waitbar { height: 10px; margin-top: 7px; border-radius: 5px; background: var(--moss); }
.ki-waitbar i { display: block; height: 100%; border-radius: 5px; background: var(--open); }
.ki-row.is-warm .ki-waitbar i { background: var(--warm); } .ki-row.is-hot .ki-waitbar i { background: var(--hot); }
.ki-row h3 em { font-style: normal; font-family: var(--body); font-size: 13.5px; font-weight: 700; letter-spacing: 0; color: var(--hot); margin-left: 8px; white-space: nowrap; }
.ki-row-facts { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 14.5px; color: var(--ink2); }
.ki-row-facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ki-climb {
    position: relative; height: 20px; border-radius: 4px;
    background: repeating-linear-gradient(90deg, transparent 0 calc(var(--tick, 17.4%) - 1px), var(--rule) calc(var(--tick, 17.4%) - 1px) var(--tick, 17.4%)), var(--moss);
    display: flex; align-items: center;
}
.ki-climb i { display: block; height: 100%; border-radius: 4px 9px 9px 4px; background: var(--forest2); flex: none; }
.ki-climb b { margin-left: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ki-chalk { margin: 0; min-width: 92px; padding: 9px 12px; text-align: center; background: var(--slate); color: var(--chalk); border-radius: 8px; box-shadow: inset 0 0 0 2px var(--wood2); }
.ki-chalk b { display: block; font-family: var(--display); font-size: 21px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ki-chalk span { display: block; font-size: 13px; opacity: .85; }
.ki-row.is-hot .ki-chalk b { color: #ffb19f; } .ki-row.is-warm .ki-chalk b { color: #ffd894; } .ki-row.is-open .ki-chalk b { color: #a9ecc6; }
/* Closed, the plank under the sign says it once; the rows keep their facts and drop the slate. */
.ki--quiet .ki-register:not(.ki-register--hours) .ki-chalk, .ki--quiet .ki-list-state { display: none; }
.ki--quiet .ki-register:not(.ki-register--hours) .ki-row { grid-template-columns: auto 1fr; }

.ki-sort { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--moss); }
.ki-sort button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 600 14.5px var(--body); cursor: pointer; }
.ki-sort button[aria-pressed="true"] { background: var(--card); box-shadow: 0 0 0 1px var(--rule); }

.ki-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 36px; }
.ki-group h3 { margin: 0 0 4px; padding-bottom: 8px; font-size: 19px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--ink); }
.ki-group h3 small { font-family: var(--body); font-size: 13.5px; font-weight: 600; color: var(--ink2); letter-spacing: 0; }
.ki-list { list-style: none; margin: 0; padding: 0; }
.ki-list li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.ki-list-name { flex: 1; min-width: 0; font-weight: 600; }
.ki-list-name small { display: block; font-weight: 500; font-size: 13.5px; color: var(--ink2); }
.ki-list-state { font-variant-numeric: tabular-nums; font-size: 14.5px; color: var(--ink2); white-space: nowrap; }
.ki-list li.is-open .ki-list-state { color: var(--open); } .ki-list li.is-warm .ki-list-state { color: var(--warm); } .ki-list li.is-hot .ki-list-state { color: var(--hot); }
.ki-water { margin-top: 22px; border-top: 2px solid var(--ink); }
.ki-water > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; list-style: none; }
.ki-water > summary::-webkit-details-marker, .ki-fold > summary::-webkit-details-marker { display: none; }
.ki-water > summary::before, .ki-fold > summary::before { content: ""; flex: none; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.ki-water[open] > summary::before, .ki-fold[open] > summary::before { transform: rotate(45deg); }

/* ---- Rides page: the elevation profile, coasters as peaks to scale ---- */
.ki-profile-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.ki-profile {
    --plot: 300px; --cap: 124px;
    position: relative; list-style: none; margin: 0; padding: 62px 0 0; min-width: 900px;
    display: grid; grid-template-columns: repeat(var(--n, 15), minmax(0, 1fr)); align-items: end;
}
.ki-profile > li { margin: 0; }
.ki-profile::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--cap); border-top: 2px solid var(--ink); }
.ki-grid { position: absolute; left: 0; right: 0; bottom: calc(var(--cap) + var(--ft) / var(--max) * var(--plot)); height: 0; border-top: 1px dashed var(--rule); pointer-events: none; }
.ki-grid span { position: absolute; right: 0; top: -19px; font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ki-peak { grid-row: 1; grid-column: var(--col); position: relative; z-index: 1; }
.ki-peak a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); }
.ki-peak b { font-family: var(--display); font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; }
.ki-peak b small { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--ink2); }
.ki-peak .ki-mark { width: auto; margin: 5px 0 4px; }
.ki-peak-shape {
    display: block; width: 100%; height: calc(var(--ft) / var(--max) * var(--plot)); min-height: 5px;
    background: linear-gradient(180deg, var(--forest2), var(--forest));
    clip-path: polygon(0 100%, 34% 16%, 50% 0, 66% 18%, 100% 100%);
}
.ki-peak a:hover .ki-peak-shape { background: var(--forest); }
.ki-peak-cap { position: relative; display: block; width: 100%; height: var(--cap); }
/* Names run up to their number on a slant, the way a chart labels a crowded axis. */
.ki-peak-name { position: absolute; top: 12px; right: calc(50% - 4px); white-space: nowrap; font-size: 13.5px; line-height: 1; font-weight: 600; transform-origin: 100% 0; transform: rotate(-38deg); }

.ki-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ki-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ki-table th, .ki-table td { padding: 10px 12px 10px 0; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.ki-table thead th { border-bottom: 2px solid var(--ink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); font-weight: 700; white-space: nowrap; }
.ki-table tbody th { font-weight: 700; }
.ki-table--coasters tbody th { min-width: 250px; }
.ki-crow { display: flex; align-items: center; gap: 8px; }
.ki-climb--row { display: none; background: var(--moss); }
.ki-table td.is-none { color: var(--ink2); font-size: 13.5px; }
.ki-cname em { display: block; font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink2); }
.ki-cname em.is-shut { color: var(--hot); font-weight: 700; }
.ki-table tr:target { background: var(--moss); box-shadow: inset 4px 0 0 var(--blaze); }

.ki-rides { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 36px; border-top: 2px solid var(--ink); }
.ki-rides li { break-inside: avoid; display: grid; grid-template-columns: 54px 1fr; gap: 0 8px; align-items: center; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.ki-rides b { font-weight: 700; font-size: 15.5px; }
.ki-rides span:last-child { grid-column: 2; font-size: 14px; color: var(--ink2); }

/* ---- Map page: the trail map ---- */
.ki-map-hint { display: none; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.ki-map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 3px solid var(--wood2); }
.ki-map-scroll--soak { max-width: 640px; }
.ki-map { --m-ground: #e3ead0; --m-water: #d5e8ee; --m-line: #7a8f6a; --m-ink: #2b3a2a; --m-tower: #5a3a22; --m-halo: #e3ead0; display: block; width: 100%; min-width: 760px; height: auto; }
.ki-map--soak { --m-halo: #d5e8ee; min-width: 560px; }
:root[data-theme="dark"] .ki-map { --m-ground: #17241c; --m-water: #12262d; --m-line: #6f8a72; --m-ink: #dfe6d6; --m-tower: #d9b98a; --m-halo: #17241c; }
:root[data-theme="dark"] .ki-map--soak { --m-halo: #12262d; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ki-map { --m-ground: #17241c; --m-water: #12262d; --m-line: #6f8a72; --m-ink: #dfe6d6; --m-tower: #d9b98a; --m-halo: #17241c; }
    :root:not([data-theme="light"]) .ki-map--soak { --m-halo: #12262d; }
}
.ki-map-ground { fill: var(--m-ground); }
.ki-map-ground--water { fill: var(--m-water); }
.ki-ring { fill: none; stroke: var(--m-line); stroke-width: 1.5; stroke-dasharray: 5 7; opacity: .75; }
.ki-ring-t { font: 600 13px var(--body); fill: var(--m-ink); opacity: .85; }
.ki-tower path { fill: var(--m-tower); }
.ki-tower .ki-tower-deck { fill: none; stroke: var(--m-ground); stroke-width: 2; }
.ki-tower.is-found path:first-child { stroke: var(--blaze); stroke-width: 4; }
.ki-tower-t { font: 700 14px var(--display); fill: var(--m-ink); paint-order: stroke; stroke: var(--m-halo); stroke-width: 4px; stroke-linejoin: round; }
.ki-north circle { fill: var(--m-ground); stroke: var(--m-line); stroke-width: 1.5; }
.ki-north path { fill: var(--m-ink); }
.ki-north text { font: 700 13px var(--body); fill: var(--m-ink); }
/* A blaze: the trail marker's own shape with the ride's number. Shared by the map and the key. */
.ki-bl { stroke: #fffaf0; stroke-width: 1.6; }
.ki-bl--1 { fill: #23764f; } .ki-bl--2 { fill: #2468b0; } .ki-bl--d { fill: #1c1f1d; }
.ki-bl-n { font: 700 13px var(--body); fill: #fff; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .ki-bl--d { fill: #ece7d6; stroke: #17241c; }
:root[data-theme="dark"] .ki-bl--d ~ .ki-bl-n { fill: #1c1f1d; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ki-bl--d { fill: #ece7d6; stroke: #17241c; }
    :root:not([data-theme="light"]) .ki-bl--d ~ .ki-bl-n { fill: #1c1f1d; }
}
.ki-pin { cursor: pointer; }
.ki-pin-hit { fill: transparent; }
.ki-pin:hover .ki-bl, .ki-pin:focus-visible .ki-bl { stroke: var(--blaze); stroke-width: 3; }
.ki-pin-name { font: 700 14px var(--display); fill: var(--m-ink); paint-order: stroke; stroke: var(--m-halo); stroke-width: 4px; stroke-linejoin: round; }
.ki-pin-name.is-quiet { display: none; }
.ki-pin.is-found .ki-pin-name, .ki-pin:target .ki-pin-name { display: block; font-size: 17px; stroke-width: 6px; }
.ki-pin.is-found .ki-bl, .ki-pin:target .ki-bl { stroke: var(--blaze); stroke-width: 4; }
.ki-find { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ki-find label { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.ki-find select { min-height: 44px; max-width: 100%; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: 600 16px var(--body); }
.ki-list-h { margin: 22px 0 0; padding-bottom: 8px; font-size: 19px; border-bottom: 2px solid var(--ink); }
.ki-key { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 36px; }
.ki-key li { break-inside: avoid; display: flex; align-items: center; gap: 8px; margin: 0; padding: 2px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.ki-key li:target { background: var(--moss); box-shadow: inset 4px 0 0 var(--blaze); padding-left: 8px; }
.ki-chip { flex: none; display: block; overflow: visible; }
.ki .ki-key-name { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); text-decoration-color: var(--rule); padding: 9px 0; }
.ki-key-where { flex: none; font-size: 14px; color: var(--ink2); font-variant-numeric: tabular-nums; }

/* ---- Hours pages: the lantern calendar ---- */
.ki-date { flex: none; width: 54px; padding: 6px 0 7px; text-align: center; border-radius: 8px; background: var(--moss); line-height: 1; }
.ki-date b { display: block; font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
.ki-date small { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.ki-register--hours { margin-top: 0; }
.ki-register--hours .ki-row h3 { margin: 0; }
.ki-register--hours .ki-row-facts { margin-top: 2px; }
.ki-register--hours .ki-chalk { min-width: 104px; }
.ki-register--hours .ki-row.is-night .ki-chalk b { color: #ffd894; }
.ki-register--hours .ki-row.is-day .ki-chalk b { color: #a9ecc6; }
.ki-register--hours .ki-row.is-late .ki-chalk b { color: #ffc07a; }

.ki-patterns { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ki-patterns li { display: grid; grid-template-columns: 26px minmax(150px, auto) 1fr; gap: 2px 12px; align-items: baseline; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.ki-patterns .ki-swatch { align-self: center; }
.ki-patterns b { font-family: var(--display); font-size: 20px; line-height: 1.2; }
.ki-patterns span { font-weight: 600; font-size: 15.5px; }
.ki-patterns small { grid-column: 2 / -1; font-size: 14px; color: var(--ink2); }

.ki-more, .ki-pager a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.ki-pager { margin: 0; display: flex; gap: 18px; }
.ki-pager a[rel="prev"]::before { content: "\2190\00a0"; } .ki-pager a[rel="next"]::after { content: "\00a0\2192"; }

.ki-cal { margin-top: 4px; }
.ki-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.ki-cal-head span { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.ki-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.ki-cal-grid > li { margin: 0; }
.ki-day { min-height: 70px; padding: 8px 9px; border-radius: 10px; border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ki-day.is-blank { border: 0; }
.ki-day b { font-family: var(--display); font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; }
.ki-day-w { display: none; }
.ki-day-h { font-size: 13.5px; line-height: 1.25; font-weight: 600; }
.ki-day-h i { font-style: normal; font-weight: 500; }
.ki-day-tiny { display: none; }
.ki-day.is-night { background: var(--night-bg); border-color: var(--night-bd); color: var(--night-ink); }
.ki-day.is-day { background: var(--day-bg); border-color: var(--day-bd); color: var(--day-ink); }
.ki-day.is-late { background: var(--late-bg); border-color: var(--late-bd); color: var(--late-ink); }
.ki-day.is-shut { border-style: dashed; border-color: color-mix(in srgb, var(--ink2) 55%, transparent); color: var(--ink2); }
.ki-day.is-shut .ki-day-h { font-weight: 500; }
.ki-day.is-today { outline: 3px solid var(--ink); outline-offset: 1px; }
.ki-day.is-past { border-color: transparent; min-height: 0; color: var(--ink2); }
.ki-day.is-past b { font-weight: 500; }
.ki-legend--cal { margin: 14px 0 0; }
.ki-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--rule); }
.ki-swatch.is-night { background: var(--night-bg); border-color: var(--night-bd); }
.ki-swatch.is-day { background: var(--day-bg); border-color: var(--day-bd); }
.ki-swatch.is-late { background: var(--late-bg); border-color: var(--late-bd); }
.ki-swatch.is-shut { background: transparent; border-style: dashed; border-color: var(--ink2); }
.ki-fold > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: var(--forest); list-style: none; }
.ki-table--days tr.is-shut th, .ki-table--days tr.is-shut td { color: var(--ink2); font-weight: 500; }
.ki-table--days tr.is-today th { box-shadow: inset 4px 0 0 var(--blaze); padding-left: 10px; }

/* ---- Shared page furniture ---- */
.ki-faq details { border-top: 1px solid var(--rule); }
.ki-faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.ki-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 17px; }
.ki-faq details p { margin: 0 0 16px; color: var(--ink2); max-width: 68ch; }
.ki-links { margin-top: 44px; padding-top: 16px; border-top: 2px solid var(--ink); }
.ki-links-h { margin: 0 0 6px; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.ki-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.ki-links li { margin: 0; }
.ki-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15.5px; }
.ki-foot { margin: 28px 0 0; font-size: 13.5px; color: var(--ink2); }

/* ---- Height page: the shared measuring post, one park, under the same trailhead sign ---- */
.ki-hwpage { background: oklch(23.5% 0.048 280); }
.ki-hw { --rule: oklch(93% 0.03 84 / .16); --ink2: var(--hw-mute); --forest: var(--hw-gold); }
.ki-hwpage .ki-hw { max-width: 1040px; margin-inline: auto; padding-inline: 20px; padding-top: 22px; --in: 0px; }
.ki-hw .hw-head { max-width: none; padding-inline: 0; }
.ki-hw .hw-answer { min-height: 0; margin: 22px 0 0; max-width: 66ch; }
.ki-hw .hw-updated { margin-top: 8px; }
.ki-hw .hw-sec > h2 { font-family: var(--display); letter-spacing: -.02em; font-weight: 700; }
.ki-hw .hw-head { padding-top: 0; }
.ki-hw .hw-crumb { margin-bottom: 10px; }
.ki-hw .hw-tag i { display: none; }
.ki-hw .ki-links { border-top-color: var(--hw-ink); }
.ki-hw .ki-links-h { color: var(--hw-ink); }
.ki-hw .ki-links a { color: var(--hw-gold); }
.ki-hw .ki-tabs { margin-top: 20px; }
.ki-hw .ki-tabs a { color: var(--hw-mute); }
.ki-hw .ki-tabs a:hover, .ki-hw .ki-tabs a[aria-current="page"] { color: var(--hw-ink); }
.ki-hw .ki-tabs a[aria-current="page"] { border-bottom-color: var(--hw-gold); }
.ki-hw :where(.ki-tabs a):focus-visible { outline: 3px solid var(--hw-gold); outline-offset: 3px; border-radius: 6px; }
.ki-hw .hw-tag em { display: none; }
.ki-hw-more > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--hw-gold); color: var(--hw-gold); font-weight: 700; margin: 4px 0 14px; }
.ki-hw-more[open] > summary { background: var(--hw-gold); color: oklch(24% 0.045 280); }
.ki-hw .hw-mark--top, .ki-hw .hw-row--cap .hw-post { white-space: nowrap; }
.ki-hw .hw-mark--top { font-size: .85rem; }
.ki-hw .hw-row--cap .hw-mark, .ki-hw .hw-row--cap .hw-mark * { white-space: nowrap; display: inline; }
.ki-hw .ki-table { color: var(--hw-ink); }
.ki-hw .ki-table th, .ki-hw .ki-table td { border-bottom-color: oklch(93% 0.03 84 / .16); }
.ki-hw .ki-table thead th { color: var(--hw-mute); border-bottom-color: var(--hw-ink); }
.ki-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px 32px; margin: 18px 0; }
.ki-rules h3 { margin: 0 0 4px; padding-bottom: 8px; font-size: 1.05rem; border-bottom: 2px solid var(--hw-ink); }
.ki-rules ul { list-style: none; margin: 0; padding: 0; }
.ki-rules li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 7px 0; border-bottom: 1px solid oklch(93% 0.03 84 / .16); font-size: .95rem; }
.ki-rules li span { color: var(--hw-mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ki-hw-foot { margin: 36px 0 0; font-size: 13.5px; color: var(--hw-mute); }

@media (max-width: 820px) {
    .ki .ki-map-hint { display: block; }
}
@media (max-width: 640px) {
    .ki-wrap { padding: 14px 14px 0; }
    .ki-crumb { margin-bottom: 10px; }
    .ki-sign { padding: 14px 16px 15px; border-radius: 12px; }
    .ki-sign-kicker { padding-left: 18px; margin-bottom: 3px; }
    .ki .ki-h1, .ki-hw .ki-h1 { padding-left: 18px; font-size: 26px; }
    .ki .ki-h1 span, .ki-hw .ki-h1 span { display: none; }
    .ki-hang { margin: 12px 18px 0; padding: 10px 14px; max-width: calc(100% - 36px); }
    .ki-board { grid-template-columns: 1.6fr 1fr; margin-inline: 0; max-width: none; }
    .ki-board-cell { padding: 10px 14px 12px; }
    .ki-board-cell:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 10px; border-bottom: 1px dashed rgba(244,241,230,.24); }
    .ki-board-cell:first-child small { grid-column: 1 / -1; }
    .ki-board-cell:nth-child(2) { border-left: 0; }
    .ki-board small { font-size: 13px; letter-spacing: .04em; }
    .ki-board b { font-size: 24px; }
    .ki-board span { font-size: 14px; line-height: 1.25; }
    .ki-tabs { margin-top: 14px; }
    .ki-tabs ul { margin: 0 -8px; gap: 0; }
    .ki-tabs a { padding: 0 8px; font-size: 15px; }
    .ki-sec--first { margin-top: 20px; }

    .ki-row { grid-template-columns: auto 1fr 82px; gap: 10px; padding: 10px 0; }
    .ki-row .ki-mark { width: 44px; }
    .ki-row h3 { font-size: 18px; }
    .ki-row-facts { font-size: 13.5px; gap: 0 12px; }
    .ki-chalk { min-width: 0; padding: 8px 6px; }
    .ki-chalk b { font-size: 18px; }
    .ki-register--hours .ki-chalk { min-width: 0; }
    .ki-date { width: 46px; }

    /* The peaks need room for their names, so a phone gets the same heights as bars in the list below. */
    .ki-profile-scroll { display: none; }
    .ki-climb--row { display: flex; flex: 0 0 100%; margin: 6px 0 2px; }
    .ki-table--coasters td[data-l="Climb"] { display: none; }
    .ki-patterns li { grid-template-columns: 26px 1fr; }
    .ki-patterns span, .ki-patterns small { grid-column: 2; }
    .ki-map { min-width: 900px; }
    .ki-map--soak { min-width: 620px; }
    .ki-bl-n { font-size: 15px; }
    .ki-pin-name, .ki-ring-t, .ki-tower-t { font-size: 16px; }
    .ki-hwpage .ki-hw { padding-inline: 14px; padding-top: 14px; }

    .ki-table--coasters thead { display: none; }
    .ki-table--coasters tr { display: flex; flex-wrap: wrap; gap: 0 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
    .ki-table--coasters th, .ki-table--coasters td { border: 0; padding: 0; }
    .ki-table--coasters tbody th { flex: 0 0 100%; min-width: 0; margin-bottom: 4px; }
    .ki-table--coasters td { font-size: 14px; color: var(--ink2); }
    .ki-table--coasters td::before { content: attr(data-l) " "; font-weight: 400; }
    .ki-table--coasters td.is-none { display: none; }
    .ki-rides, .ki-key { columns: 1; }

    .ki-cal-head { gap: 3px; margin-bottom: 3px; }
    .ki-cal-head span { font-size: 13px; letter-spacing: 0; text-transform: none; }
    .ki-cal-grid { gap: 3px; }
    .ki-day { min-height: 68px; padding: 5px 1px; align-items: center; gap: 3px; border-radius: 7px; }
    .ki-day b { font-size: 15px; }
    .ki-day-long { display: none; }
    .ki-day-tiny { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; white-space: nowrap; text-align: center; }
    .ki-day.is-past { visibility: hidden; }
}
@media (prefers-reduced-motion: no-preference) {
    .ki-peak-shape, .ki-bl { transition: stroke .15s ease, background-color .15s ease; }
}
