@font-face { font-family: 'Cormorant Unicase'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/cormorant-unicase-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Unicase'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-unicase-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Unicase'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-unicase-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Unicase'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-unicase-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Cormorant Unicase'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/cormorant-unicase-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/spectral-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/spectral-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/spectral-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/spectral-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/spectral-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/spectral-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/spectral-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/spectral-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/spectral-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/spectral-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/spectral-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/spectral-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/spectral-latin-800-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #f6f4f5;
  --fg-light-base-body: #1f1a21;
  --fg-light-base-heading: #1f1a21;
  --fg-light-base-muted: #5b535d;
  --fg-light-base-link: #a8285f;
  --fg-light-base-inverse: #1f1a21;
  --bg-light-card: #ffffff;
  --fg-light-card-body: #1f1a21;
  --fg-light-card-heading: #1f1a21;
  --fg-light-card-muted: #5b535d;
  --fg-light-card-link: #a8285f;
  --fg-light-card-inverse: #1f1a21;
  --bg-light-elevated: #ece6ea;
  --fg-light-elevated-body: #1f1a21;
  --fg-light-elevated-heading: #1f1a21;
  --fg-light-elevated-muted: #5b535d;
  --fg-light-elevated-link: #a8285f;
  --fg-light-elevated-inverse: #1f1a21;
  --brand-light-accent: #a8285f;
  --brand-light-accent-hover: #7c1b46;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #a8285f;
  --focus-ring: var(--focus-light-ring);
  --border-light-default: #857b85;
  --border-light-subtle: #d8d0d5;
}
.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; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-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-ring); }

:root {
  --lg-head: 'Cormorant Unicase', Georgia, serif;
  --lg-text: 'Spectral', Georgia, serif;
  --lg-rose: var(--brand-light-accent);
  --lg-rose-deep: var(--brand-light-accent-hover);
  --lg-on-rose: var(--brand-light-on-accent);
  --lg-rule: var(--border-light-default);
  --lg-hair: var(--border-light-subtle);
  --lg-paper: var(--bg-light-card);
  --lg-shade: var(--bg-light-elevated);
  --lg-gutter: clamp(1rem, 3.5vw, 2.25rem);
  --lg-width: 72rem;
}

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

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

body {
  margin: 0;
  font-family: var(--lg-text);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--lg-head);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a.text-role-link:hover { color: var(--lg-rose-deep); text-decoration-thickness: 2px; }

/* ---------- header (static) ---------- */

.site-header {
  position: relative;
  border-bottom: 1px solid var(--lg-rule);
}

