/* ============================================================================
   REQUIZA — components
   ========================================================================= */

/* ---------------------------------------------------------------- 1. Mark  */
/* The seal is the union's one ornament. It is a ring of twelve months with a
   heavier mark at each quarter — the calendar the whole cooperative runs on —
   around the naira sign. It is never animated and never used larger than the
   heading beside it. */

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-block: 0.25rem;   /* brings the tap target to 44px */
  text-decoration: none;
  color: inherit;
}
.mark:hover { color: inherit; }

.mark__seal { width: 2.25rem; height: 2.25rem; flex: 0 0 auto; }

.mark__text { display: flex; flex-direction: column; line-height: 1; }

.mark__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-wide), "wght" 700;
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--fg);
}

.mark__sub {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 550;
  font-size: 0.625rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 0.28rem;
}

/* ---------------------------------------------------------------- 2. Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  border-bottom: var(--hair) solid var(--rule);
  transition: box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
.site-header[data-scrolled] {
  box-shadow: 0 1px 0 var(--rule), 0 10px 24px -22px rgba(19, 30, 24, 0.7);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 4.25rem;
}

.site-header__actions { display: flex; align-items: center; gap: var(--s-2); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--rule-strong);
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 600;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  min-height: 2.75rem;
}
.nav-toggle__bars { display: block; width: 1rem; height: 0.625rem; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 50%; margin-top: -0.75px; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4.25px) rotate(-45deg); }

/* The header carries the mark and the navigation only, so the nav sits right. */
.nav { display: none; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }

.nav__link {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 550;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav__link:hover { color: var(--charter); border-bottom-color: var(--rule-strong); }
.nav__link[aria-current="page"] { color: var(--charter); border-bottom-color: var(--charter); font-variation-settings: "wdth" var(--wdth-plain), "wght" 650; }

@media (min-width: 68rem) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}

/* Below the desktop breakpoint the header carries one action and the menu.
   Sign in is one tap away in the panel, which is where it belongs on a phone. */
@media (max-width: 67.999rem) {
  .site-header__actions .btn--ghost { display: none; }
}

/* On a 360-414px handset even that is tight, so the menu control becomes the
   icon alone. It keeps its accessible name. */
@media (max-width: 30rem) {
  .nav-toggle { padding-inline: 0.7rem; gap: 0; font-size: 0; }
  .nav-toggle__bars { width: 1.125rem; height: 0.75rem; }
}

/* Mobile panel: a sheet that drops from the header, not a full-screen takeover,
   so the member can still see where they were. */
.nav-panel {
  display: none;
  border-top: var(--hair) solid var(--rule);
  background: var(--sheet);
  max-height: calc(100dvh - 4.25rem);
  overflow-y: auto;
}
.nav-panel[data-open] { display: block; }
@media (min-width: 68rem) { .nav-panel { display: none !important; } }

.nav-panel__list { list-style: none; margin: 0; padding: var(--s-2) 0 var(--s-4); }
.nav-panel__list li { border-bottom: var(--hair) solid var(--rule); }
.nav-panel__list li:last-child { border-bottom: 0; }
.nav-panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0.9rem var(--gutter);
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 550;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 3rem;
}
.nav-panel__link[aria-current="page"] { color: var(--charter); font-variation-settings: "wdth" var(--wdth-plain), "wght" 700; }
.nav-panel__link::after {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-right: 1.5px solid var(--rule-strong);
  border-bottom: 1.5px solid var(--rule-strong);
  transform: rotate(-45deg);
  flex: 0 0 auto;
}
.nav-panel__foot { padding: var(--s-3) var(--gutter) var(--s-4); border-top: var(--hair) solid var(--rule); display: grid; gap: var(--s-2); }

