@font-face { font-family: 'Kaisei Tokumin'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/kaisei-tokumin-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Kaisei Tokumin'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/kaisei-tokumin-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Kaisei Tokumin'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/kaisei-tokumin-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Kaisei Tokumin'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/kaisei-tokumin-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Teachers'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/teachers-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Teachers'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/teachers-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Teachers'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/teachers-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Teachers'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/teachers-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Teachers'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/teachers-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Teachers'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/teachers-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Teachers'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/teachers-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Teachers'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/teachers-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Teachers'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/teachers-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Teachers'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/teachers-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f6f5ee;
  --fg-light-base-body: #1f2418;
  --fg-light-base-heading: #1f2418;
  --fg-light-base-muted: #4f5644;
  --fg-light-base-link: #2f6b1e;
  --fg-light-base-inverse: #1f2418;
  --bg-light-card: #fdfdf8;
  --fg-light-card-body: #1f2418;
  --fg-light-card-heading: #1f2418;
  --fg-light-card-muted: #4f5644;
  --fg-light-card-link: #2f6b1e;
  --fg-light-card-inverse: #1f2418;
  --bg-light-elevated: #e7eedd;
  --fg-light-elevated-body: #1f2418;
  --fg-light-elevated-heading: #1f2418;
  --fg-light-elevated-muted: #4f5644;
  --fg-light-elevated-link: #2f6b1e;
  --fg-light-elevated-inverse: #1f2418;
  --brand-light-accent: #2f6b1e;
  --brand-light-accent-hover: #224f15;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #2f6b1e;
  --border-light-default: #6f7861;
  --border-light-subtle: #cfd4c0;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

/* Rural answer ledger: off-white ruled paper, olive-lime ledger tabs. */

:root {
  --font-heading: 'Kaisei Tokumin', Georgia, serif;
  --font-body: 'Teachers', Verdana, sans-serif;
  --ink: #1f2418;
  --ink-soft: #363d2c;
  --ink-muted: #4f5644;
  --paper: #f6f5ee;
  --sheet: #fdfdf8;
  --tint: #e7eedd;
  --olive: #2f6b1e;
  --olive-deep: #224f15;
  --on-olive: #ffffff;
  --lime-wash: #cfe3b4;
  --rule-strong: #6f7861;
  --rule: #cfd4c0;
  --margin-line: #b0cf94;
  --tab-radius: 7px;
  --measure: 40rem;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.95rem, 1.4rem + 2vw, 2.85rem);
  --step-4: clamp(2.3rem, 1.5rem + 3vw, 3.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: var(--step-3);
  text-wrap: balance;
}

h2 {
  font-size: var(--step-2);
}

h3 {
  font-size: var(--step-1);
}

p,
ul,
ol,
blockquote,
figure {
  margin: 0;
}

a {
  color: var(--olive);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--olive-deep);
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--sheet);
  border: 2px solid var(--olive);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header: brand row over a strip of ledger tabs ---------- */

.ledger-head {
  position: relative;
  z-index: 30;
  background: var(--sheet);
  border-bottom: 2px solid var(--olive);
}

.ledger-head__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
}

.ledger-brand {
  display: inline-flex;
  align-items: center;
  flex: 1 1 13rem;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.ledger-brand .site-logo {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}

.ledger-brand__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.ledger-brand:hover .ledger-brand__name {
  color: var(--olive-deep);
}

.site-nav {
  display: none;
}

/* Phone menu */

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--tab-radius);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
  background: var(--sheet);
  list-style: none;
  cursor: pointer;
}

.site-menu > summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.site-menu[open] .menu-icon {
  background: transparent;
}

.site-menu[open] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.site-menu[open] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-menu > ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 80vh;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 1rem var(--gutter) 2rem;
  background: var(--sheet);
  border-top: 2px solid var(--olive);
}

.site-menu > ul > li {
  border-bottom: 1px solid var(--rule);
}

.site-menu > ul > li > a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.site-menu > ul ul {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--margin-line);
}

