:root {
  --ink: #173f4f;
  --ink-deep: #0f2f3b;
  --blue: #1d7181;
  --blue-light: #a8d7d3;
  --cream: #f5e6c8;
  --paper: #fffaf0;
  --red: #d95f4a;
  --red-deep: #9f3e32;
  --mustard: #e3b643;
  --white: #fffdf8;
  --line: rgba(23, 63, 79, 0.22);
  --shadow: 8px 8px 0 rgba(15, 47, 59, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 63, 79, 0.09) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--cream);
  font-family: "Trebuchet MS", "Avenir Next", Avenir, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 18px;
  border-bottom: 2px solid var(--ink);
}

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

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-style: italic;
  letter-spacing: -0.04em;
}

.brand-copy small {
  margin-top: 6px;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-scene {
  position: relative;
  display: block;
  width: 50px;
  height: 58px;
  perspective: 180px;
}

.logo-gauge {
  position: absolute;
  bottom: 5px;
  left: 9px;
  width: 31px;
  height: 42px;
  overflow: hidden;
  border: 3px solid var(--ink-deep);
  border-radius: 5px 5px 11px 11px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(168, 215, 211, 0.36) 48%, rgba(23, 63, 79, 0.18));
  box-shadow: inset -5px 0 0 rgba(23, 63, 79, 0.1), 4px 5px 0 rgba(15, 47, 59, 0.24);
  transform: rotateY(-9deg) rotateX(3deg);
  transform-origin: bottom;
  animation: gauge-rock 5s ease-in-out infinite;
}

.logo-gauge::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: -4px;
  left: -4px;
  width: 33px;
  height: 7px;
  border: 3px solid var(--ink-deep);
  border-radius: 50%;
  background: var(--blue-light);
}

.logo-glass {
  position: absolute;
  inset: 5px 3px 2px;
  border-radius: 3px 3px 7px 7px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.7), transparent 42%);
}

.logo-water {
  position: absolute;
  right: 1px;
  bottom: 0;
  left: 1px;
  height: 48%;
  background: linear-gradient(#49a7b2, #1d7181);
  animation: water-rise 4s ease-in-out infinite;
}

.logo-water::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: calc(100% + 4px);
  height: 7px;
  border-radius: 50%;
  background: #65bdc2;
}

.logo-tick {
  position: absolute;
  z-index: 4;
  right: 2px;
  width: 8px;
  height: 2px;
  background: var(--ink-deep);
}

.tick-a { top: 14px; }
.tick-b { top: 23px; }
.tick-c { top: 32px; }

.logo-shine {
  position: absolute;
  z-index: 6;
  top: 9px;
  left: 5px;
  width: 4px;
  height: 25px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.75);
}

.logo-drop {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 20px;
  width: 10px;
  height: 13px;
  border-radius: 70% 40% 70% 40%;
  background: var(--blue);
  box-shadow: inset 2px 2px rgba(255, 255, 255, 0.36);
  transform: rotate(45deg);
  animation: drop-fall 2.1s cubic-bezier(0.55, 0, 0.7, 0.4) infinite;
}

.logo-shadow {
  position: absolute;
  right: 7px;
  bottom: 0;
  left: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15, 47, 59, 0.2);
  filter: blur(1px);
  animation: shadow-pulse 2.1s ease-in-out infinite;
}

@keyframes drop-fall {
  0% { opacity: 0; transform: translateY(-6px) rotate(45deg) scale(0.75); }
  18% { opacity: 1; }
  72% { opacity: 1; transform: translateY(20px) rotate(45deg) scale(1); }
  82%, 100% { opacity: 0; transform: translateY(25px) rotate(45deg) scale(0.45); }
}

@keyframes water-rise {
  0%, 100% { height: 42%; }
  55% { height: 54%; }
}

@keyframes gauge-rock {
  0%, 100% { transform: rotateY(-9deg) rotateX(3deg) rotateZ(-1deg); }
  50% { transform: rotateY(8deg) rotateX(-2deg) rotateZ(1deg); }
}

@keyframes shadow-pulse {
  0%, 100% { transform: scaleX(0.82); opacity: 0.3; }
  50% { transform: scaleX(1); opacity: 0.7; }
}

