:root {
  --forest-950: #0c281a;
  --forest-900: #103522;
  --forest-800: #16482f;
  --forest-700: #1e5d3d;
  --forest-600: #2b7250;
  --forest-500: #3d8a63;
  --sage-100: #eaf2ec;
  --sage-50: #f5f8f5;
  --cream: #fbfaf5;
  --ink: #173126;
  --muted: #66756d;
  --line: #dfe8e1;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(15, 49, 31, 0.11);
  --shadow-soft: 0 10px 28px rgba(15, 49, 31, 0.08);
  --low: #3f7f59;
  --watch: #a97c21;
  --elevated: #d06728;
  --high: #b33a32;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(61, 138, 99, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(7, 36, 22, 0.98), rgba(18, 79, 49, 0.94)),
    repeating-linear-gradient(105deg, transparent 0 18px, rgba(255,255,255,0.025) 18px 19px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background:
    radial-gradient(120% 90px at 50% 115%, var(--cream) 49%, transparent 50%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.34;
  pointer-events: none;
}

.hero-orb-one {
  width: 430px;
  height: 430px;
  top: -170px;
  right: -110px;
  background: radial-gradient(circle, #83b774, transparent 68%);
}

.hero-orb-two {
  width: 340px;
  height: 340px;
  left: -150px;
  bottom: -120px;
  background: radial-gradient(circle, #4d8b62, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 128px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px 14px 14px 5px;
  background: rgba(255,255,255,0.11);
  font-weight: 800;
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand small {
  color: rgba(255,255,255,0.68);
  font-size: 0.72rem;
}

.source-pill {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.service-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.32);
}

.hero-copy {
  max-width: 820px;
  padding: 58px 0 36px;
}

.eyebrow,
.mini-label {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #b9d4be;
}

.eyebrow.dark,
.mini-label {
  color: var(--forest-600);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 6.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 760;
}

.hero h1 span {
  color: #b4d79d;
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.location-shell {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.19);
  border-radius: 22px;
  background: rgba(250, 252, 248, 0.10);
  box-shadow: 0 28px 64px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
}

.location-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.location-header h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.38rem);
}

.location-header .mini-label {
  color: #b9d4be;
}

.current-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.86);
  font-size: 0.86rem;
}

.location-dot,
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9bd57c;
  box-shadow: 0 0 0 5px rgba(155,213,124,0.12);
}

.location-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
}

.location-tab {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
}

.location-tab.is-active {
  color: var(--forest-950);
  background: #eef5e9;
  border-color: #eef5e9;
}

.location-panel label,
.zip-form label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,0.8);
  font-size: 0.84rem;
  font-weight: 700;
}

.select-wrap,
.zip-row {
  max-width: 560px;
}

.select-wrap select,
.zip-row input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
}

.select-wrap select {
  padding: 0 14px;
}

.zip-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 10px;
}

.zip-row input {
  padding: 0 14px;
}

.zip-row button {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #b4d79d;
  color: var(--forest-950);
  font-weight: 800;
}

.location-help,
.form-error {
  margin: 8px 0 0;
  font-size: 0.82rem;
}

.location-help {
  color: rgba(255,255,255,0.58);
}

.form-error {
  min-height: 1.2em;
  color: #ffd0cb;
}

.overview-section {
  position: relative;
  margin-top: -48px;
  z-index: 2;
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
  color: var(--muted);
  font-size: 0.84rem;
  backdrop-filter: blur(12px);
}

.status-strip.error {
  border-color: #efc5c1;
  background: #fff5f4;
  color: #8a312b;
}

.status-strip.error .status-indicator {
  background: var(--high);
  box-shadow: 0 0 0 5px rgba(179,58,50,0.11);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.outlook-card,
.update-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.outlook-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
}

.outlook-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
}

