/* Wheat Nowcast site. Hand-written; the HTML pages are generated by scripts/build_site.py. */
:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --card: #fffefb;
  --ink: #13201b;
  --ink-2: #4b524d;
  --muted: #858a84;
  --line: #e2dfd4;
  --field: #15302a;
  --field-2: #1f4338;
  --wheat: #e0b04a;
  --wheat-soft: #f3dfae;
  --model: #2a78d6;
  --usda: #eb6834;
  --good: #0f7a3d;
  --bad: #b8322f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 32, 27, .05), 0 8px 24px -12px rgba(19, 32, 27, .12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 48, 42, .94); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { flex: none; }
.brand span { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.links::-webkit-scrollbar { display: none; }
.links a {
  color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s;
}
.links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.links a.on { color: var(--field); background: var(--wheat); }
@media (max-width: 860px) {
  .nav .wrap { height: auto; flex-wrap: wrap; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .links { margin-left: 0; width: 100%; }
}

/* origins dropdown */
.links { overflow: visible; }
details.drop { position: relative; }
details.drop summary {
  list-style: none; cursor: pointer; color: rgba(255, 255, 255, .72); font-size: .9rem; font-weight: 500;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s;
}
details.drop summary::-webkit-details-marker { display: none; }
details.drop summary::after { content: "▾"; font-size: .7rem; margin-left: 6px; opacity: .7; }
details.drop summary:hover, details.drop[open] summary { color: #fff; background: rgba(255, 255, 255, .08); }
details.drop.on summary { color: var(--field); background: var(--wheat); }
details.drop .menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; padding: 6px; z-index: 30;
  background: var(--field); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); display: grid; gap: 2px;
}
details.drop .menu a { border-radius: 8px; }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(224, 176, 74, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 120%, rgba(42, 120, 214, .18), transparent 60%),
    linear-gradient(180deg, var(--field) 0%, var(--field-2) 100%);
}
.hero::after { /* faint field rows */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: repeating-linear-gradient(-12deg, #fff 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 72px; }
.hero.small .wrap { padding-top: 56px; padding-bottom: 44px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--wheat);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--wheat); border-radius: 2px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(2.3rem, 5.6vw, 4.3rem); margin: 18px 0 18px; max-width: 16ch;
}
.hero.small h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 22ch; }
.hero h1 em { font-style: italic; color: var(--wheat); }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .78); max-width: 62ch; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--wheat); color: var(--field); }
.btn.ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 56px;
  background: rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats div { background: rgba(21, 48, 42, .55); padding: 20px 22px; }
.hero-stats b { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; color: #fff; line-height: 1.1; }
.hero-stats span { display: block; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-top: 6px; line-height: 1.4; }
@media (max-width: 860px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ sections */
section.block { padding: 72px 0; }
section.block + section.block { padding-top: 8px; }
.kicker { font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
h2.title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.015em; line-height: 1.15; margin: 0 0 12px; max-width: 26ch; }
p.intro { color: var(--ink-2); max-width: 70ch; margin: 0 0 28px; font-size: 1.04rem; }
h3 { font-size: 1.05rem; margin: 0 0 4px; letter-spacing: -.005em; }
.note { color: var(--ink-2); font-size: .88rem; }
.muted { color: var(--muted); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.card h3 + .note { margin: 0 0 12px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; } }

/* origin cards */
a.origin { text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: transform .18s, box-shadow .18s; }
a.origin:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(19, 32, 27, .06), 0 18px 40px -18px rgba(19, 32, 27, .3); }
.origin .flag { font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.origin h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.origin .big { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1; }
.origin .big small { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-left: 6px; }
.origin .go { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--model); }
.spark { height: 64px; margin: 4px -6px 0; }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; top: 18px; left: 22px; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--wheat);
}
.step p { margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }

