/* Range & Row Risk Management — shared styles
   Brand tokens live in :root. Change a color here and it changes everywhere. */

:root {
  --green: #2E4D2C;        /* prairie green */
  --green-light: #6E8F4E;
  --gold: #D4A23A;         /* harvest gold */
  --gold-dark: #A8781A;
  --gold-soft: #E8C46A;
  --cream: #F7F2E6;
  --cream-deep: #EDE5D2;
  --line: #E2D8C0;
  --soil: #3B2A1E;
  --soil-muted: #5A4636;
  --iron: #2A1D14;
  --on-green: #E8DFC8;

  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-logo: Bitter, Georgia, serif;

  --wrap: 1200px;
  --gutter: 20px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--soil);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--soil); }

:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1; color: var(--green); margin: 0; }
h1 { font-size: clamp(3rem, 9vw, 5.5rem); line-height: 0.95; }
h2 { font-size: clamp(2.25rem, 5.5vw, 3.25rem); }
h3 { font-size: 1.75rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.muted { color: var(--soil-muted); }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--iron); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 48px; height: 48px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--green); }
.brand-name .amp { color: var(--gold-dark); }
.brand-sub { font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: 0.3em; color: var(--soil); margin-top: 3px; }

/* LRP page note for agencies that quote LRP and refer it on (connections.lrpReferOnly) */
.refer-note { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, 0.08); border-radius: 6px; max-width: 640px; }

/* Two-person agencies: a card per partner on the About page */
.team { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 8px 0 12px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.team-card img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }

/* Name-only header for agencies without a logo ("brand": {"style": "wordmark"} in their settings) */
.brand-wordmark { gap: 12px; color: var(--green); }
.brand-wordmark .wm-name { font-family: var(--font-logo); font-weight: 700; font-size: 30px; line-height: 1; color: var(--green); }
.brand-wordmark .wm-rule { width: 2px; height: 32px; background: var(--gold); flex-shrink: 0; }
.brand-wordmark .wm-stack { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; }
.brand-wordmark .wm-line2 { font-size: 14px; letter-spacing: 0.317em; margin-right: -0.317em; color: var(--green); }
.brand-wordmark .wm-tag { font-size: 10.5px; letter-spacing: 0.22em; margin-right: -0.22em; color: var(--soil-muted); }
.brand-wordmark .wm-logo { width: 44px; height: 44px; flex-shrink: 0; margin-right: -2px; }
.team-phone { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 380px) { .brand-wordmark .wm-tag { display: none; } .brand-wordmark .wm-logo { width: 36px; height: 36px; } }
.footer-wordmark { display: inline-flex; flex-direction: column; align-items: center; text-align: center; align-self: flex-start; font-weight: 600; }
.footer-wordmark .wm-tag { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.8; padding-left: 0.32em; }
.footer-wordmark .wm-name { font-family: var(--font-logo); font-weight: 700; font-size: 40px; line-height: 1.05; margin: 2px 0 4px; }
.footer-col:has(> .footer-wordmark) { gap: 16px; }
.footer-wordmark + span { font-family: var(--font-logo); font-style: italic; font-size: 16px; line-height: 1.45; max-width: 19em; opacity: 0.85; padding-left: 14px; border-left: 2px solid var(--gold); }
.footer-wordmark .wm-line2 { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); padding: 3px 3px 3px calc(3px + 0.28em); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border: 2px solid var(--green); border-radius: 8px;
  background: transparent; color: var(--green); font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(42, 29, 20, 0.12);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; display: flex; flex-direction: column; }
.site-nav a { display: flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--gold-dark); }
.site-nav .nav-cta { margin-top: 12px; border: 0; justify-content: center; }
.site-nav a.nav-cta[aria-current="page"] { color: var(--cream); }

/* Crops drop-down: indented list on phones, hover/focus menu on desktop */
.site-nav ul.sub { padding: 0 0 6px 16px; gap: 0; }
.site-nav ul.sub a { min-height: 42px; font-weight: 400; flex-direction: column; align-items: flex-start; justify-content: center; }
.site-nav ul.sub small { font-size: 12.5px; color: var(--soil-muted); font-weight: 400; line-height: 1.2; }
.site-nav a.is-section { color: var(--gold-dark); }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 22px; padding: 0; }
  .site-nav a { min-height: 44px; border: 0; font-size: 15px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); color: var(--green); }
  .site-nav .nav-cta { margin: 0 0 0 4px; }
  .site-nav a.nav-agent { font-size: 13px; font-weight: 600; color: var(--soil-muted); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; min-height: 34px; }
  .site-nav a.nav-agent:hover { color: var(--green); border-color: var(--green); }
  .site-nav a.nav-cta[aria-current="page"] { color: var(--cream); box-shadow: none; }
  .site-nav .has-sub { position: relative; }
  .site-nav .has-sub > a::after { content: ""; width: 7px; height: 7px; margin: -4px 0 0 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .site-nav a.is-section { box-shadow: inset 0 -3px 0 var(--gold); color: var(--green); }
  .site-nav ul.sub { display: none; position: absolute; top: 100%; left: -18px; min-width: 210px; flex-direction: column; align-items: stretch; padding: 8px 0; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(42, 29, 20, 0.16); z-index: 60; }
  .site-nav .has-sub:hover > ul.sub, .site-nav .has-sub:focus-within > ul.sub { display: flex; }
  .site-nav ul.sub a { padding: 10px 18px; min-height: 0; font-weight: 600; font-size: 15px; white-space: nowrap; }
  .site-nav ul.sub a:hover, .site-nav ul.sub a:focus-visible { background: var(--cream-deep, #EFE6D2); }
  .site-nav ul.sub a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); color: var(--green); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 8px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-gold { background: var(--gold); color: var(--iron); }
.btn-gold:hover { background: var(--gold-soft); color: var(--iron); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--soil); color: var(--cream); }
.btn-dark { background: var(--iron); color: var(--cream); }
.btn-dark:hover { background: var(--soil); color: var(--cream); }
.btn-outline-light { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-outline-light:hover { background: var(--cream); color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 800px) { .section { padding: 88px 0; } }
.section-green { background: var(--green); color: var(--cream); }
.section-green h1, .section-green h2, .section-green h3 { color: var(--cream); }
.section-green .muted, .section-green p { color: var(--on-green); }
.section-green a:not(.btn) { color: var(--gold-soft); }
.section-gold { background: var(--gold); color: var(--iron); }
.section-gold h2, .section-gold h3 { color: var(--iron); }
.section-sand { background: var(--cream-deep); }

.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark); }
.section-green .eyebrow { color: var(--gold-soft); }

.lede { font-size: 1.2rem; max-width: 600px; }