nav {
  display: flex;
  gap: 30px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  position: relative;
  text-decoration: none;
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  min-height: 560px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 80px;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 28px;
  left: 3%;
  width: 94%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 15px);
  opacity: 0.35;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--red-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  margin-right: 7px;
  color: var(--mustard);
  -webkit-text-stroke: 1px var(--ink);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 9.5vw, 7.8rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.79;
}

h1 em {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  transform: rotate(-2deg);
  text-shadow: 3px 3px 0 var(--paper), 5px 5px 0 rgba(15, 47, 59, 0.2);
}

.hero-lede {
  max-width: 570px;
  margin: 34px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--ink-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--red);
}

.weather-illustration {
  position: relative;
  min-height: 410px;
}

.sunburst {
  position: absolute;
  top: 0;
  right: 8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 4deg, var(--mustard) 0 8deg, transparent 8deg 18deg);
  opacity: 0.92;
  animation: spin-slow 50s linear infinite;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

.cloud {
  position: absolute;
  border: 5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: var(--paper);
}

.cloud-back {
  top: 94px;
  right: 48px;
  width: 250px;
  height: 80px;
  opacity: 0.9;
  transform: rotate(3deg);
}

.cloud-back::before { top: -72px; left: 35px; width: 96px; height: 75px; }
.cloud-back::after { top: -49px; right: 32px; width: 88px; height: 52px; }

.cloud-front {
  top: 145px;
  left: 24px;
  width: 300px;
  height: 92px;
  background: var(--blue-light);
  transform: rotate(-2deg);
}

.cloud-front::before { top: -85px; left: 45px; width: 118px; height: 88px; background: var(--blue-light); }
.cloud-front::after { top: -56px; right: 32px; width: 98px; height: 59px; background: var(--blue-light); }

.rain-line {
  position: absolute;
  top: 248px;
  width: 8px;
  height: 60px;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 4px 4px 0 rgba(15, 47, 59, 0.16);
  transform: rotate(22deg);
  animation: rain-fall 1.7s ease-in infinite;
}

.rain-one { left: 84px; }
.rain-two { left: 160px; animation-delay: -0.6s; }
.rain-three { left: 235px; animation-delay: -1.1s; }

@keyframes rain-fall {
  0% { opacity: 0; transform: translateY(-14px) rotate(22deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(40px) rotate(22deg); }
}

.gauge {
  position: absolute;
  right: 40px;
  bottom: 10px;
  width: 92px;
  height: 230px;
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 11px 11px 28px 28px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(168, 215, 211, 0.3) 55%, rgba(23, 63, 79, 0.18));
  box-shadow: inset -12px 0 rgba(23, 63, 79, 0.11), 12px 15px 0 rgba(15, 47, 59, 0.18);
  transform: perspective(600px) rotateY(-8deg) rotateZ(3deg);
}

.gauge::before {
  content: "";
  position: absolute;
  z-index: 7;
  top: 20px;
  left: 14px;
  width: 10px;
  height: 120px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.gauge-cap {
  position: absolute;
  z-index: 8;
  top: -7px;
  left: -7px;
  width: 94px;
  height: 20px;
  border: 6px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
}

.gauge-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  background: linear-gradient(#51b1b8, var(--blue));
  animation: hero-water 5s ease-in-out infinite;
}

.gauge-fill::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 100%;
  height: 20px;
  border-radius: 50%;
  background: #66c4c6;
}

@keyframes hero-water {
  0%, 100% { height: 39%; }
  50% { height: 49%; }
}

.gauge-mark {
  position: absolute;
  z-index: 5;
  right: 8px;
  width: 30px;
  border-top: 3px solid var(--ink);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 0;
  text-indent: -15px;
}

.mark-one { bottom: 50px; }
.mark-two { bottom: 105px; }
.mark-three { bottom: 160px; }

.burst-label {
  position: absolute;
  right: 130px;
  bottom: 32px;
  display: grid;
  place-items: center;
  width: 105px;
  height: 105px;
  color: var(--white);
  background: var(--red);
  clip-path: polygon(50% 0, 61% 18%, 80% 7%, 82% 28%, 100% 31%, 87% 50%, 100% 65%, 79% 70%, 80% 92%, 60% 82%, 50% 100%, 40% 82%, 19% 94%, 20% 72%, 0 66%, 13% 50%, 0 34%, 20% 29%, 19% 7%, 40% 18%);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-align: center;
  transform: rotate(-9deg);
}

.lookup-wrap {
  position: relative;
  padding: 0 20px 86px;
}

.lookup-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 80px;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--ink);
}

