/* Component vocabulary: navigation, buttons, eyebrows, papers, the product frame,
   lists, timeline, note sample, trust panel, FAQ, final CTA form, footer.
   One language for the whole page; later tasks mount into these names. */

/* ---------------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------------- */

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  height: var(--nav-height);
  padding-inline: var(--gutter);
  color: var(--soil);
  --focus-ring: var(--crop);
  --button-bg: var(--soil);
  --button-fg: var(--ivory);
}

.site-nav nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-self: start;
}

.site-nav .nav-signin {
  margin-left: 0;
}

.site-nav .button {
  padding: .62em 1em;
  font-size: .875rem;
}

.wordmark {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.012em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(10px, 1.5vw, 22px);
}

.wordmark-mark {
  width: 26px;
  height: 18px;
  color: var(--crop);
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  list-style: none;
}

.nav-links a,
.nav-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
  text-decoration-color: transparent;
  white-space: nowrap;
}

.wordmark,
.nav-menu > summary,
.nav-menu .nav-links a,
.nav-signin,
.site-nav .button {
  min-width: 44px;
  min-height: 44px;
}

.nav-links a:hover,
.nav-signin:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: .3em;
}

/* Compact bar: JavaScript adds .is-compact once the hero scrolls out (Task 3). */
.site-nav.is-compact {
  position: fixed;
  height: var(--nav-compact-height);
  background: var(--ivory);
  color: var(--soil);
  border-bottom: 1px solid var(--rule);
  --focus-ring: var(--crop);
  --button-bg: var(--soil);
  --button-fg: var(--ivory);
}

.site-nav.is-compact .wordmark-mark {
  color: var(--crop);
}

/* Native disclosure. ≥ 961px the summary hides and the links render inline;
   ≤ 960px it is a Menu control opening a paper panel under the bar. */
/* Static below 960px so the open panel positions against the bar, not the 30px control. */
.nav-menu {
  position: static;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.nav-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 2px;
  font-size: var(--text-small);
  font-weight: 500;
  white-space: nowrap;
}

.nav-menu > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-menu[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}

/* ≤ 480px the word gives way to two furrow strokes; the word stays for assistive technology. */
@media (max-width: 480px) {
  .nav-menu > summary {
    display: inline-grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    width: 44px;
    min-height: 44px;
    padding: 0 9px;
  }

  .nav-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nav-menu > summary::before,
  .nav-menu > summary::after {
    content: "";
    width: 24px;
    height: 0;
    border: 0;
    border-top: 1.5px solid currentColor;
    transform: none;
  }

  .nav-menu[open] > summary::before {
    transform: translateY(3.75px) rotate(45deg);
  }

  .nav-menu[open] > summary::after {
    transform: translateY(-3.75px) rotate(-45deg);
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: flex;
  }

  .site-nav nav {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    margin-left: auto;
  }

  .wordmark,
  .nav-actions {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
  }
}

.nav-menu .nav-links {
  position: absolute;
  top: calc(var(--nav-height) - 8px);
  left: var(--gutter);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 264px;
  padding: 8px;
  background: var(--ivory);
  color: var(--soil);
  border: 1px solid var(--rule);
  border-radius: var(--radius-paper);
  box-shadow: var(--paper-shadow);
  --focus-ring: var(--crop);
}

.nav-menu .nav-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 3px;
}

.nav-menu .nav-links a:hover {
  background: var(--ivory-3);
  text-decoration: none;
}

@media (min-width: 961px) {
  @supports selector(::details-content) {
    .nav-menu > summary {
      display: none;
    }

    .nav-menu::details-content {
      content-visibility: visible;
    }

    .nav-menu .nav-links {
      position: static;
      flex-direction: row;
      align-items: center;
      gap: clamp(16px, 2vw, 28px);
      min-width: 0;
      padding: 0;
      background: transparent;
      color: inherit;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      --focus-ring: inherit;
    }

    .nav-menu .nav-links a {
      display: inline-flex;
      padding: 0;
      border-radius: 0;
    }

    .nav-menu .nav-links a:hover {
      background: transparent;
      text-decoration: underline;
    }
  }
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .85em 1.3em;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  background: var(--button-bg);
  color: var(--button-fg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.button:hover {
  background: color-mix(in srgb, var(--button-bg), #000 6%);
}

.button--primary {
  background: var(--button-bg);
  color: var(--button-fg);
}

.button--secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.button--secondary:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

/* ---------------------------------------------------------------------------
   Eyebrow, lede, labels
   --------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--accent);
}

.hero-message > .eyebrow {
  letter-spacing: .025em;
  text-transform: none;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 24px;
  height: 0;
  border-top: 1px solid currentColor;
}

.lede {
  font-size: var(--text-lede);
  line-height: 1.45;
  color: var(--ink-secondary);
  max-width: var(--measure-lede);
  text-wrap: pretty;
}

.label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ---------------------------------------------------------------------------
   Papers: the scattered sources. Four labels are fixed by the contract.
   Give a .paper a --tilt between -4deg and 4deg for its resting rotation.
   --------------------------------------------------------------------------- */

.paper {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--ivory-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-paper);
  box-shadow: var(--paper-shadow);
  padding: 14px;
  transform: rotate(var(--tilt, 0deg));
  overflow: hidden;
}

.paper-label {
  display: block;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ink-2);
  max-width: none;
}

/* Three lines of "text" under the label. */
.paper::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 30%;
  top: 44px;
  height: 30px;
  background: repeating-linear-gradient(to bottom, var(--rule-strong) 0 1px, transparent 1px 10px);
}

/* Faint paper vignette. */
.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 30%, transparent 60%, rgba(23,32,24,.06) 100%);
}

/* ---------------------------------------------------------------------------
   Product frame: the invented workspace. Paper-ivory chrome, hairlines, tabular figures.
   Labels inside a frame are 13px, never smaller.
   --------------------------------------------------------------------------- */

.product-frame,
.paper {
  /* Light-ground contextual tokens, whatever ground the surface sits on. */
  --hairline: var(--rule);
  --accent: var(--crop);
  --ink-secondary: var(--ink-2);
  --focus-ring: var(--crop);
  --button-bg: var(--soil);
  --button-fg: var(--ivory);
}

.product-frame {
  --text-label: .8125rem;
  width: min(100%, 820px);
  background: var(--ivory-2);
  color: var(--soil);
  border: 1px solid var(--rule);
  border-radius: var(--radius-frame);
  box-shadow: var(--frame-shadow);
  overflow: hidden;
  font-size: var(--text-small);
  line-height: 1.5;
  text-align: left;
}