/* Hero */
.ticker { background: rgba(0, 0, 0, 0.55); border-bottom: 1px solid rgba(212, 162, 58, 0.35); min-height: 46px; overflow: hidden; }
.ticker-track { display: flex; width: max-content; min-height: 46px; align-items: center; }
.ticker.moving .ticker-track { animation: ticker-scroll var(--ticker-time, 40s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; }
.tk { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 22px; border-right: 1px solid rgba(247, 242, 230, 0.15); white-space: nowrap; font-size: 15px; color: var(--cream, #F7F2E6); font-variant-numeric: tabular-nums; }
.tk b { font-weight: 600; }
.tk small { font-size: 12px; opacity: .7; }
.tk .up { color: #8FD17E; } .tk .down { color: #F08A73; } .tk .flat { opacity: .75; }
.tk-note { font-size: 12px; opacity: .65; padding: 0 22px; white-space: nowrap; color: var(--cream, #F7F2E6); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { overflow-x: auto; } .ticker.moving .ticker-track { animation: none; } }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
@media (min-width: 800px) { .hero .wrap { padding-top: 88px; padding-bottom: 96px; } }
.hero-copy { flex: 1 1 440px; max-width: 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-media { flex: 1 1 400px; display: flex; justify-content: center; }
@media (min-width: 800px) { .hero-media { justify-content: flex-start; } }

/* Full-photo banner (home.heroStyle "photo"): the hero picture fills the whole banner behind the words,
   fading from brand green on the left to the photo on the right. "framed" keeps the square framed photo. */
.hero-photo { position: relative; overflow: hidden; }
.hero-photo .wrap { position: static; }
.hero-photo .hero-copy { position: relative; z-index: 1; }
.hero-photo .hero-media { position: absolute; inset: 0; z-index: 0; display: block; }
.hero-photo .hero-media .photo { max-width: none; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.hero-photo .hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--green) 0%, color-mix(in srgb, var(--green) 82%, transparent) 42%, color-mix(in srgb, var(--green) 20%, transparent) 100%); }
.hero-photo .ticker { position: relative; z-index: 2; }
.hero-photo h1 .h1-accent { color: var(--gold-soft); }
@media (min-width: 800px) { .hero-photo .wrap { padding-top: 120px; padding-bottom: 132px; } }
@media (max-width: 799px) { .hero-photo .hero-media::after { background: color-mix(in srgb, var(--green) 80%, transparent); } }

.page-hero .wrap { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.page-hero h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); }

/* Photo placeholders — swap the div for an <img> when photos are ready */
.photo {
  width: 100%; border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; font-weight: 600;
}
.photo-hero { max-width: 440px; aspect-ratio: 4 / 5; background: var(--green-light); color: var(--cream); }
.photo-square { max-width: 360px; aspect-ratio: 1 / 1; background: var(--line); color: var(--soil-muted); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo:has(img) { padding: 0; }
.photo-framed { border: 4px solid var(--gold); }
.photo-hero.photo-square-lg { max-width: 560px; aspect-ratio: 1 / 1; }
.photo-placeholder { border: 4px solid var(--gold); background: rgba(212, 162, 58, 0.08); color: var(--gold-soft); font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 0.08em; text-transform: uppercase; }

.handout-link { font-weight: 600; }
.handout-link span { font-weight: 400; color: var(--soil-muted); font-size: 15px; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.card .icon { width: 40px; height: 40px; color: var(--green); }
.card p { color: var(--soil-muted); }
.card .more { margin-top: auto; font-weight: 600; }

/* Steps */
.steps { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: 1; color: var(--gold-dark); }
.step h3 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.step p { color: var(--soil-muted); }

/* Dates */
.dates { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.date { background: var(--cream); border-radius: 12px; padding: 20px; }
.date strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--green); }
.date span { color: var(--soil-muted); }

/* Split two-column */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.split > .grow { flex: 999 1 460px; min-width: 0; }
.split > .shrink { flex: 1 1 300px; }

/* Long-form content */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { margin-top: 24px; }
.prose h3 { margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--gold-dark); }

.callout { background: var(--cream-deep); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.callout h3 { font-size: 1.5rem; }

/* Subsidy table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--cream-deep); }
tr:last-child td { border-bottom: 0; }

/* LRP estimator */
.estimator { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); overflow: hidden; }
.est-inputs { background: var(--cream); padding: 24px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); }
.est-inputs label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.est-inputs input, .est-inputs select { min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--soil); font: inherit; font-weight: 400; width: 100%; }
.est-hint { font-size: 14px; color: var(--soil-muted); }
.est-results { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; grid-column: span 2; }
@media (max-width: 700px) { .est-results { grid-column: auto; } .est-inputs { border-right: 0; border-bottom: 1px solid var(--line); } }
.est-asof { font-size: 15px; color: var(--soil-muted); }
.est-sum { font-size: 16px; }
.est-msg { color: var(--soil-muted); }
.est-table { font-variant-numeric: tabular-nums; }
.est-table th, .est-table td { padding: 10px 14px; text-align: right; white-space: nowrap; }
.est-table th:first-child { text-align: left; }
.est-table thead th { font-size: 14px; line-height: 1.25; }
.est-table thead span { font-weight: 400; color: var(--soil-muted); }
.est-table tbody th { background: none; }
.est-table tbody strong { color: var(--green); font-size: 17px; }
.est-table tr.est-pick { background: #FBF3DD; box-shadow: inset 4px 0 0 var(--gold); }
@media (max-width: 520px) { .est-table th, .est-table td { padding: 9px 6px; font-size: 14.5px; } .est-table tbody strong { font-size: 15.5px; } .est-grp { display: none; } .estimator .est-inputs, .estimator .est-results { padding: 16px 12px; } }
.est-example { background: var(--cream); border-radius: 10px; padding: 14px 16px; font-size: 16px; }
.est-notice { border-radius: 10px; padding: 12px 16px; font-size: 15.5px; background: #FBF3DD; border-left: 4px solid var(--gold); }
.est-notice.is-past { background: var(--cream-deep); border-left-color: var(--soil-muted); }
.est-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--green); text-decoration: underline; cursor: pointer; }
.est-opt { font-weight: 400; color: var(--soil-muted); }
.est-tip { color: var(--soil-muted); font-size: 14.5px; }
.est-radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.est-radio input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.est-table tbody tr { cursor: pointer; }
.btn-outline-dark { border-color: var(--soil); color: var(--soil); background: transparent; }
.btn-outline-dark:hover { background: var(--soil); color: var(--cream); }
.est-email button[disabled] { opacity: 0.6; cursor: wait; }
.prf-ints { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.prf-ints legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 4px; }
#prf-intervals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.est-inputs .prf-int { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; font-size: 14.5px; font-weight: 600; }
.prf-int-in { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }
.est-inputs .prf-int input { width: 64px; min-height: 38px; padding: 6px 8px; text-align: right; }
.prf-int-total { font-weight: 600; font-size: 14.5px; color: var(--green); }
.prf-int-total.is-off { color: #A33A1F; }
.prf-break { margin: 10px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.prf-map-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.prf-map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.prf-map-head p { margin: 0; flex: 1 1 320px; }
#prf-map { height: 460px; border-radius: 10px; background: var(--cream-deep); z-index: 0; }
@media (max-width: 600px) { #prf-map { height: 360px; } }
.prf-map-status { font-size: 14.5px; color: var(--soil-muted); min-height: 1.4em; margin: 0; }
.leaflet-tooltip.prf-grid-label { background: none; border: 0; box-shadow: none; font: 700 12px/1 var(--font-body); color: var(--iron); text-shadow: 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; }
.leaflet-tooltip.prf-grid-label::before { display: none; }
.prf-map-small .leaflet-tooltip.prf-grid-label { display: none; }
.leaflet-tooltip.prf-county-label { background: none; border: 0; box-shadow: none; font: 600 13px/1 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.leaflet-tooltip.prf-county-label::before { display: none; }
.est-email { border-top: 1px solid var(--line); padding-top: 16px; }
.est-email[hidden] { display: none; }
.est-email-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.est-email-fields label { display: flex; flex-direction: column; gap: 6px; }
.est-email .est-email-fields input { flex: none; }
.est-email [hidden] { display: none; }
.est-email .form-status { color: var(--green); }
.est-email .form-status.is-error { color: #A33A1F; }
.est-cta { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.est-fine { font-size: 13px; color: var(--soil-muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style-position: outside; min-height: 44px; }
.faq details > div { padding: 0 20px 18px; color: var(--soil-muted); display: flex; flex-direction: column; gap: 10px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { font-weight: 600; font-size: 15px; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form input, .form select, .form textarea {
  flex: 1 1 220px; width: 100%; min-height: 48px; padding: 10px 14px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--soil); font: inherit;
}
.form > input, .form > select, .form > textarea { flex: none; }
.section-green .form input { border: 0; }
.form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; }
.form .form-check { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; }
.form .form-check input { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--gold); }
.signup-pick { border: 0; margin: 8px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.signup-pick legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.signup-pick .form-check { align-items: flex-start; line-height: 1.45; }
.signup-pick .form-check input { margin-top: 2px; }
.form-status.is-error { color: #A33A1F; }
.section-green .form-status.is-error { color: #F3B9A6; }
.form-status { font-weight: 600; min-height: 1.6em; }
.split > .msg-intro { flex: 1 1 280px; }
.split > .msg-form { flex: 1.6 1 440px; min-width: 0; }
.msg-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.msg-form label { display: block; }
.msg-form input, .msg-form select, .msg-form textarea { flex: none; }
.msg-form textarea { min-height: 120px; resize: vertical; }
.msg-two { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.msg-two > div { display: flex; flex-direction: column; gap: 12px; }
.section-green .form-status { color: var(--gold-soft); }

.calendar-embed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 640px; overflow: hidden; }
.calendar-embed iframe { display: block; height: 760px; }
@media (max-width: 700px) { .calendar-embed iframe { height: 1180px; } }
.calendar-embed iframe { width: 100%; min-height: 720px; border: 0; display: block; }
.calendar-placeholder { padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--iron); color: var(--on-green); padding: 56px 0 40px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1.1; color: var(--cream); }
.footer-brand .amp { color: var(--gold); }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h2 { font-family: var(--font-head); font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid #4A3828; font-size: 13px; color: #CFC3A6; display: flex; flex-direction: column; gap: 8px; }

.section-tight { padding: 64px 0; }
.section-gold .eyebrow, .section-gold h1 { color: var(--iron); }
.section-gold .lede { color: var(--iron); }

[id] { scroll-margin-top: 88px; }

/* Crop insurance calculator (/crop-insurance/) and cost of production (/cost-of-production/) */
.cc-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.cc-stats > div { background: var(--cream); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.cc-stats .cc-main { background: var(--green); color: var(--on-green); }
.cc-v { font-family: var(--font-head); font-weight: 800; font-size: 32px; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.cc-main .cc-v { color: var(--gold-soft); }
.cc-l { font-size: 14px; line-height: 1.3; }
.cc-whatif { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.cc-whatif h3 { font-size: 24px; }
.cc-wi-inputs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.cc-wi-inputs label, .cop-lines label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.cc-wi-inputs input, .cop-lines input { min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--soil); font: inherit; font-weight: 400; width: 100%; }
.cc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cc-table th, .cc-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.cc-table td { text-align: right; white-space: nowrap; font-weight: 600; }
.cc-table tr.cc-pay th, .cc-table tr.cc-pay td { border-bottom: 0; font-weight: 700; color: var(--green); font-size: 18px; }
.cc-table tr.cc-pay span { font-size: 14px; font-weight: 400; color: var(--soil-muted); }
.cc-table tr.cc-sub th, .cc-table tr.cc-sub td { font-weight: 700; }
.cop-lines { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.cop-lines .cop-avg { font-weight: 400; font-size: 13px; color: var(--soil-muted); }
.cop-lines input:placeholder-shown { background: var(--cream); }
.cop-group { display: flex; flex-direction: column; gap: 12px; }
.cop-group h3 { font-size: 22px; }
.cop-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cop-breakeven { background: #FBF3DD; border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 16px; }
.cop-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 32px; }
.cop-card > .cop-group + .cop-group { border-top: 1px solid var(--line); padding-top: 28px; }
.cop-step { font-size: 30px; }
.cop-lines select, .cop-cov select { min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--soil); font: inherit; font-weight: 400; width: 100%; }
.cop-cov { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.cop-cov select { width: auto; min-height: 40px; padding: 6px 10px; }
.cc-table th { background: none; color: inherit; }

/* Launch banner on the home page */
.announce { background: var(--gold); color: var(--iron); text-align: center; font-size: 16px; padding: 10px 0; }
.announce a { color: var(--iron); font-weight: 600; margin-left: 6px; white-space: nowrap; }
.announce a:hover { color: var(--green); }

/* Info tips: hover, focus or tap the little "i" to see where a number comes from */
.tip { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0 0 0 6px; border-radius: 50%; border: 1.5px solid var(--green-light); background: #fff; color: var(--green); font: italic 700 12px/1 Georgia, serif; cursor: help; vertical-align: middle; flex: none; position: relative; }
.tip::after { content: ""; position: absolute; inset: -12px; } /* bigger tap target */
.tip:hover, .tip[aria-describedby] { background: var(--green); border-color: var(--green); color: #fff; }
.tip-bubble { position: fixed; z-index: 1000; max-width: min(320px, calc(100vw - 16px)); background: var(--iron); color: var(--cream); font-size: 14px; line-height: 1.45; font-weight: 400; padding: 10px 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); text-align: left; white-space: normal; }
.tip-bubble[hidden] { display: none; }
.lbl { display: inline-flex; align-items: center; }

/* Range & Row Review (/checkup/) */
.ck-pair { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ck-col { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ck-col legend { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--soil-muted); padding: 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.ck-col.ck-prop { border-color: var(--gold); background: #FFFBF0; }
.ck-col.ck-prop legend { color: var(--gold-dark); }
.ck-col label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.ck-col input, .ck-col select, .ck-table input, .ck-table select, .ck-notes { min-height: 44px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--soil); font: inherit; font-weight: 400; width: 100%; }
.ck-table input:placeholder-shown { background: var(--cream); }
.ck-checks { display: flex; flex-direction: column; gap: 10px; }
.ck-checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; cursor: pointer; }
.ck-checks input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.ck-open { font-weight: 600; font-size: 15px; }
.ck-table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14.5px; }
.ck-table th, .ck-table td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.ck-table thead th { background: var(--cream-deep); font-size: 13.5px; line-height: 1.25; }
.ck-table tbody th { background: none; white-space: nowrap; }
.ck-table td input, .ck-table td select { min-width: 72px; }
.ck-table .ck-gtoday { background: #F6F3EC; }
.ck-table .ck-gprop { background: #FFF6DE; }
.ck-table thead .ck-gtoday { background: #E9E2D2; }
.ck-table thead .ck-gprop { background: #F6E3AE; }
.ck-sum td { text-align: right; white-space: nowrap; }
.ck-sum thead th { font-size: 14px; }
.ck-sum thead th:not(:first-child) { text-align: right; }
.ck-pct { font-weight: 400; color: var(--soil-muted); font-size: 13.5px; }
.ck-flags, .ck-dates { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ck-flags li { padding: 10px 14px; border-radius: 8px; border-left: 4px solid var(--line); background: var(--cream); }
.ck-flags .ck-big { border-left-color: #A33A1F; background: #FBEDE8; }
.ck-flags .ck-mid { border-left-color: var(--gold); background: #FBF3DD; }
.ck-flags .ck-low { border-left-color: var(--green-light); }
.ck-small { font-size: 14px; color: var(--soil-muted); }
.ck-notes { min-height: 120px; resize: vertical; }
.ck-printhead { display: none; }
.ck-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--gold); border-radius: 10px; background: #FFFBF0; }
.ck-copy[hidden] { display: none; }
.ck-copy-status { font-size: 14.5px; font-weight: 600; color: var(--green); }
/* line inputs up along the bottom when a label wraps to two lines */
.cop-lines label > input, .cop-lines label > select { margin-top: auto; }
.ck-paste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 10px; background: #FFFBF0; border: 1px solid var(--gold-soft); }
.ck-paste.is-empty { background: var(--cream); border: 1px dashed var(--line); }
.ck-paste:empty { display: none; }
.ck-clip { flex: 1 1 320px; font-size: 15px; }
.ck-paste-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ck-paste-done { font-weight: 600; color: var(--green); }
.ck-row-pick { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; }
.ck-row-pick select { min-height: 38px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); font: inherit; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.ck-send { display: flex; flex-direction: column; gap: 8px; }
.ck-send .form-status.is-error { color: #A33A1F; }

.ck-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.ck-bar .ck-small { flex-basis: 100%; }
.ck-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ck-switch select { min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); font: inherit; font-weight: 600; color: var(--green); background: #fff; max-width: 70vw; }
.ck-estimate { background: #FBF3DD; border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 16px; font-size: 15.5px; }
.ck-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 14px; border-radius: 10px; background: #EEF4E8; border-left: 4px solid var(--green-light); font-size: 15px; }
.ck-note[hidden] { display: none; }
@keyframes ckFlash { from { background: #F6E3AE; box-shadow: 0 0 0 3px var(--gold); } to { background: #fff; box-shadow: none; } }
.ck-flash { animation: ckFlash 2.4s ease-out; }
.ck-rowlink { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; background: #fff; }
.ck-rowlink:hover { background: var(--green); color: #fff; }
.ck-ctx { background: var(--green); color: var(--cream); text-align: center; font-size: 15px; padding: 8px 16px; }
.ck-ctx strong { color: var(--gold-soft); }
.ck-send-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ck-send-row select { min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); font: inherit; }

/* Producer's PDF: hidden on screen, the only thing printed */
.ck-report { display: none; }
@media print {
  @page { margin: 0.6in; }
  .site-header, .site-footer, .skip-link, .announce, .ck-noprint, .tip, .tip-bubble, .ck-ctx { display: none !important; }
  body { background: #fff; font-size: 12pt; line-height: 1.5; color: #222; }
  .ck-wrap { padding: 0 !important; background: #fff !important; }
  #checkup > :not(.ck-report) { display: none !important; }
  .ck-report { display: block; }
  .ck-report, .ck-report * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--green); padding-bottom: 10px; margin-bottom: 12px; }
  .rp-head h1 { font-size: 30pt; line-height: 1; margin: 2px 0 4px; }
  .rp-brand { font-family: var(--font-head); letter-spacing: .18em; color: var(--gold-dark); font-weight: 600; }
  .rp-contact { text-align: right; font-size: 10.5pt; }
  .ck-report section { margin: 16px 0; }
  .ck-report h2, .ck-report h3 { break-after: avoid; }
  .rp-bars, .rp-crop, .rp-box, .rp-warn, .ck-report p, .ck-report li { break-inside: avoid; }
  .ck-report h2 { font-size: 20pt; margin-bottom: 6px; }
  .ck-report h3 { font-size: 14pt; margin: 8px 0 4px; }
  .ck-report p { margin: 0 0 6px; }
  .ck-report ul { margin: 0; padding-left: 20px; }
  .rp-warn { border: 2px solid var(--gold); background: #FBF3DD; border-radius: 8px; padding: 8px 12px; }
  .rp-small { font-size: 10pt; color: #555; }
  .rp-notes { white-space: pre-wrap; }
  .rp-box { border: 1px solid #ccc; border-radius: 8px; padding: 8px 12px; margin-top: 10px; break-inside: avoid; }
  .rp-bars { margin: 8px 0; display: grid; gap: 6px; }
  .rp-bar { display: grid; grid-template-columns: 170px 1fr 80px; gap: 8px; align-items: center; font-size: 10.5pt; }
  .rp-bar-track { height: 16px; background: #eee; border-radius: 4px; overflow: hidden; }
  .rp-bar-fill { display: block; height: 100%; }
  .rp-bar-v { text-align: right; font-weight: 700; }
  .rp-loss { background: #A33A1F; } .rp-today { background: #9A8F80; } .rp-good, .rp-dot.rp-good { background: var(--green); } .rp-carry, .rp-dot.rp-carry { background: var(--gold); }
  .rp-crop { break-inside: avoid; margin-top: 8px; }
  .rp-stack { position: relative; display: flex; height: 20px; background: #eee; border-radius: 4px; margin: 6px 0 22px; }
  .rp-seg { display: block; height: 100%; }
  .rp-cost { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #222; }
  .rp-cost span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: 9pt; white-space: nowrap; margin-top: 2px; }
  .rp-key { font-size: 10pt; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .rp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
}
/* stacked protection bar (crop calculator on screen; the checkup report reuses it in print) */
.rp-stack { position: relative; display: flex; height: 22px; background: #eee; border-radius: 4px; margin: 6px 0 24px; }
.rp-seg { display: block; height: 100%; }
.rp-seg:first-child { border-radius: 4px 0 0 4px; }
.rp-cost { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--iron); }
.rp-cost span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: 12.5px; white-space: nowrap; margin-top: 2px; }
.rp-key { font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rp-dot { display: inline-block; width: 11px; height: 11px; border-radius: 2px; }
.rp-good { background: var(--green); } .rp-carry { background: var(--gold); }
.ck-unk-line { background: var(--cream); border-left: 4px solid var(--soil-muted); border-radius: 10px; padding: 10px 14px; font-size: 15.5px; }
.ck-unknown th, .ck-unknown td { font-size: 14.5px; vertical-align: top; }
.ck-unknown tbody th { font-weight: 600; width: 22%; }
.ck-follow { max-width: 320px; }
@media print {
  .rp-table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .rp-table th, .rp-table td { border: 1px solid #ccc; padding: 4px 6px; vertical-align: top; text-align: left; background: none; }
  .rp-table thead th { background: #F3EEDF; }
}
.ck-switch input { min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); font: inherit; font-weight: 600; color: var(--green); background: #fff; width: min(360px, 60vw); }
.rp-cost-end span { left: auto; right: 0; transform: none; }

/* Checkup builder (steps) */
.ck-top { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: flex-end; }
.ck-top .ck-switch input { width: min(520px, 80vw); font-family: var(--font-head); font-size: 26px; font-weight: 800; }
.ck-top-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ck-cloud { flex-basis: 100%; margin: 0; text-align: right; font-size: 13.5px; color: var(--green); min-height: 1.2em; }
.ck-cloud.bad { color: #A33A1F; }
.ck-saves { width: min(640px, 94vw); max-height: 80vh; border: 0; border-radius: 14px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.ck-saves::backdrop { background: rgba(20, 30, 20, .45); }
.ck-saves-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ck-saves-head h2 { margin: 0; font-size: 26px; }
.ck-saves input[type="search"] { width: 100%; margin-bottom: 10px; padding: 9px 12px; font-size: 16px; border: 1px solid #C9BFA6; border-radius: 8px; }
.ck-saves-list { list-style: none; margin: 0; padding: 0; }
.ck-saves-list li { display: flex; align-items: center; gap: 10px; border-top: 1px solid #E5DECB; }
.ck-saves-list a { flex: 1; display: block; padding: 10px 4px; color: inherit; text-decoration: none; }
.ck-saves-list a:hover b, .ck-saves-list a:focus-visible b { text-decoration: underline; }
.ck-saves-list a b { display: block; color: var(--green); }
.ck-saves-list a small { display: block; font-size: 13.5px; color: #555; }
.ck-saves-del { background: none; border: 0; color: #A33A1F; font-size: 13.5px; cursor: pointer; padding: 6px; }
.ck-saves-none { padding: 14px 4px; color: #555; }
.ck-saves-all { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #E5DECB; font-size: 14.5px; }
.ck-saves-all a { color: var(--green); font-weight: 600; }
.ck-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ck-steps button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px 7px 7px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--soil); }
.ck-steps b { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--cream-deep); align-items: center; justify-content: center; font-size: 13px; }
.ck-steps button.on { background: var(--green); color: #fff; border-color: var(--green); }
.ck-steps button.on b { background: var(--gold); color: var(--iron); }
.ck-panel { display: none; } .ck-panel.on { display: block; }
.ck-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; }
@media (max-width: 900px) { .ck-grid { grid-template-columns: 1fr; } }
.ck-side { position: sticky; top: 20px; gap: 14px; }
.ck-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 15px; background: #fff; cursor: pointer; color: var(--soil); }
.ck-chip.on { background: #EEF4E8; border-color: var(--green-light); font-weight: 600; color: var(--green); }
.ck-crop { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.ck-crop h3 { font-size: 24px; }
.ck-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: max-content; max-width: 100%; }
.ck-toggle button { border: 0; background: #fff; padding: 7px 12px; font: inherit; font-size: 14.5px; cursor: pointer; color: var(--soil); }
.ck-toggle button.on { background: var(--green); color: #fff; }
.cop-lines select { min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--soil); font: inherit; font-weight: 400; width: 100%; }
.ck-ints { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.ck-int { display: flex; align-items: center; justify-content: space-between; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 13.5px; font-weight: 600; background: #fff; }
.ck-int.on { background: #FFF6DE; border-color: var(--gold); }
.ck-int-in { display: inline-flex; align-items: center; gap: 2px; }
.ck-int input { width: 48px; min-height: 32px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; text-align: right; }
.ck-small.is-error { color: #A33A1F; font-weight: 600; }
.ck-auto { color: var(--green); font-weight: 600; white-space: nowrap; }
.ck-x { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--soil-muted); padding: 4px 8px; }
.ck-x:hover { color: #A33A1F; }
.ck-sbars p { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-top: 8px; }
.ck-sbar { display: block; height: 12px; border-radius: 4px; }
.ck-sbar.loss { background: #A33A1F; } .ck-sbar.today { background: #9A8F80; } .ck-sbar.good { background: var(--green); }
.ck-mini .cc-v { font-size: 26px; }
.ck-layer { margin-top: 8px; }
.ck-stack { display: flex; height: 32px; border-radius: 6px; overflow: hidden; font-size: 12.5px; font-weight: 600; margin: 4px 0 6px; }
.ck-stack span { display: flex; align-items: center; justify-content: center; color: #fff; white-space: nowrap; overflow: hidden; }
.ck-stack .l-carry { background: var(--gold); color: var(--iron); } .ck-stack .l-base { background: var(--green); } .ck-stack .l-sco { background: #4F7A3A; } .ck-stack .l-eco { background: #7FA35E; }
/* checkup: SCO / ECO explorer */
.ck-se-h { margin-top: 18px; }
.ck-se { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 10px; }
.ck-se > summary { cursor: pointer; padding: 14px 16px; min-height: 44px; }
.ck-se-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.ck-se-body h4 { font-size: 1.1rem; margin-top: 10px; }
.ck-se-sub { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
.ck-se-sub > summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.ck-se-sub > summary::before { content: '▸'; margin-right: 8px; transition: transform .15s; }
.ck-se-sub[open] > summary::before { transform: rotate(90deg); }
.ck-se-sub > summary::-webkit-details-marker { display: none; }
.ck-se-sub > summary { list-style: none; }
.ck-se-sub[open] { display: flex; flex-direction: column; gap: 8px; }
.ck-se-stack { display: flex; height: 48px; border-radius: 6px; overflow: hidden; font-size: 12px; margin-top: 4px; }
.ck-se-stack span { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; white-space: nowrap; overflow: hidden; line-height: 1.2; }
.ck-se-stack b { font-weight: 700; }
.ck-se-stack .l-base { background: var(--green); }
.ck-se-stack .l-sco { background: var(--gold-dark); }
.ck-se-stack .l-eco { background: var(--gold); color: var(--iron); }
.ck-se-stack .l-none { background: repeating-linear-gradient(45deg, var(--cream-deep), var(--cream-deep) 4px, #fff 4px, #fff 8px); }
.ck-se-stack .off { opacity: .45; }
.ck-se-axis { position: relative; height: 16px; font-size: 11.5px; color: var(--soil-muted); }
.ck-se-axis span { position: absolute; transform: translateX(-50%); }
.ck-se-axis span:first-child { transform: none; }
.ck-se-key { white-space: nowrap; margin-left: 6px; }
.ck-se-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.ck-se-key .k-farm { background: var(--green); } .ck-se-key .k-county { background: var(--gold); }
.ck-se-trig .tip { margin-right: 2px; }
.ck-se-tbl th span { font-weight: 400; font-size: 13px; color: var(--soil-muted); }
.ck-se-tbl tr.ck-se-off td, .ck-se-tbl tr.ck-se-off th { color: var(--soil-muted); font-style: italic; }
.ck-se-grid { border-collapse: collapse; font-size: 13px; width: 100%; }
.ck-se-grid caption, .ck-mx-cap { text-align: left; font-weight: 600; padding-bottom: 6px; margin: 0; }
.ck-se-grid th, .ck-se-grid td { border: 1px solid var(--line); padding: 5px 6px; text-align: center; }
.ck-se-grid th span { font-weight: 400; font-size: 11.5px; color: var(--soil-muted); }
.ck-se-grid thead th:first-child { font-size: 11.5px; font-weight: 600; }
.ck-se-hist { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.ck-se-yr { display: grid; grid-template-columns: 42px 150px 1fr 60px; gap: 8px; align-items: center; }
.ck-se-yr .d { color: var(--soil-muted); font-size: 12px; }
.ck-se-yr .b { display: flex; height: 12px; background: var(--cream); border-radius: 3px; overflow: hidden; }
.ck-se-yr .b .l-sco { background: var(--gold-dark); } .ck-se-yr .b .l-eco { background: var(--gold); }
.ck-se-yr .v { text-align: right; font-weight: 600; }
.ck-se-yr .v small { font-weight: 400; color: var(--soil-muted); }
.ck-se-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ck-se-box { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ck-se-box.in { background: #fff; border-color: var(--gold-dark); }
.ck-se-box .ck-k { font-size: 12px; font-weight: 600; color: var(--soil-muted); text-transform: uppercase; letter-spacing: .03em; }
.ck-se-box .ck-v { font-size: 1.35rem; font-weight: 700; color: var(--soil); }
.ck-se-box .ck-v small, .ck-se-box > small { font-size: 13px; font-weight: 400; color: var(--soil-muted); }
.ck-se-box input { width: 100%; font: inherit; font-size: 1.2rem; font-weight: 700; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; min-height: 36px; }
.ck-se-box .ck-s { font-size: 12px; color: var(--soil-muted); }
@media (max-width: 700px) { .ck-se-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ck-se-cost { display: flex; flex-direction: column; gap: 4px; max-width: 220px; font-weight: 600; }
.ck-se-inputs { display: flex; flex-wrap: wrap; gap: 12px; }
.ck-se-check { display: flex; gap: 8px; align-items: center; font-size: 14.5px; min-height: 36px; }
.ck-mx .ck-mx-yr { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; margin-top: 1px; }
.ck-mx .ck-mx-be { background: var(--cream); font-weight: 600; }
.ck-se-cost label { display: flex; flex-direction: column; gap: 4px; }
.ck-se-cost .ck-se-cop { font-size: 13.5px; font-weight: 500; }
.ck-se-cost input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; min-height: 44px; }
.ck-mx td { font-weight: 600; line-height: 1.2; white-space: nowrap; }
.ck-mx .ck-mx-ins { display: block; font-size: 10.5px; font-weight: 400; opacity: .85; }
.ck-mx tr.ck-mx-aph th { box-shadow: inset 4px 0 0 var(--gold); }
.ck-se-need { background: var(--cream); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
@media (max-width: 600px) { .ck-se-yr { grid-template-columns: 38px 1fr 54px; } .ck-se-yr .d { display: none; } }
.ck-two { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ck-recs { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.ck-recs label { display: inline-flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.ck-recs input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green); flex: none; }
.ck-own input { width: 100%; min-height: 42px; border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; }
.ck-flags .ck-quote { border-left-color: #2F6FA8; background: #EAF1F8; }
.ck-notes-l { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
/* Producer's PDF numbers: one box each (screen preview and print) */
.rp-nums { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 10px 0; break-inside: avoid; }
.rp-n { border: 1px solid #ccc; border-top: 5px solid #9A8F80; border-radius: 8px; padding: 8px 10px; background: #fff; display: flex; flex-direction: column; gap: 2px; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-n b { font-size: 22px; line-height: 1.15; color: var(--soil); font-variant-numeric: tabular-nums; }
.rp-n span { font-size: 12.5px; line-height: 1.3; color: #555; }
.rp-n-loss { border-top-color: #A33A1F; }
.rp-n-good { border-top-color: var(--green); }
.rp-n-diff { border-color: var(--gold); border-top-color: var(--gold); background: #FBF3DD; }
@media print { .rp-n b { font-size: 16pt; } .rp-n span { font-size: 9.5pt; } }
.ck-preview { border: 1px solid #ccc; border-radius: 8px; padding: 20px; background: #fff; max-height: 70vh; overflow: auto; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ck-preview .rp-head { display: flex; justify-content: space-between; border-bottom: 3px solid var(--green); padding-bottom: 8px; margin-bottom: 10px; }
.ck-preview h1 { font-size: 32px; } .ck-preview h2 { font-size: 24px; margin: 14px 0 4px; } .ck-preview h3 { font-size: 18px; }
.ck-preview .rp-brand { font-family: var(--font-head); letter-spacing: .18em; color: var(--gold-dark); font-weight: 600; font-size: 13px; }
.ck-preview .rp-contact { text-align: right; font-size: 13px; }
.ck-preview p, .ck-preview li { font-size: 14.5px; margin-bottom: 6px; }
.ck-preview .rp-warn { border: 2px solid var(--gold); background: #FBF3DD; border-radius: 8px; padding: 8px 12px; }
.ck-preview .rp-small { font-size: 12.5px; color: #555; }
.ck-preview .rp-box { border: 1px solid #ccc; border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.ck-preview .rp-bars { display: grid; gap: 6px; margin: 8px 0; }
.ck-preview .rp-bar { display: grid; grid-template-columns: 160px 1fr 80px; gap: 8px; align-items: center; font-size: 13px; }
.ck-preview .rp-bar-track { height: 14px; background: #eee; border-radius: 4px; overflow: hidden; }
.ck-preview .rp-bar-fill { display: block; height: 100%; } .ck-preview .rp-bar-v { text-align: right; font-weight: 700; }
.ck-preview .rp-loss { background: #A33A1F; } .ck-preview .rp-today { background: #9A8F80; }
.ck-preview .rp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ck-preview .rp-table th, .ck-preview .rp-table td { border: 1px solid #ddd; padding: 4px 6px; text-align: left; vertical-align: top; background: none; }
.ck-mail { background: #F6F3EC; border-radius: 8px; padding: 12px; font-size: 12px; line-height: 1.45; white-space: pre-wrap; margin: 0; max-height: 420px; overflow: auto; }
#checkup > .ck-panel, #checkup > .ck-steps { scroll-margin-top: 20px; }
.footer-quiet { opacity: .6; font-size: 14px; }
.ck-table input[type=checkbox] { width: 20px; height: 20px; min-height: 0; min-width: 0; padding: 0; accent-color: var(--green); }
.ck-table td select { min-width: 96px; }
#ck-crops { min-width: 900px; }
.ck-mail { white-space: pre; overflow-x: auto; }
.ck-intset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ck-intset-prop { border-color: var(--gold); background: #FFFBF0; }
.ck-int-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ck-int-h { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--soil-muted); }
.ck-intset-prop .ck-int-h { color: var(--gold-dark); }
.ck-same { display: inline-flex; gap: 6px; align-items: center; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.ck-same input { width: 18px; height: 18px; accent-color: var(--green); }
.ck-int.grow { box-shadow: inset 0 -3px 0 var(--green-light); }
.ck-int input:disabled { background: transparent; border-color: transparent; color: var(--soil-muted); }
/* "What we don't know yet" cards (worksheet, preview and Producer's PDF) */
.ck-unk-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ck-unk { background: var(--cream); border-radius: 10px; padding: 12px 14px; border-top: 3px solid var(--line); break-inside: avoid; }
.ck-unk.key { background: #FBF3DD; border-top-color: var(--gold); }
.ck-unk-t { font-weight: 700; color: var(--green); margin-bottom: 6px; font-size: 15.5px; }
.ck-unk dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ck-unk dl div { display: grid; grid-template-columns: 84px 1fr; gap: 6px; font-size: 13.5px; line-height: 1.35; }
.ck-unk dt { color: var(--soil-muted); font-weight: 600; }
.ck-unk dd { margin: 0; }
@media print {
  .ck-report .ck-unk-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ck-report .ck-unk { padding: 8px 10px; }
  .ck-report .ck-unk-t { font-size: 11pt; margin-bottom: 4px; }
  .ck-report .ck-unk dl div { font-size: 9.5pt; grid-template-columns: 70px 1fr; }
}
/* Checkup v2: product toggles, grid cards, per-step bad year, crop rows by county */
.ck-uses { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ck-use { display: flex; align-items: center; gap: 12px; text-align: left; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; font: inherit; color: var(--soil); cursor: pointer; }
.ck-use b { display: block; font-size: 18px; }
.ck-use small { display: block; font-size: 13.5px; color: var(--soil-muted); }
.ck-use-box { flex: none; width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ck-use.on { border-color: var(--green); background: #EEF4E8; }
.ck-use.on .ck-use-box { background: var(--green); border-color: var(--green); color: #fff; }
.ck-steps button:disabled { opacity: .45; cursor: not-allowed; }
.ck-gcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; background: #fff; }
.ck-gcard-h { display: flex; justify-content: space-between; align-items: center; }
.ck-gcard-h h3 { font-size: 22px; }
/* Checkup cattle groups: what they have in them */
@media (min-width: 640px) { .ck-rentl { grid-column: span 2; } }
.ck-rent { display: flex; gap: 8px; margin-top: auto; }
.ck-rent input { flex: 1 1 80px; min-width: 0; }
.ck-rent select { flex: 1 1 150px; min-width: 0; }
.ck-autobox { min-height: 48px; display: flex; align-items: center; padding: 10px 14px; border-radius: 8px; background: #EEF3E8; margin-top: auto; }
details.ck-cmore summary { cursor: pointer; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.ck-cres { display: flex; flex-direction: column; gap: 8px; }
.ck-cres:empty { display: none; }
.ck-cstats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ck-cstats > div { background: #fff; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.ck-cstats .ck-k { font-size: 13.5px; font-weight: 600; color: var(--soil-muted); display: flex; align-items: center; gap: 6px; }
.ck-cstats .ck-v { font-size: 26px; font-weight: 600; line-height: 1.15; color: var(--soil); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ck-cstats .ck-v small { font-size: 14px; font-weight: 400; color: var(--soil-muted); letter-spacing: 0; }
.ck-cstats .ck-s { font-size: 13.5px; color: var(--soil-muted); }
.ck-cstats .ck-d { font-size: 13.5px; font-weight: 600; }
.ck-cstats .ck-d.up { color: var(--green); }
.ck-cstats .ck-d.down { color: #A33A1F; }
.ck-neg { color: #A33A1F; }
.ck-net { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ck-net .ck-k { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--soil-muted); }
.ck-netrow { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.ck-netrow span { font-weight: 600; }
.ck-netrow b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ck-netrow small { grid-column: 2; text-align: right; color: var(--soil-muted); font-size: 13px; }
.ck-net .ck-small { margin: 2px 0 0; }
.ck-pos { color: var(--green); }
.ck-badyr { margin: 0; font-size: 14.5px; line-height: 1.45; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.ck-head { margin: 0; font-size: 17px; line-height: 1.45; padding: 12px 14px; border-radius: 10px; border-left: 5px solid var(--green); background: #EEF3E8; }
.ck-head.warn { border-left-color: var(--gold); background: #FBF3DD; }
.ck-perhd { display: block; font-size: 12.5px; color: var(--soil-muted); font-weight: 400; }
.ck-lvl-h small { font-weight: 400; color: var(--soil-muted); }
.ck-src { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.ck-srcopt { position: relative; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; cursor: pointer; background: #fff; }
.ck-srcopt input { position: absolute; opacity: 0; pointer-events: none; }
.ck-srcopt.on { background: var(--green); border-color: var(--green); color: #fff; }
.ck-srcopt:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.ck-herd { border: 1px solid var(--gold); background: #FFFBF0; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ck-herd .ck-int-h, .ck-herd .ck-small { margin: 0; }
.ck-ghbtns { display: flex; align-items: center; gap: 6px; }
.ck-gfold { padding: 10px 14px; }
.ck-gopen { flex: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ck-gopen h3 { margin: 0; }
.ck-gsum { font-size: 14.5px; color: var(--soil-muted); flex: 1 1 260px; }
.ck-garrow { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--green); font-size: 18px; line-height: 1; cursor: pointer; }
.ck-garrow:hover { border-color: var(--green); }
.ck-unborn { margin: 0; background: #FBF3DD; border: 1px solid var(--gold); border-radius: 8px; padding: 8px 12px; font-size: 14.5px; }
.ck-saleday { margin: 6px 0 0; font-size: 14px; border-radius: 8px; padding: 6px 10px; }
.ck-saleday.ok { background: #EEF3E8; color: var(--soil); }
.ck-saleday.off { background: #FBF3DD; border: 1px solid var(--gold); }
.ck-health-ok { margin: 6px 0 0; font-size: 13.5px; color: var(--green); }
.ck-health-warn { margin: 6px 0 0; background: #FBEDE8; border: 1px solid #A33A1F; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.ck-health-warn ul { margin: 4px 0 6px; padding-left: 18px; }
.ck-morelv { align-self: flex-start; margin-top: 4px; }
.ck-lrpnote { margin: 0; font-size: 14px; line-height: 1.45; background: #fff; border-left: 4px solid var(--gold); border-radius: 6px; padding: 10px 12px; }
.ck-lvls { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ck-lvls .ck-lvl { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 400; cursor: pointer; position: relative; }
.ck-lvls .ck-lvl-h { border-top: 0; font-size: 13px; font-weight: 600; cursor: default; }
.ck-lvls .ck-lvl.cover { font-weight: 600; }
.ck-lvl > span:not(:first-of-type) { text-align: right; }
.ck-lvl input { position: absolute; opacity: 0; pointer-events: none; }
.ck-lvl > span:first-of-type::before { content: ""; display: inline-block; width: 14px; height: 14px; border: 2px solid var(--soil-muted); border-radius: 50%; margin-right: 8px; vertical-align: -2px; }
.ck-lvl.on > span:first-of-type::before { border-color: var(--green); background: radial-gradient(var(--green) 45%, #fff 50%); }
.ck-lvl-h { border-top: 0; background: var(--cream-deep); font-size: 13px; font-weight: 600; cursor: default; }
.ck-lvl-h > span:first-of-type::before { display: none; }
.ck-lvl:hover:not(.ck-lvl-h) { background: var(--cream); }
.ck-lvl.cover, .ck-lvl.cover:hover { background: #DDEBD3; font-weight: 600; }
.ck-lvl.on { box-shadow: inset 5px 0 0 var(--gold); }
.ck-lvl:focus-within { outline: 2px solid var(--gold); outline-offset: -2px; }
.ck-covtag { font-style: normal; font-size: 12px; font-weight: 700; background: var(--green); color: #fff; padding: 1px 7px; border-radius: 99px; margin-left: 4px; white-space: nowrap; }
.ck-addrow { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.ck-whatif { background: #FBF3DD; border: 2px solid var(--gold); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ck-whatif label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 15px; }
.ck-whatif input { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 20px; font-weight: 700; width: 120px; background: #fff; }
.ck-history { border: 1px dashed var(--gold-dark); border-radius: 8px; padding: 8px 10px; background: rgba(255,255,255,.6); }
.ck-hist-h { font-weight: 700; font-size: 14px; color: var(--gold-dark); margin-bottom: 2px; }
.ck-diff { font-size: 15px; margin-top: 4px; }
.ck-diff b { color: var(--green); font-size: 20px; }
.ck-diff.neg b { color: #A33A1F; }
.ck-addcrop { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ck-addcrop label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14.5px; }
.ck-addcrop select { min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: inherit; }
#ck-crops { min-width: 1040px; }
.ck-table td select.ck-county { min-width: 120px; }
.ck-soon { color: var(--soil-muted); font-style: italic; font-weight: 400; }
.ck-badyear { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; }
.ck-bylink { border: 1px solid var(--gold); background: #FBF3DD; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--soil); }
.ck-bylink:hover { background: var(--gold); }
.ck-sum td:last-child { white-space: nowrap; }
.ck-preview .rp-big, .ck-report .rp-big { font-size: 17px; border-left: 4px solid var(--green); padding-left: 10px; }
.ck-preview .rp-county, .ck-report .rp-county { margin-top: 12px; color: var(--green); border-bottom: 1px solid #ddd; }
.ck-withtip { display: inline-flex; align-items: center; gap: 4px; }
.ck-withtip input { min-width: 84px; }
.ck-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.ck-year { border: 1px solid var(--gold-dark); background: #fff; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--soil); }
.ck-year:hover { background: #FFF6DE; }
.ck-year.on { background: var(--green); border-color: var(--green); color: #fff; }
.ck-src { color: var(--soil-muted); font-size: 12.5px; margin-top: 4px; }
.ck-history { border-style: solid; }
.ck-grid > * { min-width: 0; }
.ck-wrap .table-scroll { position: relative; }
.ck-missing { background: #FBF3DD; border-left: 4px solid var(--gold); border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; font-size: 15px; }

/* Producer's PDF: calm, one column, a color per line (pasture green, cattle rust, crops gold) */
.rp-hero { text-align: center; border: 1px solid #ddd; border-radius: 12px; padding: 12px 16px; margin: 8px 0 12px; }
.rp-hero span { display: block; font-size: 15px; color: #444; }
.rp-hero b { display: block; font-size: 38px; line-height: 1.1; color: var(--soil); margin: 4px 0; font-variant-numeric: tabular-nums; }
.rp-hero small { display: block; font-size: 13px; color: #666; }
.rp-p { border: 1px solid #ddd; border-top: 6px solid; border-radius: 10px; padding: 8px 14px 10px; margin: 0 0 10px; break-inside: avoid; background: #fff; }
.rp-p h2 { font-size: 19px; margin: 0 0 4px; }
.rp-p-tag { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rp-p-grass { border-top-color: #3B6D11; } .rp-p-grass .rp-p-tag, .rp-p-grass .rp-p-pay b { color: #3B6D11; }
.rp-p-cattle { border-top-color: #993C1D; } .rp-p-cattle .rp-p-tag, .rp-p-cattle .rp-p-pay b { color: #993C1D; }
.rp-p-whole { border-top-color: var(--soil); } .rp-p-whole .rp-p-tag { color: var(--soil); }
.rp-whole { width: 100%; border-collapse: collapse; font-size: 13px; margin: 2px 0 4px; }
.rp-whole th, .rp-whole td { border-top: 1px solid #eee; padding: 4px 6px; text-align: right; font-variant-numeric: tabular-nums; }
.rp-whole th:first-child, .rp-whole td:nth-child(2), .rp-whole thead th:nth-child(2) { text-align: left; }
.rp-whole thead th { font-size: 11.5px; font-weight: 600; color: #666; border-top: 0; }
.rp-p-crops { border-top-color: #BA7517; } .rp-p-crops .rp-p-tag, .rp-p-crops .rp-p-pay b { color: #854F0B; }
.rp-items { list-style: none; margin: 0; padding: 0; }
.rp-items li { padding: 4px 0; border-top: 1px solid rgba(0,0,0,.08); font-size: 14px; }
.rp-items li:first-child { border-top: 0; }
.rp-items b { display: block; font-weight: 600; }
.rp-items span { display: block; }
.rp-items .rp-was { font-size: 12px; color: #777; }
.rp-p-pay { margin: 6px 0 0; font-size: 14px; color: #444; }
.rp-p-pay b { font-size: 22px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.rp-hero-row { display: flex; align-items: center; gap: 14px; text-align: left; padding: 10px 14px; }
.rp-hero-row b { margin: 0; white-space: nowrap; }
.rp-hero-row span { font-size: 14px; }
.rp-p h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.rp-p h2 .rp-p-tag { font-family: var(--font-body, inherit); }
.rp-floor { border: 1px solid #ddd; border-radius: 12px; padding: 8px 14px; margin: 8px 0 12px; }
.rp-floor-h { margin: 0 0 4px; font-weight: 600; font-size: 15px; }
.rp-floor-r { margin: 0; padding: 4px 0; border-top: 1px solid #eee; font-size: 14px; display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.rp-floor-r .rp-fr-k { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.rp-fr-cattle .rp-fr-k { color: #993C1D; } .rp-fr-crops .rp-fr-k { color: #854F0B; } .rp-fr-grass .rp-fr-k { color: #3B6D11; }
.rp-lead { margin: 2px 0 8px; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--soil); }
.rp-bgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 6px; }
.rp-bg { border: 1px solid #ddd; border-radius: 8px; padding: 6px 10px; }
.rp-bg b { display: block; font-size: 20px; color: var(--soil); font-variant-numeric: tabular-nums; }
.rp-bg span { font-size: 12px; color: #666; }
.rp-row { margin: 0; padding: 5px 0; border-top: 1px solid #eee; font-size: 13.5px; }
.rp-row b { font-weight: 600; }
.rp-sub { font-size: 12px; color: #777; }
.rp-p .rp-nums { margin: 6px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rp-p .rp-n { background: #fff; }
.rp-how1 { margin: 4px 0 0; font-size: 12.5px; color: #444; display: flex; flex-wrap: wrap; }
.rp-how1 span:not(:last-child)::after { content: "|"; margin: 0 7px; color: #aaa; }
.rp-cost { font-size: 13px; color: #555; margin: 4px 0 0; }
.rp-back-h { font-size: 19px; margin: 4px 0 8px; }
.rp-how { border: 1px solid #ddd; border-top: 6px solid; border-radius: 10px; padding: 6px 12px 8px; margin: 0 0 8px; break-inside: avoid; background: #fff; }
.rp-how p { margin: 0; font-size: 14px; line-height: 1.5; }
.rp-how .rp-p-tag { margin-bottom: 2px; }
.rp-next { margin: 0 0 10px; padding-left: 18px; font-size: 14px; }
.rp-call { border: 1px solid var(--green); border-radius: 10px; padding: 10px 14px; margin: 10px 0; text-align: center; }
.rp-call b { display: block; font-size: 16px; color: var(--green); }
.rp-call span { font-size: 13px; color: #555; }
.rp-fine { font-size: 11.5px; color: #777; margin: 6px 0 0; }
.ck-preview .rp-back { border-top: 2px dashed #ccc; margin-top: 18px; padding-top: 6px; }
.ck-preview .rp-back::before { content: "Back of the page"; display: block; font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .08em; }
@media print {
  @page { margin: 0.45in; size: letter; }
  .ck-report { font-size: 10.5pt; line-height: 1.4; }
  .ck-report .rp-head { padding-bottom: 6px; margin-bottom: 4px; }
  .ck-report .rp-head h1 { font-size: 24pt; }
  .ck-report .rp-contact { font-size: 9.5pt; }
  .ck-report p, .ck-report li { font-size: 10.5pt; }
  .rp-hero b { font-size: 30pt; } .rp-hero span { font-size: 11pt; } .rp-hero small { font-size: 9.5pt; }
  .rp-p h2, .rp-back-h { font-size: 14pt; }
  .rp-items li, .rp-how p, .rp-p-pay, .rp-next li { font-size: 10.5pt; }
  .rp-items .rp-was, .rp-cost { font-size: 9pt; }
  .rp-p-pay b { font-size: 16pt; }
  .rp-p-tag { font-size: 8.5pt; }
  .rp-call b { font-size: 12pt; } .rp-call span { font-size: 9.5pt; }
  .ck-report .rp-fine { font-size: 8pt; }
  .rp-how1 { font-size: 9pt; }
  .rp-floor-h { font-size: 11pt; } .rp-floor-r { font-size: 10pt; }
  .rp-p { padding: 6px 12px 8px; margin-bottom: 8px; }
  .rp-p .rp-nums { margin: 4px 0; }
  .ck-report .rp-p .rp-n b { font-size: 13pt; }
  .ck-report .rp-head h1 { font-size: 20pt; }
  .rp-floor { padding: 6px 12px; margin: 6px 0 8px; }
  .ck-report .rp-how1 { margin: 2px 0 0; }
  .rp-p h2 { margin-bottom: 2px; }
  .rp-lead { font-size: 12.5pt; } .rp-bg b { font-size: 14pt; } .rp-bg span { font-size: 8.5pt; } .ck-report .rp-row { font-size: 10pt; padding: 3px 0; } .ck-report .rp-sub { font-size: 8.5pt; }
  .rp-back { break-before: page; }
  .ck-report .rp-whole th, .ck-report .rp-whole td { border: 0; border-top: 1px solid #ddd; background: none; padding: 3px 6px; font-size: 9.5pt; }
  .ck-report .rp-whole thead th { font-size: 8.5pt; color: #666; border-top: 0; }
  /* keep the front compact; it can run past one page, and the back always starts its own */
  .rp-p { padding: 5px 12px 6px; margin-bottom: 6px; }
  .rp-lead { margin: 1px 0 5px; }
  .rp-bgs { gap: 6px; margin-bottom: 4px; }
  .rp-bg { padding: 4px 10px; }
  .ck-report .rp-fine { margin-top: 4px; }
}

/* ---------- APH review, Margin Protection, crop-hail pages ---------- */
.ck-aph-note { margin: 4px 0 0; background: #FBF3DD; border-left: 4px solid var(--gold); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.ck-aph-note a { font-weight: 600; }
.aph-not { border-left: 5px solid var(--gold); background: #FBF3DD; }
.aph-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.aph-two { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.aph-box { border-radius: var(--radius); padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.aph-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.aph-box li { position: relative; padding-left: 30px; }
.aph-box li::before { position: absolute; left: 0; top: 0; font-weight: 800; font-size: 1.1rem; }
.aph-do { background: #EAF1E4; }
.aph-do li::before { content: "✓"; color: var(--green); }
.aph-dont { background: #F7E9E3; }
.aph-dont li::before { content: "✕"; color: #A33A1F; }
.aph-req { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.aph-req .form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form .muted { font-weight: 400; }
.aph-crops { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.aph-crops legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.aph-crops label, .form label.aph-ok { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.aph-crops input, .aph-ok input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form label.aph-ok { background: var(--cream); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
table.mp-ex { width: 100%; border-collapse: collapse; background: #fff; font-size: 15.5px; border-radius: 10px; overflow: hidden; }
table.mp-ex caption { text-align: left; font-size: 14px; color: var(--soil-muted); padding-bottom: 6px; caption-side: top; }
table.mp-ex td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.mp-ex td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.mp-ex .mp-ex-h th { text-align: left; background: var(--cream-deep); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 7px 12px; }
table.mp-ex .mp-ex-pay td { background: #EAF1E4; }
.mp-check { list-style: none; padding: 0; }
.mp-check li { position: relative; padding-left: 30px; }
.mp-check li::before { content: "☐"; position: absolute; left: 0; color: var(--green); }
.mp-fine { font-size: 13px; padding-top: 14px; padding-bottom: 14px; }

/* Big "free second opinion" call to action (home page, crop page) */
.aph-cta { background: var(--green); color: var(--on-green); border-radius: 18px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center; }
.aph-cta h2 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; }
.aph-cta .eyebrow { color: var(--gold-soft); }
.aph-cta p { color: var(--on-green); }
.aph-cta ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.aph-cta li { position: relative; padding-left: 28px; color: var(--cream); }
.aph-cta li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.aph-cta .btn-row { margin-top: 6px; }

/* ---------- Cost of production: Crops / Cattle tabs, switches, cattle calculator ---------- */
.cop-tabs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cop-tabs button { font: inherit; font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: .02em; padding: 10px 28px; border-radius: 10px; border: 2px solid var(--gold); background: transparent; color: var(--cream); cursor: pointer; min-height: 52px; }
.cop-tabs button[aria-selected="true"] { background: var(--gold); color: var(--iron); }
.cop-tabs button:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.seg { display: inline-flex; border: 2px solid var(--green); border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.seg label { position: relative; display: flex; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--green); min-height: 44px; display: flex; align-items: center; }
.seg input:checked + span { background: var(--green); color: var(--cream); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: -3px; }
.seg-sm span { padding: 6px 12px; min-height: 36px; font-size: 14px; }
.ct-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ct-pick > .lbl { font-weight: 600; font-size: 15px; }
.ct-steps { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.ct-steps label, .ct-mode label { display: flex; align-items: center; gap: 8px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 15px; cursor: pointer; min-height: 44px; }
.ct-steps input, .ct-mode input { width: 18px; height: 18px; accent-color: var(--green); }
.ct-mode { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.ct-path { margin: 0; background: #EAF1E4; border-radius: 10px; padding: 10px 14px; color: var(--green); }
.ct-h { font-size: 26px; }
.ct-stage-sum { font-weight: 600; color: var(--green); font-size: 15px; }
.ct-break-h { margin: 4px 0 -4px; }
.ct-group { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ct-group > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; display: flex; align-items: baseline; gap: 6px; list-style: none; }
.ct-group > summary::-webkit-details-marker { display: none; }
.ct-group > summary::before { content: "▸"; color: var(--gold-dark); margin-right: 4px; }
.ct-group[open] > summary::before { content: "▾"; }
.ct-group > summary > span { margin-left: auto; color: var(--soil-muted); font-weight: 400; }
.ct-group > .cop-lines, .ct-group > .ct-mode, .ct-group > p, .ct-group > .cop-lines { padding: 0 16px 16px; }
.ct-group > p { margin: 0; padding-top: 0; }
.ct-line { display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 640px) { .ct-line-wide { grid-column: span 2; } .ct-line-wide .ct-fig-in { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } .ct-line-wide .ct-fig-m { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.ct-fig > summary { cursor: pointer; font-size: 13.5px; color: var(--green); font-weight: 600; }
.ct-fig-in { display: grid; gap: 8px; margin-top: 6px; background: var(--cream); border-radius: 8px; padding: 10px; }
.ct-fig-in label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.ct-fig-in select { min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 400; width: 100%; }
.ct-fig-m { display: grid; gap: 8px; }
.ct-fig-in input { min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 400; }
.ct-table thead th { font-size: 13px; text-align: left; color: var(--soil-muted); }
.ct-table th span { display: block; font-weight: 400; font-size: 13px; color: var(--soil-muted); }
.ct-table td { white-space: nowrap; }
.cc-v.neg { color: #A33A1F; }
.ct-table td, .ct-table thead th + th { padding-left: 14px; }
.ct-table td:last-child { font-weight: 400; color: var(--soil-muted); font-size: 14px; }
@media (max-width: 600px) { .ct-table td:last-child, .ct-table thead th:last-child { display: none; } }

/* the step cards and boxes are flex/grid, which would override the hidden attribute */
#cattle-calc [hidden] { display: none !important; }
.ct-fig-m[hidden] { display: none !important; }

/* crop-hail payout grid */
table.hail-grid { width: 100%; min-width: 820px; border-collapse: collapse; background: #fff; font-size: 14.5px; font-variant-numeric: tabular-nums; }
table.hail-grid thead th { background: var(--green); color: var(--cream); font-size: 13px; font-weight: 600; padding: 6px 4px; text-align: center; }
table.hail-grid thead tr:first-child th:first-child { text-align: left; padding-left: 12px; vertical-align: bottom; }
table.hail-grid tbody th { text-align: left; padding: 7px 12px; font-weight: 700; color: var(--green); white-space: nowrap; border-bottom: 1px solid var(--line); background: #fff; position: sticky; left: 0; }
table.hail-grid tbody th span { display: block; font-weight: 400; font-size: 12px; color: var(--soil-muted); }
table.hail-grid td { text-align: center; padding: 7px 4px; border-bottom: 1px solid var(--line); border-left: 1px solid #fff; background: color-mix(in srgb, #2E4D2C calc(var(--p, 0) * 85%), #FBF8F0); color: var(--soil); }
table.hail-grid td[style*="--p:0.6"], table.hail-grid td[style*="--p:0.7"], table.hail-grid td[style*="--p:0.8"], table.hail-grid td[style*="--p:0.9"], table.hail-grid td[style="--p:1.0"] { color: var(--cream); font-weight: 600; }
.hail-note { font-size: 13.5px; color: var(--soil-muted); margin: 0; }

/* review: link to the cattle cost calculator in each cattle group */
.ck-copcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--green); color: var(--on-green); border-radius: 12px; padding: 16px 20px; margin: 14px 0 10px; text-decoration: none; }
.ck-copcta b { display: block; color: var(--cream); font-family: var(--font-head); font-size: 24px; font-weight: 800; line-height: 1.1; margin-bottom: 4px; }
.ck-copcta > span:first-child { flex: 1 1 280px; font-size: 14.5px; }
.ck-copcta-go { background: var(--gold); color: var(--iron); font-weight: 700; border-radius: 8px; padding: 10px 16px; white-space: nowrap; }
.ck-copcta:hover .ck-copcta-go, .ck-copcta:focus-visible .ck-copcta-go { background: var(--gold-soft); }

/* ---------- ARC / PLC page ---------- */
.ap-due-band { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.ap-due-band span { background: rgba(212, 162, 58, 0.18); border: 1px solid var(--gold); color: var(--cream); border-radius: 10px; padding: 8px 14px; font-size: 15px; }
.ap-due-band b { color: var(--gold-soft); }
table.ap-vs { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; font-size: 15px; }
table.ap-vs th, table.ap-vs td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.ap-vs thead th { background: var(--green); color: var(--cream); font-size: 17px; font-family: var(--font-head); font-weight: 800; }
table.ap-vs thead th span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--on-green); }
table.ap-vs tbody th { color: var(--green); width: 18%; white-space: nowrap; }
#arc-calc [hidden] { display: none !important; }
.ap-verdict { margin: 0; background: #FBF3DD; border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 16px; font-size: 16px; }
.ap-how > summary { cursor: pointer; font-weight: 600; color: var(--green); font-size: 14.5px; }
.ap-how ul { margin: 8px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--soil-muted); }
.ap-gh { font-size: 22px; margin: 6px 0 0; }
table.ap-grid { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; background: #fff; }
table.ap-grid th, table.ap-grid td { padding: 8px 6px; border: 1px solid #fff; text-align: center; }
table.ap-grid thead th { background: var(--green); color: var(--cream); font-size: 13px; font-weight: 600; }
table.ap-grid tbody th { background: var(--cream-deep); color: var(--green); white-space: nowrap; text-align: left; padding-left: 10px; }
table.ap-grid tbody th span { display: block; font-weight: 400; font-size: 11.5px; color: var(--soil-muted); }
table.ap-grid td b { display: block; font-size: 14px; }
table.ap-grid td span { display: block; font-size: 12px; opacity: .85; }
table.ap-grid td.ap-plc { background: #DCE8D2; color: var(--green); }
table.ap-grid td.ap-arc { background: #F6E3B6; color: #6B4A0E; }
table.ap-grid td.ap-tie { background: #F4F1EA; color: var(--soil-muted); }
.ap-gnote { font-size: 13.5px; color: var(--soil-muted); margin: 0; }
#ap-out { display: flex; flex-direction: column; gap: 16px; }
#ap-out .cc-stats > div { padding: 18px 20px; gap: 8px; }
#ap-out .ap-verdict { line-height: 1.55; }
#ap-out .ap-gh { margin-top: 10px; }

#ap-fout { display: flex; flex-direction: column; gap: 16px; }
#ap-fout .cc-stats > div { padding: 18px 20px; gap: 8px; }
.ap-frow { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.ap-frow + .ap-frow { margin-top: 12px; }
.ap-frow h4 { margin: 0; font-family: var(--font-head); font-size: 22px; color: var(--green); }
.ap-frow .cop-lines label, .ap-fyrs label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.ap-fh { margin: 0; font-weight: 600; font-size: 14px; color: var(--soil-muted); }
.ap-fyrs { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ap-fyrs input { min-height: 44px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 400; width: 100%; }
.ap-fyrs input:placeholder-shown { background: var(--cream); }
.ap-warn { display: block; margin-top: 6px; font-size: 14px; color: #8A4B12; }
#arc-calc [data-mode][hidden] { display: none !important; }
.ap-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 0; font-size: 14px; }
.ap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ap-sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.08); }
.ap-sw.ap-plc { background: #DCE8D2; } .ap-sw.ap-arc { background: #F6E3B6; } .ap-sw.ap-tie { background: #F4F1EA; }
.ap-legend-n { color: var(--soil-muted); }
table.ap-grid td { font-size: 14px; white-space: nowrap; }
table.ap-grid td b { display: inline; font-size: 15px; }

/* ARC/PLC: plain-language guide and numbered steps */
.ap-guide { margin: 0; padding: 18px 22px 18px 42px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.ap-guide li::marker { color: var(--gold-dark); font-weight: 800; }
.ap-step { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--green); }
.ap-step > span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--iron); font-size: 18px; flex: none; }
.ap-explain { margin: 0; font-size: 15px; color: var(--soil-muted); max-width: 760px; }
.ct-group > .ap-explain { padding: 0 16px 10px; }
.ap-read { background: #EAF1E4; border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.ct-warn { background: #FBEDE8; border: 1px solid #A33A1F; border-radius: 10px; padding: 12px 16px; font-size: 15px; color: #6E2412; }
.ct-warn ul { margin: 6px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }

/* ARC/PLC: odds, history, print worksheet */
.ap-odds { background: #fff; border: 2px solid var(--green); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.ap-odds h3 { margin: 0; font-family: var(--font-head); font-size: 24px; color: var(--green); }
.ap-bar { display: flex; height: 38px; border-radius: 10px; overflow: hidden; background: #F4F1EA; }
.ap-bar span { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; }
.ap-bar .ap-plc { background: #9FC18B; color: #1E3A1C; } .ap-bar .ap-arc { background: #E9C46A; color: #4F3609; } .ap-bar .ap-tie { background: #E4DFD3; color: var(--soil-muted); }
.ap-small .cc-v { font-size: 26px; }
.ap-hist { border-collapse: collapse; margin: 6px 16px 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.ap-hist caption { text-align: left; font-weight: 600; padding-bottom: 4px; font-size: 13.5px; }
.ap-hist th, .ap-hist td { border: 1px solid var(--line); padding: 4px 10px; text-align: center; }
.ap-hist th { background: var(--cream-deep); font-size: 12.5px; }
.ap-printrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 0; }
.ap-printrow span { color: var(--soil-muted); font-size: 14.5px; }
.ap-print { display: none; }
@media print {
  body.arc-page > *:not(main), body.arc-page main > *:not(#ap-print) { display: none !important; }
  body.arc-page { background: #fff; }
  .ap-print { display: block !important; font-size: 10.5pt; color: #000; }
  @page { size: letter; margin: 0.5in; }
  .app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 3px solid #2E4D2C; padding-bottom: 8px; margin-bottom: 10px; }
  .app-brand { margin: 0; font-size: 9pt; letter-spacing: .15em; font-weight: 700; color: #2E4D2C; }
  .app-head h1 { margin: 2px 0 0; font-size: 20pt; line-height: 1.1; color: #2E4D2C; }
  .app-due { text-align: right; } .app-due b { display: block; font-size: 11pt; } .app-due span { font-size: 9pt; }
  .app-in { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
  .app-in th, .app-in td { border: 1px solid #bbb; padding: 4px 7px; text-align: left; font-size: 10pt; }
  .app-in th { background: #F1EDE2; width: 22%; }
  .app-res { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-bottom: 8px; }
  .app-res > div { border: 1px solid #bbb; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
  .app-res span { font-size: 9pt; text-transform: uppercase; letter-spacing: .05em; color: #555; }
  .app-res b { font-size: 13pt; } .app-res small { font-size: 9.5pt; }
  .app-res .app-pick { border: 2px solid #2E4D2C; }
  .ap-print h2 { font-size: 12pt; margin: 10px 0 4px; color: #2E4D2C; }
  .ap-print .ap-grid { width: 100%; min-width: 0; font-size: 9pt; }
  .ap-print .ap-grid th, .ap-print .ap-grid td { padding: 4px; border: 1px solid #ccc; }
  .ap-print .ap-grid td.ap-plc, .ap-print .ap-grid td.ap-arc, .ap-print .ap-grid td.ap-tie, .ap-print .ap-grid thead th, .ap-print .ap-grid tbody th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app-choice { margin: 12px 0; padding: 8px 10px; border: 1px dashed #777; font-size: 11pt; }
  .app-foot { margin-top: 10px; border-top: 1px solid #bbb; padding-top: 6px; font-size: 9.5pt; }
  .app-foot p { margin: 3px 0; } .app-fine { font-size: 8pt; color: #555; }
}

/* cattle calculator: LRP cost alert */
.ct-alert { border: 2px solid var(--green); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; background: #F6FAF3; }
.ct-alert h3 { margin: 0; font-family: var(--font-head); font-size: 26px; color: var(--green); }
.ct-alert-sum { margin: 0; font-size: 16px; }
.ct-alert .cop-lines input, .ct-alert .cop-lines select { background: #fff; }
.ct-al-ok { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; font-weight: 400; }
.ct-al-ok input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.ct-al-priv { margin: 0; font-size: 13px; color: var(--soil-muted); }

/* ---------- Agent area (/agent/, behind the login) ---------- */
body.agent { background: var(--cream); }
.ag-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; background: var(--green); padding: 12px 20px; }
.ag-bar a { color: var(--on-green); text-decoration: none; font-weight: 600; font-size: 15px; padding: 4px 0; }
.ag-bar a[aria-current="page"] { color: var(--cream); box-shadow: inset 0 -3px 0 var(--gold); }
.ag-bar .ag-brand { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--cream); margin-right: 10px; letter-spacing: .03em; }
.ag-bar .ag-brand span { color: var(--gold-soft); }
.ag-bar .ag-out { margin-left: auto; font-weight: 400; font-size: 14px; }
.ag-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; display: flex; flex-direction: column; gap: 16px; }
.ag-wrap h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 0; }
.ag-lede { margin: 0; color: var(--soil-muted); font-size: 17px; max-width: 760px; }
.ag-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ag-tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-decoration: none; color: var(--soil); }
.ag-tile b { font-family: var(--font-head); font-size: 24px; color: var(--green); }
.ag-tile span { font-size: 15px; color: var(--soil-muted); }
.ag-tile:hover, .ag-tile:focus-visible { border-color: var(--green); box-shadow: 0 6px 18px rgba(46, 77, 44, .12); }
.ag-tile.ag-main { background: var(--green); border-color: var(--green); } .ag-tile.ag-main b { color: var(--cream); } .ag-tile.ag-main span { color: var(--on-green); }
.ag-tile.ag-soon { opacity: .6; border-style: dashed; cursor: default; box-shadow: none; }
.ag-small { font-size: 14px; color: var(--soil-muted); margin: 0; }
.ag-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.ag-tools input[type="search"] { flex: 1 1 260px; padding: 9px 12px; font-size: 16px; border: 1px solid #C9BFA6; border-radius: 8px; }
table.ag-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; font-size: 15px; }
table.ag-table th, table.ag-table td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
table.ag-table thead th { background: var(--cream-deep); font-size: 13px; }
table.ag-table thead th small { display: block; font-weight: 400; }
table.ag-table small { display: block; font-size: 12.5px; color: var(--soil-muted); }
.ag-ok { color: var(--green); font-weight: 700; } .ag-short { color: #8A4B12; font-weight: 700; } .ag-wait { color: var(--soil-muted); font-weight: 600; }
.ag-del { background: none; border: 0; color: #A33A1F; cursor: pointer; font-size: 14px; }
.ag-empty { padding: 18px; color: var(--soil-muted); }

/* ---------- Print one part of a page (js/site.js printPart) ---------- */
#print-area { display: none; }
.rr-print { display: inline-flex; align-items: center; gap: 6px; }
.rr-printrow { margin: 0; }
@media print {
  body.print-one > *:not(#print-area) { display: none !important; }
  body.print-one { background: #fff; }
  body.print-one #print-area { display: block; font-size: 10.5pt; line-height: 1.35; color: #111; }
  #print-area, #print-area * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pa-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #2E4D2C; padding-bottom: 6px; margin-bottom: 10px; }
  .pa-brand { margin: 0; font-size: 9pt; letter-spacing: .15em; font-weight: 700; color: #2E4D2C; }
  .pa-head h1 { margin: 2px 0 0; font-size: 20pt; line-height: 1.1; color: #2E4D2C; }
  .pa-when { text-align: right; font-size: 9pt; color: #444; }
  .pa-foot { margin-top: 12px; border-top: 1px solid #bbb; padding-top: 6px; font-size: 8.5pt; color: #444; }
  #print-area .pv { font-weight: 600; color: #111; display: block; padding: 2px 0; }
  #print-area .pv-check { display: inline; }
  #print-area .pv-default { font-weight: 400; color: #555; }
  #print-area .cop-card, #print-area .estimator { border: 0; padding: 0; gap: 10px; box-shadow: none; background: none; }
  #print-area .cop-lines, #print-area .est-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 12px; }
  #print-area label { font-size: 9pt; font-weight: 600; color: #444; }
  #print-area .est-hint, #print-area .ct-break-h { font-size: 8.5pt; }
  #print-area h2, #print-area h3 { break-after: avoid; margin: 8px 0 4px; }
  #print-area .cop-step { font-size: 14pt; }
  #print-area .cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  #print-area .cc-stats > div { border: 1px solid #bbb; padding: 6px 8px; }
  #print-area .cc-v { font-size: 16pt; }
  #print-area table { width: 100%; min-width: 0 !important; border-collapse: collapse; font-size: 9pt; }
  #print-area th, #print-area td { padding: 3px 5px; }
  #print-area .table-scroll { overflow: visible; border: 0; }
  #print-area tr, #print-area .ct-line, #print-area .cc-stats { break-inside: avoid; }
  #print-area details:not([open]) > *:not(summary) { display: none; }
  #print-area details > summary { list-style: none; font-weight: 600; }
  #print-area a { color: #111; text-decoration: none; }
  /* calculators lay out side by side on screen; stack them on paper */
  #print-area .estimator, #print-area .est-results, #print-area .est-inputs, #print-area .cop-group { display: block !important; width: auto !important; max-width: none !important; position: static !important; }
  #print-area .est-inputs, #print-area .cop-lines, #print-area .cc-wi-inputs { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 4px 12px; background: none !important; padding: 0 !important; }
  #print-area .estimator > *, #print-area .est-inputs > * { break-inside: avoid; }
  #print-area .cop-avg { display: none; }
  #print-area .prf-ints { grid-column: 1 / -1; display: block !important; }
  #print-area #prf-intervals, #print-area .prf-ints > div { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 2px 10px; }
  #print-area .prf-int { display: flex; justify-content: space-between; gap: 4px; font-size: 9pt; }
  #print-area .prf-int .pv { display: inline; }
  #print-area h3, #print-area .cop-group h3 { font-size: 12pt; }
  #print-area .cop-step { font-size: 13pt; }
  #print-area .cc-v { font-size: 14pt; }
  #print-area .cc-l { font-size: 9pt; }
  #print-area .seg { border: 0; }
  #print-area .seg span { padding: 0; min-height: 0; background: none !important; color: #111 !important; }
  #print-area .cop-card > .cop-group + .cop-group { padding-top: 8px; }
  #print-area .est-fine { font-size: 8pt; }
  #print-area .ct-break-h { display: none; }
  #print-area .ct-group { border: 0; margin: 4px 0 0; }
  #print-area .ct-group > summary { padding: 4px 0; border-bottom: 1px solid #ccc; font-size: 10.5pt; }
  #print-area .ct-group > summary::before { content: ""; }
  #print-area .ct-group > .cop-lines { padding: 4px 0 2px; }
  #print-area .ct-line { gap: 0; }
}

/* Save my numbers (cost of production) */
.sv-box details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sv-box summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--green); font-size: 17px; }
.sv-in { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.sv-note { margin: 0; font-size: 14.5px; color: var(--soil-muted); }
.sv-ver { display: block; margin-top: 8px; font-weight: 600; color: var(--soil); }
.sv-ver select { margin-left: 6px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); }
#panel-cattle .sv-box { margin-top: 14px; }
/* rancher files */
.fl-dups { background: #FBF3DD; border: 1px solid var(--gold); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.fl-dups h2 { margin: 0; font-size: 24px; }
.fl-dup { background: #fff; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.fl-why { margin: 0; font-weight: 700; color: #8A4B12; font-size: 14px; }
.fl-pair { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.fl-dcard { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.fl-dcard small { font-size: 13px; color: var(--soil-muted); }
.fl-dacts { display: flex; flex-wrap: wrap; gap: 8px; }
#fl-file h2 { font-size: 24px; margin: 18px 0 8px; }
.fl-cop { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.fl-cop-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.fl-cop-h b { font-size: 18px; color: var(--green); } .fl-cop-h span { color: var(--soil-muted); font-size: 14px; margin-right: auto; }
table.fl-vers { min-width: 0; font-size: 14px; }
.fl-ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.fl-acts { margin-top: 16px; }
.ct-al-done { margin: 8px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--pasture, #2E4D2C); }
@media print { .ag-bar { display: none !important; } }
/* Agent sign-in pages (/agent/login/, /agent/forgot/, /agent/reset/) */
.login-wrap { max-width: 460px; padding-top: 48px; }
.login-wrap h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.login-card { background: #fff; border: 1px solid var(--line, #E2D8C0); border-radius: 14px; padding: 24px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.login-card button { align-self: flex-start; }
.login-card .form-status:empty { display: none; }
.login-show { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; font-size: 14px !important; }
.login-links { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.login-links span { color: var(--soil-muted); }
.ag-bar .ag-signout { font-weight: 400; font-size: 14px; }
.al-banner { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; background: #F6FAF3; border: 2px solid var(--green); border-radius: 14px; padding: 14px 18px; font-size: 16px; }
.al-banner b { color: var(--green); }
.al-help { margin: 0; font-size: 15.5px; }
.ct-al-wait { display: block; color: #8a5a00; font-weight: 600; margin-bottom: 4px; }
#lrp-alert { max-width: 900px; }
@media print { .al-banner { display: none !important; } }
.ct-alert .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ag-tools select { padding: 9px 12px; font-size: 16px; border: 1px solid #C9BFA6; border-radius: 8px; background: #fff; }
.al-print { margin-top: -6px; }
.ag-table .al-ck { width: 36px; text-align: center; }
.ag-table .al-ck input { width: 18px; height: 18px; }
/* "What the government pays" boxes on product pages */
.sub-box { background: #F6FAF3; border: 2px solid var(--green); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.sub-box h2, .sub-box h3 { margin-top: 0; color: var(--green); }
.sub-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.sub-table th, .sub-table td { padding: 8px 10px; border-bottom: 1px solid #E3DCC8; text-align: center; white-space: nowrap; }
.sub-table thead th { background: #EFE7D3; font-weight: 700; }
.sub-table tbody th { text-align: left; font-weight: 700; }
.sub-list { margin: 12px 0 0; }
.sub-ex { font-weight: 600; margin: 12px 0 0; }
.sub-note { margin: 8px 0 0; font-size: 15px; }
.sub-src { margin: 8px 0 0; font-size: 13px; color: var(--soil-muted); }
/* GridWise (agent PRF tool, /agent/gridwise/) */
.gw-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.gw-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.gw-logo { margin: 0; line-height: 0; }
.gw-logo img { width: 330px; max-width: 100%; height: auto; }   /* GridWise logo (Fenceline Agent Tools/Logo/GridWise) */
.gw-h { margin: 0; font-size: 26px; color: var(--green); }
.gw-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 16px; }
.gw-fields label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14.5px; }
.gw-fields input, .gw-fields select { padding: 8px 10px; font-size: 16px; border: 1px solid #C9BFA6; border-radius: 8px; background: #fff; }
table.gw-card, table.gw-years { border-collapse: collapse; font-size: 14px; width: 100%; }
.gw-card th, .gw-card td, .gw-years th, .gw-years td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.gw-card thead th, .gw-years thead th { background: #EFE7D3; font-size: 13px; vertical-align: bottom; }
.gw-card thead th small { display: block; font-weight: 400; }
.gw-card tbody th, .gw-years tbody th { text-align: left; }
.gw-card td:first-child { text-align: center; }
.gw-card tr.gw-on { background: #F6FAF3; }
.gw-card input[type="checkbox"] { width: 18px; height: 18px; }
.gw-back { font-weight: 700; }
.gw-good { color: var(--green); }
.gw-low { color: #9a3b1f; }
.gw-yr { text-align: center !important; }
.gw-c { text-align: center !important; font-size: 13px; color: #6b5d4f; min-width: 34px; }
.gw-paid { background: #F6D3C4; color: #6b1f0c; font-weight: 600; }
.gw-deep { background: #D9826A; color: #fff; font-weight: 700; }
.gw-na { color: #bbb; }
.gw-shares { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.gw-share { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14.5px; background: #F6FAF3; border: 1px solid #CFE0C6; border-radius: 10px; padding: 8px 10px; }
.gw-share span { display: flex; align-items: center; gap: 4px; }
.gw-share input { width: 70px; padding: 6px 8px; font-size: 16px; border: 1px solid #C9BFA6; border-radius: 6px; }
.gw-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.gw-total { font-weight: 700; }
.gw-total.is-off { color: #9a3b1f; }
.gw-stats { margin-top: 4px; }
.gw-note { margin: 0; font-size: 15px; }
.gw-warn { color: #8a5a00; font-weight: 600; }
.gw-neg { color: #9a3b1f; }
.gw-pos { color: var(--green); font-weight: 600; }
.gw-tot th, .gw-tot td { font-weight: 700; border-top: 2px solid var(--line); }
.gw-barh { min-width: 160px; text-align: left !important; }
.gw-bars { text-align: left !important; min-width: 160px; }
.gw-bar { display: block; height: 7px; border-radius: 4px; margin: 2px 0; min-width: 1px; }
.gw-in, .gw-key.gw-in { background: #C9A227; }
.gw-out, .gw-key.gw-out { background: var(--green); }
.gw-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin: 0 4px 0 10px; }
.gw-fields-ranch { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); }
.gw-gridbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.gw-gridbar-l { font-weight: 700; }
.gw-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gw-tab { border: 2px solid #C9BFA6; background: #fff; border-radius: 10px; padding: 6px 12px; font-weight: 700; font-size: 15px; cursor: pointer; text-align: left; color: var(--soil); }
.gw-tab small { display: block; font-weight: 400; font-size: 12.5px; color: var(--soil-muted); }
.gw-tab.is-on { border-color: var(--green); background: #F6FAF3; color: var(--green); }
.gw-gridbox { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.gw-which { font-size: 18px; color: var(--soil-muted); font-weight: 400; }
.gw-card td small, .gw-years td small, .gw-years th small { display: block; font-size: 12px; color: var(--soil-muted); font-weight: 400; }
.gw-addbtn { border: 1.5px solid var(--green); background: #fff; color: var(--green); border-radius: 8px; padding: 5px 10px; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.gw-addbtn.is-on { background: var(--green); color: #fff; }
.gw-share small { font-weight: 400; font-size: 12.5px; color: var(--soil-muted); min-height: 1em; }
.gw-mapwrap { padding: 12px; }
#gw-map { height: 420px; border-radius: 10px; background: var(--cream-deep); z-index: 0; }
@media (max-width: 600px) { #gw-map { height: 340px; } }
.gw-caution { background: #FBF4E3; border-left: 4px solid #C9A227; padding: 8px 12px; border-radius: 6px; }
.gw-long { background: #F6FAF3; border-left: 4px solid var(--green); padding: 8px 12px; border-radius: 6px; }
.gw-addbtn.is-blocked { border-color: #d9a2a2; color: #b0a8a0; background: #fff; cursor: not-allowed; text-decoration: line-through; text-decoration-color: #c0392b; text-decoration-thickness: 2px; }
.gw-card tr:has(.is-blocked) th, .gw-card tr:has(.is-blocked) td:not(:first-child) { opacity: 0.55; }
.gw-panel[hidden], #gw [hidden] { display: none !important; }
/* GridWise producer printout: landscape (the @page rule is added only while printing), built by gridwise.js */
.gw-printbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.gw-check { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
#gw-sheet { display: none; }
@media print {
  body.gw-printing > *:not(#gw-sheet) { display: none !important; }
  body.gw-printing { background: #fff; }
  body.gw-printing #gw-sheet { display: block; }
}
#gw-sheet, #gw-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-sizing: border-box; }
.gwp-page { font-family: var(--font-body); color: #1d1a17; font-size: 9.5pt; line-height: 1.3; display: flex; flex-direction: column; gap: 8px; }
.gwp-page + .gwp-page { break-before: page; page-break-before: always; }
.gwp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 3px solid #2E4D2C; padding-bottom: 6px; }
.gwp-brand { font-family: var(--font-head); font-weight: 800; letter-spacing: .12em; font-size: 9pt; color: #8a6512; text-transform: uppercase; }
.gwp-top h1 { margin: 2px 0 0; font-family: var(--font-head); font-size: 20pt; line-height: 1.05; color: #2E4D2C; }
.gwp-sub { font-size: 10.5pt; color: #444; }
.gwp-meta { text-align: right; font-size: 9pt; color: #333; }
.gwp-who { font-size: 11pt; color: #111; margin-bottom: 2px; }
.gwp-cov { font-size: 10pt; background: #F3EEE2; border-radius: 6px; padding: 4px 10px; }
.gwp-page table { width: 100%; border-collapse: collapse; }
.gwp-page th, .gwp-page td { padding: 3px 6px; border-bottom: 1px solid #ddd; text-align: right; white-space: nowrap; }
.gwp-page th { background: #E9E2D0; font-size: 8.5pt; font-weight: 700; }
.gwp-page th:first-child, .gwp-page td:first-child { text-align: left; }
.gwp-page td small { display: block; font-size: 7.5pt; color: #666; }
.gwp-setup td:nth-child(2), .gwp-setup td:nth-child(4), .gwp-setup th:nth-child(2), .gwp-setup th:nth-child(4) { text-align: left; }
.gwp-ints { text-align: left !important; white-space: normal !important; }
.gwp-ints span { display: inline-block; background: #EEF5EA; border: 1px solid #cfe0c6; border-radius: 4px; padding: 0 5px; margin: 1px 3px 1px 0; font-size: 8.5pt; }
.gwp-tot td { font-weight: 700; border-top: 2px solid #999; }
.gwp-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gwp-cards div { background: #F3EEE2; border-radius: 6px; padding: 5px 8px; font-size: 8.5pt; color: #333; }
.gwp-cards span { display: block; font-family: var(--font-head); font-size: 15pt; font-weight: 800; color: #1d1a17; line-height: 1.1; }
.gwp-cards .gwp-main { background: #2E4D2C; color: #e9efe6; }
.gwp-cards .gwp-main span { color: #F0C75E; }
.gwp-body { display: grid; grid-template-columns: 1fr 2.6in; gap: 12px; align-items: start; }
.gwp-years td { font-size: 9pt; }
.gwp-barh { width: 1.4in; }
.gwp-bars { text-align: left !important; }
.gwp-bars i { display: block; height: 5px; border-radius: 3px; margin: 1px 0; min-width: 1px; }
i.gwp-in { background: #C9A227; }
i.gwp-out { background: #2E4D2C; }
.gwp-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; margin: 0 3px 0 6px; }
.gwp-neg { color: #9a3b1f; }
.gwp-pos { color: #2E4D2C; font-weight: 700; }
.gwp-side { font-size: 9pt; display: flex; flex-direction: column; gap: 6px; }
.gwp-side p { margin: 0; }
.gwp-foot { margin-top: 4px; border-top: 1px solid #bbb; padding-top: 4px; font-size: 7.5pt; color: #555; }
.gwp-note { margin: 0; font-size: 9pt; }
.gwp-card td { text-align: center; }
.gwp-card td:nth-child(-n+6) { text-align: right; } .gwp-card td:first-child { text-align: left; }
.gwp-card .gwp-paid { background: #F6D3C4; color: #6b1f0c; font-weight: 700; }
.gwp-card .gwp-deep { background: #D9826A; color: #fff; font-weight: 700; }
.gwp-in-mix td:first-child { background: #EEF5EA; }
.gwp-in-mix em { font-style: normal; font-size: 7.5pt; color: #2E4D2C; font-weight: 700; }
#gw-sheet .gwp-page table { font-size: 9.5pt; } #gw-sheet .gwp-setup td { font-size: 9.5pt; vertical-align: middle; }
.gw-fields { align-items: end; }
.gw-fields input, .gw-fields select { height: 42px; }
/* GridWise compare and what-if */
table.gw-cmp { border-collapse: collapse; font-size: 14px; width: 100%; background: #fff; }
.gw-cmp th, .gw-cmp td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.gw-cmp thead th { background: #EFE7D3; vertical-align: bottom; min-width: 170px; }
.gw-cmp tbody th { text-align: left; white-space: nowrap; }
.gw-cmp td small { display: block; font-size: 12px; color: var(--soil-muted); }
.gw-cmp-name { width: 100%; font: 700 15px/1.2 var(--font-body); border: 1px dashed transparent; background: transparent; padding: 3px 4px; border-radius: 6px; color: var(--green); }
.gw-cmp-name:hover, .gw-cmp-name:focus { border-color: #C9BFA6; background: #fff; }
.gw-cmp-acts { display: block; font-weight: 400; font-size: 13px; margin-top: 2px; }
.gw-cmp-yr th, .gw-cmp-yr td { font-size: 13px; }
td.gw-best { background: #EEF5EA; color: var(--green); font-weight: 700; }
.gw-chip { display: inline-block; background: #F3EEE2; border-radius: 4px; padding: 1px 6px; margin: 1px 2px; font-size: 12.5px; white-space: nowrap; }
.gw-chip-pay { background: #EEF5EA; color: var(--green); font-weight: 700; }
.gw-scn-pick { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.gw-scn-pick select { padding: 5px 8px; font-size: 15px; border: 1px solid #C9BFA6; border-radius: 6px; margin-left: 4px; }
.gw-rain { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.gw-rain .gw-share input { width: 64px; }
.gw-scn-ints { text-align: left !important; white-space: normal !important; }
.gw-scn-t th small { display: block; font-weight: 400; font-size: 12px; color: var(--soil-muted); }
.gwp-cmp td { text-align: right; } .gwp-cmp td:first-child { text-align: left; }
.gwp-chip { display: inline-block; background: #EEF5EA; border: 1px solid #cfe0c6; border-radius: 4px; padding: 0 5px; margin: 1px 2px; font-size: 8.5pt; }
/* GridWise: producer file bar and save/open dialogs */
.gw-filebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #F6FAF3; border: 1px solid #CFE0C6; border-radius: 10px; padding: 8px 12px; }
.gw-filestate { flex: 1 1 280px; font-size: 14.5px; }
.gw-saved { color: var(--green); font-weight: 700; margin-left: 4px; }
.gw-verbox { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.gw-verbox select { padding: 5px 8px; font-size: 14px; border: 1px solid #C9BFA6; border-radius: 6px; }
.gw-dialog { border: 2px solid var(--green); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.gw-dialog h3 { margin: 0; color: var(--green); }
.gw-dialog > label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14.5px; max-width: 360px; }
.gw-dialog input[type="search"], .gw-dialog > label input { padding: 8px 10px; font-size: 16px; border: 1px solid #C9BFA6; border-radius: 8px; }
.gw-dlg-h { margin: 4px 0 0; font-weight: 700; }
.gw-pick { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.gw-pick small { color: var(--soil-muted); }
.gw-pick td small { display: block; font-size: 12px; color: var(--soil-muted); }
/* MarketGuard: agent LRP workspace (/agent/marketguard/, marketguard.js). Reuses the GridWise panel styles. */
#mg [hidden] { display: none !important; }
.mg-when { margin: 0; font-size: 15.5px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.mg-warn { color: #8A4B12; font-weight: 700; }
.mg-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--line); }
.mg-tabs [role="tab"] { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 16px; font: 700 17px/1 var(--font-body); color: var(--soil-muted); cursor: pointer; }
.mg-tabs [role="tab"][aria-selected="true"] { color: var(--green); border-bottom-color: var(--gold); }
.mg-tabs [role="tab"]:hover { color: var(--green); }
.mg-count { font-weight: 400; font-size: 14px; }
.mg-pane { display: flex; flex-direction: column; gap: 16px; }
.mg-covered { background: #EEF5EA; border: 1px solid #cfe0c6; border-radius: 10px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.mg-chip { background: #fff; border: 1px solid #b9d3ad; border-radius: 999px; padding: 4px 10px; font-size: 14px; cursor: pointer; color: var(--green); font-weight: 600; }
.mg-chip:hover { border-color: var(--green); }
.mg-pick { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.mg-pick label { display: flex; flex-direction: column; gap: 3px; font-weight: 600; font-size: 14px; }
.mg-pick select { padding: 8px 10px; font-size: 16px; border: 1px solid #C9BFA6; border-radius: 8px; background: #fff; }
table.mg-board, table.mg-levels, table.mg-drops { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.mg-board th, .mg-board td, .mg-levels th, .mg-levels td, .mg-drops th, .mg-drops td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.mg-board thead th, .mg-levels thead th, .mg-drops thead th { background: #EFE7D3; font-size: 13px; vertical-align: bottom; }
.mg-board th small, .mg-board td small, .mg-levels th small, .mg-levels td small, .mg-drops th small { display: block; font-weight: 400; font-size: 12px; color: var(--soil-muted); }
.mg-board tbody th, .mg-levels tbody th, .mg-drops tbody th, .mg-board thead th:first-child, .mg-levels thead th:first-child, .mg-drops thead th:first-child { text-align: left; }
.mg-board td:nth-child(2) { text-align: left; }
.mg-up { color: var(--green) !important; } .mg-down { color: #9a3b1f !important; }
.mg-cell { background: none; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; font: inherit; color: var(--soil); cursor: pointer; font-variant-numeric: tabular-nums; }
.mg-cell:hover, .mg-cell:focus-visible { border-color: var(--green); background: #F6FAF3; color: var(--green); }
.mg-lv { cursor: pointer; }
.mg-lv:hover { background: #FAF7EF; }
.mg-levels tr.mg-on, .mg-drops tr.mg-on { background: #EEF5EA; }
.mg-levels tr.mg-on th::before { content: "● "; color: var(--gold); }
.mg-lv:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.mg-bfr { color: var(--green) !important; }
.mg-read { font-weight: 400; font-size: 12.5px; color: var(--green); min-height: 1em; }
.mg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mg-stat { background: #F3EEE2; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.mg-stat span { font-size: 13px; font-weight: 600; color: var(--soil-muted); }
.mg-stat b { font: 800 28px/1.05 var(--font-head); color: var(--green); font-variant-numeric: tabular-nums; }
.mg-stat small { font-size: 13px; color: var(--soil-muted); }
.mg-stat.mg-main { background: var(--green); } .mg-stat.mg-main span, .mg-stat.mg-main small { color: var(--on-green); } .mg-stat.mg-main b { color: var(--gold-soft); }
.mg-pos { color: var(--green); font-weight: 700; } .mg-neg { color: var(--soil-muted); }
.mg-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--soil-muted); }
.mg-legend i { display: inline-block; width: 20px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.mg-k-with, .mg-l-with { background: var(--green); stroke: var(--green); }
.mg-k-without { background: #B4532A; }
.mg-chart svg, .mgp-chart svg { width: 100%; height: auto; display: block; }
.mg-chart svg path, .mgp-chart svg path { fill: none; }
.mg-l-with { stroke-width: 3.5; } .mg-l-without { stroke: #B4532A; stroke-width: 2.5; }
.mg-grid { stroke: var(--line); stroke-width: 1; } .mg-today { stroke: var(--soil-muted); stroke-dasharray: 3 4; }
.mg-ax { font-size: 12px; fill: var(--soil-muted); font-family: var(--font-body); }
.mg-lbl { font-size: 13px; font-weight: 700; fill: var(--green); font-family: var(--font-body); }
.mg-text { width: 100%; min-height: 150px; font: 14px/1.45 var(--font-body); border: 1px solid #C9BFA6; border-radius: 8px; padding: 10px; resize: vertical; background: #fff; }
.mg-rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 15px; }
.mg-cite { color: var(--soil-muted); font-size: 13px; white-space: nowrap; }
.mg-gtable td small { display: block; }
.mg-gtable .btn { white-space: nowrap; }
#mg-sheet { display: none; }
@media print {
  body.mg-printing > *:not(#mg-sheet) { display: none !important; }
  body.mg-printing { background: #fff; }
  body.mg-printing #mg-sheet { display: block; }
}
#mg-sheet, #mg-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-sizing: border-box; }
.mgp .gwp-cards { grid-template-columns: repeat(5, 1fr); }
.mgp .gwp-body { grid-template-columns: minmax(0, 1fr) 2.3in; }
.mgp .gwp-body > div { min-width: 0; }
#mg-sheet .mgp table { font-size: 8.5pt; } .mgp th, .mgp td { padding: 3px 4px !important; }
.mgp-chart { max-height: 2.3in; overflow: hidden; }
.mgp-chart svg { max-height: 2.3in; }
.mgp .gwp-side table td { text-align: right; } .mgp .gwp-side table td:first-child { text-align: left; }
.mg-acts { white-space: nowrap; } .mg-acts .btn { margin-right: 10px; }
.mg-chip-link { font-size: 14px; margin-left: 4px; }
.mg-be-bar { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.mg-be-bar > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.mg-gtable tr.mg-prow td { background: #F3EEE2; border-top: 2px solid var(--line); padding-top: 9px; padding-bottom: 9px; }
.mg-gtable tr.mg-prow a { font-size: 14px; margin: 0 8px; }
.mg-psum { font-size: 14px; color: var(--soil-muted); }
.mg-gtable td.mg-gname { padding-left: 22px; }
.mg-ptoggle { background: none; border: 0; padding: 2px 0; font: inherit; color: var(--soil); cursor: pointer; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; text-align: left; }
.mg-ptoggle b { font-size: 16px; color: var(--green); }
.mg-ptoggle:hover b { text-decoration: underline; }
.mg-ptoggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.mg-caret { display: inline-block; width: 0; height: 0; border-left: 6px solid var(--green); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; align-self: center; }
.mg-prow.is-open .mg-caret { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .mg-caret { transition: none; } }
.mg-gtable tr.mg-grow[hidden] { display: none; }
/* MarketGuard cost sheets: the calculator's own alert form is hidden in the agent tool (groups come from the sheet) */
#mg-be .ct-alert { display: none !important; }
.mg-be-btns { display: flex; flex-direction: column; gap: 8px; }
.mg-be-for { margin: 0; background: #EEF5EA; border-radius: 8px; padding: 8px 12px; font-size: 15px; }
#mg-be-step { color: var(--green); }
.mg-gtable tr.mg-srow td { background: #FBF8F1; padding-top: 8px; padding-bottom: 8px; }
.mg-gtable tr.mg-srow td:nth-child(2) { padding-left: 22px; }
.mg-slabel { font-size: 15px; margin-right: 6px; }
.mg-sacts { display: inline-flex; gap: 12px; align-items: center; margin-left: 10px; font-size: 14px; }
.mg-gtable td.mg-gname { padding-left: 38px; }
.mg-gtable tr.mg-none td:nth-child(2) { padding-left: 38px; }
.mg-gtable tr.mg-arow td { padding: 6px 9px 12px 22px; font-size: 14px; border-bottom: 2px solid var(--line); }
.mg-addg { border: 2px solid var(--green); border-radius: 12px; background: #F6FAF3; padding: 14px 16px; margin: 4px 0 4px 16px; display: flex; flex-direction: column; gap: 10px; white-space: normal; }
.mg-ag-be { margin: 0; font-size: 15.5px; }
.ct-al-more { border-top: 1px solid #cfe0c6; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ct-al-more h4 { margin: 0; font-family: var(--font-head); font-size: 21px; color: var(--green); }
.mgp-rules { margin: 0; padding-left: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 8.5pt; }
.mgp-rules .mg-cite { font-size: 7.5pt; color: #666; }
/* Agent home: the review tile holds its own links; GridWise and MarketGuard tiles show their logos */
.ag-tile.ag-review { gap: 14px; }
.ag-tile-main { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.ag-tile-main b { font-family: var(--font-head); font-size: 24px; color: var(--cream); }
.ag-tile-main span { font-size: 15px; color: var(--on-green); }
.ag-tile.ag-review:hover, .ag-tile.ag-review:focus-within { box-shadow: 0 6px 18px rgba(46, 77, 44, .18); }
.ag-sublinks { display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid rgba(232, 223, 200, .3); padding-top: 12px; }
.ag-sublinks a { color: var(--gold-soft); font-weight: 700; text-decoration: none; font-size: 15.5px; }
.ag-sublinks a:hover, .ag-sublinks a:focus-visible { text-decoration: underline; }
.ag-tile.ag-logo { gap: 12px; }
.ag-tile.ag-logo img { width: auto; height: 64px; max-width: 100%; align-self: flex-start; }
/* Agent forms page */
.fm-sec { display: flex; flex-direction: column; gap: 12px; }
.fm-sec h2 { margin: 0; font-size: 26px; color: var(--green); }
.fm-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.fm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.fm-card b { font-size: 17px; color: var(--soil); }
.fm-card p { margin: 0; font-size: 14.5px; color: var(--soil-muted); flex: 1; }
.fm-card .fm-pages { font-size: 13px; color: var(--soil-muted); }
.fm-acts { display: flex; gap: 14px; align-items: center; margin-top: 4px; font-size: 14.5px; }
.cc-for { margin: 0; background: #EEF5EA; border-radius: 8px; padding: 8px 12px; font-size: 15px; }
.fl-add { display: flex; gap: 18px; margin: -4px 0 6px; }
/* MarketGuard producer pages, group cards, endorsements (Dec 2 rebuild) */
.mg-ptable td small, .mg-etable td small { display: block; color: var(--soil-muted); font-size: 13px; }
.mg-plink { font-weight: 700; color: var(--green); font-size: 16px; }
.mg-back { margin: 0; font-size: 15px; }
.mg-pname { margin: 0; font-size: 32px; color: var(--green); }
#mg-pview { display: flex; flex-direction: column; gap: 16px; }
.mg-gcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #FFFDF8; }
.mg-gtop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.mg-gname2 { font-size: 19px; color: var(--soil); }
.mg-gmeta { color: var(--soil-muted); font-size: 15px; }
.mg-gacts { margin-left: auto; display: flex; gap: 14px; align-items: baseline; }
.mg-gline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15.5px; }
.mg-gline small { color: var(--soil-muted); }
.mg-gcost { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.mg-gcost select, .mg-gbe input { padding: 6px 8px; font-size: 15px; border: 1px solid #C9BFA6; border-radius: 8px; background: #fff; }
.mg-gbe { display: inline-flex; gap: 6px; align-items: center; } .mg-gbe input { width: 90px; }
.mg-gstat { border-radius: 8px; padding: 9px 12px; background: #F3EEE2; font-size: 15px; }
.mg-gstat.is-ok { background: #E3EEDB; color: #24461F; }
.mg-gstat.is-short { background: #FBEBD9; color: #7A3F0E; }
.mg-gbought { margin: 0; }
.mg-gcard.is-bought { border: 2px solid var(--green); background: #F6FAF3; }
.mg-gcard.is-part { border: 2px solid var(--gold); }
.mg-gbuy { border-radius: 8px; background: #E3EEDB; color: #24461F; padding: 9px 12px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.mg-gbuy-left { color: #7A3F0E; font-weight: 600; }
.mg-gbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mg-galert { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; margin-left: auto; }
.mg-galert input { width: 18px; height: 18px; }
.mg-gslot:empty { display: none; }
.mg-gslot #mg-plan { display: flex; flex-direction: column; gap: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.mg-gslot .mg-addg { margin-left: 0; }
.mg-inline .mg-hide-inline { display: none !important; }
.mg-show-inline { display: none; } .mg-inline .mg-show-inline { display: inline; }
.mg-inline .gw-panel { padding: 12px 14px; }
#mg-plan { display: flex; flex-direction: column; gap: 16px; }
.mg-costs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mg-costchip { background: #F3EEE2; border-radius: 8px; padding: 8px 12px; font-size: 15px; }
/* MarketGuard producer page: three steps in order (costs, cattle, endorsements) */
.mg-step-h { display: flex; align-items: center; gap: 10px; }
.mg-step-h .gw-h { margin: 0; flex: 1; }
.mg-stepn { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--cream-deep); color: var(--soil); }
.mg-stepn.is-done { background: var(--green); color: #fff; }
.mg-next { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.mg-next.is-todo { background: #FBF0D9; color: #8A4B12; }
.mg-next.is-done { background: #E5EFE0; color: var(--green); }
.mg-new { margin: 10px 0 12px; }
/* "Save costs for <name>": stays in view at the bottom while the calculator scrolls */
.sv-box[data-person] { position: sticky; bottom: 0; z-index: 5; }
.sv-person { background: #fff; border: 2px solid var(--green); border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; box-shadow: 0 -4px 14px rgba(42, 29, 20, .08); }
.sv-person .cop-lines { margin: 0; }
.sv-person .form-status { flex-basis: 100%; margin: 0; }
.sv-person .form-status:empty { display: none; }
.mg-costadd { font-weight: 700; font-size: 15px; }
.mg-etable td { vertical-align: top; }
.mg-eslot td { padding: 0 !important; border: 0 !important; }
.mg-erow-slot:empty { display: none; }
.mg-buy { margin: 6px 0 10px; }