/* ---------------------------------------------------------------- 3. Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.875rem;
  padding: 0.6875rem 1.25rem;
  border: 1.5px solid var(--charter);
  border-radius: var(--radius);
  background: var(--charter);
  color: var(--chalk);
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 600;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
              color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { background: var(--charter-mid); border-color: var(--charter-mid); color: var(--chalk); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--charter);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { background: transparent; border-color: var(--charter); color: var(--charter); }

.btn--brass { background: var(--brass-light); border-color: var(--brass-light); color: var(--charter-deep); }
.btn--brass:hover { background: #F0CE86; border-color: #F0CE86; color: var(--charter-deep); }

.btn--sm { min-height: 2.375rem; padding: 0.4375rem 0.875rem; font-size: var(--t-label); }
.btn--lg { min-height: 3.25rem; padding: 0.875rem 1.75rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* On a charter ground the primary button cannot be charter green — it would
   vanish into the band — so it takes the brass treatment. Ghost buttons follow
   and must stay after this rule: they carry the same specificity. */
.on-charter .btn { background: var(--brass-light); border-color: var(--brass-light); color: var(--charter-deep); }
.on-charter .btn:hover { background: #F0CE86; border-color: #F0CE86; color: var(--charter-deep); }

.on-charter .btn--ghost { background: transparent; color: var(--chalk); border-color: var(--rule-dark); }
.on-charter .btn--ghost:hover { background: transparent; border-color: var(--chalk); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* A link that behaves like a ruled entry: the arrow is the only ornament. */
.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.15rem;
}
.arrow-link { padding-block: 0.5rem; }
.arrow-link::after { content: "→"; transition: transform var(--fast) var(--ease); }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- 4. Sheets */

.sheet {
  background: var(--surface);
  border: var(--hair) solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s-4);
}
.sheet--pad-lg { padding: var(--s-5); }
.sheet--flush { padding: 0; overflow: hidden; }
.sheet__head {
  padding: var(--s-3) var(--s-4);
  border-bottom: var(--hair) solid var(--hairline);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.sheet__body { padding: var(--s-4); }
.sheet__foot {
  padding: var(--s-3) var(--s-4);
  border-top: var(--hair) solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 55%, var(--paper));
}
.sheet > * + * { margin-top: var(--s-2); }
.sheet__head + .sheet__body, .sheet__body + .sheet__foot { margin-top: 0; }

/* A card whose top edge carries the brass selvedge — used for the things a
   member owns: shares, dividends, the investment package. */
.sheet--owned { border-top: 3px solid var(--brass); }
.sheet--complete { border-top: 3px solid var(--leaf); }
.sheet--pending { border-top: 3px solid var(--kola); }

.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { color: inherit; }
.card-link:hover .sheet { border-color: var(--rule-strong); box-shadow: var(--shadow-lift); }
.card-link .sheet { transition: border-color var(--fast) var(--ease), box-shadow var(--mid) var(--ease); height: 100%; }

/* ============================================================================
   5. THE SATURDAY LINE  — the signature
   ----------------------------------------------------------------------------
   Everything this union promises is measured in Saturdays. You save on one;
   after thirteen you may ask for a loan; after fifty-two you are paid your
   interest and you qualify for a dividend. So the terms are not a list here,
   they are a line you can move along: drag through your first year and watch
   what each Saturday actually earns you.

   It is a calculator of the union's own stated terms, not a record of anybody's
   money. Nothing on it is a projection and nothing is invented.
   ========================================================================= */

.satline { display: grid; gap: var(--s-3); }

.satline__head {
  display: grid;
  gap: var(--s-3);
  align-items: end;
}
@media (min-width: 62rem) {
  .satline__head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-6); }
}
.satline__head .satline__note { max-width: 62ch; }
.satline__hint { padding-left: var(--s-3); border-left: 2px solid var(--brass); }
.satline__hint strong {
  font-family: var(--font-figure);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 700;
  font-variant-numeric: tabular-nums;
  color: var(--brass);
}

.satline__grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 42rem) { .satline__grid { grid-template-columns: repeat(26, minmax(0, 1fr)); gap: 3px; } }
@media (min-width: 72rem) { .satline__grid { grid-template-columns: repeat(52, minmax(0, 1fr)); gap: 2px; } }

.satline__week {
  position: relative;
  aspect-ratio: 1;
  min-height: 14px;
  border-radius: 1px;
  background: var(--surface);
  border: var(--hair) solid var(--hairline);
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

/* Saved: the Saturday was kept. */
.satline__week[data-state="saved"] {
  background: var(--leaf);
  border-color: var(--leaf);
}

/* The two Saturdays that change what a member is entitled to. They keep a
   brass edge whether or not they have been reached, because they are the
   terms, not the record. */
.satline__week[data-mark] {
  border-color: var(--brass);
  border-width: 1.5px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brass) 35%, transparent);
}

