/* Light Science › Climate and light (module 3·0). Builds on site.css tokens, the app-window frame and the sun
   module's explorer styles (sun-daylight.css, loaded first). Dark windows with mint hairlines; lime only on dark
   ground for the selected province and month. Frost is blue, heat orange, neither a neutral grey; position, labels
   and the table carry the same information, so colour is never the only cue. */

/* ---------- hero ---------- */
.cl-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.cl-hero-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px clamp(28px, 5vw, 72px); align-items: end; }
.cl-hero h1 { margin-bottom: 14px; max-width: 16ch; }
.cl-question { margin: 0; padding-left: 14px; border-left: 3px solid var(--accent); max-width: 30ch; font-size: clamp(1.12rem, 1.5vw, 1.34rem); font-weight: 650; line-height: 1.4; letter-spacing: -0.01em; color: #fff; text-wrap: balance; }
.cl-hero-side .lead { margin: 0 0 22px; max-width: 54ch; }
.cl-hero-fig { margin: clamp(28px, 3.6vw, 44px) 0 0; }
.cl-hero-fig figcaption { margin-top: 12px; font-size: 0.8rem; line-height: 1.55; color: var(--fg-3); max-width: 110ch; }
.cl-cap-tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 5px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-mint); background: rgba(66, 211, 156, 0.1); border: 1px solid rgba(66, 211, 156, 0.25); vertical-align: 1px; }
.cl-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 0.82rem; }
.cl-tags li { display: inline-flex; align-items: center; gap: 8px; }
.cl-tags li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-mint); }