.outlook-copy {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.outlook-toggle {
  display: none;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest-700);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

.overall-risk {
  display: grid;
  place-items: center;
  min-width: 130px;
  min-height: 130px;
  padding: 18px;
  border-radius: 50%;
  border: 10px solid var(--sage-100);
  background: var(--sage-50);
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.risk-neutral { color: var(--muted); }
.overall-risk.risk-low { color: var(--low); border-color: #d9eadf; background: #f0f7f2; }
.overall-risk.risk-watch { color: var(--watch); border-color: #eee2c2; background: #fbf7ec; }
.overall-risk.risk-elevated { color: var(--elevated); border-color: #f1d7c6; background: #fff5ed; }
.overall-risk.risk-high { color: var(--high); border-color: #efd0cd; background: #fff2f1; }

.update-card {
  padding: 26px;
}

.update-location {
  margin: 4px 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

.updated-time {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.text-button {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--forest-700);
  font-weight: 800;
}

.text-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dryness-section {
  padding: 22px 0 0;
}

.dryness-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(250,248,239,0.96), rgba(244,249,245,0.96));
  box-shadow: var(--shadow-soft);
}

.dryness-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dryness-header h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: -0.025em;
}

.dryness-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.dryness-period {
  min-width: 70px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.dryness-period.is-active {
  color: var(--white);
  background: var(--forest-700);
}

.dryness-compact-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1.58fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  margin-top: 16px;
}

.dryness-compact-row > * {
  min-width: 0;
}

.dryness-result {
  padding: 14px 16px;
  border: 1px solid rgba(23,49,38,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.78);
}

.dryness-label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dryness-level {
  display: block;
  margin-top: 2px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.dryness-window-label {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.dryness-neutral { color: var(--muted); }
.dryness-low { color: var(--low); }
.dryness-moderate { color: var(--watch); }
.dryness-elevated { color: var(--elevated); }
.dryness-high { color: var(--high); }

.dryness-details {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
}

.dryness-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--forest-800);
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
  overflow-wrap: anywhere;
}

.dryness-details summary::-webkit-details-marker {
  display: none;
}

.dryness-details summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.dryness-details[open] summary::after {
  content: "−";
}

.dryness-summary {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0 16px 15px;
  overflow: hidden;
}

.dryness-summary p {
  max-width: 100%;
  margin: 0;
  color: #405249;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: normal;
}

.dryness-driver-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.dryness-driver-list li {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
}

.dryness-driver-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest-500);
  transform: translateY(-50%);
}

.forecast-section,
.disease-section,
.method-section,
.developer-section {
  padding: 72px 0 0;
}

.forecast-details,
.developer-panel {
  border: 0;
}

.section-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: default;
}

.section-summary::-webkit-details-marker,
.disease-card summary::-webkit-details-marker,
.developer-panel summary::-webkit-details-marker {
  display: none;
}

.section-summary strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
}

.summary-action {
  display: none;
  color: var(--forest-700);
  font-size: 0.88rem;
  font-weight: 800;
}

.chevron {
  display: inline-block;
  transition: transform 180ms ease;
}

.forecast-details[open] .summary-action .chevron {
  transform: rotate(180deg);
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.forecast-card {
  position: relative;
  overflow: hidden;
  min-height: 224px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.forecast-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -34px;
  bottom: -34px;
  border-radius: 50%;
  background: var(--sage-100);
  opacity: 0.6;
}

.forecast-period {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 800;
}

.forecast-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
}

.forecast-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.temperature {
  margin: 0;
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.forecast-summary {
  min-height: 48px;
  margin: 10px 0 16px;
  font-size: 0.92rem;
  font-weight: 700;
}

.forecast-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.forecast-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--sage-50);
  color: var(--muted);
  font-size: 0.72rem;
}

/* Phone-only forecast list: desktop keeps the original illustrated cards. */
.forecast-list-item {
  display: none;
}


.section-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 24px;
}

.section-title-row h2,
.method-grid h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
}

.section-note {
  margin: 0;
  color: var(--muted);
}

.disease-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.disease-card,
.loading-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.disease-card {
  position: relative;
  overflow: hidden;
}

.disease-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #8da096;
}

.disease-card.risk-low::before { background: var(--low); }
.disease-card.risk-watch::before { background: var(--watch); }
.disease-card.risk-elevated::before { background: var(--elevated); }
.disease-card.risk-high::before { background: var(--high); }

.disease-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  grid-template-areas: "title risk confidence chevron";
  align-items: center;
  gap: 14px;
  padding: 22px 24px 22px 28px;
  list-style: none;
  cursor: pointer;
}