/* The flag above the cell only makes sense once the line is a single row.
   While the year is stacked into quarters it would point into the row above. */
@media (min-width: 72rem) {
  .satline__week[data-mark]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    width: 1.5px;
    height: 0.55rem;
    margin-left: -0.75px;
    background: var(--brass);
  }
}

.satline__scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.satline__scale span {
  padding-top: var(--s-1);
  border-top: var(--hair) solid var(--hairline);
}

.satline__control {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--surface);
  border: var(--hair) solid var(--hairline);
  border-radius: var(--radius);
}
@media (min-width: 46rem) {
  .satline__control { grid-template-columns: minmax(0, 1fr) 12rem; align-items: end; gap: var(--s-4); }
}

.satline__readout {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 46rem) { .satline__readout { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.satline__stat { border-top: 2px solid var(--hairline); padding-top: var(--s-2); }
.satline__stat[data-earned="yes"] { border-top-color: var(--leaf); }
.satline__stat[data-earned="no"]  { border-top-color: var(--kola); }
.satline__stat .label { display: block; }
.satline__value {
  font-family: var(--font-figure);
  font-variation-settings: "wdth" 90, "wght" 700;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(1.25rem, 0.95rem + 1.3vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  display: block;
  margin-top: 0.15rem;
}
.satline__note { font-size: var(--t-label); line-height: 1.45; color: var(--fg-muted); margin-top: 0.2rem; }

/* Range control, styled so the thumb is a stamp on the line. */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.75rem;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
.range::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
}
.range::-moz-range-track { height: 4px; background: var(--hairline); border-radius: 2px; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.5rem; height: 1.5rem;
  margin-top: -0.625rem;
  border-radius: 2px;
  background: var(--charter);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--charter);
}
.range::-moz-range-thumb {
  width: 1.5rem; height: 1.5rem;
  border-radius: 2px;
  background: var(--charter);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--charter);
}
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--charter), 0 0 0 5px color-mix(in srgb, var(--charter) 35%, transparent); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1.5px var(--charter), 0 0 0 5px color-mix(in srgb, var(--charter) 35%, transparent); }

.satline__legend {
  display: grid;
  gap: var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 46rem) { .satline__legend { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }
.satline__legend li { display: grid; gap: 0.15rem; padding-top: var(--s-2); border-top: 2px solid var(--brass); }
.satline__legend .label { color: var(--brass); }

/* ---------------------------------------------------------------- 6. Ledger */
/* Particulars on the left, amount on the right, fenced by a kola rule, with a
   double rule under any total. This is how every money statement on the site
   is set — the terms, the fees, the share table, the member's own record. */

.ledger-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
  line-height: var(--line);
  background: var(--surface);
}

.ledger caption {
  text-align: left;
  padding: var(--s-2) 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--fg-muted);
}

.ledger th, .ledger td {
  padding: 0.6875rem var(--s-2);
  text-align: left;
  vertical-align: top;
  border-bottom: var(--hair) solid var(--hairline);
}

.ledger thead th {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--fg-muted);
  border-bottom: 1.5px solid var(--border-ink);
  white-space: nowrap;
}

.ledger tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper) 45%, var(--surface)); }
.ledger tbody tr:last-child td { border-bottom: 0; }

.ledger th[scope="row"] { font-weight: 400; font-family: var(--font-body); color: var(--fg); }

/* The money column: right aligned, tabular, fenced. */
.ledger .amount, .ledger th.amount {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-figure);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-variant-numeric: tabular-nums lining-nums;
  border-left: var(--hair) solid var(--kola);
  width: 1%;
}
.ledger .amount--credit { color: var(--leaf); }
.ledger .amount--debit  { color: var(--kola); }

.ledger tfoot td, .ledger tr.total td, .ledger tr.total th {
  border-top: 3px double var(--border-ink);
  border-bottom: 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 700;
  color: var(--fg);
}

.ledger--terms th[scope="row"] { width: 62%; }