.ledger-top {
  max-width: var(--lg-width);
  margin: 0 auto;
  padding: 0.7rem var(--lg-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ledger-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.ledger-brand .site-logo { width: 2.25rem; height: 2.25rem; flex: none; }

.ledger-name {
  font-family: var(--lg-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
}

.ledger-brand:hover .ledger-name { color: var(--lg-rose-deep); }

/* phone menu */
.site-menu { flex: none; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--lg-rule);
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap;
}

.site-menu > summary:hover { background: var(--lg-shade); }

.menu-icon {
  display: block;
  width: 1rem;
  height: 0.75rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.site-menu[open] .menu-icon { background: none; border-bottom-color: transparent; }

.site-menu > ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem var(--lg-gutter) 1.25rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  background: var(--lg-paper);
  border-bottom: 1px solid var(--lg-rule);
  max-height: 80vh;
  overflow-y: auto;
}

.site-menu > ul li { border-top: 1px solid var(--lg-hair); }
.site-menu > ul > li:first-child { border-top: 0; }

.site-menu > ul a {
  display: block;
  padding: 0.6rem 0;
  line-height: 1.3;
  text-decoration: none;
}

.site-menu > ul > li > a { font-family: var(--lg-head); font-weight: 700; font-size: 1.2rem; }

.site-menu > ul ul { list-style: none; margin: 0 0 0.5rem; padding-left: 1rem; }
.site-menu > ul ul li { border-top: 0; }
.site-menu > ul ul a { padding: 0.35rem 0; font-size: 0.98rem; }

/* desktop mega-panel row */
.ledger-navrow { display: none; }

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

  .ledger-brand .site-logo { width: 2.6rem; height: 2.6rem; }
  .ledger-name { font-size: 1.5rem; white-space: nowrap; }

  .ledger-navrow {
    display: block;
    border-top: 1px solid var(--lg-hair);
  }

  .site-nav {
    max-width: var(--lg-width);
    margin: 0 auto;
    padding: 0 var(--lg-gutter);
  }

  .site-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    border-left: 1px solid var(--lg-hair);
  }

  .site-nav > ul > li {
    flex: none;
    border-right: 1px solid var(--lg-hair);
  }

  .site-nav > ul > li > a,
  .site-nav-group > summary {
    display: block;
    padding: 0.6rem 0.85rem 0.55rem;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 3px solid transparent;
  }

  .site-nav > ul > li > a:hover,
  .site-nav-group > summary:hover { border-bottom-color: var(--lg-rose); background: var(--lg-shade); }

  .site-nav-group { position: static; }
  .site-nav-group > summary { list-style: none; cursor: pointer; }
  .site-nav-group > summary::-webkit-details-marker { display: none; }

  .site-nav-group > summary::after {
    content: "";
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.5rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-0.2em) rotate(45deg);
  }

  .site-nav-group[open] > summary { border-bottom-color: var(--lg-rose); background: var(--lg-shade); }

  .site-nav-group > ul {
    list-style: none;
    margin: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    padding: 1.25rem max(var(--lg-gutter), calc((100% - var(--lg-width)) / 2 + var(--lg-gutter))) 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 2rem;
    background: var(--lg-paper);
    border-top: 1px solid var(--lg-rule);
    border-bottom: 1px solid var(--lg-rule);
  }

  .site-nav-group > ul > li { border-top: 1px solid var(--lg-hair); }

  .site-nav-group > ul > li:first-child {
    grid-column: 1 / -1;
    border-top: 0;
    border-bottom: 2px solid var(--lg-rose);
    margin-bottom: 0.4rem;
  }

  .site-nav-group > ul a {
    display: block;
    padding: 0.55rem 0;
    line-height: 1.3;
    text-decoration: none;
  }

  .site-nav-group > ul > li:first-child > a {
    font-family: var(--lg-head);
    font-weight: 700;
    font-size: 1.35rem;
  }
}

/* ---------- shared frame ---------- */

.breadcrumbs {
  max-width: var(--lg-width);
  margin: 0 auto;
  padding: 0.9rem var(--lg-gutter) 0;
  font-size: 0.9rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--fg-muted);
}

.ledger {
  display: block;
  max-width: var(--lg-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--lg-gutter) clamp(2.5rem, 6vw, 4.5rem);
}

.ledger h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  line-height: 1.02;
  max-width: 20ch;
  text-wrap: balance;
}

.icon { display: block; width: 2.75rem; height: 2.75rem; flex: none; color: var(--lg-rose); }

.ledger p,
.ledger ul,
.ledger ol { margin: 0 0 1rem; }

.ledger li { margin-bottom: 0.4rem; }

.ledger h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.4rem 0 0.7rem; }
.ledger h3 { font-size: 1.35rem; margin: 1.6rem 0 0.5rem; }

.photo-hero,
.photo-inline { margin: 0 0 1.75rem; }

.photo-hero img,
.photo-inline img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--lg-rule);
  padding: 0.35rem;
  background: var(--lg-paper);
}

.photo-hero img { aspect-ratio: 16 / 9; object-fit: cover; }

.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; border-top: 2px solid var(--lg-rule); }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }

.table-scroll th,
.table-scroll td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--lg-hair);
}

.table-scroll th + th,
.table-scroll td + td { border-left: 1px solid var(--lg-hair); }

.table-scroll th {
  font-family: var(--lg-head);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--lg-shade);
}

.accent-block {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--lg-rose);
  background: var(--lg-shade);
}

/* ---------- home: stepped scorecard ---------- */

