:root {
  color-scheme: light;
  --ink: #244938;
  --muted: #586951;
  --line: #d9e1d1;
  --paper: #f7f8f2;
  --surface: #fffef9;
  --soft: #edf2e5;
  --accent: #765c38;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
button:focus-visible, a:focus-visible, main:focus-visible { outline: 3px solid #9b6630; outline-offset: 4px; }
input:focus-visible, select:focus-visible, .error-summary:focus { outline: 3px solid #9b6630; outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 5; top: -5rem; left: 1rem; background: var(--ink); color: #fff; padding: 0.75rem 1rem; }
.skip-link:focus { top: 0.5rem; }
.site-header { max-width: 90rem; margin: auto; padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; font-size: 1.4rem; font-weight: 750; letter-spacing: -0.06em; }
.brand-mark { font-size: 2rem; line-height: 1; }
.version { border: 1px solid #c9d5bd; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.65rem; letter-spacing: 0.06em; font-weight: 600; margin-left: 0.2rem; }
.menu-toggle { border: 1px solid var(--line); border-radius: 5px; padding: 0.5rem 0.9rem; color: var(--ink); background: var(--surface); min-height: 2.75rem; }
#primary-nav { width: 100%; display: grid; gap: 0.35rem; padding-top: 0.25rem; }
#primary-nav a { text-decoration: none; padding: 0.7rem 0.85rem; min-height: 2.75rem; border-radius: 4px; font-size: 0.9rem; color: var(--muted); }
#primary-nav a:hover { background: #edf1e6; }
#primary-nav a[aria-current="page"] { color: var(--ink); background: #e5eddb; font-weight: 650; }
.decision-banner { display: flex; align-items: flex-start; gap: 0.75rem; max-width: 80rem; margin: 1.25rem auto 0; padding: 1rem 1.25rem; background: #edf3e4; border-block: 1px solid #d9e3cc; color: #3d5930; font-size: 0.8rem; }
.decision-banner p + p { margin-top: 0.35rem; }
.decision-banner strong { font-weight: 600; }
.banner-mark { flex-shrink: 0; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; border: 1px solid #99ad84; border-radius: 50%; font-size: 0.8rem; font-family: Georgia, serif; }
.glossary-link { color: #3f632b; background: none; border: none; padding: 0.2rem 0; text-decoration: underline dotted; text-underline-offset: 0.2em; font-size: inherit; }
#app { max-width: 80rem; margin: auto; min-height: 55vh; padding: 2.75rem 1.25rem 3.5rem; }
#app:focus { outline: none; }
.eyebrow { font-size: 0.68rem; letter-spacing: 0.16em; font-weight: 650; color: #5a7049; }
.eyebrow span { display: block; margin-top: 0.6rem; letter-spacing: 0.04em; color: #687b58; }
.welcome h1 { margin: 1.2rem 0; font-size: clamp(2.5rem, 8vw, 4.65rem); font-weight: 550; letter-spacing: -0.055em; line-height: 1.04; }
.welcome h1 em { font-family: Georgia, serif; color: #6a7b45; font-weight: 400; }
.welcome-purpose { max-width: 31rem; font-size: 1.05rem; line-height: 1.8; color: #4d6245; }
.welcome-note { font-size: 0.85rem; color: var(--muted); max-width: 31rem; margin-top: 1rem; }
.welcome-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.6rem 0 0.8rem; }
.primary, .secondary { min-height: 2.8rem; border-radius: 5px; padding: 0.7rem 1.1rem; font-size: 0.9rem; font-weight: 550; display: inline-flex; align-items: center; justify-content: center; gap: 2rem; }
.primary { color: #fff; background: var(--ink); border: 1px solid var(--ink); }
.primary:hover { background: #345c45; }
.secondary { background: var(--surface); border: 1px solid #cbd6c0; color: #475c3c; }
.secondary:hover:enabled { background: #edf2e4; }
button:disabled { color: #697260; background: #e9ece2; border-color: #d8dece; cursor: not-allowed; }
.small-note { font-size: 0.76rem; color: var(--muted); margin-bottom: 1rem; }
.welcome-copy > .glossary-link { font-size: 0.82rem; }
.journey-card { margin-top: 2.5rem; padding: 1.75rem 1.35rem; border: 1px solid #d5dfc8; border-radius: 9px; background: #eaf0df; }
.stage-label { display: inline-block; font-size: 0.65rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.12em; color: #715b3a; background: #f7f1df; border: 1px solid #e2d7ba; border-radius: 4px; padding: 0.3rem 0.55rem; }
.journey-card h2 { font-size: 1.8rem; font-weight: 550; letter-spacing: -0.035em; margin: 1.35rem 0 1.65rem; }
.journey-card ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.35rem; }
.journey-card li { display: flex; align-items: flex-start; gap: 1rem; }
.journey-card li > span { font-size: 0.7rem; color: #596e44; border: 1px solid #b9c9a7; border-radius: 50%; min-width: 1.9rem; height: 1.9rem; display: grid; place-items: center; }
.journey-card li strong { font-size: 0.9rem; font-weight: 600; }
.journey-card li p { font-size: 0.8rem; color: #566a47; margin-top: 0.2rem; }
.journey-footnote { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #cdd8bf; font-size: 0.78rem; color: #526644; line-height: 1.8; }
.page-heading { margin-bottom: 1.8rem; }
.page-heading h1 { font-size: clamp(2rem, 7vw, 3.25rem); font-weight: 550; letter-spacing: -0.045em; margin: 1rem 0; }
.page-description { max-width: 44rem; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.placeholder-panel, .evidence-panel { padding: 1.6rem 1.3rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.placeholder-panel h2, .evidence-panel > h2 { font-weight: 550; font-size: 1.4rem; letter-spacing: -0.02em; margin: 1.15rem 0 0.9rem; }
.placeholder-panel > p { color: var(--muted); max-width: 45rem; font-size: 0.9rem; }
.placeholder-panel .availability { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: #735d3f; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 1.5rem; font-size: 0.85rem; }
.source-note { color: #5b6c4e; font-size: 0.85rem; margin-top: 1.5rem; }
.screen-status { background: #f5efdf; border: 1px solid #e1d6ba; padding: 0.9rem 1rem; font-size: 0.8rem; color: #715b37; margin-bottom: 1.5rem; border-radius: 4px; }
.status-dot { display: inline-block; height: 0.45rem; width: 0.45rem; border-radius: 50%; background: #8b734c; margin-right: 0.65rem; }
.comparison-grid { display: grid; gap: 1rem; }
.comparison-placeholder { padding: 1.5rem 1.25rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); min-width: 0; }
.column-label { font-size: 0.8rem; font-weight: 650; color: #5e754b; }
.comparison-placeholder h2 { font-size: 1.4rem; font-weight: 550; margin: 0.7rem 0; }
.score-placeholder { font-size: 0.78rem; color: #6c624d; margin-bottom: 1.4rem; }
.comparison-placeholder dl { margin: 0; }
.comparison-placeholder dl > div { padding: 0.9rem 0; border-top: 1px solid #e4e8dc; }
.comparison-placeholder dt { font-size: 0.83rem; font-weight: 600; }
.comparison-placeholder dd { margin: 0.35rem 0 0; font-size: 0.78rem; color: var(--muted); }
.evidence-row { padding: 1.2rem 0; border-top: 1px solid #e2e7d9; }
.evidence-row h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.evidence-row p { font-size: 0.88rem; color: var(--muted); max-width: 48rem; }
.site-footer { max-width: 80rem; margin: auto; padding: 1.75rem 1.25rem; border-top: 1px solid var(--line); color: #596b4f; font-size: 0.72rem; }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 0.9rem; }
.site-footer strong { color: var(--ink); font-size: 0.85rem; }
.site-footer p + p { margin-top: 0.45rem; }
dialog { width: min(32rem, 92vw); padding: 1.5rem; border: 1px solid #c9d6bc; border-radius: 8px; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: #183728aa; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dialog-heading h2 { font-size: 1.35rem; }
dialog > p { color: #506347; font-size: 0.95rem; }
.noscript-note { padding: 1.25rem; text-align: center; }

.field-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.field-intro p { max-width: 40rem; font-size: 0.85rem; }
.field-status { min-height: 1.5rem; font-size: 0.87rem; margin-block: 1rem; }
#field-form { max-width: 65rem; }
#field-form fieldset { min-width: 0; margin: 0 0 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
#field-form legend { font-size: 1.1rem; font-weight: 650; padding-inline: 0.4rem; }
.fieldset-note { font-size: 0.85rem; color: var(--muted); margin-block: 0.25rem 1.25rem; }
.form-grid, .season-grid { display: grid; gap: 1.25rem; }
.form-grid + .fieldset-note { margin-top: 1.5rem; }
.form-control { min-width: 0; }
.form-control > label { display: block; font-size: 0.87rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-control input:not([type="checkbox"]), .form-control select { width: 100%; min-width: 0; min-height: 2.9rem; border: 1px solid #9faa95; background: #fffefb; border-radius: 4px; padding: 0.6rem; color: var(--ink); }
.form-control .checkbox-label { display: flex; gap: 0.65rem; align-items: center; min-height: 2.75rem; font-weight: 450; }
.checkbox-label input { width: 1.2rem; height: 1.2rem; flex-shrink: 0; accent-color: var(--ink); }
.input-help { color: var(--muted); font-size: 0.75rem; margin-top: 0.4rem; }
.field-error { display: block; color: #9a322b; font-size: 0.8rem; margin-top: 0.4rem; }
[aria-invalid="true"] { border: 2px solid #ac3b30 !important; }
.error-summary, .storage-error { padding: 1rem; margin-block: 1rem; border: 2px solid #ac3b30; background: #fff2ec; color: #78352a; border-radius: 5px; font-size: 0.85rem; overflow-wrap: anywhere; }
.error-summary p { font-weight: 650; }
.error-summary ul { padding-left: 1.25rem; }
.season-help { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1rem; font-size: 0.8rem; }
#field-form .small-note { margin-top: 1rem; }
#field-form fieldset > .glossary-link { margin-top: 1rem; font-size: 0.8rem; }

.generator-preview { margin-top: 2rem; border: 1px solid var(--line); padding: 1.25rem; border-radius: 6px; background: var(--surface); }
.generator-preview > h2 { font-size: 1.5rem; margin: 1rem 0; }
.generator-preview > p { font-size: 0.85rem; margin-block: 1rem; }
.current-rotation { background: var(--soft); padding: 1rem; margin-block: 1rem; border-radius: 5px; overflow-wrap: anywhere; }
.current-rotation h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.current-rotation p, .rotation-warnings { font-size: 0.82rem; }
.rotation-warnings { color: #78352a; border-left: 3px solid #ac3b30; padding-left: 1.5rem; }
.rotation-details { margin-block: 1rem; border: 1px solid var(--line); border-radius: 5px; padding: 0.75rem; font-size: 0.82rem; overflow-wrap: anywhere; }
summary { cursor: pointer; min-height: 2.75rem; padding-block: 0.5rem; }
summary:focus-visible { outline: 3px solid #9b6630; outline-offset: 3px; }
.rotation-details ol { padding-left: 1.3rem; }
.rotation-details ol > li { border-top: 1px solid var(--line); padding-block: 0.8rem; }
.rotation-details ul { padding-left: 1rem; color: #78352a; }
.crop-evidence { margin-bottom: 1.5rem; }
.crop-evidence > p { font-size: 0.85rem; }
.crop-cards { display: grid; gap: 0.75rem; margin-top: 1rem; }
.crop-card { min-width: 0; padding: 0.65rem 1rem; border: 1px solid var(--line); border-radius: 5px; font-size: 0.82rem; overflow-wrap: anywhere; }
.crop-initial { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 4px; background: var(--soft); margin-inline: 0.5rem; font-weight: 700; }
.crop-card dl { margin-block: 1rem; }
.crop-card dl > div { padding-block: 0.5rem; border-top: 1px solid var(--line); }
.crop-card dt { font-weight: 600; }
.crop-card dd { margin: 0.15rem 0 0; }
.crop-card > p { margin-block: 0.75rem; }
.crop-errors { padding: 1rem; margin-block: 1rem; background: #fff2ec; color: #78352a; border: 1px solid #ac3b30; border-radius: 5px; overflow-wrap: anywhere; font-size: 0.85rem; }
.crop-errors h3 { font-size: 1rem; }
.crop-errors ul { padding-left: 1.25rem; }

.climate-loader, .climate-preview { border: 1px solid var(--line); padding: 1.25rem; border-radius: 6px; background: var(--surface); margin-block: 1.25rem; }
.climate-loader h2, .climate-preview > h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.climate-loader p, .climate-preview > p { font-size: 0.85rem; margin-block: 0.75rem; }
.climate-preview > .stage-label { margin-bottom: 1rem; }
.season-climate-grid { display: grid; gap: 1rem; margin-block: 1.25rem; }
.season-climate { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); overflow-wrap: anywhere; font-size: 0.82rem; }
.season-climate h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.season-climate dl { margin-block: 1rem; }
.season-climate dl > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; border-top: 1px solid var(--line); }
.season-climate dd { margin: 0; text-align: right; font-weight: 650; }
.weather-provenance { margin-bottom: 1.5rem; }
.weather-provenance p, .weather-provenance li { font-size: 0.84rem; margin-block: 0.75rem; overflow-wrap: anywhere; }
.weather-provenance article { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.weather-provenance h3 { font-size: 1rem; }
.priority-panel { min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.priority-panel h2, .ranking-preview > h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.priority-panel > p, .ranking-preview > p { font-size: 0.85rem; margin-block: 0.8rem; }
.priority-grid { display: grid; gap: 1rem; margin-block: 1.25rem; }
.priority-control label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.9rem; font-weight: 600; }
.priority-control label > span { white-space: nowrap; color: var(--muted); font-size: 0.85rem; }
.priority-control input { display: block; width: 100%; min-height: 2.75rem; margin-inline: 0; accent-color: var(--ink); cursor: pointer; }
.priority-control output { color: var(--ink); font-weight: 750; }
.priority-control .input-help { margin-top: 0; }
.ranking-column { min-width: 0; }
.ranking-preview { margin-top: 1rem; }
.ranking-list { padding-left: 1.25rem; margin-top: 1rem; }
.ranking-list > li { margin-bottom: 1rem; }
.ranking-list-title { font-size: 1.1rem; margin-top: 1.5rem; }
.ranking-row { padding: 1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow-wrap: anywhere; }
.ranking-current { background: var(--soft); margin-top: 1rem; }
.ranking-row h3 { font-size: 0.98rem; line-height: 1.5; }
.ranking-row h4 { font-size: 0.85rem; margin-block: 1rem 0.5rem; }
.ranking-row p, .ranking-row li { font-size: 0.8rem; }
.ranking-row ul { padding-left: 1.15rem; }
.ranking-row details { border-top: 1px solid var(--line); margin-top: 0.75rem; font-size: 0.82rem; }
.score-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.75rem; font-size: 0.8rem; }
.score-line > strong { font-size: 1rem; }
.feasibility-label { border: 1px solid #b4bda8; border-radius: 4px; padding: 0.2rem 0.45rem; background: #f5f0df; }
.model-evidence { margin-block: 1.5rem; overflow-wrap: anywhere; }
.model-evidence > p, .formula-list { font-size: 0.85rem; }
.model-constants { font-size: 0.8rem; }
.model-constants > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-block: 0.5rem; border-top: 1px solid var(--line); }
.model-constants dd { margin: 0; }
.formula-list { padding-left: 1.1rem; }
.formula-list li { margin-block: 0.7rem; }
.comparison-grid { margin-top: 1.5rem; align-items: start; }
.comparison-column { min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); overflow-wrap: anywhere; }
.comparison-column > h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.comparison-column[data-comparison="Your current"] { border-top: 4px solid var(--ink); }
.comparison-column p, .comparison-column li, .comparison-column dd { font-size: 0.8rem; }
.comparison-column ul { padding-left: 1.1rem; }
.comparison-column h4 { font-size: 0.85rem; margin-block: 0.9rem 0.4rem; }
.comparison-crops { list-style: none; padding: 0; margin: 0; }
.comparison-crops li { display: flex; gap: 0.6rem; align-items: flex-start; border-top: 1px solid var(--line); padding-block: 0.75rem; }
.comparison-crops .crop-initial { margin: 0; width: 2rem; height: 2rem; flex-shrink: 0; }
.comparison-crops strong { font-size: 0.85rem; }
.comparison-crops p { margin-top: 0.3rem; }
.comparison-crop-photo { width: 3.5rem; height: 3.5rem; border-radius: 4px; object-fit: cover; }
.comparison-score { margin-block: 1rem; }
.comparison-score > strong { display: block; font-size: 1.8rem; line-height: 1.3; }
.comparison-score > span { font-size: 0.75rem; color: var(--muted); }
.comparison-column .feasibility-label { display: block; }
.comparison-confidence { font-size: 0.82rem; margin-block: 0.5rem; }
.comparison-explanation { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.comparison-explanation > h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.comparison-season-evidence dl { margin: 0.7rem 0; }
.comparison-season-evidence dl > div { display: flex; justify-content: space-between; gap: 0.75rem; padding-block: 0.35rem; border-bottom: 1px solid var(--line); }
.comparison-season-evidence dt { font-size: 0.77rem; }
.comparison-season-evidence dd { margin: 0; font-weight: 600; text-align: right; }
.benefit-badges { display: grid; gap: 0.5rem; margin-block: 0.7rem; }
.benefit-badge { border: 1px solid #cbd6bf; border-radius: 5px; padding: 0.2rem 0.6rem; background: var(--soft); }
.benefit-badge summary { font-size: 0.8rem; font-weight: 600; }
.benefit-badge > p { padding-bottom: 0.75rem; }
.comparison-empty { background: #f1f2eb; }
.rotations-table-scroll { max-width: 100%; overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); }
.rotations-table-scroll:focus-visible { outline: 3px solid #9b6630; outline-offset: 3px; }
.rotations-table { width: 100%; min-width: 48rem; border-collapse: collapse; font-size: 0.8rem; background: var(--surface); }
.rotations-table caption { text-align: left; padding: 1rem; font-size: 0.8rem; background: var(--soft); }
.rotations-table th, .rotations-table td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.rotations-table thead th { background: var(--soft); }
.rotations-table th button { min-height: 2.75rem; border: 0; padding: 0.35rem; color: var(--ink); background: transparent; text-align: left; font-weight: 650; }
.rotations-table th[scope="row"] { font-weight: 450; min-width: 15rem; }
.rotations-table th[scope="row"] > span { display: block; color: var(--ink); font-weight: 750; margin-bottom: 0.4rem; }
.timeline-panel { min-width: 0; max-width: 100%; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.timeline-panel > h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.timeline-panel > p { margin-block: 0.6rem; }
.timeline-help { color: var(--muted); font-size: 0.76rem !important; }
.timeline-strip { display: flex; align-items: flex-start; gap: 0.45rem; max-width: 100%; overflow-x: auto; padding: 0.45rem; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.timeline-strip:focus-visible { outline: 3px solid #9b6630; outline-offset: 3px; }
.timeline-cell { flex: 0 0 5.75rem; min-width: 0; border: 1px solid #aab79f; border-radius: 4px; overflow-wrap: anywhere; background: #e8eee1; }
.timeline-cell[open] { flex-basis: 16rem; }
.timeline-cell > summary { min-height: 8.5rem; padding: 0.5rem; list-style: none; }
.timeline-cell > summary::-webkit-details-marker { display: none; }
.timeline-cell > summary::after { display: block; content: 'Open month +'; font-size: 0.63rem; margin-top: 0.6rem; text-decoration: underline; }
.timeline-cell[open] > summary::after { content: 'Close month −'; }
.timeline-month { display: block; font-size: 0.85rem; font-weight: 750; }
.timeline-month small { display: block; font-size: 0.65rem; font-weight: 450; }
.timeline-crop { display: block; font-size: 0.74rem; font-weight: 600; line-height: 1.4; margin-top: 0.5rem; }
.timeline-markers, .timeline-legend { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.timeline-marker { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.66rem; line-height: 1.45; padding: 0.15rem 0.25rem; color: #3f402a; background: #fffdf1; border: 1px solid #c5bfa0; border-radius: 3px; }
.timeline-caution { display: block; font-size: 0.66rem; font-weight: 650; margin-top: 0.4rem; }
.timeline-month-details { padding: 0 0.65rem 0.65rem; border-top: 1px solid #b7c3ab; }
.timeline-month-details p, .timeline-month-details li { font-size: 0.76rem; margin-top: 0.6rem; }
.timeline-tone-0 { background: #e2edd9; }
.timeline-tone-1 { background: #e2edf2; }
.timeline-tone-2 { background: #f1e9ce; }
.timeline-tone-3 { background: #eee2df; }
.timeline-tone-4 { background: #e8e3f0; }
.timeline-tone-5 { background: #dfede8; }
.timeline-bare { background: repeating-linear-gradient(135deg,#e5e6de 0,#e5e6de 4px,#f6f6ee 4px,#f6f6ee 9px); }
.timeline-unknown { background: #f3e9d9; border-style: dashed; }
.timeline-overlap { border: 3px double #785b32; }
@media (min-width: 54rem) {
  .season-climate-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .priority-layout { display: grid; grid-template-columns: minmax(0,0.8fr) minmax(0,1.2fr); align-items: start; gap: 2rem; }
}
@media (min-width: 54rem) and (min-height: 50rem) {
  .priority-panel { position: sticky; top: 1rem; }
}

@media (min-width: 40rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .full-width { grid-column: 1 / -1; }
}

@media (min-width: 40rem) {
  .decision-banner { border: 1px solid #d9e3cc; border-radius: 6px; margin-inline: 1.25rem; }
  .welcome { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
  .journey-card { margin-top: 0; padding: 2rem; }
  .welcome h1 { font-size: clamp(2.7rem, 5.6vw, 4.65rem); }
  #app { padding-block: 3.75rem 4rem; }
}

@media (min-width: 54rem) {
  .site-header { flex-wrap: nowrap; padding-inline: 2rem; }
  #primary-nav { width: auto; display: flex; flex-wrap: wrap; gap: 0.15rem; padding: 0; }
  #primary-nav a { font-size: 0.76rem; padding-inline: 0.7rem; }
  .decision-banner { max-width: calc(80rem - 4rem); margin: 1.5rem auto 0; padding-inline: 1.25rem; }
  #app { padding-inline: 2rem; }
  .eyebrow span { display: inline; margin-left: 1rem; }
  .comparison-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { padding-inline: 2rem; }
  .placeholder-panel, .evidence-panel { padding: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.climate-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:0.85rem; margin-block:1rem; }
.climate-card { padding:1rem; border:1px solid var(--line); border-radius:6px; background:var(--paper); min-width:0; overflow-wrap:anywhere; }
.climate-card h4 { margin:0 0 0.6rem; }
.climate-value { display:block; font-size:1.4rem; color:var(--ink); }
.climate-card p { font-size:0.85rem; }
.trend-panel { margin-block:2rem; min-width:0; }
.table-scroll { max-width:100%; overflow-x:auto; }

.scenario-controls { max-width:44rem; padding:1.25rem; border:1px solid var(--line); background:var(--paper); }
.scenario-controls .priority-control { margin-block:1.3rem; }
#scenario-results { min-width:0; }

/* Accessible hit areas and visible focus for every horizontally scrolling data region. */
.glossary-link { min-height:2rem; min-width:1.5rem; }
.table-scroll:focus-visible { outline:3px solid #9b6630; outline-offset:3px; }
input[type="range"] { min-height:2.75rem; width:100%; accent-color:var(--ink); }
.satellite-panel { margin-top:2rem; min-width:0; }
.climate-preview, .trend-panel, .scenario-controls { overflow-wrap:anywhere; }

.page-tools { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:1rem; max-width:80rem; margin:0 auto; padding:0.8rem 1.25rem; border-bottom:1px solid var(--line); }
.label-controls { min-width:0; max-width:100%; }
.label-controls label { display:block; font-size:0.8rem; font-weight:650; }
.label-controls select { max-width:100%; min-height:2.75rem; padding:0.3rem 0.5rem; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:4px; }
.label-controls p { font-size:0.75rem; overflow-wrap:anywhere; }
.nav-native { display:block; font-size:0.85em; line-height:1.5; }
[data-native-label] { font-weight:inherit; }
.field-map-panel { padding:1.25rem; margin-block:1.5rem; border:1px solid var(--line); background:var(--surface); border-radius:6px; min-width:0; }
.field-map-panel h2 { font-size:1.1rem; }
.field-map-panel p { margin-block:0.8rem; font-size:0.85rem; }
.field-map { height:20rem; width:100%; margin-block:1rem; border:1px solid var(--line); border-radius:4px; z-index:0; }
.field-map:focus-visible { outline:3px solid #9b6630; outline-offset:3px; }
.leaflet-container a { color:#244938; }
.leaflet-container .leaflet-control-attribution { font-size:0.7rem; }
.print-heading, .print-only { display:none; }
@media print {
  @page { margin:14mm; }
  :root, body { color:#000; background:#fff; font-size:10pt; }
  .site-header, .page-tools, .field-map-panel, .page-actions, .welcome-actions, .glossary-link, .season-help, dialog, .skip-link, #table-sort-status { display:none !important; }
  button, input[type="range"] { display:none !important; }
  .print-heading, .print-only { display:block; }
  .print-heading { padding-bottom:0.8rem; overflow-wrap:anywhere; }
  .print-heading strong { font-size:16pt; }
  .print-heading p { font-size:8pt; margin-top:0.4rem; }
  .decision-banner { display:block; margin:0 0 1rem; max-width:none; border:1px solid #555; background:#fff; color:#000; }
  .banner-mark { display:none; }
  #app { max-width:none; padding:0; margin:0; }
  .page-heading { margin-block:1rem; }
  h1 { font-size:20pt; }
  h2, h3, h4, summary { break-after:avoid; }
  p, li { orphans:3; widows:3; }
  .comparison-grid, .priority-layout, .welcome { display:block; }
  .comparison-column { border:1px solid #777; padding:0.8rem; margin-bottom:1rem; min-width:0; }
  .comparison-column + .comparison-column { break-before:page; }
  .comparison-confidence, .benefit-badge { break-inside:avoid; }
  .comparison-column p, .comparison-column li, .small-note, .source-note { color:#000; }
  .comparison-grid ~ .rotation-details { display:none; }
  .timeline-help { display:none; }
  .timeline-strip { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); overflow:visible; gap:0.25rem; background:#fff; padding:0.3rem; }
  .timeline-cell, .timeline-cell[open] { width:auto; min-width:0; border:1px solid #777; background:#fff; }
  .timeline-cell > summary { min-height:0; padding:0.25rem; }
  .timeline-cell > summary::after, .timeline-month-details { display:none; }
  .timeline-crop, .timeline-month, .timeline-marker { font-size:8pt; color:#000; }
  .timeline-marker { background:#fff; border-color:#aaa; }
  .table-scroll, .rotations-table-scroll { overflow:visible; max-width:none; }
  .rotations-table { min-width:0; width:100%; font-size:8pt; table-layout:fixed; overflow-wrap:anywhere; }
  .rotations-table th[scope="row"] { min-width:0; }
  .rotations-table th, .rotations-table td { padding:0.35rem; }
  .climate-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .climate-card { break-inside:avoid; }
  .site-footer { margin-top:1rem; padding:0.8rem 0; font-size:8pt; }
  .scenario-controls { border:1px solid #777; padding:0.6rem; }
  .scenario-controls .priority-control { margin-block:0.5rem; }
}