/* Below 34rem a wide ledger stops being a table and becomes a stack of entries,
   because a scrolling table on a phone hides the amount, which is the point. */
@media (max-width: 34rem) {
  .ledger--stack, .ledger--stack thead, .ledger--stack tbody,
  .ledger--stack tr, .ledger--stack th, .ledger--stack td { display: block; }
  .ledger--stack thead { display: none; }
  .ledger--stack tr {
    border-bottom: 1.5px solid var(--hairline);
    padding: var(--s-2) 0;
  }
  .ledger--stack td, .ledger--stack th { border: 0; padding: 0.15rem 0; }
  .ledger--stack td::before {
    content: attr(data-head);
    display: block;
    font-family: var(--font-display);
    font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
    font-size: var(--t-micro);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
  }
  .ledger--stack .amount { text-align: left; border-left: 0; }
  .ledger--stack th[scope="row"] {
    font-family: var(--font-display);
    font-variation-settings: "wdth" var(--wdth-plain), "wght" 650;
    font-size: 1rem;
    padding-bottom: var(--s-1);
  }
}

/* ------------------------------------------------------- 7. Progress fields */
/* Green when done, red when not — the union's own convention, kept exactly.
   The state is carried by a word as well as a colour, because a member with
   colour blindness has the same right to read their own progress. */

.progress-list { list-style: none; margin: 0; padding: 0; }

.progress-row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: var(--hair) solid var(--hairline);
}
.progress-row:last-child { border-bottom: 0; }

.progress-row__mark {
  width: 1.5rem; height: 1.5rem;
  border-radius: 2px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1.5px solid var(--kola);
  color: var(--kola);
  margin-top: 0.15rem;
}
.progress-row__mark svg { width: 0.875rem; height: 0.875rem; }
.progress-row[data-done] .progress-row__mark { border-color: var(--leaf); background: var(--leaf); color: var(--sheet); }
.on-charter .progress-row[data-done] .progress-row__mark { color: var(--charter-deep); }

.progress-row__title { display: block; font-weight: 600; line-height: 1.35; }
.progress-row__note { display: block; font-size: var(--t-label); color: var(--fg-muted); line-height: 1.45; margin-top: 0.1rem; }

.progress-row__state {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--kola);
  white-space: nowrap;
  margin-top: 0.35rem;
}
.progress-row[data-done] .progress-row__state { color: var(--leaf); }

/* ------------------------------------------------------------- 8. Status pill */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: var(--hair) solid currentColor;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  white-space: nowrap;
  line-height: 1.4;
}
.pill--on   { color: var(--leaf); }
.pill--off  { color: var(--kola); }
.pill--wait { color: var(--brass); }
.pill--info { color: var(--fg-muted); }
.pill::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; flex: 0 0 auto; }

/* ------------------------------------------------------------ 9. Fact plate */
/* Numbers get a plate only when they are terms of membership. Each plate
   carries its condition, because a rate without its condition is a promise. */

.plates {
  display: grid;
  gap: 0;
  border-top: 1.5px solid var(--hairline);
}
@media (min-width: 46rem) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .plates--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .plates--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plate {
  padding: var(--s-3) var(--s-3) var(--s-4) 0;
  border-bottom: var(--hair) solid var(--hairline);
}
@media (min-width: 46rem) {
  .plate { border-bottom: 0; border-left: var(--hair) solid var(--hairline); padding-left: var(--s-3); }
  .plate:first-child { border-left: 0; padding-left: 0; }
}
@media (min-width: 68rem) {
  .plates--4 .plate:nth-child(4n+1), .plates--3 .plate:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}
@media (min-width: 46rem) and (max-width: 67.999rem) {
  .plates--4 .plate:nth-child(2n+1), .plates--3 .plate:nth-child(2n+1) { border-left: 0; padding-left: 0; }
}

