/* ==========================================================================
   M6 Capital Management — site design system
   Brand colors are sampled from the client's digital logo files (Sept 2026).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --brand-lime:        #A1AE29;   /* leaf — sampled from the client's logo files */
  --brand-lime-700:    #5C6614;   /* dark lime for text on light surfaces (AA 4.5:1+) */
  --brand-lime-100:    #EEF0D1;
  --brand-lime-50:     #F7F8EA;
  --brand-taupe:       #72665A;   /* m6 wordmark — sampled from the client's logo files */
  --brand-olive:       #5A4B2D;   /* reversed-logo background (client's M6 logo brown.bmp) */
  --brand-taupe-card:  #776B60;   /* business-card panel */
  --brand-taupe-900:   #2B2622;   /* deep sections / footer */
  --brand-taupe-800:   #3A3430;
  --brand-taupe-600:   #4B4440;
  --brand-taupe-300:   #B7ADA3;
  --brand-taupe-200:   #D9D1C8;

  /* Surfaces */
  --bg:          #FAF8F5;
  --surface:     #FFFFFF;
  --surface-alt: #F3EFE9;
  --surface-dark:#2B2622;
  --line:        #E4DDD4;
  --line-strong: #CFC6BB;

  /* Ink */
  --ink:    #1E1B19;
  --ink-2:  #45403C;
  --ink-3:  #6A635D;   /* muted — 5.5:1 on --bg */
  --ink-inv:   #FFFFFF;
  --ink-inv-2: #D9D1C8;

  /* Market direction (always paired with a sign/arrow — never color alone) */
  --up:        #1F7A3A;
  --up-bg:     #E6F2E9;
  --down:      #B42318;
  --down-bg:   #FBEAE8;
  --flat:      #6A635D;

  /* Commodity side-label colors from the printed Daily Market Letter.
     Always paired with the market name in dark text (never color alone). */
  --mkt-corn:     #E8E23A;
  --mkt-soybeans: #86C144;
  --mkt-wheat:    #D9B56B;
  --mkt-cattle:   #C9A48A;

  /* Type */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif:   "Source Serif 4", Georgia, "Times New Roman", serif;

  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-md:  1rem;
  --fs-lg:  1.125rem;
  --fs-xl:  1.375rem;
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-3xl: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --fs-4xl: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);

  /* Space & shape */
  --gutter: 16px;
  --container: 1200px;
  --container-narrow: 760px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(43, 38, 34, .06), 0 1px 1px rgba(43, 38, 34, .04);
  --shadow:    0 6px 24px rgba(43, 38, 34, .08), 0 2px 6px rgba(43, 38, 34, .05);
  --header-h:  76px;
}