.frame-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}

.frame-head h3,
.frame-title {
  max-width: none;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
}

.frame-id {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.frame-tag {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-chip);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.frame-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.frame-main,
.frame-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-content: start;
  padding: 20px;
  min-width: 0;
}

.frame-main > *,
.frame-aside > * {
  min-width: 0;
  max-width: 100%;
}

.frame-main {
  border-right: 1px solid var(--rule);
}

.frame-aside {
  background: rgba(23,32,24,.025);
}

.ledger {
  margin: 0;
}

.ledger-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ink-2);
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(7em, 1fr) fit-content(58%);
  column-gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}

.ledger-row dt {
  color: var(--ink-2);
  font-size: var(--text-small);
}

.ledger-row dt .state {
  margin-left: 8px;
  vertical-align: middle;
}

.ledger-date {
  margin-left: 8px;
  font-weight: 400;
  color: var(--ink-2);
}

.ledger-block {
  display: grid;
  gap: 0;
}

.ledger-row dd {
  font-size: var(--text-figure);
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  text-align: right;
  text-wrap: balance;
}

.ledger-row--lead dd {
  font-size: 1.25rem;
  letter-spacing: -.01em;
}

/* States: always words, never color alone. The marker is a small square drawn with borders. */
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ink-2);
  white-space: nowrap;
}

.state::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
}

.state--source::before {
  background: currentColor;
}

.state--calc {
  color: var(--crop);
}

.state--calc::before {
  background: currentColor;
  box-shadow: inset 0 0 0 2px var(--ivory-2);
}

.state--missing {
  color: var(--state-missing);
  text-decoration: underline dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.state--missing::before {
  background: transparent;
}

.state--zero::before {
  height: 0;
  border-width: 1px 0 0;
}

.state--uncertain::before {
  border-style: dashed;
}

/* Sources: the four papers as compact rows. */
.sources {
  list-style: none;
  display: grid;
}

.sources li,
.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}

.sources--compact li {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 0;
}

.source-kind {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.source-title {
  grid-column: 1 / -1;
  font-weight: 500;
  text-wrap: pretty;
}

.source-date {
  font-size: var(--text-figure);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: nowrap;
}

/* Direction: the one gold in view. */
.direction {
  display: grid;
  gap: 8px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--harvest);
}

.direction-label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.direction-summary {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: none;
}

.rationale {
  list-style: none;
  display: grid;
  gap: 4px;
  color: var(--ink-2);
  font-size: var(--text-small);
}

.rationale li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.rationale li::before {
  content: "";
  height: 1px;
  background: var(--rule-strong);
  transform: translateY(-.35em);
}

/* Next actions: tabular numbering. */
.actions {
  list-style: none;
  counter-reset: action;
  display: grid;
}

.actions-title {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 8px;
}

.actions li {
  counter-increment: action;
  display: grid;
  grid-template-columns: 2.25em minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--rule);
}

.actions li::before {
  content: counter(action, decimal-leading-zero);
  font-size: var(--text-figure);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.missing-note {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-small);
  color: var(--state-missing);
  max-width: none;
}

.missing-note::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  transform: translateY(-1px);
}

.missing-note:has(.state)::before {
  display: none;
}

/* Chips: square-ish, never a pill. No fill unless a state. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-chip);
  background: transparent;
  color: var(--ink-2);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}

.chip--open {
  color: var(--crop);
  border-color: var(--crop);
}

.chip--working {
  color: var(--crop);
  background: var(--crop-wash);
  border-color: transparent;
}

.chip--resolved {
  color: var(--ink-2);
  background: var(--ivory-3);
  border-color: transparent;
}

.chip--missing {
  color: var(--state-missing);
  background: var(--state-missing-wash);
  border-color: transparent;
}

/* Focus-crop: inside a fixed-aspect plate a frame shows its top portion behind a paper edge. */
@media (max-width: 640px) {
  .frame-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .frame-main {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .frame-tag {
    margin-left: 0;
  }

}

/* ---------------------------------------------------------------------------
   Hairline-ruled lists: story steps and core layers (numbered), concepts, commitments.
   --------------------------------------------------------------------------- */

.story-steps,
.core-layers {
  list-style: none;
  counter-reset: step;
}

.story-step,
.core-layer {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 12px;
  padding: clamp(24px, 3vw, 34px) 0;
  border-top: 1px solid var(--hairline);
}

.story-step:last-child,
.core-layer:last-child {
  border-bottom: 1px solid var(--hairline);
}

.story-step::before,
.core-layer::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: .45em;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.story-step h3,
.core-layer h3 {
  grid-column: 2;
  max-width: 24ch;
}

.story-step p,
.core-layer p {
  grid-column: 2;
  margin-top: 10px;
  color: var(--ink-secondary);
  max-width: 44ch;
  text-wrap: pretty;
}

.ag-concepts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: var(--grid-gap);
  border-bottom: 1px solid var(--rule);
}

.ag-concepts li {
  padding: 15px 0;
  border-top: 1px solid var(--rule);
  font-size: var(--text-body);
  line-height: 1.4;
  text-wrap: pretty;
}

/* The season figure: the season line over a sky wash, stage names beneath each stop. */
.season-figure {
  position: relative;
  border-top: 1px solid var(--rule);
}

.season-line {
  position: relative;
  padding: clamp(20px, 2.5vw, 32px) 0 6px;
  color: var(--crop);
  background: var(--sky-wash);
}

.season-line svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.season-line circle {
  fill: var(--crop);
}

/* The one gold in this section: the marker that travels the season. */
.season-line .season-marker circle {
  fill: var(--harvest);
  stroke: var(--ivory);
  stroke-width: 2;
}

.season-marker {
  transform: translate(var(--mx, 120px), var(--my, 128px));
}

.season-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule);
}

.season-stage {
  margin: -1px 0 0;
  padding: 12px 4px 10px;
  border: 0;
  border-top: 2px solid transparent;
  background: none;
  text-align: center;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ink-2);
  cursor: pointer;
}

.season-stage:hover {
  color: var(--soil);
}

.season-stage[aria-current="true"] {
  color: var(--soil);
  border-top-color: var(--soil);
}

.season-panels {
  margin-top: 18px;
}

.season-panel {
  margin: 0;
}

.season-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
}