.plate__value {
  font-family: var(--font-figure);
  font-variation-settings: "wdth" 92, "wght" 700;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.875rem);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--fg);
  display: block;
}
.plate__label {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 650;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.plate__cond { display: block; margin-top: 0.3rem; font-size: var(--t-label); line-height: 1.45; color: var(--fg-muted); }

/* --------------------------------------------------- 10. The value chain */
/* Four stages, and they are numbered because they genuinely are a sequence:
   food cannot be packed before it is processed. Nothing else on this site is
   numbered for effect. */

.chain { display: grid; gap: 0; counter-reset: stage; }
@media (min-width: 52rem) { .chain { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.chain__stage {
  counter-increment: stage;
  position: relative;
  padding: var(--s-4) var(--s-3) var(--s-4) 0;
  border-top: 2px solid var(--hairline);
}
@media (min-width: 52rem) { .chain__stage { padding-right: var(--s-4); } }

.chain__stage::before {
  content: "0" counter(stage);
  display: block;
  font-family: var(--font-figure);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 700;
  font-variant-numeric: tabular-nums;
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: var(--s-2);
}
/* The stage a member's money passes through next. */
.chain__stage[data-current] { border-top-color: var(--brass); }
.chain__title { font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-open), "wght" 650; font-size: var(--t-h4); line-height: 1.25; }
.chain__body { margin-top: var(--s-2); font-size: var(--t-small); line-height: 1.5; color: var(--fg-muted); }

/* ---------------------------------------------- 11. Index with leader dots */
/* The Get Digital links and the site index are set as a book index: name on
   the left, destination on the right, leader dots between. */

.index-list { list-style: none; margin: 0; padding: 0; }

.index-item { border-bottom: var(--hair) solid var(--hairline); }
.index-item:first-child { border-top: var(--hair) solid var(--hairline); }

.index-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s-2);
  padding: var(--s-3) 0;
  text-decoration: none;
  color: var(--fg);
  position: relative;
}
.index-link:hover { color: var(--charter); }
.index-link:hover .index-link__name { text-decoration: underline; text-decoration-thickness: var(--hair); text-underline-offset: 0.2em; }

.index-link__name {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-open), "wght" 650;
  font-size: var(--t-h4);
  line-height: 1.3;
}
.index-link__note { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--t-small); color: var(--fg-muted); line-height: 1.45; margin-top: 0.2rem; max-width: 46ch; }
.index-link__to {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  white-space: nowrap;
  display: none;
}
@media (min-width: 40rem) { .index-link__to { display: block; } }
.index-link:hover .index-link__to { color: var(--charter); }

/* ------------------------------------------------------------- 12. Callouts */

.callout {
  border-left: 3px solid var(--brass);
  background: var(--surface);
  padding: var(--s-3);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout--warn { border-left-color: var(--kola); }
.callout--ok { border-left-color: var(--leaf); }
.callout__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 650;
  font-size: 1rem;
  margin-bottom: var(--s-1);
}
.callout p { font-size: var(--t-small); line-height: 1.5; }

/* The record: the block that names who this cooperative is in law. It is a
   first-class element on this site, not footer small print, because it is the
   only thing on the page a cautious person can check. */
.record {
  border: 1.5px solid var(--border-ink);
  border-radius: var(--radius);
  padding: var(--s-4);
  background: var(--surface);
}
.record__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 650;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: var(--s-2);
}
.record__list { display: grid; gap: 0; margin: 0; }
.record__list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.1rem;
  padding: var(--s-2) 0;
  border-bottom: var(--hair) solid var(--hairline);
}
@media (min-width: 34rem) { .record__list > div { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s-2); align-items: baseline; } }
.record__list > div:last-child { border-bottom: 0; }
.record__list dt {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.record__list dd { margin: 0; font-size: var(--t-small); line-height: 1.5; }
.record__list dd .pending {
  color: var(--kola);
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------- 13. Forms */

.form { display: grid; gap: var(--s-4); }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.fieldset > legend {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-open), "wght" 650;
  font-size: var(--t-h4);
  padding: 0;
  margin-bottom: var(--s-1);
  color: var(--fg);
}
.fieldset__note { font-size: var(--t-small); color: var(--fg-muted); line-height: 1.5; margin-top: -0.4rem; }

.field { display: grid; gap: 0.375rem; }
.field-row { display: grid; gap: var(--s-3); }
@media (min-width: 40rem) { .field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.field > label, .field__label {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--fg);
}
.field__hint { font-size: var(--t-label); color: var(--fg-muted); line-height: 1.45; }
.field__req { color: var(--kola); }

.input, .select, .textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--sheet);
  border: 1.5px solid var(--border-ink);
  border-radius: var(--radius);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--charter); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--charter);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--charter) 22%, transparent);
}
.textarea { min-height: 7rem; resize: vertical; }