.lookup-card {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--red-deep);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--mustard);
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.card-heading .kicker {
  margin-bottom: 2px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.field-group {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.field-group > label,
.field-group legend,
.custom-dates label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-control {
  position: relative;
}

.search-icon {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 16px;
  width: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

input[type="search"],
input[type="date"] {
  width: 100%;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 -4px rgba(23, 63, 79, 0.07);
}

input[type="search"] {
  padding: 0 18px 0 51px;
  font-size: 1rem;
}

input[type="date"] {
  padding: 0 13px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--mustard);
  outline-offset: 3px;
}

.location-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--blue-light);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.location-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.location-button svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.location-button[disabled],
.primary-button[disabled] {
  cursor: wait;
  opacity: 0.62;
}

.field-hint {
  margin: 9px 0 0;
  color: rgba(23, 63, 79, 0.76);
  font-size: 0.8rem;
}

.suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(15, 47, 59, 0.22);
}

.suggestion {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.suggestion:last-child { border-bottom: 0; }
.suggestion:hover,
.suggestion[aria-selected="true"] { background: rgba(168, 215, 211, 0.42); }
.suggestion strong { display: block; }
.suggestion small { color: rgba(23, 63, 79, 0.68); }

.range-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.range-buttons label {
  position: relative;
  border-right: 2px solid var(--ink);
  cursor: pointer;
}

.range-buttons label:last-child { border-right: 0; }
.range-buttons input { position: absolute; opacity: 0; pointer-events: none; }

.range-buttons span {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 6px 10px;
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  transition: background 140ms ease, color 140ms ease;
}

.range-buttons input:checked + span {
  color: var(--white);
  background: var(--blue);
  box-shadow: inset 0 -5px rgba(15, 47, 59, 0.18);
}

.range-buttons input:focus-visible + span {
  outline: 4px solid var(--mustard);
  outline-offset: -5px;
}

.custom-dates {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 15px;
  margin: -8px 0 28px;
  padding: 18px;
  border: 2px dashed var(--blue);
  border-radius: 8px;
  background: rgba(168, 215, 211, 0.2);
}

.custom-dates[hidden] { display: none; }
.custom-dates > span { padding-bottom: 17px; font-family: Georgia, serif; font-style: italic; }

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 12px 24px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.primary-button:hover {
  background: var(--red-deep);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.primary-button svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.status {
  margin-top: 22px;
  padding: 14px 16px;
  border: 2px solid currentColor;
  border-radius: 7px;
  background: rgba(227, 182, 67, 0.16);
  font-weight: 700;
}

.status.error { color: #7f2f26; background: #f8ddd4; }
.status.loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 9px; border: 3px solid var(--blue-light); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-section {
  padding: 82px 20px;
  background: var(--ink);
}

.result-section[hidden] { display: none; }

.result-ticket {
  position: relative;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(25px, 5vw, 52px);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(23, 63, 79, 0.045) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--paper);
  box-shadow: 12px 12px 0 var(--red);
}

.result-ticket::before,
.result-ticket::after {
  content: "";
  position: absolute;
  top: 185px;
  width: 28px;
  height: 56px;
  background: var(--ink);
}

.result-ticket::before { left: 0; border-radius: 0 40px 40px 0; }
.result-ticket::after { right: 0; border-radius: 40px 0 0 40px; }

.ticket-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 25px;
  border-bottom: 2px dashed rgba(23, 63, 79, 0.35);
}

.estimate-badge {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--mustard);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.result-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  padding: 36px 0 34px;
}

.total-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 35px;
  border-right: 2px solid var(--line);
}

.total-panel > p:first-child {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rain-total {
  display: flex;
  align-items: end;
  gap: 8px;
  color: var(--blue);
  font-family: Georgia, serif;
  font-weight: 900;
  line-height: 0.9;
}

.rain-total > span {
  font-size: clamp(4.2rem, 10vw, 7rem);
  letter-spacing: -0.08em;
}

.rain-total small {
  padding-bottom: 10px;
  color: var(--ink);
  font-size: 1rem;
  font-style: italic;
}

.plain-language {
  margin: 24px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
}

.chart-panel {
  min-width: 0;
}

.chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-heading h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.chart-heading span {
  color: rgba(23, 63, 79, 0.65);
  font-size: 0.72rem;
}

.bar-chart {
  display: flex;
  align-items: stretch;
  gap: 7px;
  height: 210px;
  padding: 10px 0 0;
  border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(to bottom, transparent 0 49px, rgba(23, 63, 79, 0.11) 49px 50px);
}

.bar-item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: end;
  min-width: 0;
  height: 100%;
  text-align: center;
}