.disease-title-wrap { grid-area: title; }
.risk-pill { grid-area: risk; }
.confidence-pill { grid-area: confidence; }
.card-chevron { grid-area: chevron; }

.disease-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 850;
}

.disease-subline {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.77rem;
}

.risk-pill,
.confidence-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 850;
  white-space: nowrap;
}

.risk-pill.risk-low { color: var(--low); background: #edf7f0; }
.risk-pill.risk-watch { color: #886313; background: #faf3df; }
.risk-pill.risk-elevated { color: #a85118; background: #fff0e4; }
.risk-pill.risk-high { color: #95322b; background: #fff0ef; }

.confidence-pill {
  color: var(--forest-700);
  background: var(--sage-50);
  border: 1px solid var(--line);
}

.card-chevron {
  color: var(--muted);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.disease-card[open] .card-chevron {
  transform: rotate(180deg);
}

.disease-details {
  padding: 0 24px 24px 28px;
  border-top: 1px solid var(--line);
}

.disease-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.meta-stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf8;
}

.meta-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--forest-900);
}

.disease-explanation {
  margin: 18px 0;
  color: #405249;
}

.detail-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 12px;
}

.detail-box {
  padding: 15px;
  border-radius: 14px;
  background: var(--sage-50);
}

.detail-box span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-box strong {
  display: block;
  margin-top: 4px;
}

.trend-increasing { color: var(--elevated); }
.trend-easing { color: var(--low); }
.trend-stable { color: var(--forest-700); }

.driver-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.driver-list li {
  display: flex;
  gap: 9px;
  margin: 8px 0;
  color: #4b5d54;
  font-size: 0.9rem;
}

.driver-list li::before {
  content: "•";
  color: var(--forest-500);
  font-weight: 900;
}

.method-tag {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f3f5f3;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.loading-card {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
}

.method-section {
  padding-bottom: 0;
}

.method-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  padding: 34px;
  border-radius: 24px;
  background: var(--forest-950);
  color: var(--white);
}

.method-grid .eyebrow {
  color: #a9cf9c;
}

.method-grid p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  align-self: end;
}

.developer-section {
  padding-bottom: 74px;
}

.developer-panel {
  padding: 18px 20px;
  border: 1px dashed #bdc9c1;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
}

.developer-panel > summary {
  cursor: pointer;
  font-weight: 800;
}

.developer-panel > p,
.fine-print {
  color: var(--muted);
  font-size: 0.86rem;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.availability-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.availability-card strong {
  display: block;
  font-size: 0.8rem;
}

.available { color: var(--low); }
.partial { color: var(--watch); }
.unavailable { color: var(--high); }

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.metrics-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  background: var(--white);
}

.metrics-table th,
.metrics-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.8rem;
}

.metrics-table th {
  background: var(--sage-50);
}

