/* ==========================================================================
   M6 Capital — styles for the main pages (home, about, services, contact,
   legal, 404). Builds on site.css tokens and components.
   ========================================================================== */

/* Page hero photos (.hero--photo / .hero__photo) live in site.css: the Markets page uses them too. */

/* Sections that exist only to show the client what is still missing */
body:not(.show-placeholders) .placeholder-only { display: none; }
.placeholder + .placeholder, .placeholder-stack > * + * { margin-top: 10px; }
.placeholder a { color: #5A4612; }

/* Shared bits ------------------------------------------------------------ */
.page-hero-actions { margin-top: 24px; }
.section-foot { margin-top: clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.kicker-date { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 500; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-lime-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%234A5311' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-list strong { color: var(--ink); }
.section--dark .check-list li { color: var(--ink-inv-2); }
.section--dark .check-list strong { color: #fff; }

/* Outlook chips (.outlook-chips / .outlook-chip) are shared components in site.css. */

.byline { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-3); }
.byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-lime-100); }
.byline strong { color: var(--ink); font-weight: 600; }

.in-page-nav { position: relative; }
.in-page-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.in-page-nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
}
.in-page-nav a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; }

.is-disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* Direction marker used with price changes printed in the letter */
.chg-text { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg-text.is-up { color: var(--up); }
.chg-text.is-down { color: var(--down); }
.chg-text.is-flat { color: var(--flat); }

/* ==========================================================================
   HOME
   ========================================================================== */
/* Hero: the client's farm photo. The M6 logo painted on the grain bin must never sit under the
   copy: phones and tablets show the photo as a banner above the copy; desktop puts it in the
   right half, the full height of the hero, faded into the copy panel along its left edge.
   Hero text always sits on solid --brand-taupe-900. (The latest letter is teased in "Latest from
   Chris" further down the page, not on the photo.) */
.hero--home { background: var(--brand-taupe-900); }
.hero--home .container { padding-block: clamp(28px, 5vw, 44px) clamp(44px, 7vw, 96px); }
.hero-home__photo { display: block; position: relative; overflow: hidden; background: var(--brand-taupe-800); }
.hero-home__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-home__photo::after { content: ""; position: absolute; pointer-events: none; }
@media (max-width: 979px) {
  .hero-home__photo { aspect-ratio: 4 / 3; max-height: 440px; }
  .hero-home__photo img { object-position: 50% 45%; }
  /* Fade the field into the copy below; the bin (upper middle) stays clear */
  .hero-home__photo::after { left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, rgba(43,38,34,0), var(--brand-taupe-900)); }
}
@media (min-width: 720px) and (max-width: 979px) {
  .hero-home__photo { aspect-ratio: 2 / 1; }
  .hero-home__photo img { object-position: 48% 40%; }
}
@media (min-width: 980px) {
  .hero-home__photo { position: absolute; top: 0; right: 0; bottom: 0; left: 50%; }
  /* The bin sits at about 48% × 45% of the photo: keep it (and the windmill above it) centred */
  .hero-home__photo img { object-position: 52% 45%; }
  /* Soft left edge into the solid panel behind the copy */
  .hero-home__photo::after { inset: 0; background: linear-gradient(90deg, var(--brand-taupe-900) 0, rgba(43,38,34,.55) 7%, rgba(43,38,34,0) 22%); }
  .hero--home .container { padding-block: clamp(64px, 7vw, 104px); }
}
.home-hero { position: relative; display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; } }
.hero--home h1 { max-width: 16ch; font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; }
@media (min-width: 980px) { .hero--home h1 { font-size: clamp(2.75rem, 1rem + 2.9vw, 3.75rem); } }
.hero__brand {
  display: block; margin-bottom: 14px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-lime); line-height: 1.4;
}
.hero__brand-loc::before { content: "· "; }
/* Stack the two parts wherever the copy column is too narrow for one line */
@media (max-width: 519px), (min-width: 980px) and (max-width: 1059px) { .hero__brand > span { display: block; } .hero__brand-loc::before { content: none; } }
.hero--home .lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); margin-bottom: 28px; }
.hero-trust {
  list-style: none; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.14);
  display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); max-width: 640px;
}
.hero-trust li { font-size: var(--fs-sm); color: var(--ink-inv-2); line-height: 1.4; }
.hero-trust strong { display: block; font-family: var(--font-display); font-size: var(--fs-lg); color: #fff; font-weight: 800; margin-bottom: 2px; }

/* Card footer with the author byline (home "Latest from Chris" letter card) */
.letter-card__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Today's board: Chris's nine nearby contracts, grouped (3 across on tablet/desktop, 2 on phones) */
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 20px; }
.board-head h2 { margin-bottom: 0; }
.board-asof { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }
.board-asof::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-lime); box-shadow: 0 0 0 3px var(--brand-lime-100); }
.board-groups { display: grid; gap: 22px; }
.board-group__title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-taupe);
}
.board-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Photo band heading a board group (built by pages.js): the photos sit on the same 3-column grid as
   the tiles below; the group name is a dark label on the photo (white on ~#27221F: AA whatever the photo). */
.board-band { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: clamp(68px, 7.2vw, 104px); margin-bottom: 12px; }
@media (min-width: 720px) { .board-band { gap: 16px; margin-bottom: 16px; } }
.board-band__photo { display: block; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-alt); }
.board-band__photo--span3 { grid-column: span 3; }
.board-band__photo--span2 { grid-column: span 2; }
.board-band__photo img { width: 100%; height: 100%; object-fit: cover; }
.board-band__photo--angus-pasture-md img { object-position: 50% 56%; }
.board-band__photo--pasture-hogs-md img { object-position: 50% 68%; }
.board-band .board-group__title {
  position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 5px 10px 4px; border-radius: var(--radius-sm);
  background: rgba(22, 19, 17, .8); color: #fff; line-height: 1.3;
}
.board-band .board-group__title::after { content: none; }
.board-credit { margin: 10px 0 0; font-size: var(--fs-xs); color: var(--ink-3); }
.board-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.board-tile {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 14px 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.board-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
.board-tile:focus-visible { border-color: var(--brand-taupe); }
.board-tile__label { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; }
.board-tile__meta { font-size: .6875rem; color: var(--ink-3); letter-spacing: .04em; }
.board-tile__last { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; letter-spacing: -.01em; white-space: nowrap; }
.board-tile__unit { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.board-tile .pill-chg { justify-self: start; min-width: 0; font-size: var(--fs-xs); text-align: left; }
.board-tile__pct { font-weight: 500; opacity: .85; margin-left: 2px; }
.spark { width: 100%; height: 34px; margin-top: 8px; overflow: visible; }
/* Wide tiles (desktop): numbers on the left, sparkline on the right */
@media (min-width: 1000px) {
  .board-tile { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); column-gap: 18px; padding: 16px 18px 14px; }
  .board-tile > :not(.spark) { grid-column: 1; }
  .board-tile .spark { grid-column: 2; grid-row: 1 / span 4; align-self: center; height: 52px; margin-top: 0; }
}
.spark__line { fill: none; stroke: var(--brand-taupe); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark__area { fill: var(--brand-lime-100); }
.spark__dot { fill: var(--brand-lime-700); }
.board-note { margin-top: 16px; font-size: var(--fs-xs); color: var(--ink-3); max-width: 90ch; }

/* What you get */
.product-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.product-card { position: relative; }
.product-card h3 { font-size: var(--fs-lg); }
.product-card .tag { align-self: flex-start; }
.product-card .check-list { font-size: var(--fs-sm); gap: 8px; margin-top: 4px; }
.product-card .check-list li { padding-left: 26px; }
.product-card .check-list li::before { width: 16px; height: 16px; background-size: 12px; top: .25em; }
.product-card--feature { border-color: #D9DFA9; box-shadow: 0 0 0 1px #D9DFA9, var(--shadow-sm); }
.product-card__flag { position: absolute; top: 16px; right: 16px; }

/* Latest from Chris */
.latest-grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 900px) { .latest-grid { grid-template-columns: 1.35fr 1fr; } }
.latest-card { gap: 12px; }
.latest-card h3 { font-size: var(--fs-xl); }
.latest-card h3 a { color: inherit; text-decoration: none; }
.latest-card h3 a:hover { text-decoration: underline; }
.latest-card__type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.special-cover {
  margin: calc(-1 * clamp(20px, 2.5vw, 28px)) calc(-1 * clamp(20px, 2.5vw, 28px)) 6px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  aspect-ratio: 16 / 7; overflow: hidden; background: var(--brand-taupe-800);
}
.special-cover img { width: 100%; height: 100%; object-fit: cover; }
.special-cover--art {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 4px; padding: 18px 22px;
  aspect-ratio: 16 / 5;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(161,174,41,.55) 0 22%, transparent 23%),
    radial-gradient(90% 120% at 100% 0%, rgba(161,174,41,.25) 0 40%, transparent 41%),
    var(--brand-taupe-800);
}
.special-cover--art span { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-lime); }
.special-cover--art b { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: #fff; line-height: 1.15; }
/* Daily letters are lime everywhere (tags, report cards), special reports dark taupe */
.special-cover--daily {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(43,38,34,.16) 0 22%, transparent 23%),
    radial-gradient(90% 120% at 100% 0%, rgba(43,38,34,.08) 0 40%, transparent 41%),
    var(--brand-lime);
}
.special-cover--daily span { color: var(--brand-taupe-900); }
.special-cover--daily b { color: var(--brand-taupe-900); }