.site-menu > ul ul a {
  display: block;
  padding: 0.35rem 0;
}

@media (min-width: 64rem) {
  .site-menu {
    display: none;
  }

  .site-nav {
    display: block;
    max-width: 74rem;
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  .site-nav > ul {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .site-nav > ul > li {
    position: relative;
  }

  .site-nav > ul > li > a,
  .site-nav-group > summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: -2px;
    padding: 0.55rem 0.95rem;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
    background: var(--tint);
    border: 1px solid var(--rule);
    border-bottom: 2px solid var(--olive);
    border-radius: var(--tab-radius) var(--tab-radius) 0 0;
    cursor: pointer;
  }

  .site-nav-group > summary {
    list-style: none;
  }

  .site-nav-group > summary::-webkit-details-marker {
    display: none;
  }

  .site-nav-group > summary::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    margin-top: -0.2rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .site-nav > ul > li > a:hover,
  .site-nav-group > summary:hover,
  .site-nav-group[open] > summary {
    background: var(--sheet);
    border-color: var(--olive);
    border-bottom-color: var(--sheet);
  }

  .site-nav-group[open] > summary::after {
    margin-top: 0.2rem;
    transform: rotate(-135deg);
  }

  .site-nav > ul > li:last-child {
    margin-left: auto;
  }

  .site-nav > ul > li:last-child > a {
    color: var(--on-olive);
    background: var(--olive);
    border-color: var(--olive);
  }

  .site-nav > ul > li:last-child > a:hover {
    color: var(--on-olive);
    background: var(--olive-deep);
    border-color: var(--olive-deep);
  }

  .site-nav-group > ul {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 40;
    width: 22rem;
    list-style: none;
    margin: 0;
    padding: 0.4rem 0 0.4rem 1.1rem;
    background: var(--sheet);
    border: 1px solid var(--olive);
    border-top: 0;
    border-radius: 0 0 var(--tab-radius) var(--tab-radius);
    box-shadow: inset 2px 0 0 var(--margin-line);
  }

  .site-nav-group > ul li {
    border-bottom: 1px solid var(--rule);
  }

  .site-nav-group > ul li:last-child {
    border-bottom: 0;
  }

  .site-nav-group > ul a {
    display: block;
    padding: 0.5rem 1rem 0.5rem 0.4rem;
    font-size: 0.97rem;
    line-height: 1.35;
    text-decoration: none;
  }

  .site-nav-group > ul a:hover {
    text-decoration: underline;
  }

  .site-nav-group > ul li:first-child a {
    font-weight: 700;
  }
}

/* ---------- Page frame ---------- */

.ledger-page {
  max-width: 74rem;
  min-height: 60vh;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.breadcrumbs li + li::before {
  content: "\203A";
  margin-right: 0.55rem;
  color: var(--rule-strong);
}

/* ---------- Shared body flow ---------- */

.tabbed,
.ruled,
.cell-grid,
.card-grid {
  max-width: var(--measure);
}

.tabbed > * + *,
.ruled > * + * {
  margin-top: 1rem;
}

.tabbed ul,
.tabbed ol,
.ruled ul,
.ruled ol,
.cell-grid ul,
.cell-grid ol,
.card-grid ul,
.card-grid ol {
  padding-left: 1.3rem;
}

.tabbed li + li,
.cell-grid li + li,
.card-grid li + li {
  margin-top: 0.35rem;
}

li::marker {
  color: var(--olive);
}

.accent-block {
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--olive);
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.photo-hero img,
.photo-inline img {
  display: block;
  width: 100%;
  border-radius: var(--tab-radius);
}

.photo-hero img {
  max-height: 22rem;
  object-fit: cover;
}

section[data-section][style] {
  border-radius: var(--tab-radius);
}

section[data-section][style] > .bg-surface-card {
  max-width: 32rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: var(--sheet);
  border-left: 4px solid var(--olive);
  border-radius: var(--tab-radius);
}

/* Tabs: every h2 is a ledger tab sitting on an olive rule. */

.tabbed > h2,
.ruled > h2 {
  display: table;
  margin-top: 2.25rem;
  padding: 0.45rem 1rem 0.35rem;
  font-size: var(--step-1);
  background: var(--tint);
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: var(--tab-radius) var(--tab-radius) 0 0;
}

.tabbed > h2 + *,
.ruled > h2 + * {
  margin-top: 0;
  padding-top: 0.9rem;
  border-top: 2px solid var(--olive);
}

.tabbed > h2 + ul,
.tabbed > h2 + ol,
.ruled > h2 + ul,
.ruled > h2 + ol {
  padding-top: 0.5rem;
}

/* Ruled sheet: margin line on the left, ruled rows under each list entry. */

.ruled {
  max-width: none;
  padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.6rem);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--tab-radius);
  box-shadow: inset 4px 0 0 var(--margin-line);
}

