/* The Daily Dirt — three looks: Ranch Ledger, Field Journal, Feed Store.
   All fonts are served from this site (assets/fonts). No outside font service. */

/* ---------- Fonts ---------- */
@font-face { font-family: "Zilla Slab"; src: url(fonts/zilla-slab-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url(fonts/zilla-slab-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url(fonts/im-fell-english-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url(fonts/im-fell-english-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Rye"; src: url(fonts/rye-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oswald"; src: url(fonts/oswald-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Oswald"; src: url(fonts/oswald-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens: Ranch Ledger (default) ---------- */
:root, [data-theme="ledger"] {
  --paper: #ede6d5; --paper2: #e2d8c1; --card: #f7f2e6; --ink: #1f1c18; --ink2: #5a5144; --rule: #c3b392; --rule-strong: #1f1c18;
  --band: #26231f; --band-ink: #f1e9d6; --band-soft: #b9ad95; --brass: #b08a45;
  --accent: #8c3a22; --accent-ink: #fbf4e6; --link: #6e2e1b;
  --good: #4c5a27; --good-bg: #dde0c3; --soon: #85651e; --soon-bg: #efe0b6; --late: #8c3a22; --late-bg: #f1d8cc;
  --cold-bg: #d6e0e6; --cold: #2c5068; --heat-bg: #f1d8cc;
  --f-display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif; --f-head: "Zilla Slab", Rockwell, Georgia, serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif; --f-ui: "Source Sans 3", system-ui, "Segoe UI", Arial, sans-serif;
  --radius: 3px; --texture: none;
  color-scheme: light;
}
[data-theme="journal"] {
  --paper: #e5dcc4; --paper2: #d8cbad; --card: #f1eada; --ink: #2b2a1f; --ink2: #5b5642; --rule: #b6a886; --rule-strong: #4b5320;
  --band: #4b5320; --band-ink: #efe8d3; --band-soft: #c9c3a3; --brass: #9c7a3c;
  --accent: #4b5320; --accent-ink: #f3eedd; --link: #4b5320;
  --good: #4b5320; --good-bg: #dad9b8; --soon: #8a6624; --soon-bg: #ecdcae; --late: #b8541b; --late-bg: #f2d6c0;
  --cold-bg: #d5dcd6; --cold: #34514a; --heat-bg: #f2d6c0;
  --f-display: "IM Fell English", "Iowan Old Style", Palatino, Georgia, serif; --f-head: "IM Fell English", Palatino, Georgia, serif;
  --f-body: "Source Serif 4", Georgia, serif; --f-ui: "Source Sans 3", system-ui, Arial, sans-serif;
  --radius: 6px;
  --texture: repeating-linear-gradient(0deg, rgba(75,83,32,.035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(75,83,32,.03) 0 1px, transparent 1px 3px);
}
[data-theme="feedstore"] {
  --paper: #f1ece0; --paper2: #e3d8c2; --card: #fbf8f1; --ink: #000; --ink2: #3f3b35; --rule: #000; --rule-strong: #000;
  --band: #000; --band-ink: #f1ece0; --band-soft: #bdb4a2; --brass: #a32b22;
  --accent: #000; --accent-ink: #f1ece0; --link: #a32b22;
  --good: #1f5130; --good-bg: #d9e3d2; --soon: #7a5a12; --soon-bg: #f0e0b0; --late: #a32b22; --late-bg: #f4d5cf;
  --cold-bg: #d8e1e8; --cold: #1e4865; --heat-bg: #f4d5cf;
  --f-display: "Rye", "Rockwell Extra Bold", Georgia, serif; --f-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Source Sans 3", system-ui, Arial, sans-serif; --f-ui: "Source Sans 3", system-ui, Arial, sans-serif;
  --radius: 0; --texture: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]), [data-theme="ledger"] {
    --paper: #1c1a17; --paper2: #24211d; --card: #26231f; --ink: #ede5d2; --ink2: #b4a993; --rule: #403a31; --rule-strong: #ede5d2;
    --band: #121110; --band-ink: #ede5d2; --brass: #c9a15a; --accent: #c2643f; --accent-ink: #160f0b; --link: #e09a74;
    --good: #a9b977; --good-bg: #2c3120; --soon: #d8b25e; --soon-bg: #3a3019; --late: #e08566; --late-bg: #3c231b; --cold-bg: #1d2a33; --cold: #9cc0d8; --heat-bg: #3c231b;
    color-scheme: dark;
  }
  [data-theme="journal"] {
    --paper: #1d1e16; --paper2: #26271d; --card: #27281e; --ink: #e9e2cc; --ink2: #b5ae94; --rule: #45452f; --rule-strong: #a3ad62;
    --band: #2c3113; --band-ink: #ece5cf; --brass: #c9a560; --accent: #9ea85c; --accent-ink: #14160a; --link: #b8c27a;
    --good: #b1bb73; --good-bg: #2e321b; --soon: #d9b464; --soon-bg: #3a311a; --late: #e88a4f; --late-bg: #3e2717; --cold-bg: #1e2b29; --cold: #9fc6bc; --heat-bg: #3e2717;
    --texture: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 3px);
    color-scheme: dark;
  }
  [data-theme="feedstore"] {
    --paper: #12110f; --paper2: #1d1b18; --card: #1b1916; --ink: #f1ece0; --ink2: #bdb4a2; --rule: #f1ece0; --rule-strong: #f1ece0;
    --band: #000; --band-ink: #f1ece0; --brass: #d9483c; --accent: #f1ece0; --accent-ink: #000; --link: #ef7a6f;
    --good: #8fc79e; --good-bg: #1d3023; --soon: #e4c063; --soon-bg: #372d12; --late: #ef7a6f; --late-bg: #3a1a17; --cold-bg: #182733; --cold: #9cc4e0; --heat-bg: #3a1a17;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); background-image: var(--texture); color: var(--ink); font: 400 17.5px/1.6 var(--f-body); font-kerning: normal; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px 48px; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
p { margin: 0 0 .8em; }

/* ---------- Masthead ---------- */
.mast { background: var(--band); color: var(--band-ink); }
.mast-in { max-width: 1160px; margin: 0 auto; padding: 10px 20px 0; }
.mast-top { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; font: 400 14px var(--f-ui); color: var(--band-soft); }
.mast-date { margin-right: auto; }
.city-pick { display: flex; align-items: center; gap: 6px; }
.city-pick select { font: 600 14px var(--f-ui); padding: 5px 8px; background: transparent; color: var(--band-ink); border: 1px solid var(--band-soft); border-radius: var(--radius); max-width: 180px; }
.city-pick select option, .city-pick select optgroup { color: #1f1c18; background: #f7f2e6; }
.looks { display: flex; gap: 6px; }
.looks a { display: block; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); box-shadow: 0 0 0 1px var(--band-soft); }
.looks a[aria-current="true"] { box-shadow: 0 0 0 2px var(--band), 0 0 0 4px var(--brass); }
.mast-brand { text-align: center; padding: 18px 0 16px; }
.orn { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--brass); }
.orn i { display: block; width: 72px; height: 0; border-top: 1px solid currentColor; box-shadow: 0 3px 0 -0px currentColor; opacity: .9; }
.orn .ico { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.mast-name { display: block; font: 700 clamp(44px, 9.5vw, 96px)/.95 var(--f-display); color: var(--band-ink); text-decoration: none; letter-spacing: -.01em; margin: 8px 0 6px; }
.mast-tag { margin: 0; font: italic 400 17px var(--f-body); color: var(--brass); }
.nav { border-top: 1px solid rgba(255,255,255,.14); }
.nav-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: flex; gap: 2px 26px; justify-content: center; flex-wrap: wrap; font: 600 15px var(--f-ui); }
.nav a { color: var(--band-ink); text-decoration: none; padding: 10px 2px 9px; border-bottom: 3px solid transparent; opacity: .82; }
.nav a:hover { opacity: 1; }
.nav a.on { opacity: 1; border-bottom-color: var(--brass); }
.whatdo { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: inline-flex; gap: 8px; align-items: center; background: var(--accent); color: var(--accent-ink); font: 700 15px var(--f-ui); padding: 12px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.admin .whatdo { display: none; }

/* ---------- How it works ---------- */
.how { margin: 26px 0 8px; padding: 22px 20px; text-align: center; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.how ol { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how li { display: grid; justify-items: center; gap: 4px; }
.how strong { font: 700 20px/1.2 var(--f-head); }
.how li > span:last-child { font: 400 15px var(--f-ui); color: var(--ink2); }
.how-ico .ico { width: 30px; height: 30px; color: var(--brass); stroke-width: 1.4; }
.how-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; font: 700 13px var(--f-ui); }
.has-plan .how { display: none; }
@media (max-width: 680px) { .how ol { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: var(--radius); padding: 10px 18px; font: 700 15.5px/1.2 var(--f-ui); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .4; cursor: default; filter: none; }
.btn-big { font-size: 18px; padding: 14px 28px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); filter: none; }
.btn-sm { padding: 6px 12px; font-size: 13.5px; white-space: nowrap; }
.linklike { background: none; border: 0; color: var(--late); text-decoration: underline; cursor: pointer; font: inherit; }
.chip { font: 600 14px var(--f-ui); background: var(--card); border: 1px solid var(--rule); color: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Badges (each look restyles these) ---------- */
.badge { display: inline-block; font: 700 12px/1 var(--f-ui); letter-spacing: .02em; padding: 5px 9px 4px; }
.badge-now { color: var(--good); } .badge-soon { color: var(--soon); } .badge-wait { color: var(--ink2); } .badge-late { color: var(--late); }

/* ---------- Ads ---------- */
.ad { display: flex; gap: 6px 12px; align-items: baseline; flex-wrap: wrap; background: var(--paper2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 11px 14px; margin: 18px 0; font: 400 15px var(--f-ui); }
.ad a { color: var(--ink); text-decoration: none; }
.ad strong { font: 700 17px var(--f-head); }
.ad-label { font: italic 400 13px var(--f-body); color: var(--ink2); }
.ad-trade { color: var(--accent); font-size: 13.5px; margin-left: 4px; }
.ad-line { display: block; color: var(--ink2); font-size: 14px; }
.ad-adv { margin-left: auto; font-size: 12.5px; color: var(--ink2) !important; text-decoration: underline !important; }
.ad-sidebar { flex-direction: column; align-items: flex-start; border: 1px solid var(--rule); }
.ad-sidebar .ad-adv { margin-left: 0; }

/* ---------- Front page ---------- */
.dateline { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; font: 400 14.5px var(--f-ui); color: var(--ink2); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 6px 0 22px; }
.dateline span { text-align: center; }
.dateline strong { color: var(--ink); }
.dateline a { white-space: nowrap; color: var(--ink); }
.front { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 880px) { .front { grid-template-columns: 1fr; gap: 10px; } .dateline { grid-template-columns: 1fr 1fr; } .dateline span { grid-column: 1 / -1; grid-row: 1; } .dateline a:last-child { text-align: right; } }
.col-main { min-width: 0; }
.story { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.story h3 { font: 700 23px/1.18 var(--f-head); margin: 4px 0 8px; max-width: 34ch; }
.story h3 a { color: var(--ink); text-decoration: none; }
.story h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.story p { margin: 0; color: var(--ink2); font-size: 16.5px; max-width: 66ch; }
.story .do b, .story .why b { color: var(--ink); font-family: var(--f-ui); font-weight: 700; }
.story .why { display: block; margin-top: 3px; }
.kicker { display: inline-flex; gap: 6px; align-items: center; font: 600 14px var(--f-ui); color: var(--accent); font-variant-caps: all-small-caps; letter-spacing: .04em; font-size: 16px; }
.kicker .ico { width: 18px; height: 18px; }
.story.lead { padding: 0 0 24px; border-bottom: 3px double var(--rule-strong); }
.story.lead .kicker .ico { width: 22px; height: 22px; }
.story.lead h3 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.02; max-width: 22ch; margin-bottom: 14px; letter-spacing: -.01em; }
.story.lead p { font-size: 19px; line-height: 1.55; }
.story.alert-cold { background: var(--cold-bg); padding: 14px 16px; border-left: 5px solid var(--cold); margin: 10px 0; }
.story.alert-heat { background: var(--heat-bg); padding: 14px 16px; border-left: 5px solid var(--late); margin: 10px 0; }
.story.compact { padding: 12px 0; }
.story.compact h3 { font-size: 19px; margin-bottom: 4px; }
.story.compact p { font-size: 15.5px; }
.lane { margin-top: 26px; }
.lane-h { font: 700 21px/1.2 var(--f-head); color: var(--ink); margin: 34px 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--rule-strong); }
.lane .story:last-child { border-bottom: 0; }
.box { margin-bottom: 30px; }
.box-h { font: 700 19px/1.2 var(--f-head); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--rule-strong); }
.box h3 { font: 700 20px/1.2 var(--f-head); margin: 4px 0 6px; }
.wx, .snips, .plain { list-style: none; padding: 0; margin: 0; }
.wx li, .snips li { padding: 9px 0; border-bottom: 1px solid var(--rule); font: 400 15.5px/1.45 var(--f-ui); }
.snips .ico { color: var(--brass); margin-right: 2px; }
.snips b { font-weight: 700; }
.plain li { padding: 4px 0; }
.src-note { font: 400 13.5px/1.5 var(--f-ui); color: var(--ink2); margin: 8px 0; }
.supply { background: var(--card); border: 1px solid var(--rule); padding: 14px 16px; }
.supply .box-h { border-bottom-color: var(--brass); }

/* ---------- Page headings ---------- */
.page-h { font: 700 clamp(34px, 5.5vw, 52px)/1.05 var(--f-head); margin: 30px 0 10px; letter-spacing: -.01em; }
.lede { font: 400 19.5px/1.5 var(--f-body); color: var(--ink2); margin: 0 0 20px; max-width: 62ch; }

/* ---------- Crop cards ---------- */
.filters, .packs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; align-items: center; font: 400 15px var(--f-ui); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.card { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; padding: 18px 10px 14px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; cursor: pointer; }
.card:hover { border-color: var(--ink); }
.card-emoji .ico { width: 42px; height: 42px; stroke-width: 1.3; color: var(--ink); }
.card-name { font: 700 18px/1.15 var(--f-head); }
.card-sub { font: 400 13px var(--f-ui); color: var(--ink2); }
.pickcard input { position: absolute; opacity: 0; pointer-events: none; }
.pickcard.picked { border-color: var(--good); box-shadow: inset 0 0 0 2px var(--good); background: var(--good-bg); }
.pickcard.picked::after { content: ""; position: absolute; top: 9px; right: 9px; width: 16px; height: 16px; border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.pickcard:focus-within { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- Wizard ---------- */
.wstep { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.wstep h2 { font: 700 24px var(--f-head); margin: 0 0 8px; display: flex; gap: 10px; align-items: center; }
.wstep h3 { margin: 18px 0 8px; font: 700 16px var(--f-ui); }
.wstep select { font: 600 17px var(--f-ui); padding: 9px; width: 100%; max-width: 360px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; }
.tile span { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 15px 10px; border: 1px solid var(--rule); border-radius: var(--radius); text-align: center; font: 600 15.5px var(--f-ui); cursor: pointer; background: var(--paper); }
.tile input:checked + span { border-color: var(--good); box-shadow: inset 0 0 0 2px var(--good); background: var(--good-bg); }
.tile input:focus-visible + span { outline: 2px solid var(--brass); }
.sunwarn { background: var(--soon-bg); padding: 10px 14px; font: 400 15px var(--f-ui); }
.wfoot { position: sticky; bottom: 0; background: var(--paper); border-top: 2px solid var(--rule-strong); padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 10; font: 600 15px var(--f-ui); }

/* ---------- Fact sheets ---------- */
.sheet { max-width: 800px; margin: 0 auto; }
.sheet-h { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border-bottom: 3px double var(--rule-strong); padding-bottom: 18px; margin: 28px 0 14px; }
.sheet-h > div { flex: 1; min-width: 230px; }
.sheet-h h1 { font: 700 clamp(38px, 6.5vw, 60px)/1 var(--f-head); margin: 4px 0 10px; }
.sheet-emoji .ico { width: 76px; height: 76px; stroke-width: 1.1; color: var(--ink); }
.sheet h2 { font: 700 25px var(--f-head); margin: 34px 0 10px; }
.sheet section { overflow-wrap: anywhere; }
.sheet section > p, .sheet li { max-width: 68ch; }
.importbox { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--brass); padding: 16px 18px; margin: 18px 0; font: 400 16px/1.5 var(--f-ui); }
.importbox strong { font: 700 52px/1 var(--f-head); color: var(--accent); }
.importbox small { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
@media (max-width: 520px) { .importbox { grid-template-columns: 1fr; gap: 6px; } }
table.dates { width: 100%; border-collapse: collapse; font: 400 15.5px var(--f-ui); background: var(--card); border: 1px solid var(--rule); }
.dates th, .dates td { text-align: left; padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.dates thead th { font: 700 13.5px var(--f-ui); color: var(--ink2); background: var(--paper2); }
.dates tr.on { background: var(--good-bg); }
@media (max-width: 640px) {
  table.dates thead { display: none; }
  table.dates tr { display: block; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  table.dates td { display: block; border: 0; padding: 2px 12px; }
  table.dates td[data-label]::before { content: attr(data-label) ": "; color: var(--ink2); font-size: 13px; }
  table.dates td[data-label="Window"]::before, table.dates td[data-label="Crop"]::before, table.dates td[data-label="Species"]::before { content: ""; }
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.facts div { padding: 12px 4px; border-bottom: 1px solid var(--rule); }
.facts dt { font: 600 13.5px var(--f-ui); color: var(--ink2); }
.facts dd { margin: 3px 0 0; font: 700 17px/1.35 var(--f-head); }
.steps li { margin: 8px 0; }
.steps.big { padding-left: 1.4em; }
.steps.big li { margin: 14px 0; padding-left: 6px; }
.steps.big li::marker { font: 700 18px var(--f-head); color: var(--brass); }
.heat { background: var(--heat-bg); padding: 4px 18px 12px; margin-top: 22px; border-left: 5px solid var(--late); }
.heat h2 .ico { color: var(--late); }
.mistakes { background: var(--paper2); padding: 4px 18px 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; gap: 0; } }
details { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 14px; margin: 8px 0; }
details[open] { border-color: var(--ink2); }
summary { font: 700 17px var(--f-head); cursor: pointer; }
details p { font: 400 15.5px/1.55 var(--f-ui); margin: 8px 0 0; }
.filter-input { width: 100%; font: 400 17px var(--f-ui); padding: 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.calc label { display: block; margin: 10px 0; font: 700 16px var(--f-ui); }
.calc input { width: 84px; font-size: 17px; padding: 6px; margin-left: 6px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.gcard { display: grid; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.gcard b { font: 700 20px/1.2 var(--f-head); }
.gcard span { font: 400 15px/1.45 var(--f-ui); color: var(--ink2); }
.gcard:hover { border-color: var(--ink); }

/* ---------- My Garden ---------- */
.g-head { border-bottom: 3px double var(--rule-strong); margin-bottom: 10px; }
.g-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tasks { list-style: none; padding: 0; margin: 0; }
.task { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--good); border-radius: var(--radius); padding: 14px; margin: 10px 0; font-family: var(--f-ui); }
.task > div { flex: 1; min-width: 0; }
.task b { font: 700 18px/1.25 var(--f-head); }
.task p { margin: 4px 0 0; color: var(--ink2); font-size: 15px; }
.task a { color: var(--ink); }
.task.late { border-left-color: var(--late); }
.task.soft { border-left-color: var(--soon); }
.task.done-all { border-left-color: var(--rule); }
.t-emoji .ico { width: 30px; height: 30px; stroke-width: 1.4; }
.uplist { list-style: none; padding: 0; margin: 0; font: 400 15.5px var(--f-ui); }
.uplist li { padding: 8px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.uplist span { min-width: 100px; font-weight: 700; color: var(--accent); }
.uplist .later-h { border-bottom: 0; padding-top: 16px; }
.status { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.scard { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; font-family: var(--f-ui); }
.s-top { display: flex; gap: 10px; align-items: center; }
.s-top a { color: var(--ink); text-decoration: none; }
.s-top b { font: 700 18px var(--f-head); }
.s-top .ico { width: 26px; height: 26px; }
.s-bed { margin-left: auto; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.s-stage { font: 700 14px var(--f-ui); color: var(--good); margin-top: 8px; }
.bar { height: 6px; background: var(--paper2); overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: var(--good); }
.steps3 { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); }
.steps3 .on { color: var(--good); font-weight: 700; }
.scard p { font-size: 14px; color: var(--ink2); margin: 8px 0; }
.s-date { font-size: 13px; color: var(--ink2); }
.s-date input { font: inherit; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); padding: 2px 4px; }
.beds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bed { background: #5d4128; background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 14px); color: #f6ecd9; border: 3px solid #3d2a19; padding: 12px; display: grid; gap: 6px; font: 400 14.5px var(--f-ui); }
.bed b { font: 700 16px var(--f-head); color: #f0d9a8; }
.bed .ico { color: #f0d9a8; }
.bignum { font: 700 48px/1 var(--f-head); margin: 6px 0; color: var(--good); }
.hform { display: flex; flex-wrap: wrap; gap: 8px; }
.hform select, .hform input { font: 400 16px var(--f-ui); padding: 9px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.hform input[type=number] { width: 90px; }
.empty { text-align: center; padding: 48px 0; }
.empty .lede { margin-left: auto; margin-right: auto; }
.reset { text-align: right; margin-top: 34px; font: 400 14px var(--f-ui); }
.g-sec { margin-bottom: 8px; }

/* ---------- Calendar ---------- */
.calwrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--card); }
.cal { border-collapse: collapse; width: 100%; min-width: 780px; font: 400 14.5px var(--f-ui); }
.cal th, .cal td { border-bottom: 1px solid var(--rule); padding: 6px 4px; }
.cal thead th { font: 700 13.5px var(--f-ui); background: var(--paper2); }
.cal thead small { display: block; font-weight: 400; color: var(--ink2); }
.cal tbody th { text-align: left; white-space: nowrap; font-weight: 600; position: sticky; left: 0; background: var(--card); padding-right: 12px; }
.cal tbody th a { color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.cal td { width: 7%; border-left: 1px solid var(--paper2); }
.cal td.plant { background: var(--good); }
.cal td.indoor { background: var(--brass); }
.toggle { margin-right: 14px; font: 600 15px var(--f-ui); }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.month { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; font: 400 15px/1.5 var(--f-ui); }
.month h3 { font: 700 22px var(--f-head); margin: 0 0 8px; }
.month p { margin: 8px 0; }

/* ---------- Supply Line ---------- */
.factgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.factcard { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--accent); padding: 16px; }
.factcard h2 { font: 700 21px/1.2 var(--f-head); margin: 0 0 8px; }
.factcard p { font-size: 16px; }
.bars { display: grid; gap: 12px; font-family: var(--f-ui); }
.hbar { display: grid; grid-template-columns: 170px 1fr 58px; gap: 4px 10px; align-items: center; }
.hb-l a { color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.hb-t { height: 14px; background: var(--paper2); overflow: hidden; }
.hb-t i { display: block; height: 100%; background: var(--accent); }
.hb-v { font: 700 18px var(--f-head); text-align: right; }
.hb-s { grid-column: 2 / 4; font-size: 12.5px; color: var(--ink2); }
@media (max-width: 560px) { .hbar { grid-template-columns: 1fr 54px; } .hb-l { grid-column: 1 / 3; } .hb-s { grid-column: 1 / 3; } }
.cta { text-align: center; margin: 36px 0; }

/* ---------- Footer, notices, admin ---------- */
.foot { background: var(--band); color: var(--band-ink); margin-top: 40px; padding: 8px 20px 90px; }
.foot > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.foot a { color: var(--band-ink); }
.signup { text-align: center; padding: 30px 0 22px; }
.signup h2 { font: 700 30px/1.15 var(--f-head); margin: 0 0 6px; }
.signup p { color: var(--band-soft); font: 400 16px var(--f-ui); }
.signup form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.signup input[type=email] { font: 400 17px var(--f-ui); padding: 11px 12px; border: 1px solid var(--band-soft); border-radius: var(--radius); width: 300px; max-width: 100%; background: var(--paper); color: var(--ink); }
.signup .btn { background: var(--brass); border-color: var(--brass); color: var(--band); }
.foot .ad { background: transparent; border-color: rgba(255,255,255,.18); color: var(--band-ink); }
.foot .ad a, .foot .ad-label, .foot .ad-adv { color: var(--band-ink) !important; }
.foot-src { font: 400 14px/1.55 var(--f-ui); color: var(--band-soft); border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; }
.foot-src .src { columns: 2 280px; padding-left: 18px; }
.foot-links { margin-top: 14px; }
.notice { background: var(--card); border: 1px solid var(--rule); padding: 18px; border-radius: var(--radius); margin: 24px 0; }
.notice.good { border-left: 5px solid var(--good); }
.notice.bad { border-left: 5px solid var(--late); }
.abox { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; margin: 18px 0; font-family: var(--f-ui); }
.abox h2 { margin-top: 0; font: 700 24px var(--f-head); }
.aform { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 10px 0; }
.aform.inline { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; }
.aform.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: none; }
.aform label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.aform input, .aform select { font: 400 16px var(--f-ui); padding: 9px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
code { background: var(--paper2); padding: 2px 6px; font-size: 13px; word-break: break-all; }

/* =========================================================
   RANCH LEDGER — iron band, brass rules, branding-iron stamps
   ========================================================= */
[data-theme="ledger"] .mast { border-bottom: 4px solid var(--brass); }
[data-theme="ledger"] .nav { background: #1b1916; }
[data-theme="ledger"] .badge { font-family: var(--f-head); font-weight: 700; font-size: 13px; padding: 4px 8px 3px; border: 2px solid currentColor; box-shadow: inset 0 0 0 1.5px var(--card), inset 0 0 0 3px currentColor; transform: rotate(-1.5deg); }
[data-theme="ledger"] .card .badge { margin-top: 2px; }
[data-theme="ledger"] .lane-h, [data-theme="ledger"] .box-h { border-bottom: 0; background-image: linear-gradient(var(--rule-strong), var(--rule-strong)), linear-gradient(var(--brass), var(--brass)); background-size: 100% 2px, 100% 1px; background-position: 0 100%, 0 calc(100% - 5px); background-repeat: no-repeat; padding-bottom: 12px; }
[data-theme="ledger"] .card { border-top: 3px solid var(--brass); }
[data-theme="ledger"] .story.lead h3 { font-weight: 700; }
[data-theme="ledger"] .how { border-top: 3px solid var(--brass); }

/* =========================================================
   FIELD JOURNAL — canvas, olive drab, stitched patches
   ========================================================= */
[data-theme="journal"] .mast { background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
[data-theme="journal"] .mast-in { padding-bottom: 6px; }
[data-theme="journal"] .mast-brand { margin: 6px 0 12px; border: 1.5px dashed rgba(239,232,211,.55); border-radius: 10px; padding: 14px 10px 16px; }
[data-theme="journal"] .mast-name { font-weight: 400; letter-spacing: 0; }
[data-theme="journal"] .mast-tag { color: #d9c48e; }
[data-theme="journal"] .orn i { width: 46px; box-shadow: none; }
[data-theme="journal"] .orn .ico { fill: none; stroke: currentColor; stroke-width: 1.4; }
[data-theme="journal"] .nav { border-top: 1.5px dashed rgba(239,232,211,.4); }
[data-theme="journal"] .nav-in { font-family: var(--f-head); font-weight: 400; font-size: 18px; }
[data-theme="journal"] .nav a.on { border-bottom-style: double; border-bottom-width: 4px; }
[data-theme="journal"] .badge { font-weight: 600; color: var(--card); padding: 5px 11px; border-radius: 999px; outline: 1px dashed rgba(255,255,255,.75); outline-offset: -4px; }
[data-theme="journal"] .badge-now { background: var(--good); }
[data-theme="journal"] .badge-soon { background: var(--soon); }
[data-theme="journal"] .badge-wait { background: var(--ink2); }
[data-theme="journal"] .badge-late { background: var(--late); }
[data-theme="journal"] .card, [data-theme="journal"] .gcard, [data-theme="journal"] .scard, [data-theme="journal"] .how, [data-theme="journal"] .wstep, [data-theme="journal"] .month, [data-theme="journal"] .factcard, [data-theme="journal"] .task, [data-theme="journal"] .supply { outline: 1px dashed var(--rule); outline-offset: -6px; }
[data-theme="journal"] .lane-h, [data-theme="journal"] .box-h { font-weight: 400; font-style: italic; font-size: 24px; border-bottom: 1.5px dashed var(--rule-strong); }
[data-theme="journal"] .box-h { font-size: 21px; }
[data-theme="journal"] .page-h, [data-theme="journal"] .sheet-h h1, [data-theme="journal"] .story h3, [data-theme="journal"] .card-name, [data-theme="journal"] .gcard b, [data-theme="journal"] summary, [data-theme="journal"] .facts dd, [data-theme="journal"] .signup h2, [data-theme="journal"] .task b, [data-theme="journal"] .s-top b, [data-theme="journal"] .month h3, [data-theme="journal"] .factcard h2, [data-theme="journal"] .how strong, [data-theme="journal"] .sheet h2, [data-theme="journal"] .wstep h2 { font-weight: 400; }
[data-theme="journal"] .btn { border-radius: 999px; }
[data-theme="journal"] .kicker { color: var(--brass); }
[data-theme="journal"] .story.lead { border-bottom: 1.5px dashed var(--rule-strong); }
[data-theme="journal"] .story.lead h3 { font-size: clamp(36px, 5.8vw, 58px); }
[data-theme="journal"] .foot { border-top: 1.5px dashed rgba(239,232,211,.4); }

/* =========================================================
   FEED STORE — sign board, block letters, painted tags
   ========================================================= */
[data-theme="feedstore"] .mast-brand { margin: 8px 0 14px; padding: 18px 12px 20px; border: 3px solid var(--brass); box-shadow: inset 0 0 0 4px var(--band), inset 0 0 0 6px var(--band-ink); }
[data-theme="feedstore"] .orn { display: none; }
[data-theme="feedstore"] .mast-name { font-weight: 400; letter-spacing: .02em; font-size: clamp(38px, 8.6vw, 86px); margin: 4px 0 10px; }
[data-theme="feedstore"] .mast-tag { font: 500 16px var(--f-head); text-transform: uppercase; letter-spacing: .14em; color: var(--band-ink); }
[data-theme="feedstore"] .nav { border-top: 0; background: var(--brass); }
[data-theme="feedstore"] .nav-in { font: 500 16px var(--f-head); text-transform: uppercase; letter-spacing: .08em; }
[data-theme="feedstore"] .nav a { color: #fff; opacity: .9; }
[data-theme="feedstore"] .nav a.on { border-bottom-color: #fff; }
[data-theme="feedstore"] .page-h, [data-theme="feedstore"] .story h3, [data-theme="feedstore"] .sheet-h h1, [data-theme="feedstore"] .lane-h, [data-theme="feedstore"] .box-h, [data-theme="feedstore"] .signup h2, [data-theme="feedstore"] .card-name, [data-theme="feedstore"] .sheet h2, [data-theme="feedstore"] .month h3, [data-theme="feedstore"] .factcard h2, [data-theme="feedstore"] .wstep h2 { text-transform: uppercase; font-weight: 600; letter-spacing: .01em; }
[data-theme="feedstore"] .story h3 { font-size: 22px; line-height: 1.15; }
[data-theme="feedstore"] .story.lead h3 { font-size: clamp(36px, 6vw, 62px); line-height: 1; }
[data-theme="feedstore"] .lane-h, [data-theme="feedstore"] .box-h { background: var(--ink); color: var(--paper); border: 0; padding: 7px 12px 6px; font-size: 18px; letter-spacing: .06em; }
[data-theme="feedstore"] .kicker { font: 600 14px var(--f-head); font-variant-caps: normal; text-transform: uppercase; letter-spacing: .1em; color: var(--brass); }
[data-theme="feedstore"] .badge { font: 600 12.5px/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: #fff; padding: 5px 14px 5px 9px; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); }
[data-theme="feedstore"] .badge-now { background: var(--good); }
[data-theme="feedstore"] .badge-soon { background: var(--soon); }
[data-theme="feedstore"] .badge-wait { background: #6b655b; }
[data-theme="feedstore"] .badge-late { background: var(--brass); }
[data-theme="feedstore"] .card, [data-theme="feedstore"] .gcard, [data-theme="feedstore"] .scard, [data-theme="feedstore"] .task, [data-theme="feedstore"] .wstep, [data-theme="feedstore"] .month, [data-theme="feedstore"] .how, [data-theme="feedstore"] .factcard, [data-theme="feedstore"] details, [data-theme="feedstore"] table.dates, [data-theme="feedstore"] .supply { border: 2px solid var(--ink); }
[data-theme="feedstore"] .card:hover, [data-theme="feedstore"] .gcard:hover { box-shadow: 4px 4px 0 var(--ink); }
[data-theme="feedstore"] .story { border-bottom-width: 1px; }
[data-theme="feedstore"] .story.lead { border-bottom: 6px solid var(--ink); }
[data-theme="feedstore"] .btn { font: 600 16px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .06em; }
[data-theme="feedstore"] .btn:hover { background: var(--brass); border-color: var(--brass); color: #fff; filter: none; }
[data-theme="feedstore"] .whatdo { background: var(--brass); color: #fff; font: 600 15px var(--f-head); text-transform: uppercase; letter-spacing: .06em; border-radius: 0; }
[data-theme="feedstore"] .importbox { border: 2px solid var(--ink); border-left: 10px solid var(--brass); }
[data-theme="feedstore"] .foot { border-top: 8px solid var(--brass); }
[data-theme="feedstore"] .signup .btn { color: #fff; }
[data-theme="feedstore"] .facts dd, [data-theme="feedstore"] .task b, [data-theme="feedstore"] .s-top b, [data-theme="feedstore"] summary, [data-theme="feedstore"] .gcard b { font-family: var(--f-head); font-weight: 500; letter-spacing: .01em; }

@media (prefers-reduced-motion: no-preference) { .btn, .card, .gcard { transition: box-shadow .15s, filter .15s, background-color .15s; } }
@media print {
  .mast-top, .nav, .whatdo, .ad, .foot, .g-actions, .hform, .reset, .s-date, .looks { display: none !important; }
  .mast { background: none; color: #000; } .mast-name { color: #000; }
  body { background: #fff; color: #000; }
}