/* About teaser */
.about-teaser { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) { .about-teaser { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.photo-frame { position: relative; max-width: 420px; margin: 0; }
/* The original portrait file is only 600 px wide: keep the display size modest */
.about-teaser__media { max-width: 320px; }
@media (max-width: 859px) { .about-teaser__media { max-width: 560px; } }
.photo-frame img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.photo-frame::before {
  content: ""; position: absolute; z-index: 0; top: -14px; left: -14px; width: 46%; height: 34%;
  background: var(--brand-lime); border-radius: 0 60px 0 60px;
}
.photo-frame figcaption { position: relative; z-index: 1; font-size: var(--fs-xs); color: var(--ink-3); margin-top: 10px; }
@media (max-width: 719px) { .photo-frame::before { top: -8px; left: -8px; } }
.about-teaser .stats { margin: 28px 0; }
.about-teaser .stat__value { font-size: var(--fs-xl); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.bio-layout { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .bio-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.bio-layout .prose { max-width: 68ch; }
.bio-layout .prose h2 { font-size: var(--fs-xl); margin-top: 1.6em; }
.bio-layout .prose h2:first-child { margin-top: 0; }
.bio-aside { display: grid; gap: 20px; }
@media (min-width: 960px) { .bio-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.fact-list { margin: 0; display: grid; gap: 0; font-size: var(--fs-sm); }
.fact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--ink-3); font-weight: 600; }
.fact-list dd { margin: 0; color: var(--ink); }
/* In the narrow About sidebar, stack each label above its value */
.bio-aside .fact-list div { grid-template-columns: 1fr; gap: 2px; }

.claim {
  margin: 1.4em 0 .6em; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-alt); border-left: 4px solid var(--brand-taupe);
  font-family: var(--font-body); font-size: var(--fs-md); font-style: normal; color: var(--ink);
}
.claim p { margin: 0; }
.claim footer { margin-top: 8px; font-size: var(--fs-xs); color: var(--ink-3); }
.prose .claim { font-style: normal; }
.prose .placeholder { font-family: var(--font-body); line-height: 1.55; margin: 1em 0 1.25em; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 28px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--brand-lime);
}
.timeline li.is-now::before { background: var(--brand-lime); border-color: var(--brand-taupe-900); }
.timeline__when { display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-lime-700); }
.timeline h3 { font-size: var(--fs-lg); margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (min-width: 900px) {
  /* two columns that read top-to-bottom, then left-to-right */
  .timeline { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 56px; }
  .timeline::before { display: none; }
  .timeline li { padding: 0 0 32px 44px; }
  .timeline li::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line-strong); }
  .timeline li:nth-child(4)::after, .timeline li:last-child::after { display: none; }
}