.site-footer {
  padding: 40px 0;
  color: rgba(255,255,255,0.76);
  background: var(--forest-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .topbar-actions {
    gap: 8px;
  }

  .service-link {
    padding-inline: 11px;
  }

  .forecast-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-grid,
  .section-title-row {
    grid-template-columns: 1fr;
  }

  .update-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 18px;
  }

  .update-card .mini-label,
  .update-card .update-location,
  .update-card .updated-time {
    grid-column: 1;
  }

  .update-card .text-button {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-bottom: 96px;
  }

  .source-pill {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .service-link {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .dryness-section {
    padding-top: 20px;
  }

  .dryness-card {
    padding: 18px;
  }

  .dryness-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
  }

  .dryness-compact-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .dryness-result {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 12px;
    padding: 12px 14px;
  }

  .dryness-label,
  .dryness-window-label {
    grid-column: 1;
  }

  .dryness-level {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    text-align: right;
  }

  .dryness-driver-list {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 34px 0 28px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .location-shell {
    padding: 18px;
    border-radius: 18px;
  }

  .location-header {
    display: block;
  }

  .current-location {
    margin-top: 12px;
  }

  .location-tabs {
    width: 100%;
  }

  .location-tab {
    flex: 1;
  }

  .zip-row {
    grid-template-columns: 1fr;
  }

  .overview-section {
    margin-top: -32px;
  }

  .outlook-card {
    align-items: flex-start;
    padding: 22px;
  }

  .outlook-copy {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
  }

  .outlook-copy.is-expanded {
    display: block;
    overflow: visible;
  }

  .outlook-toggle {
    display: inline-block;
  }

  .overall-risk {
    min-width: 92px;
    min-height: 92px;
    border-width: 7px;
    font-size: 0.73rem;
  }

  .forecast-section,
  .disease-section,
  .method-section,
  .developer-section {
    padding-top: 52px;
  }

  .section-summary {
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    cursor: pointer;
  }

  .section-summary strong {
    font-size: 1.35rem;
  }

  .summary-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  /* Replace large forecast cards with slim, tappable rows on phones. */
  .forecast-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 14px;
  }

  .forecast-card {
    display: none;
  }

  .forecast-list-item {
    display: block;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(13, 38, 26, 0.045);
    overflow: hidden;
  }

  .forecast-row-summary {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 12px;
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 11px 12px;
    list-style: none;
    cursor: pointer;
  }

  .forecast-row-summary::-webkit-details-marker {
    display: none;
  }

  .forecast-row-icon {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--sage-50);
  }

  .forecast-icon-placeholder {
    display: grid;
    place-items: center;
    color: var(--forest-700);
    font-size: 1.2rem;
  }

  .forecast-row-text {
    display: block;
    min-width: 0;
  }

  .forecast-row-period,
  .forecast-row-conditions {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .forecast-row-period {
    font-size: 0.93rem;
    line-height: 1.35;
  }

  .forecast-row-conditions {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .forecast-row-temp {
    white-space: nowrap;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
  }

  .forecast-row-chevron {
    color: var(--forest-600);
    font-size: 1.05rem;
    transition: transform 180ms ease;
  }

  .forecast-list-item[open] .forecast-row-chevron {
    transform: rotate(180deg);
  }

  .forecast-row-details {
    min-width: 0;
    padding: 0 14px 14px;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .forecast-row-details > p {
    margin: 12px 0;
    color: #405249;
    font-size: 0.9rem;
  }

  .forecast-row-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .forecast-row-chips > span {
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--sage-50);
    color: var(--forest-800);
    font-size: 0.75rem;
    overflow-wrap: anywhere;
  }

  .disease-grid {
    grid-template-columns: 1fr;
  }

  .disease-card,
  .loading-card {
    border-radius: 16px;
    box-shadow: 0 10px 18px rgba(13, 38, 26, 0.06);
  }

  .disease-card summary {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "title risk chevron";
    gap: 10px;
    padding: 16px 16px 16px 20px;
  }

  .disease-name {
    font-size: 1rem;
  }

  .disease-subline,
  .confidence-pill {
    display: none;
  }

  .risk-pill {
    justify-self: end;
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .card-chevron {
    font-size: 0.95rem;
  }

  .disease-details {
    padding: 0 16px 18px 20px;
  }

  .disease-meta-row,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .disease-explanation {
    margin: 14px 0;
    font-size: 0.93rem;
  }

  .driver-list {
    margin-top: 14px;
  }

  .driver-list li {
    margin: 6px 0;
    font-size: 0.88rem;
  }

  .method-tag {
    margin-top: 12px;
  }

  .detail-grid,
  .method-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .method-grid {
    padding: 26px;
  }
}

@media (max-width: 360px) {
  .forecast-row-summary {
    grid-template-columns: 34px minmax(0, 1fr) auto 10px;
    gap: 7px;
    padding-inline: 9px;
  }

  .forecast-row-icon {
    width: 34px;
    height: 34px;
  }

  .forecast-row-temp {
    font-size: 0.96rem;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 20px 0;
  }

  .brand small {
    display: none;
  }

  .service-link {
    max-width: 160px;
    text-align: center;
    line-height: 1.2;
  }

  .dryness-toggle {
    width: 100%;
  }

  .dryness-period {
    flex: 1;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .location-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .location-tab {
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .outlook-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .outlook-copy {
    grid-column: 1 / -1;
  }

  .overall-risk {
    min-width: 80px;
    min-height: 80px;
    padding: 8px;
  }

  .update-card {
    display: block;
  }

  .update-card .text-button {
    margin-top: 14px;
  }
}