.step { position: relative; }

.step-cover {
  display: grid;
  gap: 1.5rem;
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--lg-rule);
}

.cover-title h1 { max-width: 16ch; font-size: clamp(2.5rem, 6.4vw, 4.6rem); }

.cover-score { border-top: 2px solid var(--lg-rule); }

.display-line {
  position: relative;
  margin: 0;
  padding: 0.8rem 0 0.8rem 1.6rem;
  border-bottom: 1px solid var(--lg-hair);
  font-size: 1.08rem;
  line-height: 1.5;
}

.display-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  bottom: 0.95rem;
  width: 0.35rem;
  background: var(--lg-rose);
}

.step-pair {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.pair-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--lg-rule);
  border-top: 4px solid var(--lg-rose);
  text-decoration: none;
}

.pair-card:hover { background: var(--lg-shade); }

.pair-name {
  font-family: var(--lg-head);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
}

.step-body { margin-top: clamp(2rem, 5vw, 3rem); max-width: 68ch; }

@media (min-width: 760px) {
  .step-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .step-cover {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 3rem;
  }

  .step-pair,
  .step-body {
    padding-left: 2rem;
    border-left: 1px solid var(--lg-rule);
  }

  .step-pair { margin-left: 6%; }

  .step-body {
    margin-left: 12%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 62ch) minmax(0, 1fr);
    column-gap: 3rem;
  }

  .step-body > * { grid-column: 1; }
  .step-body > .photo-hero { grid-column: 2; grid-row: 1 / span 6; align-self: start; }
  .step-body > .photo-hero img { aspect-ratio: 4 / 5; }

  .step-pair::before,
  .step-body::before {
    content: "";
    position: absolute;
    left: -0.3rem;
    top: 0;
    width: 0.6rem;
    height: 0.6rem;
    background: var(--lg-rose);
  }
}

/* ---------- ranked ledger ---------- */

.ledger-rank { max-width: 56rem; }

.rank-head { padding-bottom: 1.25rem; border-bottom: 2px solid var(--lg-rule); margin-bottom: 1.75rem; }

.rank-sheet ol {
  padding-left: 3.75rem;
  border-top: 1px solid var(--lg-rule);
}

.rank-sheet ol > li {
  position: relative;
  padding: 0.9rem 0 0.9rem 0.5rem;
  margin: 0;
  border-bottom: 1px solid var(--lg-hair);
}

.rank-sheet ol > li::marker {
  font-family: var(--lg-head);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--lg-rose);
}

.rank-sheet ol > li:first-child { background: var(--lg-paper); }

.rank-sheet ol > li:first-child::before {
  content: "";
  position: absolute;
  left: -3.75rem;
  top: 0;
  width: 0.5rem;
  height: 3.2rem;
  background: var(--lg-rose);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.rank-facts {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.25rem 1.4rem 0.75rem;
  border: 1px solid var(--lg-rule);
}

.ledger .rank-facts-label { margin: 0 0 0.75rem; font-size: 1.45rem; }

.rank-facts > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 16rem 2;
  column-gap: 2rem;
  column-rule: 1px solid var(--lg-hair);
}

.rank-facts > ul > li {
  break-inside: avoid;
  margin: 0;
  padding: 0.45rem 0;
  border-top: 1px solid var(--lg-hair);
}

/* ---------- versus (two-column) ---------- */

.versus-grid { display: grid; gap: 1.5rem; }

.versus-head { display: flex; flex-direction: column; gap: 0.9rem; }

.versus-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.versus-main { max-width: 68ch; }

.versus-main h2 {
  padding-top: 0.6rem;
  border-top: 1px solid var(--lg-rule);
}

@media (min-width: 1000px) {
  .versus-grid { grid-template-columns: 19rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .versus-head h1 { font-size: 2.3rem; }
  .versus-head { padding-right: 1.5rem; border-right: 1px solid var(--lg-rule); }
  .versus-main { max-width: none; }
  .versus-main > p,
  .versus-main > ul,
  .versus-main > ol,
  .versus-main > h2 { max-width: 66ch; }
  .versus-main .table-scroll { overflow: visible; }
  .versus-main .table-scroll th { position: sticky; top: 0; z-index: 1; }
}

/* ---------- dossier (split) ---------- */

.dossier-split { display: grid; gap: 2rem; }

.dossier-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--lg-rule);
}