.bar-value {
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 0.62rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar {
  min-height: 2px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: var(--blue);
  box-shadow: inset -4px 0 rgba(15, 47, 59, 0.18);
  transform-origin: bottom;
  animation: bar-grow 500ms ease-out both;
}

@keyframes bar-grow { from { transform: scaleY(0); } }

.bar-label {
  overflow: hidden;
  height: 28px;
  padding-top: 7px;
  font-size: 0.63rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.report-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 2px dashed rgba(23, 63, 79, 0.35);
  border-bottom: 2px dashed rgba(23, 63, 79, 0.35);
}

.report-details div {
  padding: 19px 20px;
  border-right: 1px solid var(--line);
}

.report-details div:first-child { padding-left: 0; }
.report-details div:last-child { border-right: 0; }
.report-details dt { margin-bottom: 3px; color: rgba(23, 63, 79, 0.67); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.report-details dd { margin: 0; font-size: 0.84rem; font-weight: 800; }

.accuracy-note {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  padding: 15px 18px;
  border-left: 5px solid var(--mustard);
  background: rgba(227, 182, 67, 0.12);
}

.accuracy-note svg {
  flex: 0 0 auto;
  width: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 2;
}

.accuracy-note p { margin: 0; font-size: 0.81rem; }

.how-section,
.data-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 43px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.how-grid article {
  position: relative;
  min-height: 265px;
  padding: 27px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 6px 6px 0 rgba(15, 47, 59, 0.16);
}

.how-grid article:nth-child(2) { transform: translateY(14px); }

.how-number {
  position: absolute;
  top: 15px;
  right: 18px;
  color: rgba(23, 63, 79, 0.18);
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: 900;
}

.how-icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  margin-bottom: 23px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--mustard);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
}

.how-grid article:nth-child(2) .how-icon { background: var(--red); }
.how-grid article:nth-child(3) .how-icon { color: var(--ink); background: var(--mustard); }
.how-grid h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 1.35rem; }
.how-grid p { margin: 0; font-size: 0.88rem; }

.data-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  border-top: 3px solid var(--ink);
}

.data-copy {
  font-family: Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.75;
}

.data-copy p:first-child { margin-top: 0; }
.data-copy a { display: inline-block; margin-top: 8px; color: var(--red-deep); font-family: "Trebuchet MS", sans-serif; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }

footer {
  display: grid;
  grid-template-columns: auto 1fr auto minmax(220px, 360px);
  align-items: center;
  gap: 28px;
  padding: 35px max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--ink-deep);
}

.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 900;
  text-decoration: none;
}

.footer-brand span { color: var(--mustard); font-family: "Trebuchet MS", sans-serif; font-size: 0.56rem; font-style: normal; letter-spacing: 0.1em; }
footer p { margin: 0; font-family: Georgia, serif; font-style: italic; }
.footer-small { color: rgba(255, 253, 248, 0.66); font-family: "Trebuchet MS", sans-serif; font-size: 0.69rem; font-style: normal; text-align: right; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 0.66rem;
}

.footer-links a {
  color: rgba(255, 253, 248, 0.85);
  text-decoration-color: var(--mustard);
  text-underline-offset: 4px;
}

.install-prompt {
  position: fixed;
  z-index: 900;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  width: min(440px, calc(100% - 36px));
  padding: 18px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(15, 47, 59, 0.38);
  opacity: 0;
  transform: translateY(calc(100% + 35px));
  transition: opacity 180ms ease, transform 220ms ease;
}

.install-prompt[hidden] { display: none !important; }

@media (display-mode: standalone) {
  .install-prompt { display: none !important; }
}

.install-prompt.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.install-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.install-close:hover { background: rgba(23, 63, 79, 0.09); }

.install-icon-frame {
  display: grid;
  place-items: center;
  align-self: start;
  width: 66px;
  height: 66px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--mustard);
  overflow: hidden;
}

.install-icon-frame img {
  width: 100%;
  height: 100%;
}

.install-copy { padding: 1px 28px 0 0; }
.install-kicker {
  margin: 0 0 3px;
  color: var(--red-deep);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.install-copy h2 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.05;
}