.cl-win { border-color: rgba(66, 211, 156, 0.18); box-shadow: 0 50px 110px -50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(66, 211, 156, 0.08); background: linear-gradient(180deg, #0c1c17, #08130f 70%); }
.cl-win .aw-bar { height: 48px; }
.cl-win .aw-badge { text-transform: none; letter-spacing: 0.02em; font-size: 0.74rem; }
.cl-stage { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.cl-mapcol { position: relative; min-width: 0; padding: 18px 22px 16px; background: radial-gradient(70% 90% at 30% 10%, rgba(66, 211, 156, 0.07), rgba(66, 211, 156, 0) 70%); }
.cl-seccol { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; border-left: 1px solid rgba(255, 255, 255, 0.07); background: rgba(3, 9, 7, 0.35); }
.cl-maphead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; min-height: 44px; }
.cl-month { display: flex; align-items: center; gap: 12px; margin: 0; }
.cl-month-n { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.025em; color: #fff; line-height: 1.1; }
.cl-month.is-in .cl-month-n, .cl-month.is-in .cl-chip, .cl-place.is-in b { animation: cl-in 0.5s var(--ease) both; }
.cl-month.is-in .cl-chip { animation-delay: 60ms; }
@keyframes cl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cl-chip { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #dbe9e2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.cl-chip.is-year { background: rgba(255, 255, 255, 0.08); color: #eef4f0; }
.cl-yearnote { margin: 0; font-size: 0.86rem; font-weight: 650; color: #dbe9e2; }
.cl-yearnote[hidden] { display: none; }
.cl-map { position: relative; aspect-ratio: 1000 / 427; margin-top: 4px; border-radius: 12px; }
.cl-win:not(.is-ready) .cl-map { background: linear-gradient(100deg, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.02) 70%) 0 0 / 300% 100%; animation: cl-sk 1.6s linear infinite; }
@keyframes cl-sk { to { background-position: -150% 0; } }
.cl-win.is-failed .cl-map { animation: none; }
.cl-map .sd-map-svg { cursor: pointer; }
.cl-map .sd-prov { transition: none; stroke: #07120f; stroke-width: 0.8; }
.cl-map .sd-provs .sd-prov:hover { stroke: #fff; stroke-width: 1.4; }
.cl-map .sd-reg { stroke: rgba(238, 244, 240, 0.5); stroke-width: 1.3; }
.cl-map .sd-reglabs text { fill: rgba(243, 248, 245, 0.62); font-weight: 700; stroke-width: 3px; transition: opacity 0.3s; }
.cl-bothg { pointer-events: none; }
.cl-bothp { stroke: #07120f; stroke-width: 0.8; }
.cl-pin { pointer-events: none; }
.cl-pin-r { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: 0.9; transform-box: fill-box; transform-origin: center; animation: cl-ping 2.4s var(--ease) infinite; }
.cl-pin-d { fill: var(--accent); stroke: #07120f; stroke-width: 1.4; }
.cl-pin-t { fill: #fff; font-family: var(--font); font-weight: 800; paint-order: stroke; stroke: rgba(7, 18, 15, 0.92); stroke-width: 4px; stroke-linejoin: round; }
@keyframes cl-ping { 0% { transform: scale(0.6); opacity: 0.95; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.cl-noscript { margin: 0; padding: 40px 12px; text-align: center; color: #a9bbb3; font-size: 0.9rem; }

/* hero legend */
.cl-leg { margin-top: 10px; font-size: 0.76rem; color: #b3c3bb; }
.cl-leg-t { display: block; margin-bottom: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa49b; }
.cl-div { display: grid; grid-template-columns: auto minmax(140px, 330px) auto; justify-content: start; align-items: start; gap: 12px; }
.cl-div > span { font-weight: 700; color: #dbe9e2; white-space: nowrap; line-height: 10px; }
.cl-div > .is-frost::before, .cl-div > .is-hot::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; vertical-align: 0; }
.cl-div > .is-frost::before { margin-right: 6px; background: #6aabdf; }
.cl-div > .is-hot::after { margin-left: 6px; background: #e47c3c; }
.cl-div-scale { display: block; }
.cl-div-bar { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #a6d3f6, #6aabdf 17%, #3f7fb4 33%, #2c4d68 46%, #4a4f4d 50%, #5b4130 54%, #ba5a2a 67%, #d86d32 83%, #ffb37c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cl-div-ticks { position: relative; display: block; height: 14px; margin-top: 3px; font-size: 0.66rem; color: #8a9b93; font-variant-numeric: tabular-nums; }
.cl-div-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.cl-leg-m { display: block; }
.cl-leg-m[hidden], .cl-leg-y[hidden] { display: none; }
.cl-leg-y { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; }
.cl-leg-y li { display: inline-flex; align-items: center; gap: 7px; }
.cl-leg-y i { width: 14px; height: 10px; border-radius: 2px; }
.cl-leg-y .k-frost { background: #3f7fb4; }
.cl-leg-y .k-hot { background: #d86d32; }
.cl-leg-y .k-both { background: repeating-linear-gradient(45deg, #3f7fb4 0 3px, #d86d32 3px 6px); }
.cl-leg-y .k-none { background: #4a4f4d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* drawing column */
.cl-place { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font-size: 0.86rem; color: #a9bbb3; }
.cl-place b { color: #fff; font-weight: 750; font-size: 0.95rem; }
.cl-place span { font-weight: 700; color: #cfe3d9; font-size: 0.8rem; letter-spacing: 0.02em; }
.cl-section { border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(66, 211, 156, 0.14); }
.cl-tunnel { display: block; width: 100%; height: auto; }
.cl-x { opacity: 0; transition: opacity 0.45s var(--ease); }
.cl-x.on { opacity: 1; animation: cl-twinkle 3.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes cl-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.cl-sh { opacity: 0; transition: opacity 0.6s var(--ease); }
.cl-sh.on { animation: cl-rise 2.6s linear infinite; animation-delay: var(--d); }
@keyframes cl-rise { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: 1; } 70% { opacity: 0.7; } 100% { opacity: 0; transform: translateY(-30px); } }
.cl-tw { animation: cl-twinkle 4s ease-in-out infinite; animation-delay: var(--d); }
.cl-sunhalo { animation: cl-breathe 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes cl-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }
.cl-rime, .cl-heat, .cl-gap { transition: none; }
.cl-reads { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-read b { font-variant-numeric: tabular-nums; }
.cl-read { display: flex; align-items: center; gap: 9px; margin: 0; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.8rem; line-height: 1.35; color: #dbe9e2; font-variant-numeric: tabular-nums; }
.cl-read i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.cl-read.is-frost i { background: #6aabdf; }
.cl-read.is-hot i { background: #e47c3c; }
.cl-read b { font-weight: 700; }
.cl-outside { margin: 0; font-size: 0.74rem; line-height: 1.5; color: #8fa49b; }
.cl-outside::before { content: 'i'; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 7px; border-radius: 50%; border: 1px solid rgba(143, 164, 155, 0.6); font-size: 0.62rem; font-weight: 800; font-style: italic; vertical-align: 1px; }

/* tour: three provinces, then the year */
.cl-tour { display: flex; align-items: stretch; gap: 6px; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(3, 9, 7, 0.28); }
.cl-tour-k { align-self: center; margin-right: 6px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8fa49b; }
.cl-tour button { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; gap: 8px; padding: 9px 12px 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: #8fa49b; font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: background-color 0.25s, color 0.25s; }
.cl-tour button:hover { background: rgba(255, 255, 255, 0.07); }
.cl-tour button b { flex: none; font-size: 0.88rem; font-weight: 750; color: #cfe3d9; }
.cl-tour button span { min-width: 0; font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-tour button i { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 1px; background: rgba(66, 211, 156, 0.8); transform: scaleX(0); transform-origin: 0 50%; }
.cl-tour button.is-on { background: rgba(255, 255, 255, 0.08); color: #dbe9e2; }
.cl-tour button.is-on b { color: #fff; }
.cl-tour button.is-on i { background: var(--accent); }
.cl-tour button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-place.is-in b { display: inline-block; }

/* timeline */
.cl-timeline { display: flex; align-items: center; gap: 14px; padding: 12px 18px 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(3, 9, 7, 0.3); }
.cl-play { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #fff; font: inherit; font-size: 0.8rem; font-weight: 750; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.cl-play:hover { border-color: #fff; }
.cl-play svg { width: 12px; height: 12px; display: none; }
.cl-win:not([data-mode='play']):not([data-mode='done']) .cl-play .i-play, .cl-win[data-mode='play'] .cl-play .i-pause, .cl-win[data-mode='done'] .cl-play .i-replay { display: block; }
.cl-win[data-mode='play'] .cl-play { background: #eef4f0; border-color: #eef4f0; color: #07120f; }
.cl-play:focus-visible, .cl-strip button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-strip { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 4px; }
.cl-strip button { position: relative; min-height: 38px; padding: 0 2px 6px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.03); color: #8fa49b; font: inherit; font-size: 0.74rem; font-weight: 700; cursor: pointer; transition: background-color 0.2s, color 0.2s; overflow: hidden; }
.cl-strip button:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.cl-strip button[aria-pressed='true'] { color: #07120f; background: #eef4f0; }
.cl-strip button i { position: absolute; left: 6px; right: 6px; bottom: 5px; height: 2px; border-radius: 1px; background: rgba(66, 211, 156, 0.75); transform: scaleX(0); transform-origin: 0 50%; }
.cl-strip button[aria-pressed='true'] i { background: rgba(7, 18, 15, 0.5); }
.cl-strip-y { letter-spacing: 0.04em; }
.cl-pick { margin: 0; padding: 0 18px 14px; font-size: 0.78rem; color: #a9bbb3; }
.cl-pick[hidden] { display: none; }

/* reduced motion: one frame (the year) and a table of the toured provinces; no autoplay */
.cl-win.is-still .cl-play, .cl-win.is-still .cl-tour i { display: none; }
.cl-tourtable { margin: 0 18px 16px; padding: 4px 14px 6px; }
.cl-tourtable[hidden] { display: none; }
.cl-tourtable table { width: 100%; }
.cl-tourtable td small { color: #8a9b93; }
@media (prefers-reduced-motion: reduce) {
  .cl-x.on, .cl-sh.on, .cl-tw, .cl-sunhalo, .cl-pin-r { animation: none !important; }
  .cl-sh.on { opacity: 0.7; }
  .cl-month.is-in .cl-month-n, .cl-month.is-in .cl-chip, .cl-place.is-in b { animation: none; }
}

/* ---------- frost and heat (paper section) ---------- */
.cl-faces-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.cl-face-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cl-face { position: relative; padding: 16px 18px 16px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.cl-face::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 3px 3px 0; background: var(--k); }
.cl-face.is-coast, .cl-face.is-southeast { --k: #d9622b; }
.cl-face.is-east { --k: #2f78c4; }
.cl-face.is-both { --k: repeating-linear-gradient(180deg, #2f78c4 0 6px, #d9622b 6px 12px); background: linear-gradient(90deg, rgba(47, 120, 196, 0.06), rgba(217, 98, 43, 0.06)), #fff; border-color: var(--line-2); }
.cl-face p { margin: 0; font-size: 0.94rem; line-height: 1.55; color: var(--fg-2); }
.cl-face .cl-face-k { margin-bottom: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); }
.cl-face.is-both p:last-child { color: var(--fg); font-weight: 600; }
.cl-bf { padding: 20px 20px 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.cl-h { margin: 0 0 4px; font-size: 1.08rem; font-weight: 750; letter-spacing: -0.01em; color: var(--fg); }
.cl-sub { margin: 0 0 14px; font-size: 0.84rem; line-height: 1.5; color: var(--fg-3); }
.cl-bf-head, .cl-bf-rows a { display: grid; grid-template-columns: minmax(0, 1fr) 9.5em minmax(0, 1fr); align-items: center; gap: 10px; }
.cl-bf-head { margin-bottom: 6px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.cl-bf-head .is-frost { text-align: right; color: #2f6aa8; }
.cl-bf-head .is-hot { color: #b8531f; }
.cl-bf-rows { list-style: none; margin: 0; padding: 0; }
.cl-bf-rows li + li { border-top: 1px solid var(--line); }
.cl-bf-rows a { padding: 7px 4px; border-radius: 8px; text-decoration: none; color: var(--fg); transition: background-color 0.15s; }
.cl-bf-rows a:hover { background: var(--bg-2); }
.cl-bf-rows a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.cl-bf-n { text-align: center; font-size: 0.88rem; font-weight: 700; }
.cl-bf-f, .cl-bf-h { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.cl-bf-f { justify-content: flex-end; }
.cl-bf-f i, .cl-bf-h i { display: block; height: 12px; width: var(--w); border-radius: 3px; }
.cl-bf-f i { background: #3b82cc; border-radius: 3px 0 0 3px; }
.cl-bf-h i { background: #e06a30; border-radius: 0 3px 3px 0; }
.cl-bf-f b, .cl-bf-h b { font-weight: 700; color: var(--fg-2); min-width: 2.2em; }
.cl-bf-f b { text-align: right; }
.cl-note { margin: 12px 0 0; font-size: 0.76rem; line-height: 1.5; color: var(--fg-3); }

/* ---------- explorer ---------- */
.cl-ctl { display: grid; grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1.45fr); gap: 14px 22px; }
.cl-f-metric { grid-column: 1 / -1; }
.cl-seg button { flex: 1 1 auto; }
.cl-yearbtn { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #fff; font: inherit; font-size: 0.8rem; font-weight: 750; cursor: pointer; }
.cl-yearbtn[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cl-ui.is-year input[type='range'] { opacity: 0.45; }
.cl-mapbox .sd-prov { transition: fill 0.25s linear; }
.cl-ramp-wrap { width: 100%; }
.cl-ramp-t { margin: 0 0 6px; font-size: 0.78rem; font-weight: 650; color: #cfe3d9; }
.cl-ramp { display: block; height: 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cl-ramp-ticks { position: relative; height: 16px; margin-top: 3px; font-size: 0.68rem; color: #9fb3aa; font-variant-numeric: tabular-nums; }
.cl-ramp-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.cl-ramp-ticks span:first-child { transform: none; }
.cl-ramp-ticks span:last-child { transform: translateX(-100%); }
.cl-def { color: #cfe3d9; }
.cl-ramp-mini { max-width: 420px; margin-top: 10px; }

/* climate calendar */
.cl-scale-note { margin: 2px 0 4px; font-size: 0.72rem; line-height: 1.45; color: #8fa49b; }
.cl-sheet-grip, .cl-sheet-x, .cl-peek { display: none; }
.cl-cal-head { position: relative; }
/* phones: the calendar opens from the bottom (native modal dialog, so focus, Escape and the backdrop work) */
html.cl-locked { overflow: hidden; }
.cl-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92dvh; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
.cl-sheet::backdrop { background: rgba(3, 9, 7, 0.64); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.cl-sheet .cl-cal { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 12px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; border: 1px solid rgba(66, 211, 156, 0.22); border-bottom: 0; background: #0d1b16; box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, 0.75); transition: transform 0.28s var(--ease); }
.cl-sheet[open] .cl-cal { animation: cl-sheet-in 0.36s var(--ease) both; }
@keyframes cl-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.cl-sheet .cl-sheet-grip { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; padding: 9px 0 6px; background: #0d1b16; touch-action: none; cursor: grab; }
.cl-sheet .cl-sheet-grip i { width: 42px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); }
.cl-sheet .cl-cal-head { position: sticky; top: 19px; z-index: 2; margin: 0 -12px 10px; padding: 4px 56px 10px 12px; background: #0d1b16; border-bottom: 1px solid rgba(255, 255, 255, 0.07); touch-action: none; }
.cl-sheet .cl-label-sim { display: none; }
.cl-sheet .cl-sheet-x { position: absolute; right: 8px; top: 2px; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; }
.cl-sheet .cl-sheet-x svg { width: 16px; height: 16px; }
.cl-sheet .cl-sheet-x:focus-visible, .cl-peek-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-sheet .cl-cal-name:focus { outline: none; }
.cl-sheet .cl-cal-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .cl-sheet[open] .cl-cal { animation: none; } .cl-sheet .cl-cal { transition: none; } }
.cl-cal { padding: 18px 18px 16px; }
.cl-cal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.cl-kicker { margin: 0 0 2px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-mint); }
.cl-cal-name { font-size: 1.3rem; }
.cl-label-sim { font-size: 0.7rem; font-weight: 750; color: var(--brand-mint); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(66, 211, 156, 0.3); background: rgba(66, 211, 156, 0.06); }
.cl-cal-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr); gap: 18px; align-items: start; }
.cl-cal-charts { min-width: 0; display: grid; gap: 12px; }
.cl-ch { min-width: 0; padding: 12px 12px 6px; border-radius: 12px; background: rgba(7, 18, 15, 0.4); border: 1px solid rgba(255, 255, 255, 0.07); }
.cl-ch-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 4px; }
.cl-ch-h h4 { margin: 0; font-size: 0.86rem; font-weight: 750; color: #fff; }
.cl-legend { margin: 0; }
.cl-legend .k-band { width: 10px; height: 14px; border-radius: 3px; background: linear-gradient(0deg, #5f9fd8, #4a4f4d 50%, #d96f33); }
.cl-legend .k-mean { height: 0; width: 14px; border-top: 2px solid #eef4f0; border-radius: 0; }
.cl-legend .k-frost { width: 8px; height: 12px; background: #6aabdf; }
.cl-legend .k-hot { width: 8px; height: 12px; background: #e47c3c; }
.cl-legend [hidden] { display: none; }
.cl-svg .cl-selcol { fill: rgba(216, 243, 106, 0.055); stroke: rgba(216, 243, 106, 0.28); }
.cl-svg .cl-hits rect { cursor: pointer; }
.cl-svg .cl-hits rect:hover { fill: rgba(255, 255, 255, 0.035); }
.cl-svg .cl-bar.is-sel { stroke: var(--accent); stroke-width: 1.6; }
.cl-svg .cl-mean { stroke: #eef4f0; stroke-width: 2; stroke-linecap: round; opacity: 0.9; pointer-events: none; }
.cl-svg .cl-ref { stroke-width: 1.2; stroke-dasharray: 4 4; pointer-events: none; }
.cl-svg .cl-ref.is-frost { stroke: rgba(140, 196, 242, 0.55); }
.cl-svg .cl-ref.is-hot { stroke: rgba(245, 145, 79, 0.55); }
.cl-svg text.cl-ref-t { font-size: 10.5px; font-weight: 750; }
.cl-svg text.cl-ref-t.is-frost { fill: #8cc4f2; }
.cl-svg text.cl-ref-t.is-hot { fill: #f5914f; }
.cl-svg text.cl-mlab { fill: #8a9b93; }
.cl-svg text.cl-mlab.is-sel { fill: var(--accent); font-weight: 800; }
.cl-svg text.cl-vlab { fill: #fff; font-weight: 800; font-size: 11.5px; paint-order: stroke; stroke: rgba(7, 18, 15, 0.9); stroke-width: 3px; }
.cl-svg text.cl-vlab.is-frost { fill: #a3d2f4; }
.cl-svg text.cl-vlab.is-hot { fill: #ffb37c; }
.cl-svg .cl-col { pointer-events: none; }
.cl-svg .cl-col.is-frost { fill: #6aabdf; }
.cl-svg .cl-col.is-hot { fill: #e47c3c; }
.cl-svg .cl-col.is-zero { opacity: 0.35; }
.cl-read-m { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.cl-read-m[hidden] { display: none; }
.cl-cal .cl-note { margin: 0; color: #8fa49b; }
.cl-cal-side { min-width: 0; display: grid; gap: 12px; }
.cl-tiles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cl-tiles > div { min-width: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.cl-tiles dt { font-size: 0.7rem; font-weight: 750; color: #9fb3aa; line-height: 1.3; }
.cl-tiles dd { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.cl-tiles b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; color: #fff; font-variant-numeric: tabular-nums; }
.cl-tiles small { font-size: 0.7rem; color: #8a9b93; }
.cl-tiles dd span { flex-basis: 100%; font-size: 0.7rem; color: #b3c3bb; }
.cl-bridge { padding: 13px 14px; border-radius: 12px; background: linear-gradient(180deg, rgba(240, 214, 96, 0.08), rgba(240, 214, 96, 0.02)); border: 1px solid rgba(240, 214, 96, 0.28); }
.cl-bridge-t { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #f3f1e0; font-weight: 600; }
.cl-bridge-a { margin: 6px 0 8px; font-size: 0.74rem; line-height: 1.45; color: #b3b39a; }
.cl-bridge-l { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 750; color: #f0d660; text-decoration: none; }
.cl-bridge-l svg { width: 14px; height: 14px; }
.cl-bridge-l:hover { text-decoration: underline; }
.cl-outside-s { padding: 0 2px; }
.cl-table td small { color: #8a9b93; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cl-cal-grid { grid-template-columns: 1fr; }
  .cl-cal-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .cl-cal-side .cl-outside-s { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .cl-hero-head { grid-template-columns: 1fr; }
  .cl-stage { grid-template-columns: 1fr; }
  .cl-seccol { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .cl-faces-grid { grid-template-columns: 1fr; }
  .cl-section { max-width: 640px; }
}
@media (max-width: 700px) {
  .cl-peek { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
  .cl-peek-t { min-width: 0; display: grid; gap: 2px; }
  .cl-peek-t b { font-size: 1rem; font-weight: 800; color: #fff; }
  .cl-peek-t span { font-size: 0.76rem; color: #b3c3bb; font-variant-numeric: tabular-nums; }
  .cl-peek-b { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: #eef4f0; color: #07120f; font: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer; }
  .cl-peek-b svg { width: 14px; height: 14px; }
  .cl-cal-slot:empty { display: none; }
  .cl-tour { gap: 4px; padding: 8px 8px; }
  .cl-tour-k, .cl-tour button span { display: none; }
  .cl-tour button { justify-content: center; padding: 8px 4px 11px; }
  .cl-tour button b { font-size: 0.78rem; }
  .cl-tourtable { margin: 0 10px 12px; padding: 2px 8px 4px; }
  .cl-win .aw-title, .cl-app .aw-title { display: none; }
  .cl-mapcol { padding: 14px 12px 12px; }
  .cl-seccol { padding: 14px 12px 14px; }
  .cl-month-n { font-size: 1.45rem; }
  .cl-div { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .cl-div-scale { grid-column: 1 / -1; grid-row: 2; }
  .cl-div > .is-hot { text-align: right; }
  .cl-reads { gap: 6px; }
  .cl-read { padding: 8px 9px; font-size: 0.76rem; }
  .cl-timeline { flex-wrap: wrap; gap: 10px; padding: 10px 10px 12px; }
  .cl-strip { flex-basis: 100%; order: 2; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cl-strip-y { grid-column: span 6; min-height: 34px; }
  .cl-strip button { min-height: 34px; font-size: 0.72rem; }
  .cl-pick { padding: 0 12px 12px; }
  .cl-ctl { grid-template-columns: 1fr; }
  .cl-cal { padding: 14px 10px 12px; }
  .cl-ch { padding: 10px 6px 4px; }
  .cl-cal-side { grid-template-columns: 1fr; }
  .cl-bf { padding: 16px 12px 12px; }
  .cl-bf-head, .cl-bf-rows a { grid-template-columns: minmax(0, 1fr) 7.2em minmax(0, 1fr); gap: 6px; }
  .cl-bf-n { font-size: 0.8rem; }
  .cl-face { padding: 14px 14px 14px 18px; }
}

.cl-app .aw-badge { text-transform: none; letter-spacing: 0.02em; font-size: 0.74rem; }
@media (max-width: 359px) { .cl-reads { grid-template-columns: 1fr; } }