.dossier-card h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }

.dossier-bar {
  display: block;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--lg-rose) 0 100%) left / 100% 100% no-repeat, var(--lg-shade);
  border: 1px solid var(--lg-hair);
}

.dossier-body > h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--lg-rule);
}

.dossier-body > h2::before {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--lg-rose);
  border-radius: 50%;
}

@media (min-width: 1000px) {
  .dossier-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .dossier-card { position: sticky; top: 1.5rem; }
}

/* ---------- method (stepped) ---------- */

.ledger-method { max-width: 58rem; }

.method-head { padding-bottom: 1.25rem; border-bottom: 2px solid var(--lg-rule); }

.method-steps { counter-reset: method; max-width: 68ch; }

.method-steps > h2 {
  counter-increment: method;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
}

.method-steps > h2::before {
  content: counter(method);
  font-weight: 300;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--lg-rose);
}

@media (min-width: 760px) {
  .method-steps { padding-left: 2rem; border-left: 1px solid var(--lg-rule); }
  .method-steps > h2:nth-of-type(2),
  .method-steps > h2:nth-of-type(2) ~ * { margin-left: 1.5rem; }
  .method-steps > h2:nth-of-type(3),
  .method-steps > h2:nth-of-type(3) ~ * { margin-left: 3rem; }
  .method-steps > h2:nth-of-type(4),
  .method-steps > h2:nth-of-type(4) ~ * { margin-left: 4.5rem; }
  .method-steps > h2:nth-of-type(5),
  .method-steps > h2:nth-of-type(5) ~ * { margin-left: 6rem; }
}

/* ---------- correction request (split) ---------- */

.correct-split { display: grid; gap: 2rem; }

.correct-title h1 { margin-bottom: 1.25rem; }

.correct-card {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--lg-rule);
  border-top: 4px solid var(--lg-rose);
  max-width: 26rem;
  align-self: start;
}

.correct-label {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--lg-hair);
  font-family: var(--lg-head);
  font-weight: 700;
  font-size: 1.1rem;
}

.correct-label:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.correct-input {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0.55rem 0.65rem;
  background: var(--lg-paper);
  border: 1px solid var(--lg-rule);
  border-radius: 0;
}

.correct-input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

.correct-area { resize: vertical; min-height: 8rem; }

.correct-button {
  justify-self: start;
  margin-top: 1rem;
  padding: 0.7rem 1.3rem;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  color: var(--lg-on-rose);
  background: var(--lg-rose);
  border: 0;
  cursor: pointer;
}

.correct-button:hover { background: var(--lg-rose-deep); color: var(--lg-on-rose); }

@media (min-width: 1000px) {
  .correct-split { grid-template-columns: minmax(0, 1fr) 24rem; gap: 3.5rem; align-items: start; }
  .correct-note { max-width: 62ch; }
}

/* ---------- receipt (one-column) ---------- */

.ledger-receipt { max-width: 40rem; }

.receipt {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--lg-rule);
  border-top: 4px solid var(--lg-rose);
}

.icon-ribbon { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; }

.receipt-title h1 { margin-bottom: 1.1rem; font-size: clamp(2.1rem, 5vw, 3.1rem); }

.receipt h2 { padding-top: 0.6rem; border-top: 1px solid var(--lg-hair); }

/* ---------- footer ---------- */

.ledger-footer { border-top: 2px solid var(--lg-rule); }

.ledger-footer-inner {
  max-width: var(--lg-width);
  margin: 0 auto;
  padding: 1.75rem var(--lg-gutter) 2.25rem;
}

.ledger-footer-name {
  margin: 0 0 0.35rem;
  font-family: var(--lg-head);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
}

.ledger-footer-note { margin: 0; font-size: 0.95rem; max-width: 60ch; }

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