.install-copy > p:last-child {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.install-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.install-action {
  min-height: 44px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.install-action-primary {
  color: var(--white);
  background: var(--red-deep);
  box-shadow: 3px 3px 0 var(--mustard);
}

.install-action-primary:hover { background: var(--red); }
.install-action-secondary { color: var(--ink); background: transparent; }
.install-action-secondary:hover { background: rgba(23, 63, 79, 0.08); }

.policy-page {
  min-height: 100vh;
  color: var(--ink);
}

.policy-header {
  width: min(900px, calc(100% - 40px));
}

.policy-header .brand-copy small {
  color: var(--red-deep);
}

.policy-header .brand-icon {
  width: 50px;
  height: 50px;
  filter: drop-shadow(3px 4px 0 rgba(15, 47, 59, 0.2));
}

.policy-shell {
  width: min(860px, calc(100% - 40px));
  margin: 55px auto 90px;
  padding: clamp(27px, 6vw, 65px);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--red-deep);
}

.policy-shell h1 {
  margin: 0 0 25px;
  font-size: clamp(3rem, 9vw, 5.8rem);
  line-height: 0.9;
}

.policy-shell h1 em {
  display: inline;
}

.policy-intro {
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 2px dashed var(--line);
  font-family: Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.7;
}

.policy-shell h2 {
  margin: 42px 0 12px;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

.policy-shell h3 {
  margin: 28px 0 8px;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.policy-shell p,
.policy-shell li {
  font-size: 0.95rem;
  line-height: 1.75;
}

.policy-shell a {
  color: var(--red-deep);
  font-weight: 800;
  text-underline-offset: 3px;
}

.policy-shell li + li {
  margin-top: 8px;
}

.legal-note {
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 6px solid var(--mustard);
  background: rgba(227, 182, 67, 0.14);
  font-size: 0.84rem;
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 42px;
  padding-top: 25px;
  border-top: 2px solid var(--line);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-copy { position: relative; z-index: 2; }
  .weather-illustration { min-height: 350px; margin-top: 25px; }
  .sunburst { right: 4%; width: 240px; height: 240px; }
  .cloud-front { left: 8%; }
  .gauge { right: 13%; }
  .burst-label { right: 31%; }
  .result-grid { grid-template-columns: 1fr; gap: 30px; }
  .total-panel { padding: 0 0 28px; border-right: 0; border-bottom: 2px solid var(--line); }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid article:nth-child(2) { transform: none; }
  .data-section { grid-template-columns: 1fr; gap: 30px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-small { text-align: center; }
  .footer-links { display: flex; }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .how-section,
  .data-section { width: min(100% - 28px, 1180px); }
  .site-header { padding-top: 16px; }
  .brand-copy small { font-size: 0.52rem; }
  h1 { font-size: clamp(3.3rem, 16.5vw, 4.35rem); }
  .hero { min-height: auto; overflow: hidden; padding-bottom: 65px; }
  .weather-illustration { min-height: 310px; transform: scale(0.79); transform-origin: center top; margin-right: -13%; margin-bottom: -70px; margin-left: -13%; }
  .search-row { grid-template-columns: 1fr; }
  .location-button { justify-content: center; }
  .range-buttons { grid-template-columns: repeat(2, 1fr); border-bottom: 0; }
  .range-buttons label { border-right: 2px solid var(--ink); border-bottom: 3px solid var(--ink); }
  .range-buttons label:nth-child(2n) { border-right: 0; }
  .range-buttons label:last-child { grid-column: 1 / -1; border-right: 0; }
  .custom-dates { grid-template-columns: 1fr; align-items: stretch; }
  .custom-dates > span { display: none; }
  .ticket-topline { display: grid; }
  .estimate-badge { justify-self: start; }
  .rain-total { flex-wrap: wrap; }
  .report-details { grid-template-columns: 1fr; }
  .report-details div,
  .report-details div:first-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .report-details div:last-child { border-bottom: 0; }
  .bar-chart { gap: 3px; }
  .bar-value { display: none; }
  .bar-label { font-size: 0.54rem; transform: rotate(-35deg); transform-origin: center; }
  .install-prompt {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: calc(100% - 28px);
    padding: 16px;
    box-shadow: 6px 6px 0 rgba(15, 47, 59, 0.38);
  }
  .install-icon-frame { width: 58px; height: 58px; border-radius: 14px; }
  .install-copy h2 { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