@media (min-width: 720px) { :root { --gutter: 24px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-taupe); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
/* Two-tone focus ring: dark inner ring reads on light surfaces, lime outline reads on dark ones. */
:focus-visible { outline: 3px solid var(--brand-lime); outline-offset: 2px; border-radius: 2px; box-shadow: 0 0 0 2px var(--brand-taupe-900); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-4xl); font-weight: 800; }
h2 { font-size: var(--fs-3xl); font-weight: 700; }
h3 { font-size: var(--fs-xl);  font-weight: 700; }
h4 { font-size: var(--fs-lg);  font-weight: 700; }
p  { margin: 0 0 1em; text-wrap: pretty; }
.tnum, table { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.nowrap { white-space: nowrap; }
main:focus { outline: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--alt { background: var(--surface-alt); }
.section--white { background: var(--surface); }
.section--dark { background: var(--surface-dark); color: var(--ink-inv-2); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ink-inv); }
.section--dark a { color: var(--ink-inv); }
.section--dark .btn--primary, .section--dark .btn--primary:hover { color: var(--brand-taupe-900); }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-3); font-size: var(--fs-lg); }
.section--dark .section-head p { color: var(--ink-inv-2); }

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.3fr 1fr; } .split--wide-right { grid-template-columns: 1fr 1.3fr; } }
.stack > * + * { margin-top: 1rem; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-taupe);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--brand-lime); border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--brand-lime); }
.lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-lime); color: var(--brand-taupe-900); }
.btn--primary:hover { background: #B0BC3F; color: var(--brand-taupe-900); }
.btn--dark { background: var(--brand-taupe-900); color: #fff; }
.btn--dark:hover { background: var(--brand-taupe-800); color: #fff; }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--brand-taupe); color: var(--ink); background: var(--surface); }
.btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: var(--fs-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); text-decoration: none; color: var(--brand-taupe); display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
@media (pointer: coarse) { .link-arrow { min-height: 44px; } .breadcrumb a { display: inline-block; padding-block: 8px; } }

/* ---------- Top utility bar ---------- */
.utility-bar { background: var(--brand-taupe-900); color: var(--ink-inv-2); font-size: var(--fs-xs); }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.utility-bar a { display: inline-block; padding-block: 6px; color: var(--ink-inv-2); text-decoration: none; }
.utility-bar a:hover { color: #fff; }
.utility-bar__contact { display: flex; gap: 18px; flex-wrap: wrap; }
.utility-bar__loc { display: none; }
@media (min-width: 720px) { .utility-bar__loc { display: block; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-taupe); flex-shrink: 0; }
.brand__mark { width: 50px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: .06em; color: var(--brand-taupe); }
.brand__sub { font-family: var(--font-display); font-weight: 600; font-size: .58rem; letter-spacing: .235em; color: var(--brand-lime-700); margin-top: 5px; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none;
  position: relative;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-alt); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--brand-lime); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle[aria-expanded="true"] .icon-menu, .nav-toggle[aria-expanded="false"] .icon-close { display: none; }
@media (min-width: 900px) {
  /* The nav ends the header row: pull it out by one link's padding so "Contact" lines up with
     the container edge (and the utility bar's "Germantown, Tennessee" above it). */
  .site-nav { display: block; margin-right: -12px; }
  .nav-toggle { display: none; }
}
/* Mobile drawer */
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav.is-open { display: block; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 12px 24px rgba(43,38,34,.12); }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.mobile-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--brand-lime-700); }
.mobile-nav li:last-child a { border-bottom: 0; } /* the drawer ends with the last link */
.mobile-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand-lime); padding-left: 14px; }
@media (min-width: 900px) { .mobile-nav, .mobile-nav.is-open { display: none; } }