.ruled > h2:first-child {
  margin-top: 0;
}

.ruled ul {
  list-style: none;
  padding-left: 0;
}

.ruled ul li {
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

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

.ruled-list ul:empty {
  display: none;
}

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

.ruled-list li:last-child {
  border-bottom: 0;
}

.ruled-list a {
  display: block;
  padding: 0.65rem 0.25rem;
  line-height: 1.4;
  text-decoration: none;
}

.ruled-list a:hover {
  text-decoration: underline;
}

/* ---------- Home: two-column ledger hero ---------- */

.ledger-home {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.ledger-home__title h1 {
  font-size: var(--step-4);
  line-height: 1.08;
}

.ledger-home__lines {
  max-width: 30rem;
  margin-top: 1.25rem;
}

.display-line {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}

.display-line + .display-line {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  font-size: var(--step-0);
  border-top: 1px solid var(--rule);
}

.ledger-home__tabs {
  margin-top: 1.75rem;
}

.ledger-home__tabs a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--tint);
  border: 1px solid var(--rule);
  border-bottom: 2px solid var(--olive);
  border-radius: var(--tab-radius) var(--tab-radius) 0 0;
}

.ledger-home__tabs a:hover {
  background: var(--sheet);
  border-color: var(--olive);
}

@media (min-width: 60rem) {
  .ledger-home {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .ledger-home__intro {
    padding-top: 1.5rem;
  }
}

/* ---------- Topic cluster: tab index beside ruled question list ---------- */

.ledger-topic {
  display: grid;
  gap: 1.5rem;
}

.ledger-topic__list {
  padding: 0.5rem 1.1rem 0.5rem 1.6rem;
  border: 1px solid var(--rule);
  border-radius: var(--tab-radius);
  box-shadow: inset 4px 0 0 var(--margin-line);
}

@media (min-width: 60rem) {
  .ledger-topic {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .ledger-topic__title {
    grid-column: 1 / -1;
  }

  .ledger-topic__index > h2:first-child {
    margin-top: 0;
  }
}

/* ---------- Question detail: answer first, one ruled column ---------- */

.ledger-answer {
  max-width: 44rem;
}

.ledger-answer__title {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-strong);
}

.answer-first > p:first-of-type {
  padding: 1rem 1.25rem 1rem 1.5rem;
  font-size: var(--step-1);
  line-height: 1.55;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--tab-radius);
  box-shadow: inset 4px 0 0 var(--olive);
}

/* ---------- About: grid of ruled ledger cells ---------- */

.ledger-about__title {
  margin-bottom: 1.5rem;
}

.cell-grid {
  max-width: 62rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 2px solid var(--olive);
}