.name-meaning { display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) { .name-meaning { grid-template-columns: auto 1fr; gap: 48px; } }
.name-meaning__glyphs { display: flex; gap: 14px; }
.glyph {
  display: grid; place-items: center; width: 108px; height: 108px; border-radius: 0 36px 0 36px; background: var(--brand-lime);
  font-family: var(--font-display); font-weight: 800; font-size: 3.5rem; color: var(--brand-taupe-900); line-height: 1;
}
.glyph--dark { background: var(--brand-taupe); color: #fff; }
.glyph-key { display: grid; gap: 12px; margin: 0; }
.glyph-key div { display: flex; gap: 12px; align-items: baseline; }
.glyph-key dt { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: var(--ink); min-width: 1.4em; }
.glyph-key dd { margin: 0; color: var(--ink-2); }


/* Why M6 + registration history, side by side on wide screens */
.about-closing { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-closing .name-meaning { grid-template-columns: 1fr; gap: 20px; align-items: start; max-width: 820px; }
@media (min-width: 720px) { .about-closing .name-meaning { grid-template-columns: auto 1fr; gap: 36px; align-items: center; } }
.about-closing .glyph { width: 84px; height: 84px; font-size: 2.75rem; border-radius: 0 28px 0 28px; }
.about-closing .name-meaning h2 { font-size: var(--fs-2xl); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.service-block { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 940px) { .service-block { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.service-block h2 { margin-bottom: 12px; }
.service-block .lede { margin-bottom: 24px; }
.contents-list { counter-reset: item; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contents-list li { position: relative; padding: 14px 16px 14px 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contents-list li::before {
  counter-increment: item; content: counter(item, decimal-leading-zero); position: absolute; left: 16px; top: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm); color: var(--brand-lime-700);
}
.contents-list strong { display: block; font-family: var(--font-display); font-size: var(--fs-md); color: var(--ink); margin-bottom: 2px; }
.contents-list span { color: var(--ink-2); font-size: var(--fs-sm); }
.sample-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sample-link {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink);
}
.sample-link:hover { border-color: var(--line-strong); background: var(--brand-lime-50); color: var(--ink); }
.sample-link__icon { width: 36px; height: 36px; border-radius: 8px; background: var(--brand-lime-100); color: var(--brand-taupe); display: grid; place-items: center; }
.sample-link__icon svg { width: 20px; height: 20px; }
.sample-link__title { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.sample-link__date { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 500; }
.sample-link::after { content: "→"; color: var(--brand-taupe); font-weight: 700; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card > .link-arrow { align-self: flex-start; }
@media (max-width: 939px) { .aside-card { position: static; } }

/* Services #join: where visitors ask Chris about joining the email list (no prices on the site). */
.join-band { display: grid; gap: 20px 48px; align-items: center; }
.join-band h2 { margin-bottom: 8px; }
.join-band p { color: var(--ink-3); font-size: var(--fs-lg); max-width: 640px; margin-bottom: 0; }
@media (min-width: 900px) { .join-band { grid-template-columns: minmax(0, 1fr) auto; } }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--ink); border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-alt); display: grid; place-items: center; font-size: 18px; line-height: 1; color: var(--brand-taupe);
}
.faq details[open] summary::after { content: "−"; background: var(--brand-lime-100); }
.faq summary:hover { background: var(--brand-lime-50); }
.faq .faq__body { padding: 0 18px 18px; color: var(--ink-2); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-layout { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 940px) { .contact-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.contact-card { gap: 0; padding: 0; overflow: hidden; }
.contact-card__head { padding: 22px 24px; background: var(--brand-taupe-900); color: var(--ink-inv-2); }
.contact-card__head h2 { color: #fff; font-size: var(--fs-xl); margin: 0 0 4px; }
.contact-card__head p { color: var(--ink-inv-2); margin: 0; font-size: var(--fs-sm); }
.contact-list { list-style: none; margin: 0; padding: 8px 24px 20px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-lime-100); color: var(--brand-taupe); display: grid; place-items: center; }
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list__label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.contact-list address { font-style: normal; }
.contact-list a { font-weight: 600; word-break: break-word; }
.contact-list a[href^="mailto"] { white-space: nowrap; }
.contact-list .link-arrow { margin-top: 6px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: var(--fs-2xl); margin-bottom: 6px; }
.form-card > p { color: var(--ink-3); }
.form .req-note { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }
.error-summary { border: 2px solid var(--down); background: var(--down-bg); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); }
.error-summary h3 { font-size: var(--fs-md); margin: 0 0 6px; color: var(--down); }
.error-summary ul { margin: 0; padding-left: 1.2em; font-size: var(--fs-sm); }
.error-summary a { color: var(--down); font-weight: 600; }
.error-summary:focus { outline: 3px solid var(--down); outline-offset: 2px; }
.form-status { display: grid; gap: 6px; }
.form-status[hidden] { display: none; }
.form-status h3 { font-size: var(--fs-md); margin: 0; }
.form-status p { margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.form-actions .small { color: var(--ink-3); margin: 0; }

/* ==========================================================================
   LEGAL (disclaimer, privacy)
   ========================================================================== */
.legal-layout { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 980px) { .legal-layout { grid-template-columns: 250px minmax(0, 1fr); } }
.legal-toc { font-size: var(--fs-sm); }
@media (min-width: 980px) { .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.legal-toc h2 { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; color: var(--ink-3); }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }
.legal { max-width: 72ch; font-size: 1.0625rem; }
.legal h2 { font-size: var(--fs-xl); margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h2:first-of-type { margin-top: 0; }
.legal h2 .num { color: var(--brand-lime-700); margin-right: 6px; }
.legal .placeholder { font-family: var(--font-body); margin: 1em 0; line-height: 1.55; }
.legal-meta { font-size: var(--fs-sm); color: var(--ink-3); }
/* Legal pages while site.json "legal_reviewed" is false: "Draft — this page is being reviewed by an
   attorney." A real element (not .placeholder), so launch builds keep it until counsel signs off. */
.legal-draft {
  display: flex; gap: 12px; align-items: flex-start; max-width: 62ch; margin: 20px 0 0; padding: 12px 16px;
  border-radius: var(--radius); background: #FFF6DD; border: 1px solid #EBD9A6; border-left: 4px solid #D9A93A;
  color: #4A3A10; font-size: var(--fs-sm); line-height: 1.55;
}
.legal-draft svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #8A6A16; }
.legal-draft p { margin: 0; color: inherit; }
.legal-draft strong { color: #3A2D08; }
.hero .legal-dates { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--ink-inv-2); }
/* Photo credits page */
.credit-list { list-style: none; margin: 1.25em 0 0; padding: 0; border-top: 1px solid var(--line); }
.credit-list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.credit-list__what { font-weight: 600; color: var(--ink); }
.credit-list__meta { font-size: var(--fs-sm); color: var(--ink-3); }

/* ==========================================================================
   404
   ========================================================================== */
.notfound-code {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; color: var(--brand-lime);
  font-size: clamp(3rem, 2rem + 5vw, 5.5rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 10px;
}
.link-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.link-tiles .card { gap: 6px; }
.link-tiles h3 { font-size: var(--fs-lg); margin: 0; }

/* board list reset */
.board-grid { list-style: none; margin: 0; padding: 0; }
.board-grid > li { display: flex; min-width: 0; }
.board-grid > li > .board-tile { width: 100%; }
.card-title-sm { font-size: var(--fs-md); margin: 0; letter-spacing: 0; }
.divider--tight { margin: 8px 0; }
.h-sub { font-size: var(--fs-xl); }
.placeholder--inline { display: inline-block; padding: 2px 8px; }
.card > .tag, .card > .latest-card__type > .tag { align-self: flex-start; }
@media (max-width: 959px) { .bio-aside { order: -1; } .bio-aside .photo-frame { max-width: 560px; } .bio-aside .fact-list div { grid-template-columns: 110px 1fr; gap: 12px; } }

/* About: Chris's title line under his name (hero) */
.about-role { margin: -4px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); letter-spacing: .02em; color: var(--brand-lime); }
.bio-text .bio-note { margin-top: 1.25em; font-family: var(--font-body); line-height: 1.55; }

/* Markets "Under construction" (pages/markets.html while site.json markets_live is false) */
.mk-soon { display: grid; gap: 24px 56px; align-items: start; padding: clamp(24px, 4vw, 44px); }
@media (min-width: 900px) { .mk-soon { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.mk-soon__intro h2 { margin: 14px 0 10px; font-size: var(--fs-2xl); }
.mk-soon__intro p { font-size: var(--fs-lg); max-width: 44ch; }
.mk-soon__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px;
  background: var(--brand-lime-100); border: 1px solid #D9DFA9; color: #4A5311;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.mk-soon__badge svg { width: 18px; height: 18px; }
.mk-soon__group h3 {
  font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-lime);
}
.mk-soon__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mk-soon__list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--ink);
}
.mk-soon__list li:last-child { border-bottom: 0; }
.mk-soon__list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-lime); }