/* Figures typed into a form are still figures. */
.input--figure {
  font-family: var(--font-figure);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 550;
  font-variant-numeric: tabular-nums lining-nums;
  text-align: right;
}
.input--code {
  font-family: var(--font-figure);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-align: center;
  font-size: 1.25rem;
}

.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--border-ink) 50%),
                    linear-gradient(135deg, var(--border-ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.25rem, calc(100% - 0.75rem) 1.25rem;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--kola);
}
.field-error {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 600;
  font-size: var(--t-label);
  line-height: 1.4;
  color: var(--kola);
  margin: 0;
  display: flex;
  gap: 0.35rem;
}
.field-error::before { content: "✕"; }

/* Choice controls. The tap target is the whole row, which matters on a phone. */
.choice {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr);
  gap: var(--s-2);
  align-items: start;
  padding: 0.6875rem var(--s-2);
  border: 1.5px solid var(--border-ink);
  border-radius: var(--radius);
  background: var(--sheet);
  cursor: pointer;
  min-height: 2.875rem;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.choice:hover { border-color: var(--charter); }
.choice:has(input:checked) { border-color: var(--charter); background: color-mix(in srgb, var(--charter) 7%, var(--sheet)); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input {
  width: 1.375rem; height: 1.375rem;
  margin: 0.1rem 0 0;
  accent-color: var(--charter);
  flex: 0 0 auto;
}
.choice__text { font-size: var(--t-small); line-height: 1.45; }
.choice__title { display: block; font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-plain), "wght" 600; font-size: 1rem; }
.choice__note { display: block; color: var(--fg-muted); font-size: var(--t-label); margin-top: 0.1rem; }

.choice-group { display: grid; gap: var(--s-2); }
@media (min-width: 40rem) { .choice-group--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.form-status {
  border: 1.5px solid var(--leaf);
  border-left-width: 3px;
  background: color-mix(in srgb, var(--leaf) 8%, var(--sheet));
  padding: var(--s-3);
  border-radius: var(--radius);
  font-size: var(--t-small);
  line-height: 1.5;
}

/* Steps */
.steps-bar { display: flex; gap: var(--s-1); list-style: none; margin: 0 0 var(--s-4); padding: 0; flex-wrap: wrap; }
.steps-bar li {
  flex: 1 1 6rem;
  padding-top: var(--s-2);
  border-top: 3px solid var(--hairline);
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.steps-bar li[data-done] { border-top-color: var(--leaf); color: var(--leaf); }
.steps-bar li[data-current] { border-top-color: var(--charter); color: var(--charter); }

/* ------------------------------------------------------------ 14. Accordion */

.accordion { border-top: var(--hair) solid var(--hairline); }
.accordion__item { border-bottom: var(--hair) solid var(--hairline); }
.accordion__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: var(--s-2);
  text-align: left;
  background: none;
  border: 0;
  padding: var(--s-3) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 650;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--fg);
  min-height: 3.25rem;
}
.accordion__trigger:hover { color: var(--charter); }
.accordion__icon { position: relative; width: 1.25rem; height: 1.25rem; }
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  transition: transform var(--mid) var(--ease);
}
.accordion__icon::before { width: 0.875rem; height: 1.5px; margin: -0.75px 0 0 -0.4375rem; }
.accordion__icon::after  { width: 1.5px; height: 0.875rem; margin: -0.4375rem 0 0 -0.75px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel { padding: 0 0 var(--s-4); max-width: 52rem; }
.accordion__panel > * + * { margin-top: var(--s-2); }

/* ----------------------------------------------------------------- 15. Tabs */

.tablist {
  display: flex;
  gap: var(--s-3);
  border-bottom: 1.5px solid var(--hairline);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tablist::-webkit-scrollbar { display: none; }
.tab {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1.5px;
  padding: var(--s-2) 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-plain), "wght" 600;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  min-height: 2.75rem;
}
.tab[aria-selected="true"] { color: var(--charter); border-bottom-color: var(--charter); }
.tab:hover { color: var(--charter); }
.tabpanel { padding-top: var(--s-4); }

/* --------------------------------------------------------------- 16. Footer */

.site-footer { padding-block: var(--s-7) var(--s-5); }
.site-footer__grid { display: grid; gap: var(--s-5); }
@media (min-width: 52rem) { .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: var(--s-6); } }
@media (min-width: 72rem) { .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }

.site-footer .mark__name { color: var(--chalk); }
.site-footer .mark__sub { color: var(--fg-muted); }

.footer-motto {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-broad), "wght" 700;
  font-size: clamp(1.375rem, 1.05rem + 1.4vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--chalk);
  margin-top: var(--s-3);
  max-width: 18ch;
}

.footer-col__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: var(--hair) solid var(--hairline);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-links a { color: var(--chalk); text-decoration: none; font-size: var(--t-small); }
.footer-links a:hover { color: var(--brass-light); text-decoration: underline; text-underline-offset: 0.2em; }

.site-footer__base {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: var(--hair) solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  justify-content: space-between;
  font-size: var(--t-label);
  line-height: 1.5;
  color: var(--fg-muted);
}
.site-footer__base p { max-width: 62ch; }

/* --------------------------------------------------------- 17. Page heading */

.page-head { padding-block: var(--s-6) var(--s-5); border-bottom: var(--hair) solid var(--rule); }
.page-head__inner { display: grid; gap: var(--s-3); max-width: 52rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 var(--s-1); padding: 0; font-size: var(--t-label); color: var(--fg-muted); }
.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--charter); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--rule-strong); }

/* --------------------------------------------------------------- 18. Bands */

.band { padding-block: var(--section-y); }
.band--charter { background: var(--charter); }
.band--charter-deep { background: var(--charter-deep); }
.band--sheet { background: var(--sheet); border-block: var(--hair) solid var(--rule); }

/* ------------------------------------------------------------- 19. Quote */

.quote { max-width: 44rem; }
.quote__text {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-open), "wght" 600;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
.quote__by { margin-top: var(--s-3); font-size: var(--t-label); color: var(--fg-muted); }

/* --------------------------------------------------------- 20. Meeting note */
/* Saturday, 5:00pm is the one recurring appointment in the union's life, so it
   gets a fixed treatment wherever it appears. */

.meeting {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid var(--brass);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-narrow), "wght" 600;
  font-size: var(--t-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
}
.meeting svg { width: 0.9rem; height: 0.9rem; }

/* ------------------------------------------------------------ 21. Empty state */

.empty {
  padding: var(--s-5) var(--s-4);
  text-align: center;
  border: 1.5px dashed var(--rule-strong);
  border-radius: var(--radius);
  color: var(--fg-muted);
}
.empty__title { font-family: var(--font-display); font-variation-settings: "wdth" var(--wdth-plain), "wght" 650; font-size: 1.0625rem; color: var(--fg); margin-bottom: var(--s-1); }

/* ----------------------------------------------------------- 22. Home hero */
/* The headline states the bargain. Beneath it the lead sits beside the three
   Saturdays that change what a member is owed, so the terms are read before the
   line is touched. Then the line itself, full width, with a rule above it. */

.hero-section { padding-top: var(--s-5); }

.hero { display: grid; gap: var(--s-5); }
.hero__top { display: grid; gap: var(--s-3); justify-items: start; }
.hero__top h1 { max-width: 22ch; }
.hero__cols { display: grid; gap: var(--s-5); }
.hero__lead { display: grid; gap: var(--s-4); justify-items: start; max-width: 40rem; }
.hero__lead .lead { margin: 0; }
.hero__line { padding-top: var(--s-4); border-top: 1.5px solid var(--rule); }

/* In the hero the three milestones stack, so they read as a column of terms
   beside the lead rather than a row of cards under it. */
.satline__legend--stack { align-content: start; }

@media (min-width: 62rem) {
  .hero { gap: var(--s-6); }
  .hero__cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-7); align-items: start; }
  .satline__legend--stack { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .satline__legend--stack p { font-size: var(--t-small); line-height: 1.5; color: var(--fg-muted); }
}