.season-panel-title dt {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.season-panel-title dd {
  font-size: var(--text-small);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums lining-nums;
}

.has-js .season-panel {
  display: none;
}

.has-js .season-figure[data-stage="planning"] .season-panel[data-stage="planning"],
.has-js .season-figure[data-stage="planting"] .season-panel[data-stage="planting"],
.has-js .season-figure[data-stage="growing"] .season-panel[data-stage="growing"],
.has-js .season-figure[data-stage="harvest"] .season-panel[data-stage="harvest"],
.has-js .season-figure[data-stage="payout"] .season-panel[data-stage="payout"] {
  display: block;
}

html:not(.has-js) .season-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}

.season-note {
  margin-top: 14px;
  font-size: var(--text-small);
  color: var(--ink-2);
}

/* ---------------------------------------------------------------------------
   Timeline: hairline spine, tabular step numbers, square nodes.
   --------------------------------------------------------------------------- */

.timeline {
  position: relative;
  list-style: none;
  counter-reset: event;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule-strong);
}

.timeline li {
  counter-increment: event;
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.005em;
}

.event-effect {
  --text-label: .8125rem;
  display: block;
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.event-effect .state,
.event-effect .chip {
  margin-right: 6px;
  vertical-align: middle;
}

.event-effect--direction {
  padding-left: 12px;
  border-left: 3px solid var(--harvest);
  color: var(--soil);
}

.event-effect--team {
  padding-left: 12px;
  border-left: 3px solid var(--crop);
  color: var(--soil);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--rule);
}

.timeline li::before {
  content: counter(event, decimal-leading-zero);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: -28px;
  top: calc(50% - 4px);
  width: 7px;
  height: 7px;
  background: var(--ivory);
  border: 1px solid var(--crop);
}

/* ---------------------------------------------------------------------------
   Team Feedback notes: an operational layer with its own vocabulary. Never
   .sources, .paper or .ledger — a note is not borrower evidence.
   --------------------------------------------------------------------------- */

.notes {
  display: grid;
  gap: 18px;
  align-content: start;
}

.note {
  --text-label: .8125rem;
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--ivory-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-paper);
  box-shadow: var(--paper-shadow);
  --hairline: var(--rule);
  --accent: var(--crop);
  --ink-secondary: var(--ink-2);
  --focus-ring: var(--crop);
  --button-bg: var(--soil);
  --button-fg: var(--ivory);
}

.note--general {
  gap: 12px;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: none;
}

.note-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.note-kind {
  margin-right: auto;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  max-width: none;
}

.note-scope {
  max-width: none;
  font-variant-numeric: tabular-nums;
}

.note-trail {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip--state {
  color: var(--ink-3);
  border-color: var(--rule);
}

.note-trail .chip--state {
  transition: none;
}

.chip--state.is-current,
.chip--state[aria-current="true"] {
  color: var(--soil);
  border-color: var(--soil);
}

.note[data-state="Working"] .chip--working.is-current {
  color: var(--crop);
  background: var(--crop-wash);
  border-color: transparent;
}

.note[data-state="Resolved"] .chip--resolved.is-current,
.note--general .chip--resolved.is-current {
  color: var(--ink-2);
  background: var(--ivory-3);
  border-color: transparent;
}

.note-text {
  font-size: 1.0625rem;
  line-height: 1.5;
  max-width: none;
  text-wrap: pretty;
}

.note--general .note-text {
  font-size: var(--text-body);
}

.note-meta {
  font-size: var(--text-small);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  max-width: none;
}

.note-history-title {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  max-width: none;
}

.note-history-list {
  list-style: none;
}

.note-history-list li {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--text-small);
}

.note-history-list li[hidden] {
  display: none;
}

.note-date {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.note-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

html:not(.has-js) .note-controls {
  display: none;
}

.note-advance {
  padding: .6em 1em;
  font-size: var(--text-small);
}

.note-advance:disabled {
  opacity: .55;
  cursor: default;
}

.note-reset {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: .18em;
  cursor: pointer;
}

.note-reset:hover {
  color: var(--soil);
  text-decoration-color: currentColor;
}

.note-reset:disabled {
  opacity: .5;
  cursor: default;
}

/* The account grid, complete, over the late-afternoon field. */
.cta-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--on-dark);
  opacity: .55;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Trust panel: commitments are sentences with a leading rule, never cards.
   --------------------------------------------------------------------------- */

.trust-panel {
  padding: clamp(32px, 4.5vw, 64px);
  background: var(--ivory-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-paper);
}

.commitments {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--grid-gap);
}

.commitments li {
  position: relative;
  padding: 26px 0 30px;
  border-top: 1px solid var(--rule);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

.commitments li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 1px;
  background: var(--crop);
}

/* ---------------------------------------------------------------------------
   FAQ: native details, hairline rules, a plus drawn with two borders.
   --------------------------------------------------------------------------- */

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  column-gap: 24px;
  align-items: center;
  min-height: 56px;
  padding: 18px 0;
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.005em;
}

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
}

.faq-list summary::before {
  width: 14px;
  border-top: 1px solid var(--soil);
}

.faq-list summary::after {
  height: 14px;
  border-left: 1px solid var(--soil);
}

.faq-list details[open] summary::after {
  transform: rotate(90deg);
}

.faq-list summary:hover::before,
.faq-list summary:hover::after {
  border-color: var(--crop);
}

.faq-list details p {
  padding: 0 48px 24px 0;
  color: var(--ink-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------
   Contact form on soil, and the footer.
   --------------------------------------------------------------------------- */

.contact-form {
  --text-label: .8125rem;
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px) clamp(32px, 4vw, 48px);
  background: var(--soil);
  color: var(--on-dark);
  text-align: left;
  --focus-ring: var(--harvest);
  --button-bg: var(--ivory);
  --button-fg: var(--soil);
}

.field {
  display: grid;
  gap: 8px;
  max-width: none;
}

.field > label,
.field legend {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--on-dark-2);
}

.field legend {
  margin-bottom: 12px;
}

.field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(244,240,230,.06);
  border: 1px solid var(--rule-on-dark);
  border-radius: var(--radius-button);
  color: var(--on-dark);
  font-size: 1rem;
}

.field input[type="text"]:hover {
  border-color: rgba(244,240,230,.32);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  font-size: var(--text-body);
}

.choice label {
  color: var(--on-dark);
}

.choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--crop-soft);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 6px;
  max-width: none;
}

.form-actions .nav-signin {
  color: var(--on-dark);
}

.form-note {
  font-size: var(--text-small);
  color: var(--on-dark-2);
}

.site-footer {
  background: var(--soil);
  color: var(--on-dark-2);
  font-size: var(--text-small);
  --focus-ring: var(--harvest);
}

.site-footer .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px var(--grid-gap);
  padding-block: 40px 44px;
  border-top: 1px solid var(--rule-on-dark);
}