/* ---------- Quote ticker strip ---------- */
.ticker { background: var(--brand-taupe-800); color: var(--ink-inv); font-size: var(--fs-sm); border-bottom: 3px solid var(--brand-lime); }
.ticker[hidden] { display: none; }
.ticker__inner { display: flex; align-items: stretch; min-height: 42px; }
.ticker__label {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 var(--gutter);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-lime); background: var(--brand-taupe-900); text-decoration: none;
}
.ticker__viewport { display: flex; overflow: hidden; flex: 1; min-width: 0; position: relative; mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.ticker__track { display: flex; align-items: stretch; width: max-content; animation: ticker-scroll var(--ticker-duration, 60s) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
/* Visible pause/play toggle (WCAG 2.2.2) — the only ticker control in the tab order */
.ticker__pause {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 42px; padding: 0 12px;
  border: 0; border-left: 1px solid rgba(255,255,255,.12); background: var(--brand-taupe-900); color: var(--ink-inv-2); cursor: pointer;
  font: 600 var(--fs-xs)/1 var(--font-body);
}
.ticker__pause:hover { color: #fff; background: #211D1A; }
.ticker__pause:focus-visible { outline-offset: -3px; }
.ticker__pause svg { width: 14px; height: 14px; }
.ticker__pause .icon-play, .ticker.is-paused .ticker__pause .icon-pause { display: none; }
.ticker.is-paused .ticker__pause .icon-play { display: block; }
.ticker__pause-text { display: none; }
@media (min-width: 900px) { .ticker__pause-text { display: inline; } }
.ticker__set { display: flex; align-items: stretch; }
.ticker__item { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; white-space: nowrap; text-decoration: none; color: var(--ink-inv); }
/* Short centered divider between quotes (full-height borders read as broken table cells) */
.ticker__item::after { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 16px; margin-top: -8px; background: rgba(255,255,255,.16); }
.ticker__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.ticker__name { color: var(--ink-inv-2); font-weight: 500; }
/* Month tag: line-height 1 + 1px extra top padding optically centers Inter's all-caps text in an 18px pill */
.ticker__month { margin-left: -4px; padding: 4px 5px 3px; line-height: 1; border-radius: 4px; background: rgba(255,255,255,.08); color: var(--ink-inv-2); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ticker__last { font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker__chg { font-variant-numeric: tabular-nums; font-weight: 600; }
.ticker__chg.is-up { color: #7FD69A; }
.ticker__chg.is-down { color: #FF9A8F; }
.ticker__chg.is-flat { color: var(--ink-inv-2); }
.ticker__label { flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px; line-height: 1.1; }
.ticker__label-note { font-size: .625rem; letter-spacing: .08em; color: var(--ink-inv-2); font-weight: 600; }
@media (min-width: 900px) { .ticker__label { flex-direction: row; align-items: center; } .ticker__label-note { display: none; } }
.ticker__asof { flex-shrink: 0; display: none; align-items: center; padding: 0 14px; color: var(--ink-inv-2); font-size: var(--fs-xs); }
@media (min-width: 900px) { .ticker__asof { display: flex; } }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
  .ticker__track > [aria-hidden="true"] { display: none; }
  .ticker__pause { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink-inv-2);
  background:
    linear-gradient(100deg, rgba(43,38,34,.96) 0%, rgba(43,38,34,.88) 45%, rgba(43,38,34,.55) 100%),
    var(--hero-image, url("/static/img/photos/hero-field.svg")) center / cover no-repeat,
    var(--brand-taupe-900);
}
.hero .container { position: relative; padding-block: clamp(56px, 9vw, 120px); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--brand-lime); }
.hero .lede { color: var(--ink-inv-2); max-width: 58ch; }
.hero--page .container { padding-block: clamp(40px, 6vw, 72px); }
.hero--page h1 { font-size: var(--fs-3xl); max-width: 24ch; }
/* Page hero with a photo: <figure class="hero__photo"> (a <picture> + the photo credit) as the
   hero's first child. Each page's <picture> lists only its own photo, so no page fetches another
   page's image, and phones always get the 1000 px file (a <source media> with one candidate).
   Text never sits on the photo: phones/tablets show it as a banner above the copy that fades into
   the dark panel; wide screens show it in the right half, faded in from the left, with the copy
   stopping short of it. Per-photo crops: .hero__photo--<slug> below. */
.hero--photo { background: var(--brand-taupe-900); }
.hero__photo { position: relative; margin: 0; overflow: hidden; background: var(--brand-taupe-800); }
.hero__photo picture, .hero__photo img { display: block; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: var(--photo-pos, 50% 50%); }
.hero__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero__credit {
  position: absolute; z-index: 1; right: 8px; bottom: 8px; margin: 0; padding: 2px 8px; border-radius: var(--radius-sm);
  background: rgba(22, 19, 17, .78); color: #fff; font-size: .6875rem; line-height: 1.5; letter-spacing: .01em;
}
@media (max-width: 899px) {
  /* 16:7 banner, capped on tablets (a height, not aspect-ratio + max-height, which would narrow it) */
  .hero__photo { height: min(43.75vw, 320px); }
  .hero__photo img { object-position: var(--photo-pos-sm, var(--photo-pos, 50% 50%)); }
  .hero__photo::after { top: auto; height: 30%; background: linear-gradient(to bottom, rgba(43,38,34,0), rgba(43,38,34,.85)); }
}
@media (min-width: 900px) {
  .hero--photo {
    /* the copy stops short of the photo, which starts at the middle of the viewport */
    --hero-copy-max: calc(50vw - max(0px, (100vw - var(--container)) / 2) - var(--gutter) - 32px);
  }
  .hero--photo .container { z-index: 1; }
  .hero--photo .container > * { max-width: var(--hero-copy-max); }
  .hero__photo { position: absolute; z-index: 0; top: 0; bottom: 0; left: 50%; right: 0; }
  .hero__photo::after { background: linear-gradient(90deg, var(--brand-taupe-900) 0, rgba(43,38,34,.55) 8%, rgba(43,38,34,0) 26%); }
  .hero__credit { right: 12px; bottom: 10px; }
}
/* Crops (--photo-pos: wide screens, right half; --photo-pos-sm: the phone/tablet banner) */
.hero__photo--rancher-angus-sc { --photo-pos: 56% 42%; --photo-pos-sm: 56% 18%; }
.hero__photo--soybeans-grain-bins-md { --photo-pos: 72% 72%; --photo-pos-sm: 60% 82%; }
.hero__photo--wheat-sky-in { --photo-pos: 62% 50%; --photo-pos-sm: 55% 52%; }
.hero__photo--corn-planting-ky { --photo-pos: 30% 62%; --photo-pos-sm: 35% 62%; }
.hero__photo--soybean-rows-ar { --photo-pos: 50% 55%; --photo-pos-sm: 50% 60%; }
.hero__photo--red-barn-corn-md { --photo-pos: 100% 85%; --photo-pos-sm: 100% 100%; }
.hero__photo--hay-bales-wy { --photo-pos: 55% 62%; --photo-pos-sm: 55% 78%; }
/* the barn fills the banner's right side on phones: credit on the cornfield side */
@media (max-width: 899px) { .hero__photo--red-barn-corn-md .hero__credit { right: auto; left: 8px; } }
.breadcrumb { font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-inv-2); margin-bottom: 10px; }
.breadcrumb a { color: var(--ink-inv-2); text-decoration: none; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin-bottom: 2px; }
.card p { color: var(--ink-2); margin: 0; }
.card--link { text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card--link:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); color: inherit; }
.card--link:focus-visible { border-color: var(--brand-taupe); }
@media (prefers-reduced-motion: reduce) { .card--link, .card--link:hover, .btn:active { transform: none; } }
.card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-lime-100); color: var(--brand-taupe); display: grid; place-items: center; }
.card__icon svg { width: 26px; height: 26px; }
.card__foot { margin-top: auto; padding-top: 8px; }
.card__foot--links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; background: var(--surface-alt); color: var(--ink-2); border: 1px solid var(--line);
}
.tag--lime { background: var(--brand-lime-100); border-color: #D9DFA9; color: #4A5311; }
.tag--dark { background: var(--brand-taupe-800); border-color: var(--brand-taupe-800); color: #fff; }
/* Report types, the same everywhere: Daily Letter = lime, Special Report = dark taupe */
.tag--special { background: var(--brand-taupe-800); border-color: var(--brand-taupe-800); color: #fff; }
.hero .tag--special { background: #fff; border-color: #fff; color: var(--brand-taupe-900); }
/* "Archived sample": the September 2026 sample letters, kept to show the format (not current) */
.tag--archived { background: #FFF6DD; border-color: #EBD9A6; color: #6B5518; }

/* ---------- Market outlook chips (home, reports index, report pages) ---------- */
.outlook-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.outlook-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
}
.outlook-chip__mkt {
  padding: 2px 10px; border-radius: 999px; background: var(--chip-color, var(--surface-alt));
  font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.outlook-chip--corn { --chip-color: var(--mkt-corn); }
.outlook-chip--soybeans { --chip-color: var(--mkt-soybeans); }
.outlook-chip--wheat { --chip-color: var(--mkt-wheat); }
.outlook-chip--cattle, .outlook-chip--live-cattle, .outlook-chip--feeder-cattle { --chip-color: var(--mkt-cattle); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stat { border-left: 3px solid var(--brand-lime); padding: 4px 0 4px 16px; }
.stat__value { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); color: var(--ink); line-height: 1.1; }
.section--dark .stat__value { color: #fff; }
.stat__label { font-size: var(--fs-sm); color: var(--ink-3); }
.section--dark .stat__label { color: var(--ink-inv-2); }

/* ---------- Tables (shared) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th, .data-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table thead th { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-alt); position: sticky; top: 0; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--brand-lime-50); }
.data-table .group-row td { background: var(--surface-alt); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-taupe); }

.chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.chg.is-up { color: var(--up); }
.chg.is-down { color: var(--down); }
.chg.is-flat { color: var(--flat); }
.pill-chg { display: inline-block; min-width: 64px; padding: 2px 8px; border-radius: 6px; text-align: right; }
.pill-chg.is-up { background: var(--up-bg); }
.pill-chg.is-down { background: var(--down-bg); }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-alt); border: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-sm); }
.notice--lime { background: var(--brand-lime-50); border-color: #DEE3B4; }
.notice strong { color: var(--ink); }

/* Prototype placeholders — marks content we still need from the client.
   Hide all of them at once by removing body.show-placeholders. */
.placeholder {
  border: 2px dashed #C9B98F; background: repeating-linear-gradient(135deg, #FFFBEF, #FFFBEF 10px, #FFF6DD 10px, #FFF6DD 20px);
  border-radius: var(--radius); padding: 14px 16px; color: #6B5518; font-size: var(--fs-sm);
}
.placeholder::before { content: "Needed from client · "; font-weight: 700; }
body:not(.show-placeholders) .placeholder { display: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 13px; min-height: 44px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-taupe-900); box-shadow: 0 0 0 1px var(--brand-taupe-900), 0 0 0 4px var(--brand-lime); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand-taupe); }
.field input[type="checkbox"], .field input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 3px 0 0; flex-shrink: 0; }
.check--block { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.field .check { font-weight: 400; color: var(--ink-2); }
.field-error { font-size: var(--fs-sm); font-weight: 600; color: var(--down); display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: "!"; flex-shrink: 0; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--down); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.field-error[hidden] { display: none; }
.field [aria-invalid="true"], .check--block[data-invalid="true"] { border-color: var(--down); box-shadow: 0 0 0 1px var(--down); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); padding: 0; margin-bottom: 6px; }
.req { color: var(--down); font-weight: 700; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Long-form prose (reports) ---------- */
.prose { font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.75; color: var(--ink); }
.prose h2, .prose h3 { font-family: var(--font-display); margin-top: 1.8em; }
.prose h2 { font-size: var(--fs-2xl); }
.prose h3 { font-size: var(--fs-xl); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--ink-3); margin-top: 8px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand-lime); color: var(--ink-2); font-style: italic; }
.prose strong { font-weight: 700; }
.prose a { color: var(--brand-taupe); }
.prose table { font-family: var(--font-body); font-size: var(--fs-sm); }

/* ---------- Footer ----------
   Olive-brown (--brand-olive) is the background of the client's reversed logo artwork,
   so the reversed logo sits on its own color here. Legal fine print sits on a darker band. */
.site-footer { background: var(--brand-olive); color: var(--ink-inv-2); font-size: var(--fs-sm); }
.site-footer a { color: var(--ink-inv-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--brand-lime); box-shadow: 0 0 0 2px #2B2418; }
.footer-main { display: grid; gap: 32px; padding-block: 56px 40px; grid-template-columns: 1fr; }
@media (max-width: 719px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer-main > :first-child, .footer-main > :last-child { grid-column: 1 / -1; } }
@media (min-width: 720px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }
@media (min-width: 1000px) { .footer-main { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-logo { width: 130px; margin-bottom: 16px; }
.footer-logo svg { width: 100%; height: auto; }
.footer-brand p { max-width: 36ch; }
.site-footer .footer-title { font-family: var(--font-display); color: #fff; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.footer-markets-note { margin: 10px 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-inv-2); max-width: 24ch; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-legal-links a { display: inline-block; padding: 6px 0; }
.site-footer .footer-legal-links { display: flex; gap: 4px 20px; }
.site-footer h4 { color: #fff; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer ul a { display: inline-block; padding-block: 6px; }
.site-footer address { font-style: normal; line-height: 1.7; }
/* #4A3D24 band: #D0C7BB text is 6.3:1 */
.footer-legal { background: #4A3D24; padding-block: 24px 32px; font-size: var(--fs-xs); color: #D0C7BB; line-height: 1.6; }
.footer-legal p { margin: 0 0 10px; max-width: 110ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-legal a { color: #EDE7DF; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: #fff; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.hide-sm { display: none; } @media (min-width: 720px) { .hide-sm { display: initial; } }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.divider { height: 1px; background: var(--line); border: 0; margin: 32px 0; }
