:root {
  --bg: #f4f6f2; --card: #fff; --ink: #18231f; --muted: #5d6a64; --line: #e1e6df;
  --green: #0b5d4b; --green-2: #2a8a6e; --soft: #e8f4ee; --ruby: #b3264a; --ruby-soft: #fbeaef;
  --shadow: 0 1px 2px rgba(24,35,31,.06), 0 4px 14px rgba(24,35,31,.07); --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; overflow-wrap: break-word; }
a { color: var(--green); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

.top { background: var(--green); color: #fff; padding: 12px 0; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.brand { color: #fff; text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.brand b { color: #ffb3c6; }
.top nav { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; }
.top nav a { color: #d7ebe3; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; border-bottom-color: #ffb3c6; }

.crumbs { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 18px 0 8px; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 20px; max-width: 700px; }
h2 { font-size: clamp(20px, 3vw, 24px); margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 17px; margin: 18px 0 8px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.tool { border-top: 4px solid var(--ruby); }
.answer .big, .res .big { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.muted { color: var(--muted); }
.note, .hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.err { color: var(--ruby); font-weight: 600; }

/* ZIP form */
.zipform label { display: block; font-weight: 650; margin-bottom: 6px; }
.ziprow { display: flex; gap: 8px; max-width: 460px; }
.ziprow input { flex: 1; min-width: 0; font: inherit; font-size: 20px; padding: 10px 12px; border-radius: 9px; border: 1.5px solid #c9d1cb; letter-spacing: .08em; }
.ziprow input:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(42,138,110,.2); }
.ziprow button, .btn { font: inherit; font-weight: 650; font-size: 16px; padding: 10px 16px; border-radius: 9px; border: 0; background: var(--ruby); color: #fff; cursor: pointer; white-space: nowrap; }
.ziprow button:hover { background: #951d3c; }
.zipresult:not(:empty) { margin-top: 16px; }
.where { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }

/* status + feeder dates */
.status { padding: 10px 12px; border-radius: 9px; background: var(--soft); border-left: 4px solid var(--green-2); margin: 10px 0; }
.st-gone, .st-notyet { background: #f1f1ee; border-left-color: #9aa39e; }
.st-soon, .st-leaving { background: #fff4e5; border-left-color: #e08a1e; }
.st-peak { background: var(--ruby-soft); border-left-color: var(--ruby); }
.today:empty { display: none; }
.feedbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.feedbox div { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.feedbox b { display: block; font-size: clamp(22px, 5vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--green); }
.feedbox span { font-size: 13px; color: var(--muted); }

/* strip chart: 48 quarter-month periods */
.strip { margin: 12px 0 0; }
.strip .cells { display: grid; grid-template-columns: repeat(48, 1fr); gap: 1px; height: 34px; }
.strip .cells i { background: rgba(11,93,75,var(--v)); border-radius: 2px; outline: 1px solid #e7ece8; outline-offset: -1px; }
.strip .cells i.now { outline: 2px solid var(--ruby); outline-offset: 0; position: relative; z-index: 1; }
.strip .months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 11px; color: var(--muted); margin-top: 3px; }
.strip figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* tile map */
.tilemap { margin: 0; }
.tilemap svg { width: 100%; height: auto; display: block; }
.tilemap text { text-anchor: middle; font-family: inherit; }
.tilemap .ab { font-size: 14px; font-weight: 700; }
.tilemap .dt { font-size: 10px; }
.tilemap a:hover rect, .tilemap a:focus rect { stroke: var(--ruby); stroke-width: 2.5; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin: 8px 0 4px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tilemap figcaption { font-size: 12px; color: var(--muted); }

/* tables */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ref { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 520px; }
.ref th, .ref td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref thead th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 650; position: sticky; top: 0; background: #fff; }
.ref tbody th { font-weight: 600; }
.ref tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.ref tr.grp th { background: var(--soft); color: var(--green); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.counties td { white-space: nowrap; }
.monthgrid td { padding: 0; min-width: 18px; border-left: 2px solid #fff; }
.monthgrid td.on { background: var(--green-2); }
.monthgrid td:last-child { padding: 7px 8px; white-space: nowrap; }
abbr { text-decoration: none; cursor: help; }

/* lists */
.links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 16px; }
.splist { padding-left: 20px; margin: 6px 0; }
.splist li { margin: 3px 0; }
.timeline { padding-left: 20px; }
.timeline li { margin: 6px 0; }
.shoplist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.shoplist li { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.shoplist a { font-weight: 650; display: block; }
.shoplist span { font-size: 13px; color: var(--muted); }
.prose ul, .prose ol { padding-left: 20px; }
.cite { font-size: 13px; background: #f6f7f4; padding: 10px 12px; border-radius: 8px; }

/* nectar calculator */
.nectar .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px 14px; }
.nectar label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.nectar input, .nectar select { font: inherit; font-size: 17px; padding: 10px 12px; border-radius: 9px; border: 1.5px solid #c9d1cb; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.inp { position: relative; display: flex; align-items: center; }
.inp i { position: absolute; right: 12px; font-style: normal; color: var(--muted); pointer-events: none; font-size: 14px; }
.nectar-out { margin-top: 16px; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.totals div { background: #f6f7f4; border-radius: 10px; padding: 12px 14px; }
.totals .main { background: var(--ruby-soft); outline: 2px solid var(--ruby); }
.totals b { display: block; font-size: clamp(20px, 4.5vw, 28px); font-weight: 800; letter-spacing: -.01em; }
.totals span { font-size: 13px; color: var(--muted); }
.tip { margin: 12px 0 0; padding: 10px 12px; border-left: 4px solid var(--green-2); background: var(--soft); border-radius: 0 9px 9px 0; font-size: 15px; }

.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 8px 0 2px; color: #2f3a35; }
footer { font-size: 13px; color: var(--muted); padding: 10px 16px 40px; }
footer a { color: var(--muted); }
.states-foot { line-height: 1.9; }
@media (max-width: 560px) {
  .panel { padding: 16px; }
  .top nav { font-size: 13px; }
  .ziprow button { padding: 10px 12px; }
  .strip .cells { height: 28px; }
  .tilemap .dt { display: none; }
}