.footer-brand {
  color: var(--on-dark);
  font-weight: 500;
}

.footer-copyright {
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}

.footer-prototype {
  grid-column: 1 / -1;
  max-width: var(--measure);
}

@media (max-width: 640px) {
  .site-nav {
    gap: 10px;
    padding-inline: 16px;
  }

  html:not(.has-js) .season-panels {
    grid-template-columns: 1fr;
  }

  .site-nav .button {
    padding: .6em .75em;
    font-size: .8125rem;
  }

  .wordmark {
    gap: 7px;
    font-size: .9375rem;
  }

  .wordmark-mark {
    width: 20px;
    height: 14px;
  }

  .nav-links a,
  .nav-signin {
    font-size: .875rem;
  }

  .nav-menu .nav-links {
    left: 16px;
    right: 16px;
    min-width: 0;
  }

  .ag-concepts {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .commitments {
    grid-template-columns: 1fr;
  }

  .commitments li {
    padding: 22px 0 24px;
    font-size: 1.125rem;
  }

  .faq-list summary {
    font-size: 1.125rem;
  }

  .faq-list details p {
    padding-right: 24px;
  }

  .timeline li {
    font-size: 1.0625rem;
  }

  .book-title {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }

  .book-title .frame-tag {
    white-space: normal;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
  }

  .footer-copyright {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 3px;
    padding-inline: 8px;
  }

  .site-nav nav,
  .wordmark,
  .nav-actions {
    flex: none;
  }

  .nav-actions {
    gap: 3px;
  }

  .site-nav .button {
    padding-inline: .55em;
    font-size: .75rem;
  }

  .wordmark {
    gap: 4px;
    font-size: .8125rem;
  }

  .wordmark-mark {
    width: 16px;
    height: 12px;
  }

  .nav-signin {
    font-size: .75rem;
  }

  .nav-menu .nav-links {
    left: 8px;
    right: 8px;
  }
}

/* ---------------------------------------------------------------------------
   Quiet-field lifecycle: one solid account record on the ivory product threshold.
   --------------------------------------------------------------------------- */

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}

.season-ledger-account {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  background: var(--ivory-2);
  color: #172018;
  border: 1px solid rgba(23, 32, 24, .28);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(23, 32, 24, .08);
  --focus-ring: var(--crop);
}

.season-ledger-account-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 18px;
  min-height: 48px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(23, 32, 24, .18);
  font-size: .8125rem;
  line-height: 1.3;
}

.season-ledger-account-head strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.season-ledger-account-head span:last-child {
  padding-left: 10px;
  border-left: 1px solid rgba(23, 32, 24, .24);
  color: #557446;
  font-weight: 650;
}

.lifecycle-fallback,
.lifecycle-controls {
  border-bottom: 1px solid rgba(23, 32, 24, .22);
}

.lifecycle-fallback {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
}

.lifecycle-fallback li {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-right: 1px solid rgba(23, 32, 24, .12);
  font-size: .8125rem;
  font-weight: 600;
}

.lifecycle-fallback li:last-child {
  border-right: 0;
}

.lifecycle-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lifecycle-button,
.lifecycle-control {
  position: relative;
  min-height: 44px;
  margin: 0;
  padding: 14px 10px 10px;
  border: 0;
  border-right: 1px solid rgba(23, 32, 24, .12);
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(23, 32, 24, .68);
  font: 600 .8125rem/1.25 var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.lifecycle-button:last-child,
.lifecycle-control:last-child {
  border-right: 0;
}

.lifecycle-button::before,
.lifecycle-control::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 10px;
  width: 6px;
  height: 3px;
  background: rgba(23, 32, 24, .34);
}

.lifecycle-button:hover,
.lifecycle-control:hover {
  color: #172018;
}

.lifecycle-button[aria-pressed="true"],
.lifecycle-control[aria-pressed="true"] {
  border-color: #D5A94F;
  color: #172018;
  font-weight: 650;
}

.lifecycle-button[aria-pressed="true"]::before,
.lifecycle-control[aria-pressed="true"]::before {
  background: #D5A94F;
}

.lifecycle-button:focus-visible,
.lifecycle-control:focus-visible,
.lifecycle-stop:focus-visible {
  position: relative;
  z-index: 3;
  outline: 2px solid var(--focus-ring);
  outline-offset: -3px;
}

.lifecycle-stop {
  display: block;
  min-height: 44px;
  margin: 4px 16px 0 auto;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: #172018;
  font: 600 .8125rem/1.3 var(--font-sans);
  text-decoration: underline;
  text-decoration-color: rgba(23, 32, 24, .38);
  text-underline-offset: .2em;
  cursor: pointer;
}

.lifecycle-stop:hover {
  text-decoration-color: currentColor;
}

.lifecycle-stop[hidden] {
  display: none;
}

.lifecycle-panels,
.lifecycle-panel {
  min-width: 0;
  max-width: 100%;
}

.lifecycle-panel {
  min-height: 224px;
  padding: clamp(18px, 2.2vw, 28px);
}

.lifecycle-panel[hidden] {
  display: none;
}

.lifecycle-panel .scene-label {
  margin-bottom: 8px;
  color: #557446;
  font-size: .8125rem;
  font-weight: 650;
}

.lifecycle-panel h2 {
  max-width: 27ch;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.lifecycle-panel dl {
  margin: 0;
  border-top: 1px solid rgba(23, 32, 24, .20);
}

.lifecycle-panel dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid rgba(23, 32, 24, .14);
  font-size: .8125rem;
  line-height: 1.35;
}

.lifecycle-panel dt {
  overflow-wrap: anywhere;
  color: rgba(23, 32, 24, .76);
}

.lifecycle-panel dd {
  margin: 0;
  color: #172018;
  font-weight: 650;
  text-align: right;
}

.hero-visual[data-enhanced] [data-lifecycle-fallback] {
  display: none;
}

.hero-visual:not([data-enhanced]) [data-lifecycle-controls],
.hero-visual:not([data-enhanced]) [data-autoplay-stop] {
  display: none;
}

.nav-sentinel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
}