.cell-grid > * {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.cell-grid > h2 {
  padding-bottom: 0.35rem;
  font-size: var(--step-1);
  color: var(--olive-deep);
  border-bottom: 0;
}

@media (min-width: 48rem) {
  .cell-grid {
    grid-template-columns: minmax(11rem, 0.42fr) minmax(0, 1fr);
    column-gap: 2rem;
  }

  .cell-grid > * {
    grid-column: 2;
  }

  .cell-grid > :not(h2):not(h2 ~ *) {
    grid-column: 1 / -1;
  }

  .cell-grid > h2 {
    grid-column: 1;
    padding: 0.85rem 0 0.85rem 0.9rem;
    border-bottom: 1px solid var(--rule);
    box-shadow: inset 3px 0 0 var(--margin-line);
  }
}

/* ---------- Grid of small ruled cards: geo cluster and thank-you ---------- */

.ledger-area,
.ledger-thanks {
  display: grid;
  gap: 1.5rem;
}

.card-grid {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.9rem;
  align-items: start;
}

.card-grid > * {
  padding: 1rem 1.15rem 1rem 1.4rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--tab-radius);
  box-shadow: inset 3px 0 0 var(--margin-line);
}

.card-grid > :not(h2):not(h2 ~ *) {
  grid-column: 1 / -1;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  max-width: var(--measure);
}

.card-grid > h2 {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 1rem;
  padding: 0.45rem 1rem 0.35rem;
  font-size: var(--step-1);
  background: var(--tint);
  border-bottom: 2px solid var(--olive);
  border-radius: var(--tab-radius) var(--tab-radius) 0 0;
  box-shadow: none;
}

.card-grid > figure,
.card-grid > section {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.card-grid > ul,
.card-grid > ol {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.9rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.card-grid > ul > li,
.card-grid > ol > li {
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 1.3rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--tab-radius);
  box-shadow: inset 3px 0 0 var(--margin-line);
}

.ledger-area__list {
  max-width: var(--measure);
  padding: 0.5rem 1.1rem 0.5rem 1.6rem;
  border: 1px solid var(--rule);
  border-radius: var(--tab-radius);
  box-shadow: inset 4px 0 0 var(--margin-line);
}

/* ---------- Contact: ledger rows filled one at a time ---------- */

.ledger-contact {
  display: grid;
  gap: 1.5rem;
  max-width: 50rem;
}

.ledger-form {
  counter-reset: entry;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--olive);
  border-radius: 0 0 var(--tab-radius) var(--tab-radius);
}

.ledger-form__row {
  counter-increment: entry;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.ledger-form__row::before {
  content: counter(entry);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--olive-deep);
  border: 1px solid var(--olive);
  border-radius: 50%;
}

.ledger-form__row label {
  font-weight: 600;
}

.ledger-form__row:focus-within {
  background: var(--tint);
}

.ledger-form input,
.ledger-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}

.ledger-form textarea {
  resize: vertical;
}

.ledger-form__submit {
  padding: 1.1rem;
}

.ledger-form__button {
  min-height: 2.9rem;
  padding: 0.65rem 1.5rem;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  color: var(--on-olive);
  background: var(--olive);
  border: 0;
  border-radius: var(--tab-radius);
  cursor: pointer;
}

.ledger-form__button:hover {
  background: var(--olive-deep);
}

@media (min-width: 48rem) {
  .ledger-form__row {
    grid-template-columns: 2.2rem minmax(8rem, 0.3fr) minmax(0, 1fr);
    align-items: start;
  }

  .ledger-form__row::before {
    grid-row: auto;
  }

  .ledger-form__row label {
    padding-top: 0.55rem;
  }

  .ledger-form__row:nth-child(2) {
    padding-left: 2.1rem;
  }

  .ledger-form__row:nth-child(3) {
    padding-left: 3.1rem;
  }

  .ledger-form__row:nth-child(4) {
    padding-left: 4.1rem;
  }

  .ledger-form__submit {
    padding-left: 4.1rem;
  }
}

/* ---------- Footer ---------- */

.ledger-foot {
  background: var(--tint);
  border-top: 2px solid var(--olive);
  color: var(--ink-muted);
}

.ledger-foot__inner {
  display: grid;
  gap: 0.5rem;
  max-width: 74rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.25rem;
}

.ledger-foot__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.ledger-foot__line {
  max-width: 36rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