/* findings */
.finding { border-left: 3px solid var(--wheat); padding: 2px 0 2px 16px; }
.finding b { display: block; margin-bottom: 4px; }
.finding p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ------------------------------------------------------------ explorer */
.controls {
  display: flex; flex-wrap: wrap; align-items: end; gap: 14px 22px; padding: 16px 20px; margin-bottom: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  position: sticky; top: 70px; z-index: 5;
}
@media (max-width: 860px) { .controls { position: static; } }
.ctl label { display: block; font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
select {
  font: inherit; font-size: .95rem; padding: 8px 34px 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234b524d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; color: var(--ink); cursor: pointer; min-width: 120px;
}
select:focus-visible, .seg button:focus-visible { outline: 2px solid var(--model); outline-offset: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; background: #efede5; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  font: inherit; font-size: .88rem; font-weight: 550; border: 0; background: transparent; color: var(--ink-2);
  padding: 6px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .lab { font-size: .8rem; color: var(--ink-2); }
.kpi .val { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.15; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.kpi .val small { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.kpi .sub { font-size: .82rem; color: var(--ink-2); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-weight: 600; font-size: .8rem; background: #efede5; color: var(--ink-2); }
.pill.up { background: #e3f1e8; color: var(--good); }
.pill.down { background: #f8e3e1; color: var(--bad); }

.chart { width: 100%; min-height: 320px; }
.chart.tall { min-height: 380px; }
.chart.map { min-height: 540px; }
.tabbar { margin-bottom: 18px; }
.panel[hidden] { display: none; }
a.sat-card {
  color: #fff; border: 0;
  background:
    radial-gradient(260px 200px at 85% 10%, rgba(224, 176, 74, .35), transparent 70%),
    radial-gradient(300px 220px at 0% 100%, rgba(42, 120, 214, .35), transparent 70%),
    linear-gradient(160deg, var(--field) 0%, #0d1f1a 100%);
}
a.sat-card .flag { color: var(--wheat); }
a.sat-card .note { color: rgba(255, 255, 255, .75); }
a.sat-card .go { color: var(--wheat); }

/* tables */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 650; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:hover { background: #faf8f2; }
.box { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--ink-2); background: var(--card); }
.tag { display: inline-block; font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; margin-left: 6px; font-family: var(--sans); }
.callout { background: #fbf3df; border: 1px solid #eedcae; border-radius: var(--radius); padding: 14px 18px; font-size: .93rem; color: #5b4a1f; }
.callout b { color: #3f3313; }

/* prose (method page) */
.prose { max-width: 74ch; }
.prose h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 34px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose code { font-size: .88em; background: #efede5; padding: 1px 6px; border-radius: 6px; }

/* ------------------------------------------------------------ footer */
footer { background: var(--field); color: rgba(255, 255, 255, .7); margin-top: 72px; padding: 52px 0 40px; font-size: .88rem; }
footer .wrap { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 32px; }
footer .brand { margin-bottom: 14px; }
footer b { color: #fff; }
footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
footer a:hover { color: var(--wheat); }
footer p { margin: 0 0 10px; }
footer .small { font-size: .8rem; color: rgba(255, 255, 255, .55); }
.fcol { display: flex; flex-direction: column; gap: 8px; }
.fhead { font-size: .74rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--wheat) !important; margin-bottom: 4px !important; }
footer .muted { color: rgba(255, 255, 255, .45); font-size: .8rem; margin-top: 6px; }
@media (max-width: 860px) { footer .wrap { grid-template-columns: 1fr 1fr; } .fcol.wide { grid-column: 1 / -1; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------ editions (free / Pro) */
.links a.tier-btn { color: var(--field); background: var(--wheat); font-weight: 650; margin-left: 6px; }
.links a.tier-btn:hover { color: var(--field); background: #f0c766; }
.tier-bar { background: #f3ecd8; border-bottom: 1px solid #e4d9b8; font-size: .86rem; color: #4a4636; }
.tier-bar .wrap { padding-top: 8px; padding-bottom: 8px; }
.tier-bar a { font-weight: 600; color: var(--field); }
.tier-bar.pro { background: var(--field); color: rgba(255, 255, 255, .85); border-bottom-color: rgba(255, 255, 255, .08); }
.tier-bar.pro b { color: var(--wheat); }
.tier-bar.pro a { color: #fff; }


/* ================================================================ v2: navigation, ticker, home, prices, news */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--wheat); color: var(--field); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--wheat); outline-offset: 2px; }

/* nav v2 */
.nav .wrap { gap: 18px; }
.links { align-items: center; }
details.drop .menu a { display: block; padding: 8px 12px; }
details.drop .menu a b { display: block; color: #fff; font-weight: 600; font-size: .9rem; }
details.drop .menu a small { display: block; color: rgba(255, 255, 255, .55); font-size: .76rem; font-weight: 400; }
details.drop .menu a:hover { background: rgba(255, 255, 255, .07); }
details.drop .menu a.on { background: rgba(224, 176, 74, .16); color: #fff; }
details.drop .menu { min-width: 260px; animation: drop .16s ease-out; }
details.drop.mega .menu { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; min-width: 470px; padding: 12px; }
.mgroup { display: grid; gap: 2px; align-content: start; }
.mhead { margin: 2px 12px 6px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wheat); font-weight: 650; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav { backdrop-filter: none; background: var(--field); }
  .nav .wrap { flex-wrap: nowrap; height: 60px; padding-top: 0; padding-bottom: 0; }
  .menu-btn { display: flex; }
  .links {
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0; margin: 0; width: auto; z-index: 40;
    display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px;
    padding: 14px 16px 40px; background: var(--field); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .links { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .links a, details.drop summary { font-size: 1.05rem; padding: 12px 14px; border-radius: 10px; }
  details.drop .menu a small { display: none; }
  details.drop .menu, details.drop.mega .menu { position: static; min-width: 0; box-shadow: none; border: 0; background: rgba(255, 255, 255, .04); grid-template-columns: 1fr; margin: 4px 0 8px; animation: none; }
  .links a.tier-btn { margin: 12px 0 0; text-align: center; }
}

/* ticker */
.ticker { background: #0f241f; color: rgba(255, 255, 255, .78); font-size: .82rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ticker .wrap { display: flex; align-items: center; gap: 14px; height: 38px; }
.live-dot { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wheat); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wheat); box-shadow: 0 0 0 0 rgba(224, 176, 74, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(224, 176, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 176, 74, 0); } }
.tk-view { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.tk-track { display: inline-flex; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker:hover .tk-track { animation-play-state: paused; }
.tk-dup { display: inline-flex; }
.tk { display: inline-flex; padding-right: 34px; }
.tk a { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; }
.tk a:hover { color: #fff; }
.tk b { color: #fff; font-weight: 600; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } .tk-dup { display: none; } .tk-view { overflow-x: auto; } }

.chg { font-weight: 650; font-size: .82em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg.up { color: #2fa866; }
.chg.down { color: #e0605c; }
.chg.flat { color: var(--muted); }
main .chg.up { color: var(--good); }
main .chg.down { color: var(--bad); }

/* home hero */
.hero.home .wrap { padding-top: 64px; padding-bottom: 56px; }
.hgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero.home h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero.home .hero-stats { margin-top: 44px; }
.next-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 24px;
  backdrop-filter: blur(6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.next-card .kicker { color: var(--wheat); }
.nc-date { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1.05; }
.nc-count { font-variant-numeric: tabular-nums; font-size: 1.05rem; color: var(--wheat-soft); margin: 6px 0 10px; min-height: 1.4em; }
.nc-sub { font-size: .86rem; color: rgba(255, 255, 255, .7); margin: 0 0 12px; }
.nc-sub a { color: #fff; }
.calls { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.calls li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: .9rem; }
.call { font-size: .82rem; }
.call.up { color: #7fd6a3; }
.call.down { color: #f19c97; }
@media (max-width: 900px) { .hgrid { grid-template-columns: 1fr; gap: 28px; } }

.btn.line { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn.line:hover { border-color: var(--ink-2); }
.btn.line.light { border-color: rgba(255, 255, 255, .28); color: #fff; background: transparent; }

/* quote cards */
a.quote { text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: transform .18s, box-shadow .18s; }
a.quote:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(19, 32, 27, .06), 0 18px 40px -18px rgba(19, 32, 27, .3); }
.q-lab { font-weight: 650; }
.q-mkt { font-size: .8rem; color: var(--muted); }
.q-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
.q-px { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.q-px small { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.spk { width: 100%; height: 38px; margin: 8px 0 2px; display: block; }
.q-foot { font-size: .78rem; color: var(--ink-2); margin-top: auto; }

/* split layout: feed + sidebar */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.side { display: grid; gap: 20px; position: sticky; top: 112px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .side { position: static; } }
.card.dark { background: var(--field); color: rgba(255, 255, 255, .78); border-color: var(--field); }
.card.dark h3 { color: #fff; font-family: var(--serif); font-size: 1.3rem; }
.card.dark .kicker { color: var(--wheat); }
.card.dark p { font-size: .92rem; }

/* news */
.feed { display: grid; gap: 12px; }
.news { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.news:hover { border-color: #cfc9b6; transform: translateX(2px); }
.news .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .8rem; color: var(--muted); }
.news h3 { font-size: 1.06rem; line-height: 1.35; margin: 0; }
.news h3 a { text-decoration: none; }
.news h3 a:hover { color: var(--model); }
.news p { margin: 6px 0 0; color: var(--ink-2); font-size: .92rem; }
.news[hidden] { display: none; }
.ntag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #efede5; color: var(--ink-2); }
.ntag.t-usda { background: #fde7dc; color: #a8431a; }
.ntag.t-nowcast { background: #e1ecfa; color: #1d5aa6; }
.ntag.t-note { background: #f6ecd2; color: #7a5a12; }
.ntag.t-satellite { background: #e2f3ea; color: #126b3e; }
.ntag.t-prices { background: #ece6f7; color: #5a3d99; }
.more { font-weight: 600; color: var(--model); text-decoration: none; padding: 6px 2px; }
.feed-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: .86rem; font-weight: 550; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--field); color: #fff; border-color: var(--field); }
.search { font: inherit; font-size: .92rem; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); min-width: 220px; }
@media (max-width: 640px) { .search { width: 100%; } }

/* calendar */
.cal { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.cal li { display: flex; gap: 14px; align-items: center; padding: 8px 6px; border-radius: 10px; }
.cal li.next { background: #fbf3df; }
.cal-d { flex: none; width: 48px; text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); line-height: 1.1; }
.cal-d b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); letter-spacing: 0; }
.cal small { display: block; color: var(--ink-2); font-size: .8rem; }
.cal li > span:last-child b { font-size: .92rem; }

/* plans */
.plan ul { padding-left: 18px; color: var(--ink-2); margin: 10px 0 18px; }
.plan h3 { font-family: var(--serif); font-size: 1.4rem; }
.plan.pro { background: linear-gradient(160deg, #fffaf0, #fbf0d4); border-color: #ecd9a6; }

/* prices board */
.pboard .controls { position: static; }
.pboard .kpis { margin-top: 4px; }
.ptable tbody tr { cursor: pointer; }
.ptable tbody tr.sel { background: #f2f7fd; }
.ptable tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--sw, var(--model)); }
.ptable td.spkc { width: 110px; }
.ptable td.spkc svg { height: 26px; margin: 0; }
.ptable .mk b { display: block; }
.ptable .mk small { color: var(--muted); }
.ranges { margin-left: auto; }
.split-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 960px) { .split-2 { grid-template-columns: 1fr; } }
.fut td, .fut th { white-space: nowrap; }
.fut a { color: var(--model); font-weight: 600; text-decoration: none; }
.conv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.conv label { font-size: .74rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: grid; gap: 6px; }
.conv input { font: inherit; font-size: 1.1rem; font-variant-numeric: tabular-nums; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.conv input:focus { outline: 2px solid var(--model); outline-offset: 1px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 14px; }
.mini-kpis div { background: #f6f4ee; border-radius: 10px; padding: 12px; }
.mini-kpis span { display: block; font-size: .76rem; color: var(--ink-2); }
.mini-kpis b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 2px 0; }
@media (max-width: 640px) { .mini-kpis { grid-template-columns: 1fr; } }

/* ================================================================ plans page */
.who p, .feat p { margin: 6px 0 0; color: var(--ink-2); font-size: .94rem; }
.who h3, .feat h3 { font-family: var(--serif); font-size: 1.2rem; }
.feat .ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fbf3df; color: #8a6413; font-size: 1.15rem; margin-bottom: 12px; }
.plans-t th, .plans-t td { text-align: center; padding: 12px 10px; white-space: normal; }
.plans-t th:first-child, .plans-t td:first-child { text-align: left; }
.plans-t th { font-size: .9rem; letter-spacing: .02em; text-transform: none; color: var(--ink); }
.plans-t .hl { background: #fbf6e8; }
.plans-t th.hl { color: #8a6413; }
.plans-t .yes { color: var(--good); font-weight: 700; }
.plans-t .no { color: var(--muted); }
.plans-t tr.cta-row td { border-bottom: 0; padding-top: 18px; }
.plans-t .btn { padding: 9px 16px; font-size: .88rem; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 650; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 22px; color: #fff;
  background: radial-gradient(500px 260px at 90% 0%, rgba(224, 176, 74, .35), transparent 70%), linear-gradient(160deg, var(--field), #0d1f1a); }
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .75); }
.cta-band .cta { margin-top: 0; }
.fcontact a { color: var(--wheat) !important; font-weight: 600; }
@media (max-width: 640px) { .cta-band { padding: 28px 22px; } }