@media (max-width: 960px) {
  .lifecycle-controls {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .lifecycle-button,
  .lifecycle-control {
    grid-column: span 2;
  }

  .lifecycle-button:nth-last-child(-n + 2),
  .lifecycle-control:nth-last-child(-n + 2) {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .season-ledger-account,
  .season-ledger-account-head,
  .lifecycle-fallback,
  .lifecycle-controls,
  .lifecycle-panels,
  .lifecycle-panel,
  .lifecycle-panel dl,
  .lifecycle-panel dl > div {
    min-width: 0;
    max-width: 100%;
  }

  .season-ledger-account-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    padding-inline: 14px;
  }

  .season-ledger-account-head span:first-child {
    grid-column: 1 / -1;
  }

  .lifecycle-fallback {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lifecycle-fallback li:nth-child(5) {
    grid-column: 1 / -1;
  }

  .lifecycle-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lifecycle-button,
  .lifecycle-button:nth-last-child(-n + 2),
  .lifecycle-control,
  .lifecycle-control:nth-last-child(-n + 2) {
    grid-column: auto;
  }

  .lifecycle-button:last-child,
  .lifecycle-control:last-child {
    grid-column: 1 / -1;
  }

  .lifecycle-panel {
    min-height: 0;
    padding: 20px 16px 22px;
    overflow-wrap: anywhere;
  }

  .lifecycle-panel h2 {
    font-size: 1.25rem;
  }

  .lifecycle-panel dl > div {
    gap: 8px;
  }
}

/* ---------------------------------------------------------------------------
   Account story: a rail of step buttons and one frame with four layered panels.
   Default DOM: all four panels stack inside the frame (no JavaScript).
   With JavaScript the section's data-state shows one panel at a time.
   --------------------------------------------------------------------------- */

.story-step {
  position: relative;
}

.story-step-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.story-step h3 {
  color: var(--ink-2);
}

.story-step-button:hover {
  color: var(--crop);
}

.story-step:has([aria-current="true"]) h3 {
  color: var(--soil);
}

.story-step:has([aria-current="true"])::before {
  color: var(--crop);
}

.story-step::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 3rem;
  height: 1px;
  background: var(--crop);
  opacity: 0;
}

.story-step:has([aria-current="true"])::after {
  opacity: 1;
}

.story-frame {
  width: 100%;
  max-width: none;
}

.story-panels {
  display: grid;
  align-items: start;
}

.has-js .story-panels {
  overflow: hidden;
}

.story-panel {
  grid-area: 1 / 1;
  min-width: 0;
}

html:not(.has-js) .story-panels {
  display: block;
}

html:not(.has-js) .story-panel + .story-panel {
  border-top: 1px solid var(--rule-strong);
}

.has-js .story-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

.has-js .story[data-state="position"] .story-panel[data-state="position"],
.has-js .story[data-state="statements"] .story-panel[data-state="statements"],
.has-js .story[data-state="context"] .story-panel[data-state="context"],
.has-js .story[data-state="missing"] .story-panel[data-state="missing"],
.has-js .story[data-state="arrive"] .story-panel[data-state="arrive"],
.has-js .story[data-state="organize"] .story-panel[data-state="organize"],
.has-js .story[data-state="read"] .story-panel[data-state="read"],
.has-js .story[data-state="surface"] .story-panel[data-state="surface"],
.has-js .story[data-state="update"] .story-panel[data-state="update"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.source-note {
  font-size: var(--text-small);
  color: var(--ink-2);
}

/* The assembled file: four small papers laid square, barely tilted. */
.paper-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 4px;
}

.paper-stack .paper {
  aspect-ratio: 4 / 3;
  padding: 10px 12px;
}

.paper-stack .paper::before {
  top: 40px;
  height: 20px;
  right: 24%;
}

.paper-stack .paper:nth-child(1) { --tilt: -1.5deg; }
.paper-stack .paper:nth-child(2) { --tilt: 1deg; }
.paper-stack .paper:nth-child(3) { --tilt: .75deg; }
.paper-stack .paper:nth-child(4) { --tilt: -1deg; }

.crop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums lining-nums;
}

.crop-table caption {
  caption-side: top;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
  text-align: left;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.crop-table th,
.crop-table td {
  padding: 7px 0 7px 8px;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  font-weight: 500;
}

.crop-table th:first-child,
.crop-table td:first-child {
  padding-left: 0;
  text-align: left;
}

.crop-table thead th {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.finding-list ul {
  list-style: none;
  display: grid;
  gap: 6px;
  padding-top: 8px;
  font-size: var(--text-small);
}

.finding-list li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  text-wrap: pretty;
}

.finding-list li::before {
  content: "";
  height: 1px;
  background: var(--rule-strong);
  transform: translateY(-.35em);
}

.finding-list--missing li {
  grid-template-columns: minmax(0, 1fr);
  color: var(--state-missing);
}

.finding-list--missing li::before {
  display: none;
}

.finding-list--missing .state {
  margin-right: 6px;
}

.chip--decision {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.4;
  color: var(--soil);
  border-color: var(--rule-strong);
}

/* ≤ 960px the stage is not sticky: switch panels by display so the frame is only as tall
   as the panel it shows, and make the step buttons read as controls. */
@media (max-width: 960px) {
  .has-js .story-panel {
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-js .story[data-state="position"] .story-panel[data-state="position"],
  .has-js .story[data-state="statements"] .story-panel[data-state="statements"],
  .has-js .story[data-state="context"] .story-panel[data-state="context"],
  .has-js .story[data-state="missing"] .story-panel[data-state="missing"],
  .has-js .story[data-state="arrive"] .story-panel[data-state="arrive"],
  .has-js .story[data-state="organize"] .story-panel[data-state="organize"],
  .has-js .story[data-state="read"] .story-panel[data-state="read"],
  .has-js .story[data-state="surface"] .story-panel[data-state="surface"],
  .has-js .story[data-state="update"] .story-panel[data-state="update"] {
    display: block;
  }

  .has-js .story-step-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .has-js .story-step-button::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-1px) rotate(-45deg);
    opacity: .7;
  }

  .has-js .story-step:has([aria-current="true"]) .story-step-button::after {
    transform: translateY(1px) rotate(45deg);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .season-stage {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }
}

/* ---------------------------------------------------------------------------
   The whole book: a dense two-column ledger of compact account rows that
   regroup, and the selected account expanded in the same frame vocabulary.
   --------------------------------------------------------------------------- */

.portfolio-frame {
  --text-label: .8125rem;
  background: var(--ivory-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-frame);
  box-shadow: var(--frame-shadow);
  font-size: var(--text-small);
  --hairline: var(--rule);
  --accent: var(--crop);
  --ink-secondary: var(--ink-2);
  --focus-ring: var(--crop);
  --button-bg: var(--soil);
  --button-fg: var(--ivory);
}

.book-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}

.book-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.005em;
}

.book-title .frame-tag {
  margin-left: 0;
}

.book-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-left: auto;
}

.book-controls-label {
  margin-right: 6px;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.group-key {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-chip);
  background: none;
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
}

