/* /Components/Pages/ClimateCharts.razor.rz.scp.css */
/* Theme variables live on the wrapper (not :root) so they stay scoped to this page.
   The site has no bootstrap dark theme, so follow the OS preference as the HTML did. */
.iq[b-cd0869qmrx] {
    --paper: #ffffff; --ink: #1a2230; --muted: #6b7684; --rule: #d8dee6;
    --precip: #7fb3d5; --precip-ink: #2f6f9f; --temp: #c8402f; --freeze: #9aa6b3;
    --accent: #1f4e79; --panel: #eef2f6;
    background: var(--paper); color: var(--ink);
    font: 15px/1.5 Georgia, "Times New Roman", serif;
    min-height: 100vh;
}
@media (prefers-color-scheme: dark) {
    .iq[b-cd0869qmrx] { --paper: #141a22; --ink: #e8edf3; --muted: #9aa6b3; --rule: #2a3442; --precip: #4f8cb8; --freeze: #5c6b7c; --accent: #7fb3d5; --panel: #1c2531; }
}
.iq[b-cd0869qmrx], .iq *[b-cd0869qmrx] { box-sizing: border-box; }
header[b-cd0869qmrx] { padding: 28px 28px 8px; max-width: 980px; margin: 0 auto; }
h1:focus[b-cd0869qmrx] { outline: none; } /* Blazor FocusOnNavigate focuses the first h1 */
h1[b-cd0869qmrx] { font-size: 30px; font-weight: normal; margin: 0 0 4px; letter-spacing: -0.01em; }
header p[b-cd0869qmrx] { margin: 0; color: var(--muted); }
/* Stays at the top while you scroll so you can switch places from anywhere on the page. */
.picker[b-cd0869qmrx] { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--rule); }
.picker .controls[b-cd0869qmrx] { max-width: 980px; margin: 0 auto; padding: 8px 28px; }
main[b-cd0869qmrx] { max-width: 980px; margin: 0 auto; padding: 0 28px 48px; }
section[b-cd0869qmrx] { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
h2[b-cd0869qmrx] { font-size: 26px; font-weight: normal; margin: 0 0 4px; }
.lede[b-cd0869qmrx] { margin: 0 0 10px; color: var(--muted); max-width: 60ch; }
/* The year-stack chart sits in a tinted, rounded panel with a thick left rule so it reads as a
   different instrument from the climatogram above it (which stays flat on the paper). */
section.panel[b-cd0869qmrx] { background: var(--panel); border-top: none; border-left: 6px solid var(--accent); border-radius: 0 14px 14px 0; padding: 20px 22px 18px; }
.controls[b-cd0869qmrx] { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 8px 0 14px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; }
.controls label[b-cd0869qmrx] { display: flex; align-items: center; gap: 8px; }
input[type=range][b-cd0869qmrx] { width: 220px; accent-color: var(--accent); }
input[type=checkbox][b-cd0869qmrx] { width: 20px; height: 20px; accent-color: var(--accent); }
select[b-cd0869qmrx], button[b-cd0869qmrx] { font: inherit; min-height: 40px; }
select[b-cd0869qmrx] { background: var(--paper); color: var(--ink); padding: 4px 8px; border: 1px solid var(--rule); border-radius: 6px; }
button[b-cd0869qmrx] { padding: 6px 14px; border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 4px; cursor: pointer; }
button:hover[b-cd0869qmrx], button:focus-visible[b-cd0869qmrx] { background: var(--accent); color: #fff; outline: none; }
.year-big[b-cd0869qmrx] { font-size: 22px; width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
svg[b-cd0869qmrx] { width: 100%; height: auto; display: block; }
/* Axis flash on the year-stack chart after a location change (its scale is per location).
   CSS animations beat the inline stroke/fill styles, so no markup changes are needed. */
.axis.flash line.zero[b-cd0869qmrx] { animation: zero-flash-b-cd0869qmrx 1.6s ease-out; }
@keyframes zero-flash-b-cd0869qmrx { 0%, 40% { stroke: var(--temp); stroke-width: 3.5; stroke-opacity: 1; } 100% { stroke-width: 1; } }
@media (prefers-reduced-motion: reduce) { .axis.flash line.zero[b-cd0869qmrx] { animation: none; } }
.summary[b-cd0869qmrx] { display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--muted); font-family: system-ui, sans-serif; font-size: 14px; margin-top: 6px; }
.summary b[b-cd0869qmrx] { color: var(--ink); font-weight: 600; }
.print-row[b-cd0869qmrx] { justify-content: flex-end; margin-top: 32px; }
/* Title row inside the sticky picker: "<Biome> biome of [place]" where the place is a <select>
   styled as title text (the dashed underline is the only cue that it is a control). Tabs sit under it. */
.titlebar[b-cd0869qmrx] { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; font: normal 30px/1.3 Georgia, "Times New Roman", serif; margin: 0; } /* .controls switches to sans; the title stays serif */
.loc-select[b-cd0869qmrx] { font: inherit; color: var(--accent); background: transparent; border: 0; border-bottom: 2px dashed var(--accent); border-radius: 0; padding: 0 .1em; cursor: pointer; max-width: 100%; }
.loc-select:focus-visible[b-cd0869qmrx] { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Once the picker is stuck, shrink it so it takes less of the screen. Scroll-driven animation:
   browsers without it simply keep the full-size bar. */
@supports (animation-timeline: scroll()) {
    .titlebar[b-cd0869qmrx], .picker .controls[b-cd0869qmrx] { animation: shrink-bar-b-cd0869qmrx linear both; animation-timeline: scroll(); animation-range: 0 120px; }
}
@keyframes shrink-bar-b-cd0869qmrx { to { font-size: 18px; padding-top: 4px; padding-bottom: 4px; } }
/* Short viewports (a phone held sideways): the header would fill the screen, so compact every row. */
@media (max-height: 520px) {
    header[b-cd0869qmrx] { padding: 10px 28px 2px; }
    h1[b-cd0869qmrx] { font-size: 18px; margin: 0; }
    .titlebar[b-cd0869qmrx] { font-size: 18px; }
    .picker .controls[b-cd0869qmrx] { padding: 4px 28px; }
    .tabs[b-cd0869qmrx] { padding: 6px 28px 0; gap: 6px; }
    .tab[b-cd0869qmrx] { padding: 4px 12px; font-size: 13px; }
    section[b-cd0869qmrx] { margin-top: 14px; padding-top: 10px; }
}
.tabs[b-cd0869qmrx] { max-width: 980px; margin: 0 auto; padding: 12px 28px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tab[b-cd0869qmrx] { display: inline-flex; align-items: center; padding: 8px 18px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; transition: background .12s ease, color .12s ease; }
.tab:hover[b-cd0869qmrx], .tab:focus-visible[b-cd0869qmrx] { background: rgba(0,0,0,.05); outline: none; }
.tab.active[b-cd0869qmrx] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab.disabled[b-cd0869qmrx] { color: var(--muted); border-style: dashed; cursor: not-allowed; }
.source p[b-cd0869qmrx] { margin: 0 0 8px; }
.note[b-cd0869qmrx] { color: var(--muted); font-size: 13px; }
.more[b-cd0869qmrx] { margin: 4px 0 10px; }
.more summary[b-cd0869qmrx] { cursor: pointer; color: var(--accent); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; }
.more .controls[b-cd0869qmrx] { margin-top: 6px; }
.reset[b-cd0869qmrx] { padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.reset:hover[b-cd0869qmrx], .reset:focus-visible[b-cd0869qmrx] { background: rgba(0,0,0,.05); outline: none; }

@media print {
    .iq[b-cd0869qmrx] { --paper: #fff; --ink: #000; --muted: #444; --rule: #bbb; --precip: #7fb3d5; --freeze: #9aa6b3; --accent: #1f4e79; font-size: 13px; }
    header[b-cd0869qmrx] { padding: 0 0 6px; }
    .controls[b-cd0869qmrx] { display: none !important; }
    .picker .controls[b-cd0869qmrx] { display: block !important; } /* keep the title row on paper */
    section[b-cd0869qmrx] { break-inside: avoid; page-break-inside: avoid; border-top: none; margin-top: 18px; }
    section.page-break[b-cd0869qmrx] { page-break-before: always; break-before: page; }
}

header .note[b-cd0869qmrx] { margin-top: 6px; }

/* Phones. The SVGs keep their 900-unit viewBox, so at 360px wide a 13px label renders ~5px:
   scale the text up with CSS (it beats the presentation attribute) and hide the dense bits
   (per-month numbers, in-chart source lines) that would overlap at that size. */
@media (max-width: 640px) {
    header[b-cd0869qmrx] { padding: 18px 16px 4px; }
    main[b-cd0869qmrx] { padding: 0 16px 40px; }
    .picker .controls[b-cd0869qmrx] { padding: 8px 16px; }
    .titlebar[b-cd0869qmrx] { font-size: 22px; }
    .loc-select[b-cd0869qmrx] { width: auto; min-height: 0; }
    .tabs[b-cd0869qmrx] { padding: 10px 16px 0; }
    h1[b-cd0869qmrx] { font-size: 24px; }
    .controls[b-cd0869qmrx] { flex-direction: column; align-items: stretch; gap: 12px; }
    /* The stacked-column rule above would stretch the lone Print button full width; keep it right-aligned. */
    .print-row[b-cd0869qmrx] { flex-direction: row; justify-content: flex-end; align-items: center; }
    .controls label[b-cd0869qmrx] { flex-wrap: wrap; }
    .controls label:has(input[type=checkbox])[b-cd0869qmrx] { flex-wrap: nowrap; align-items: flex-start; }
    input[type=checkbox][b-cd0869qmrx] { flex: none; margin-top: 2px; }
    /* Each slider label becomes two rows: "Year ........ 2025" then the full-width track (order pushes the range last). */
    input[type=range][b-cd0869qmrx] { order: 9; flex: 1 1 100%; width: auto; min-width: 0; height: 32px; }
    .year-big[b-cd0869qmrx] { width: auto; margin-left: auto; }
    select[b-cd0869qmrx] { width: 100%; font-size: 16px; min-height: 44px; } /* 16px stops iOS zooming into the field */
    button[b-cd0869qmrx] { min-height: 44px; }
    section.panel[b-cd0869qmrx] { padding: 16px 14px 14px; border-left-width: 5px; }
    svg text[b-cd0869qmrx] { font-size: 25px; }
    svg text.sub[b-cd0869qmrx], svg text.src[b-cd0869qmrx] { display: none; }
    .summary[b-cd0869qmrx] { flex-direction: column; gap: 4px; }
}
/* /Components/Pages/ComputerGlasses.razor.rz.scp.css */
/* Same look as ClimateCharts: theme variables live on the wrapper (not :root) so they stay scoped to
   this page, and dark mode follows the OS preference because the site has no bootstrap dark theme. */
.iq[b-x0733nppez] {
    --paper: #ffffff; --ink: #1a2230; --muted: #6b7684; --rule: #d8dee6;
    --accent: #1f4e79; --panel: #eef2f6; --hl: #fff0b3; --alert: #a23a1f;
    background: var(--paper); color: var(--ink);
    font: 15px/1.5 Georgia, "Times New Roman", serif;
    min-height: 100vh;
}
@media (prefers-color-scheme: dark) {
    .iq[b-x0733nppez] { --paper: #141a22; --ink: #e8edf3; --muted: #9aa6b3; --rule: #2a3442; --accent: #7fb3d5; --panel: #1c2531; --hl: #4a4118; --alert: #f0a58f; }
}
.iq[b-x0733nppez], .iq *[b-x0733nppez] { box-sizing: border-box; }
header[b-x0733nppez] { padding: 28px 28px 8px; max-width: 980px; margin: 0 auto; }
h1:focus[b-x0733nppez] { outline: none; } /* Blazor FocusOnNavigate focuses the first h1 */
.title-row[b-x0733nppez] { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.title-row button[b-x0733nppez] { margin: 0; }
h1[b-x0733nppez] { font-size: 30px; font-weight: normal; margin: 0 0 4px; letter-spacing: -0.01em; }
header p[b-x0733nppez] { margin: 0; color: var(--muted); }
main[b-x0733nppez] { max-width: 980px; margin: 0 auto; padding: 0 28px 48px; }
main > section:first-child[b-x0733nppez] { margin-top: 0; }
section[b-x0733nppez] { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
h2[b-x0733nppez] { font-size: 26px; font-weight: normal; margin: 0 0 4px; }
h3[b-x0733nppez] { font-size: 19px; font-weight: normal; margin: 22px 0 4px; }
.lede[b-x0733nppez] { margin: 0 0 10px; color: var(--muted); max-width: 60ch; }
/* The computer-setup step sits in a tinted panel with a thick left rule so the two input steps read as different. */
section.panel[b-x0733nppez] { background: var(--panel); border-top: none; border-left: 6px solid var(--accent); border-radius: 0 14px 14px 0; padding: 20px 22px 18px; }
.controls[b-x0733nppez] { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 8px 0 14px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; }
.controls label[b-x0733nppez] { display: flex; align-items: center; gap: 8px; }
input[type=checkbox][b-x0733nppez], input[type=radio][b-x0733nppez] { width: 20px; height: 20px; accent-color: var(--accent); }
select[b-x0733nppez], button[b-x0733nppez], input[type=number][b-x0733nppez] { font: inherit; min-height: 40px; }
select[b-x0733nppez], input[type=number][b-x0733nppez] { background: var(--paper); color: var(--ink); padding: 4px 8px; border: 1px solid var(--rule); border-radius: 6px; }
input.narrow[b-x0733nppez] { width: 90px; }
button[b-x0733nppez] { padding: 6px 14px; border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 4px; cursor: pointer; }
button:hover:not(:disabled)[b-x0733nppez], button:focus-visible[b-x0733nppez] { background: var(--accent); color: #fff; outline: none; }
button:disabled[b-x0733nppez] { opacity: .45; cursor: not-allowed; }
.reset[b-x0733nppez] { padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.reset:hover[b-x0733nppez], .reset:focus-visible[b-x0733nppez] { background: rgba(0,0,0,.05); outline: none; }
button.mini[b-x0733nppez] { min-height: 0; padding: 2px 8px; font-size: 12px; align-self: center; }
.go[b-x0733nppez] { border-color: var(--accent); background: var(--accent); color: #fff; font-size: 16px; padding: 8px 20px; }
svg[b-x0733nppez] { width: 100%; height: auto; display: block; }

/* Prescription grid: eye name on its own row, then three labelled pickers. */
.rx-grid[b-x0733nppez] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; margin: 10px 0 6px; font-family: system-ui, sans-serif; font-size: 14px; max-width: 560px; }
.rx-grid label[b-x0733nppez] { display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.rx-grid select[b-x0733nppez] { width: 100%; color: var(--ink); }
.rx-eye[b-x0733nppez] { grid-column: 1 / -1; margin-top: 10px; font-weight: 600; color: var(--ink); }

/* Result table; changed cells get a background AND a "was ..." text so meaning is never colour-only. */
table.rx[b-x0733nppez] { border-collapse: collapse; font-family: system-ui, sans-serif; font-size: 16px; margin: 8px 0; }
table.rx th[b-x0733nppez], table.rx td[b-x0733nppez] { border: 1px solid var(--rule); padding: 8px 16px; text-align: left; vertical-align: top; }
table.rx thead th[b-x0733nppez] { color: var(--muted); font-weight: normal; font-size: 13px; }
td.changed[b-x0733nppez] { background: var(--hl); font-weight: 600; }
.was[b-x0733nppez] { display: block; font-weight: normal; font-size: 12px; color: var(--muted); }
.pdline[b-x0733nppez] { margin: 6px 0 0; }

.summary[b-x0733nppez] { display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--muted); font-family: system-ui, sans-serif; font-size: 14px; margin: 6px 0 8px; }
.summary b[b-x0733nppez] { color: var(--ink); font-weight: 600; }
.note[b-x0733nppez] { color: var(--muted); font-size: 13px; }
.note.warn[b-x0733nppez] { color: var(--ink); font-size: 14px; border-left: 4px solid var(--accent); padding-left: 10px; margin: 8px 0; }
.alert[b-x0733nppez] { color: var(--alert); }
.disclaimer[b-x0733nppez] { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--rule); }
.more[b-x0733nppez] { margin: 4px 0 10px; }
.more summary[b-x0733nppez] { cursor: pointer; color: var(--accent); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; }
pre.sample[b-x0733nppez], pre.copy[b-x0733nppez] { background: var(--panel); border-left: 4px solid var(--accent); padding: 10px 14px; margin: 8px 0; font: 14px/1.5 ui-monospace, Consolas, monospace; overflow-x: auto; }
pre.copy[b-x0733nppez] { user-select: all; } /* one click selects the whole block if the Copy button is blocked */
.calc[b-x0733nppez] { font: 13px/1.6 ui-monospace, Consolas, monospace; background: var(--panel); padding: 10px 14px; border-radius: 6px; margin-top: 6px; }
.calc div[b-x0733nppez] { padding: 2px 0; }

/* Print: results and disclaimer only. The input sections carry .no-print; .controls (including Print itself) is hidden. */
@media print {
    .iq[b-x0733nppez] { --paper: #fff; --ink: #000; --muted: #444; --rule: #bbb; --accent: #1f4e79; --hl: #ffe98a; font-size: 13px; }
    header[b-x0733nppez] { padding: 0 0 6px; }
    .controls[b-x0733nppez], .no-print[b-x0733nppez] { display: none !important; }
    section[b-x0733nppez] { break-inside: avoid; page-break-inside: avoid; border-top: none; margin-top: 18px; }
}

/* Phones. The SVG keeps its 900-unit viewBox, so at 375px wide a 14px label renders ~6px:
   scale the text up with CSS (it beats the presentation attribute). */
@media (max-width: 640px) {
    header[b-x0733nppez] { padding: 18px 16px 4px; }
    main[b-x0733nppez] { padding: 0 16px 40px; }
    h1[b-x0733nppez] { font-size: 24px; }
    .controls[b-x0733nppez] { flex-direction: column; align-items: stretch; gap: 12px; }
        .controls label[b-x0733nppez] { flex-wrap: wrap; }
    .controls label:has(input[type=checkbox])[b-x0733nppez], .controls label:has(input[type=radio])[b-x0733nppez] { flex-wrap: nowrap; align-items: flex-start; }
    input[type=checkbox][b-x0733nppez], input[type=radio][b-x0733nppez] { flex: none; margin-top: 2px; }
    select[b-x0733nppez], input[type=number][b-x0733nppez] { width: 100%; font-size: 16px; min-height: 44px; } /* 16px stops iOS zooming into the field */
    input.narrow[b-x0733nppez] { width: 100%; }
    button[b-x0733nppez] { min-height: 44px; }
    section.panel[b-x0733nppez] { padding: 16px 14px 14px; border-left-width: 5px; }
    .rx-grid[b-x0733nppez] { gap: 6px 8px; }
    table.rx th[b-x0733nppez], table.rx td[b-x0733nppez] { padding: 6px 8px; }
    svg text[b-x0733nppez] { font-size: 26px; }
    .summary[b-x0733nppez] { flex-direction: column; gap: 4px; }
    pre.sample[b-x0733nppez], pre.copy[b-x0733nppez] { font-size: 12px; }
}