.group-key:hover {
  color: var(--soil);
  border-color: var(--rule-strong);
}

.group-key[aria-pressed="true"] {
  color: var(--soil);
  border-color: var(--soil);
}

html:not(.has-js) .book-controls {
  display: none;
}

.book-grouped-by {
  flex: 1 0 100%;
  max-width: none;
  font-size: var(--text-label);
  color: var(--ink-2);
}

.has-js .book-grouped-by {
  flex: none;
}

.book-row-button {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.book-row-button .cell-id { flex: 0 0 7em; }
.book-row-button .cell-name { flex: 1.6 1 0; }
.book-row-button .cell-location { flex: 1 1 0; }
.book-row-button .cell-status { flex: .9 1 0; }
.book-row-button .cell-exposure { flex: 0 0 6.5em; text-align: right; }
.book-row-button .cell-util { flex: 0 0 4em; text-align: right; }
.book-row-button .cell-missing { flex: 0 0 6em; text-align: right; }

/* Figures are on demand: they appear only while the book is grouped by them. The cell that repeats
   the active grouping's own value steps aside, so the row never says what its heading already says. */
.book-row-button .cell-exposure,
.book-row-button .cell-util,
.portfolio-frame[data-group-key="location"] .book-row-button .cell-location,
.portfolio-frame[data-group-key="status"] .book-row-button .cell-status,
.portfolio-frame[data-group-key="missing_information"] .book-row-button .cell-missing {
  display: none;
}

.portfolio-frame[data-group-key="exposure"] .book-row-button .cell-exposure,
.portfolio-frame[data-group-key="utilization"] .book-row-button .cell-util {
  display: block;
}

.cell-location,
.cell-status {
  color: var(--ink-2);
}

.book-row--preview {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums lining-nums;
}

.book-row--preview .cell-name { flex: 1.6 1 0; font-weight: 500; }
.book-row--preview .cell-location { flex: 1 1 0; }
.book-row--preview .cell-status { flex: .9 1 0; }
.book-row--preview .cell-missing { flex: 0 0 9.5em; text-align: right; }
.book-row--preview .cell-priority { flex: 0 0 5.5em; }

.portfolio-frame[data-group-key="location"] .book-row--preview .cell-location,
.portfolio-frame[data-group-key="status"] .book-row--preview .cell-status,
.portfolio-frame[data-group-key="missing_information"] .book-row--preview .cell-missing,
.portfolio-frame[data-group-key="review_priority"] .book-row--preview .cell-priority {
  display: none;
}

.cell-priority {
  text-align: right;
  font-size: var(--text-label);
  color: var(--ink-2);
}

.has-js .book-grouped-by {
  display: none;
}

.book-rows {
  columns: 1;
  column-gap: 0;
  column-rule: 1px solid var(--rule);
}

/* Two columns only under the default Location grouping at wide widths: any other grouping shows a
   location, status or figure cell and needs the whole width for its rows. */
@media (min-width: 1201px) {
  .portfolio-frame[data-group-key="location"] .book-rows {
    columns: 2;
  }
}

.book-group {
  break-inside: avoid;
  padding: 0 20px 10px;
}

.book-group-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soil);
  max-width: none;
}

.book-group-count {
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.book-list {
  list-style: none;
}

.book-row {
  border-bottom: 1px solid var(--rule);
}

.book-row-button {
  width: 100%;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-variant-numeric: tabular-nums lining-nums;
}

.book-row-button:hover {
  color: var(--crop);
}

.book-row.is-selected .book-row-button {
  color: var(--soil);
  font-weight: 600;
}

.book-row.is-selected {
  box-shadow: inset 3px 0 0 var(--crop);
}

.book-row.is-selected .book-row-button {
  padding-left: 10px;
}

.cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-id {
  font-size: var(--text-label);
  letter-spacing: .04em;
  color: var(--ink-2);
}

.cell-missing {
  font-size: var(--text-label);
  color: var(--ink-2);
}

.cell-missing.is-missing {
  color: var(--state-missing);
}

.portfolio-account {
  width: 100%;
  max-width: none;
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0 0 var(--radius-frame) var(--radius-frame);
  box-shadow: none;
}

.portfolio-account .frame-head {
  background: rgba(23,32,24,.025);
}

.ledger--pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}

.missing-note[hidden],
.complete-note[hidden],
.direction[hidden] {
  display: none;
}

.complete-note {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-small);
  color: var(--ink-2);
  max-width: none;
}

.frame-link {
  justify-self: start;
  font-weight: 500;
  color: var(--crop);
  text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------------------
   How it works: the path of work runs under the three layers and ends on the
   lender's decision. The one gold in this band.
   --------------------------------------------------------------------------- */

.core-layers {
  border-bottom: 0;
}

.core-layer {
  border-bottom: 0;
}

.core-diagram {
  position: relative;
  height: 44px;
  margin-top: 8px;
  color: var(--harvest);
}

/* The line is CSS, not an SVG dash: a dash pattern breaks into segments under non-uniform scaling. */
.core-diagram::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: var(--harvest);
  transform-origin: left;
}

.core-node {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--harvest);
  background: var(--forest);
}

.core-node--1 { left: 16.667%; }
.core-node--2 { left: 50%; }
.core-node--3 { left: 83.333%; }

.core-node--decision {
  left: auto;
  right: 0;
  width: auto;
  height: auto;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 1px solid var(--harvest);
  border-radius: var(--radius-chip);
  background: var(--forest);
  color: var(--harvest);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}



@media (max-width: 640px) {
  .book-row-button {
    flex-wrap: wrap;
    row-gap: 2px;
    padding-block: 7px;
  }

  .book-row-button .cell-name {
    flex: 1 0 100%;
    order: 2;
    white-space: normal;
  }

  .book-row-button .cell-location,
  .book-row-button .cell-status {
    order: 3;
    flex: 1 1 0;
  }

  .book-row-button .cell-missing,
  .book-row-button .cell-exposure,
  .book-row-button .cell-util,
  .portfolio-frame[data-group-key="exposure"] .book-row-button .cell-exposure,
  .portfolio-frame[data-group-key="utilization"] .book-row-button .cell-util {
    display: none;
  }

  .book-row--preview {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .book-row--preview .cell-name {
    flex: 1 0 100%;
  }

  .book-row--preview .cell-location,
  .book-row--preview .cell-status {
    flex: 1 1 0;
  }

  .book-row--preview .cell-missing,
  .book-row--preview .cell-priority,
  .portfolio-frame[data-group-key="location"] .book-row--preview .cell-location {
    display: none;
  }

  /* Not multicol here: a single column with a max-height would spill into overflow columns. */
  .book-rows {
    columns: auto;
    max-height: 70vh;
    overflow-y: auto;
  }

  .book-controls {
    margin-left: 0;
  }

  .ledger--pairs {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 960px) {
  .timeline li {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    row-gap: 6px;
  }

  .event-effect {
    grid-column: 2;
  }
}

/* ---------------------------------------------------------------------------
   v2: capability cards. A number, a headline, one paragraph, one vignette, one
   Explore link. The spine node sits on the sequence's hairline.
   --------------------------------------------------------------------------- */

.capability-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(clamp(28px, 3.5vw, 48px) + .3em);
  width: 9px;
  height: 9px;
  transform: translateX(-50%);
  background: var(--ivory);
  border: 1px solid var(--crop);
}

.capability-number {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: var(--crop);
  max-width: none;
}

.capability-card h3 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.015em;
  max-width: 16ch;
}

.capability-copy {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 44ch;
  text-wrap: pretty;
}

.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--soil);
  text-decoration: none;
}

.explore-link::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: var(--crop);
}

.explore-link:hover {
  color: var(--crop);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: .3em;
}

.explore-link--inline {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 500;
  color: var(--crop);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
}

.explore-link--inline::before {
  display: none;
}

.explore-link--inline:hover {
  text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------------------
   v2: vignettes. Abstract product surfaces in the frame vocabulary: labels and
   states only, never a figure. One composition per capability.
   --------------------------------------------------------------------------- */

.capability-vignette {
  --text-label: .75rem;
  position: relative;
  min-height: 220px;
  display: grid;
  align-content: center;
  font-size: var(--text-small);
}

.mini-frame,
.mini-book,
.measure-rows,
.judgment-steps {
  background: var(--ivory-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-frame);
  box-shadow: var(--frame-shadow);
}

.mini-frame-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  max-width: none;
}

.mini-label {
  font-weight: 500;
}

.mini-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--crop);
  white-space: nowrap;
}

.mini-state::before,
.mini-mark {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--crop);
}

/* 01 Account Workspace: three papers connect into one position. */
[data-vignette="account-workspace"] {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr);
  column-gap: 22px;
  align-items: center;
}

.vignette-papers {
  position: relative;
  height: 200px;
}

.vignette-papers .paper {
  position: absolute;
  width: 64%;
}

.vignette-papers .paper:nth-child(1) { --tilt: -4deg; left: 0; top: 0; }
.vignette-papers .paper:nth-child(2) { --tilt: 2deg; left: 22%; top: 18%; }
.vignette-papers .paper:nth-child(3) { --tilt: -1deg; left: 10%; top: 40%; }

.mini-frame {
  padding: 14px 16px 6px;
}

.mini-rows {
  list-style: none;
}

.mini-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.mini-rows li:last-child {
  border-bottom: 0;
}

/* 02 Document Intelligence: a mixed packet against a four-state rail. */
[data-vignette="document-intelligence"] {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: 24px;
  align-items: center;
}

.packet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.packet .paper {
  aspect-ratio: 4 / 3;
  padding: 10px 12px;
}

.packet .paper::before {
  top: 38px;
  height: 20px;
  right: 30%;
}

.packet .paper-label {
  letter-spacing: .06em;
  white-space: normal;
}

.packet .paper:nth-child(1) { --tilt: -2deg; }
.packet .paper:nth-child(2) { --tilt: 1.5deg; }
.packet .paper:nth-child(3) { --tilt: 1deg; }
.packet .paper:nth-child(4) { --tilt: -1.5deg; }

.process-rail {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.process-step {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.process-step::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--crop);
}

.process-step.is-done::before {
  background: var(--crop);
}

.process-step.is-missing {
  color: var(--state-missing);
}

.process-step.is-missing::before {
  border-color: currentColor;
}

/* 03 Agricultural Analysis: four analysis rows, the last one carrying the season. */
.measure-rows {
  list-style: none;
  padding: 6px 18px 12px;
}

.measure-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.measure-row--season {
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  border-bottom: 0;
}

.mini-season {
  width: 100%;
  height: auto;
  color: var(--crop);
}

.mini-season circle {
  fill: var(--ivory-2);
}

/* 04 Credit Brain: three numbered states; the last carries the one gold rule. */
.judgment-steps {
  list-style: none;
  counter-reset: judgment;
  padding: 16px 22px 20px;
}

.judgment-step {
  counter-increment: judgment;
  display: grid;
  grid-template-columns: 2.25em minmax(0, 1fr);
  column-gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.judgment-step::before {
  content: counter(judgment, decimal-leading-zero);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.judgment-step--ready {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--harvest);
  border-bottom: 0;
  font-weight: 600;
}

/* 05 Living Account: a short cause-and-effect timeline. */
.mini-timeline {
  position: relative;
  list-style: none;
  padding-left: 24px;
}

.mini-timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule-strong);
}

.mini-event {
  position: relative;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.mini-event::after {
  content: "";
  position: absolute;
  left: -24px;
  top: calc(50% - 4px);
  width: 7px;
  height: 7px;
  background: var(--ivory);
  border: 1px solid var(--crop);
}

.mini-event--team {
  padding-left: 12px;
  border-left: 3px solid var(--crop);
}

.mini-event--team::after {
  background: var(--crop);
}

/* 06 Portfolio Intelligence: group keys over abstract rows. */
.mini-book {
  padding: 14px 16px 16px;
}

.mini-keys {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.mini-key {
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-chip);
  font-size: var(--text-label);
  font-weight: 500;
  color: var(--ink-2);
}

.mini-key.is-pressed {
  color: var(--soil);
  border-color: var(--soil);
}

.mini-book-rows {
  display: grid;
  padding-top: 8px;
}

.mini-book-row {
  position: relative;
  display: block;
  height: 24px;
  border-bottom: 1px solid var(--rule);
}

.mini-book-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 42%;
  height: 3px;
  background: var(--rule-strong);
}

.mini-book-row::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--rule-strong);
}

.mini-book-row.is-flagged::after {
  border-color: var(--state-missing);
}

.mini-book-row--break {
  margin-top: 14px;
  border-top: 1px solid var(--rule-strong);
}

/* ---------------------------------------------------------------------------
   v2: the season on the homepage. Five stage concepts under their stops.
   --------------------------------------------------------------------------- */

.stage-concepts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.stage-concept {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 16px 8px 4px;
  margin-top: -1px;
  border-top: 2px solid transparent;
  text-align: center;
}

.stage-name {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.stage-concept-text {
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
  max-width: 14ch;
}

.season-figure[data-stage="planning"] .stage-concept[data-stage="planning"],
.season-figure[data-stage="planting"] .stage-concept[data-stage="planting"],
.season-figure[data-stage="growing"] .stage-concept[data-stage="growing"],
.season-figure[data-stage="harvest"] .stage-concept[data-stage="harvest"],
.season-figure[data-stage="payout"] .stage-concept[data-stage="payout"] {
  border-top-color: var(--soil);
}

.season-figure[data-stage="planning"] .stage-concept[data-stage="planning"] .stage-name,
.season-figure[data-stage="planting"] .stage-concept[data-stage="planting"] .stage-name,
.season-figure[data-stage="growing"] .stage-concept[data-stage="growing"] .stage-name,
.season-figure[data-stage="harvest"] .stage-concept[data-stage="harvest"] .stage-name,
.season-figure[data-stage="payout"] .stage-concept[data-stage="payout"] .stage-name {
  color: var(--soil);
}

/* ---------------------------------------------------------------------------
   v2: the book preview and the book in Explore.
   --------------------------------------------------------------------------- */

.book-more {
  margin-top: 20px;
  font-size: var(--text-small);
  color: var(--ink-2);
  max-width: var(--measure);
}

/* ---------------------------------------------------------------------------
   v2: Explore detail regions. The account line, the sequence number, the title,
   one orientation sentence, then the demonstration.
   --------------------------------------------------------------------------- */

.detail-account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  max-width: none;
}

.detail-account::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
}

.detail-sequence {
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: none;
  font-variant-numeric: tabular-nums lining-nums;
}

.detail-number {
  font-size: var(--text-h3);
  font-weight: 500;
  color: var(--crop);
}

.detail-of {
  font-size: var(--text-small);
  color: var(--ink-2);
}

.detail-next {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--soil);
  text-decoration: none;
}

.detail-next::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--crop);
}

.detail-next:hover {
  color: var(--crop);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.explorer-label {
  max-width: none;
}

.explorer-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .6em 1em;
  border: 1px solid currentColor;
  border-radius: var(--radius-button);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.explorer-close::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
}

.explorer-close:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

/* Disclosures inside product frames: quiet, link-like summaries with a border-drawn chevron. */
.position-detail,
.season-more,
.analysis-more {
  border-top: 1px solid var(--rule);
}

.position-detail > summary,
.season-more > summary,
.analysis-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--crop);
}

.position-detail > summary::after,
.season-more > summary::after,
.analysis-more > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.position-detail[open] > summary::after,
.season-more[open] > summary::after,
.analysis-more[open] > summary::after {
  transform: translateY(1px) rotate(225deg);
}

.position-detail > .ledger-block,
.analysis-more > .ledger-block {
  padding-bottom: 8px;
}

.season-more-row {
  display: block;
  padding-top: 4px;
}

.season-more-row dd {
  margin: 0;
}

.season-more .ledger-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
}

.ledger-term {
  color: var(--ink-2);
  font-size: var(--text-small);
}

.ledger-figure {
  font-size: var(--text-figure);
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  text-align: right;
}

.season-more .crop-table {
  margin-top: 14px;
}

.ledger-row .ledger-plain {
  font-weight: 400;
  font-variant-numeric: normal;
  text-wrap: pretty;
  max-width: 28ch;
}

.ledger-row dd .state {
  margin-right: 6px;
  vertical-align: middle;
}

.ledger-asof {
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
}

.ledger-source {
  display: block;
  margin-top: 2px;
  font-size: var(--text-label);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.frame-body--single {
  grid-template-columns: minmax(0, 1fr);
}

.frame-body--single .frame-main {
  border-right: 0;
}

.paper-stack--two {
  grid-template-columns: 1fr 1fr;
}

.paper--format {
  display: grid;
  align-content: start;
  gap: 4px;
}

.paper-sub {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--soil);
  text-wrap: balance;
}

.paper--format::before {
  display: none;
}

.packet--inbox {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 6px 0 10px;
}

.packet--inbox .paper {
  aspect-ratio: 3 / 4;
  padding: 12px 12px 10px;
}

.source-format {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: var(--text-label);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.finding-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.brain-frame {
  width: 100%;
  max-width: none;
}

.action-owner {
  display: block;
  grid-column: 2;
  margin-top: 2px;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.evidence-note {
  font-size: var(--text-small);
  color: var(--ink-2);
  text-wrap: pretty;
}

.evidence-note a {
  color: var(--crop);
  text-decoration-color: currentColor;
}

.analysis-lede {
  margin-bottom: 8px;
  color: var(--ink-2);
}

.analysis-copy .ag-concepts {
  grid-template-columns: 1fr;
  grid-template-rows: none;
  grid-auto-flow: row;
}

.analysis-copy .ag-concepts li {
  padding: 11px 0;
  font-size: var(--text-small);
}

.analysis-more {
  margin-top: 18px;
}

.living-story {
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Laptop band: the sequence still runs two columns while the container shrinks, so the two
   paper-bearing vignettes give their papers the room their labels need. */
@media (min-width: 961px) and (max-width: 1280px) {
  [data-vignette="document-intelligence"] {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  [data-vignette="document-intelligence"] .packet {
    max-width: 360px;
  }

  .vignette-papers .paper {
    width: 80%;
  }

  .vignette-papers .paper:nth-child(2) { left: 14%; }
  .vignette-papers .paper:nth-child(3) { left: 6%; }
}

@media (max-width: 960px) {
  .capability-card::before {
    left: 0;
    top: calc(clamp(28px, 3.5vw, 48px) + .35em);
  }

  .packet--inbox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .capability-vignette {
    min-height: 0;
  }

  [data-vignette="account-workspace"],
  [data-vignette="document-intelligence"] {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }

  .vignette-papers {
    height: 150px;
  }

  .vignette-papers .paper {
    width: 40%;
  }

  .vignette-papers .paper:nth-child(2) { left: 30%; }
  .vignette-papers .paper:nth-child(3) { left: 58%; top: 12%; }

  .stage-concepts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .stage-concept {
    padding: 12px 2px 4px;
  }

  .stage-name {
    font-size: .6875rem;
    letter-spacing: .06em;
  }

  .stage-concept-text {
    font-size: .8125rem;
  }

  .finding-pair {
    grid-template-columns: 1fr;
  }

  .hero-frame .frame-head {
    padding: 14px 16px 12px;
  }

  .readiness {
    padding: 4px 16px 14px;
  }

  .explorer-chrome {
    padding-top: 16px;
  }
}
