/* =========================================================================
   Ledgerstone brand layer — every page. Sits on Bootstrap 5 (LT-R20…R23)
   and on tokens.css, which is generated from the app's design tokens
   (design/tokens.json; the app's docs/ui/FOUNDATION.md is the rulebook).

   Two jobs:
   1. The shared chrome — sticky header, footer, logo, buttons, focus — that
      every page wears, homepage included.
   2. Re-pointing Bootstrap's IDENTITY (colour, type, radius) at the tokens
      so the inner pages read as the same site. Never its GEOMETRY: spacing,
      grid and breakpoints stay Bootstrap's.

   Homepage sections live in marketing.css, loaded by those pages only.
   ========================================================================= */

:root {
  /* Aliases kept for the inner pages, calc.css and glossary.css. */
  --ls-page: var(--surface);
  --ls-surface: var(--surface);
  --ls-surface-2: var(--ground);
  --ls-border: var(--border);
  --ls-border-2: var(--border-input);
  --ls-ink: var(--ink);
  --ls-ink-2: var(--text-2);
  --ls-muted: var(--muted);
  --ls-accent: var(--primary);
  --ls-accent-text: var(--primary);
  --ls-accent-press: var(--primary-hover);
  --ls-good: var(--success-text);
  --ls-error: var(--danger-text);
  --ls-focus: var(--focus-halo);
  --ls-mono: var(--font-data);

  /* Bootstrap's own variables, repointed. Identity, not geometry. */
  --bs-body-bg: var(--surface);
  --bs-body-color: var(--ink);
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--border);
  --bs-primary: var(--primary);
  --bs-primary-rgb: 143, 93, 40;
  --bs-link-color: var(--primary);
  --bs-link-color-rgb: 143, 93, 40;
  --bs-link-hover-color: var(--primary);
  --bs-link-hover-color-rgb: 143, 93, 40;
  --bs-link-decoration: none;
  --bs-border-radius: var(--r-control);
  --bs-border-radius-sm: var(--r-pill);
  --bs-border-radius-lg: var(--r-card);
  --bs-body-font-family: var(--font-ui);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.55;
  --bs-heading-color: var(--ink);
}

body { -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
/* App F6: a text link keeps its colour and underlines on hover and focus.
   Navigation, buttons and cards opt out below. */
a:hover, a:focus-visible {
  color: var(--primary); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.ls-btn:hover, .btn:hover, .ls-logo:hover, .ls-header a:hover, .ls-menu a:hover,
.ls-footer a:hover, .ls-skip:focus { text-decoration: none; }

/* --- Type. Headings 600 with tight tracking (03 · Type). ------------------ */
h1, h2, h3, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  letter-spacing: -.03em; font-weight: 600; line-height: 1.1; text-wrap: balance;
}
h4, h5, h6 { letter-spacing: -.02em; font-weight: 600; }
.lead { font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.55; color: var(--text-2); font-weight: 400; }

/* Eyebrow: the app's eyebrow role — sans, uppercase, muted. Bronze is for
   links, the primary button and active markers only (app F2, R-1). The
   variants are kept so old markup still renders; they no longer differ. */
.ls-eyebrow {
  font: var(--text-eyebrow--font-weight) var(--text-eyebrow)/var(--text-eyebrow--line-height) var(--font-ui);
  letter-spacing: var(--text-eyebrow--letter-spacing);
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}

/* Figures and dates: the UI face with tabular numbers (app F3 — mono is for
   identifiers only). The class name is historical. */
.ls-mono { font-variant-numeric: tabular-nums; }
.ls-muted { color: var(--muted); }

/* --- Focus: visible on every interactive element, never removed. -------- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.form-control:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--ls-focus);
}

/* --- Layout atoms shared by every page. ----------------------------------- */
.ls-wrap {
  max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
}
:target { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.ls-anchor-alias { display: block; position: relative; top: -84px; height: 0; }

/* --- Buttons. The app's two (C2): primary is the one bronze fill; secondary
       is white with the panel hairline and turns mist on hover. ------------ */
.ls-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; border-radius: var(--r-control); cursor: pointer;
  font: 600 15px/1.2 var(--font-ui); padding: 13px 20px;
  text-align: center; white-space: nowrap; text-decoration: none;
  transition: background-color .15s ease;
}
.ls-btn--primary { background: var(--primary); color: var(--surface); box-shadow: var(--shadow-toggle); }
.ls-btn--primary:hover { background: var(--primary-hover); color: var(--surface); }
.ls-btn--secondary {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--panel-border), var(--shadow-panel);
}
.ls-btn--secondary:hover { background: var(--mist); color: var(--ink); }
.ls-btn--sm { font-size: 14px; padding: 10px 18px; }
.ls-btn--lg { font-size: 16px; padding: 15px 22px; }
.ls-btn--block { display: flex; width: 100%; }
.ls-btn[disabled] { opacity: .7; cursor: progress; }

/* Bootstrap buttons on the inner pages take the same identity. */
.btn { font-weight: 600; border-radius: var(--r-control); }
.btn-primary {
  --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-hover); --bs-btn-hover-border-color: var(--primary-hover);
  --bs-btn-active-bg: var(--primary-hover); --bs-btn-active-border-color: var(--primary-hover);
  --bs-btn-color: var(--surface); --bs-btn-hover-color: var(--surface); --bs-btn-active-color: var(--surface);
  box-shadow: var(--shadow-toggle);
  --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary);
}
.btn-secondary {
  --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--panel-border);
  --bs-btn-hover-bg: var(--mist); --bs-btn-hover-border-color: var(--panel-border);
  --bs-btn-active-bg: var(--mist); --bs-btn-active-border-color: var(--panel-border);
  --bs-btn-color: var(--ink); --bs-btn-hover-color: var(--ink); --bs-btn-active-color: var(--ink);
  box-shadow: var(--shadow-panel);
}

/* --- Logo: tally mark + lowercase wordmark (05 · Assets). ----------------- */
.ls-mark { display: block; flex: none; overflow: visible; }
.ls-mark__bar { stroke: var(--ink); fill: none; }
.ls-mark__slash { stroke: var(--accent); fill: none; }
.ls-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; min-height: 44px;
}
.ls-logo:hover { color: var(--ink); }
.ls-logo__word { font: 600 22px/1 var(--font-wordmark); letter-spacing: .005em; }
.ls-logo--sm .ls-logo__word { font-size: 17px; }

/* --- Header (v4 §1): sticky, frosted, logo · nav · actions. --------------- */
.ls-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--surface-frost);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.ls-header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 12px;
}
.ls-header__nav { display: none; }
.ls-header__login { display: none; }
.ls-header__actions { display: flex; align-items: center; gap: 6px; }
/* The five anchors need about 960px beside the logo and actions; below that
   they would wrap to a second row, so they move into the menu. */
@media (min-width: 960px) {
  /* Links sit on the right, next to Log in and the demo button; the logo stands alone. */
  .ls-header__nav { display: flex; flex: 1; justify-content: flex-end; gap: 18px; font-size: 14px; margin-right: 12px; }
  .ls-header__nav a { white-space: nowrap; }
}
/* Five links since Nov 30 2026: a little more air between them. */
@media (min-width: 960px) { .ls-header__nav { gap: 26px; padding-left: 12px; } }
@media (min-width: 1100px) { .ls-header__nav { gap: 32px; } }
/* Below 960: logo + menu button; the demo button lives in the sticky bar. */
.ls-nav-cta { display: none; }
@media (min-width: 960px) {
  .ls-nav-cta { display: inline-flex; }
  .ls-header__login { display: inline-flex; }
  .ls-menu-btn, .ls-menu { display: none !important; }
}
.ls-menu-btn {
  width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.ls-menu-btn__bar, .ls-menu-btn__bar::before, .ls-menu-btn__bar::after {
  display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor;
  position: relative; transition: transform .2s ease, background-color .2s ease;
}
.ls-menu-btn__bar::before, .ls-menu-btn__bar::after { content: ""; position: absolute; left: 0; }
.ls-menu-btn__bar::before { top: -6px; }
.ls-menu-btn__bar::after { top: 6px; }
.ls-menu-btn[aria-expanded="true"] .ls-menu-btn__bar { background: transparent; }
.ls-menu-btn[aria-expanded="true"] .ls-menu-btn__bar::before { transform: translateY(6px) rotate(45deg); }
.ls-menu-btn[aria-expanded="true"] .ls-menu-btn__bar::after { transform: translateY(-6px) rotate(-45deg); }
.ls-menu { border-top: 1px solid var(--border); background: var(--surface); padding-bottom: 8px;
  max-height: calc(100vh - 69px); overflow-y: auto; }
.ls-menu[hidden] { display: none; }
.ls-menu__list { list-style: none; margin: 0; padding: 4px 0 0; }
.ls-menu__list > li { border-bottom: 1px solid var(--divider); }
.ls-menu__list > li:last-child { border-bottom: 0; }
/* One row style for links and for the groups that open in place. */
.ls-menu__row {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  font-size: 17px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.ls-menu__row:hover { color: var(--primary); }
summary.ls-menu__row { list-style: none; }
summary.ls-menu__row::-webkit-details-marker { display: none; }
/* Chevron: points down when closed, up when open. */
summary.ls-menu__row::after {
  content: ""; width: 8px; height: 8px; margin-right: 6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.ls-menu__group[open] > summary.ls-menu__row::after { transform: translateY(2px) rotate(-135deg); }
.ls-menu__sub { list-style: none; margin: -4px 0 0; padding: 0 0 10px 14px; border-left: 2px solid var(--divider); margin-left: 2px; }
.ls-menu__sub a {
  display: flex; align-items: center; min-height: 44px; padding-left: 4px;
  font-size: 15.5px; color: var(--text-2);
}
.ls-menu__sub a:hover { color: var(--ink); }
.ls-menu__sub .ls-menu__all { color: var(--primary); font-weight: 500; }
.ls-menu__foot { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0 10px; margin-top: 4px; border-top: 1px solid var(--divider); font-size: 15px; }
.ls-menu__foot a { color: var(--text-2); min-height: 40px; display: inline-flex; align-items: center; }
/* The section you are in, in the desktop nav. */
.ls-header__nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
@media (prefers-reduced-motion: reduce) { summary.ls-menu__row::after, .ls-menu-btn__bar, .ls-menu-btn__bar::before, .ls-menu-btn__bar::after { transition: none; } }

/* Sticky demo bar (below 960px). */
.ls-sticky-cta { display: none; }
.ls-sticky-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 60vh; pointer-events: none; }
#content { position: relative; }
@media (max-width: 959.98px) {
  .ls-sticky-cta {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 1020;
    background: var(--surface-frost); border-top: 1px solid var(--border);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    animation: ls-bar-in .18s ease-out;
  }
  .ls-sticky-cta[hidden] { display: none; }
  /* Room for the bar inside the dark footer, so no white strip shows below it. */
  body:has(.ls-sticky-cta) .ls-footer { padding-bottom: 76px; }
}
@keyframes ls-bar-in { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ls-sticky-cta { animation: none; } }

.ls-header__nav a { color: var(--text-2); }
.ls-header__nav a:hover { color: var(--ink); }
.ls-header .ls-header__login, .ls-header .ls-header__login:hover { color: var(--ink); }
.ls-header__actions .ls-btn + .ls-btn { margin-left: 4px; }

/* --- Footer: the one dark band (v7). -------------------------------------- */
.ls-footer { background: var(--ink); color: var(--on-dark-muted); }
.ls-footer .ls-logo, .ls-footer .ls-logo:hover { color: var(--on-dark); }
.ls-footer .ls-mark__bar { stroke: var(--on-dark); }
.ls-footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 24px; padding-block: 40px; font-size: 14px;
}
/* Five link groups: two columns on phones, five from 960px (Nov 24, 2026). */
.ls-footer__nav { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
@media (min-width: 640px) { .ls-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ls-footer__nav { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ls-footer__h { margin: 0 0 8px; font: 600 12px/1.4 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); }
.ls-footer__list { list-style: none; margin: 0; padding: 0; }
.ls-footer__nav a { color: var(--on-dark-muted); display: inline-block; padding-block: 6px; line-height: 1.35; }
.ls-footer__nav a:hover { color: var(--on-dark); }
.ls-footer__nav .ls-footer__more { color: var(--accent-on-dark); }
.ls-footer :focus-visible { outline-color: var(--accent-on-dark); }
/* Legal text, not navigation — sized so it never competes with the links. */
.ls-footer__legal {
  width: 100%; margin: 0; padding-top: 18px; border-top: 1px solid var(--rule-on-dark);
  font-size: .75rem; line-height: 1.5; color: var(--on-dark-faint);
}

/* --- Skip link. ----------------------------------------------------------- */
.ls-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 1080;
  background: var(--ink); color: var(--surface); padding: .7rem 1rem;
  border-radius: var(--r-control); text-decoration: none; transition: top .12s ease-out;
}
.ls-skip:focus { top: .75rem; color: var(--surface); }

/* --- Honeypot: off-screen, unfocusable, never announced. ----------------- */
.hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; }

/* =========================================================================
   Inner pages (Bootstrap layout, brand identity).
   ========================================================================= */

/* Grounds: white, or the app's warm ground with its section rule. No dark
   sections. A card on the ground is the app's panel (F1, F4). */
.ls-ground-page { background: var(--surface); }
.ls-ground-surface, .ls-ground-sunk { background: var(--ground); border-block: 1px solid var(--rule-on-ground); }

.card {
  border-color: var(--panel-border); border-radius: var(--r-card);
  box-shadow: var(--shadow-panel); background: var(--surface);
}
.ls-rule { border: 0; border-top: 1px solid var(--border); opacity: 1; }

/* Tables and disclosures. */
.table > :not(caption) > * > * { background: transparent; }
@media (max-width: 767.98px) {
  .table-responsive { font-size: .85rem; }
  .table-responsive th, .table-responsive td { padding: .45rem .5rem; }
  .ls-prose .table-responsive > table { min-width: 34rem; }
  .table-responsive {
    background:
      linear-gradient(to right, var(--surface) 30%, transparent) 0 0 / 40px 100%,
      linear-gradient(to left, var(--surface) 30%, transparent) 100% 0 / 40px 100%,
      radial-gradient(farthest-side at 0 50%, var(--ring-8), transparent) 0 0 / 18px 100%,
      radial-gradient(farthest-side at 100% 50%, var(--ring-8), transparent) 100% 0 / 18px 100%;
    background-repeat: no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
  .table-responsive .ls-table thead th { background: transparent; border-bottom: 1px solid var(--rule); }
}
/* Table header: the app's (F3) — sentence case, sans 12/500, muted, on
   the inset. Never uppercase or letter-spaced. */
.ls-table thead th {
  font: var(--text-table-head--font-weight) var(--text-table-head)/var(--text-table-head--line-height) var(--font-ui);
  color: var(--muted); background: var(--surface-inset);
}
.ls-table td { font-variant-numeric: tabular-nums; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Forms on the inner pages (sample gate, sign-in). Inputs at 16px so iOS
   does not zoom. */
.form-control, .form-select {
  background: var(--surface); border-color: var(--border-input);
  border-radius: var(--r-control); font-size: 16px; min-height: 48px;
}
.form-label { font-weight: 600; font-size: 14px; }
.ls-pending { border-left: 3px solid var(--ls-error); background: var(--ground); }
.ls-pending strong { color: var(--ls-error); font-weight: 600; }

/* Alerts: Bootstrap's component, our palette. */
.ls-alert {
  --bs-alert-border-radius: var(--r-item);
  border: 1px solid var(--border); border-left-width: 3px;
  background: var(--surface-inset); color: var(--text-2);
}
.ls-alert--error { border-left-color: var(--ls-error); }
.ls-alert--error .ls-icon { stroke: var(--ls-error); }
.ls-alert--warn { border-left-color: var(--warn-text); }
.ls-alert--ok { border-left-color: var(--ls-good); }
.ls-alert--ok .ls-icon { stroke: var(--ls-good); }
.ls-alert p:last-child, .ls-alert ul:last-child { margin-bottom: 0; }
.ls-field-error { color: var(--ls-error); }

/* Stroke-only icons, one size, in the text colour (app: icons are never
   bronze outside the active nav item). */
.ls-icon {
  width: 22px; height: 22px; display: block; flex: none;
  fill: none; stroke: var(--text-2); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Sign-in page: a single centred card. */
.ls-login { padding-block: 3rem 4rem; }
@media (min-width: 768px) { .ls-login { padding-block: 5rem 6rem; } }
.ls-login .card { box-shadow: var(--shadow-hero); }   /* the app's signed-out card */
.ls-login__labelrow {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  align-items: baseline; justify-content: space-between;
}
/* The checkbox is the one Bootstrap component the purged build does not
   carry, so it is styled here rather than re-adding .form-check. */
.ls-check {
  display: flex; align-items: center; gap: .6rem;
  font-size: .92rem; color: var(--text-2); cursor: pointer;
}
.ls-check input { width: 1rem; height: 1rem; flex: none; margin: 0; accent-color: var(--primary); cursor: pointer; }
.ls-login__foot { margin: 1.25rem 0 0; text-align: center; font-size: .92rem; color: var(--muted); }

/* Inline-style replacements. The CSP is style-src 'self' with no
   'unsafe-inline', so a style="" attribute is silently dropped. */
.ls-measure { max-width: 736px; }
.ls-measure--narrow { max-width: 436px; }
.ls-cluster-label { letter-spacing: .1em; }
.ls-thanks-links li { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.ls-thanks-links li:last-child { border-bottom: 0; }

/* Mid-page CTA on posts and inner pages: a sentence with a button. */
.ls-midcta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem;
  border-top: 1px solid var(--border); padding-top: 1.25rem;
}
.ls-midcta span { color: var(--text-2); }

/* Long-form post body. */
.ls-prose { max-width: 68ch; }
.ls-prose h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.ls-prose h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: .5rem; }
.ls-prose p, .ls-prose li { color: var(--text-2); }
.ls-prose blockquote {
  border-left: 3px solid var(--rule-on-ground); padding-left: 1rem;
  margin: 1.5rem 0; color: var(--text-2);
}
.ls-toc { border-left: 2px solid var(--rule); padding: .1rem 0 .1rem 1rem; }
.ls-toc li { padding: .18rem 0; font-size: .92rem; }

/* In-post screenshot. */
.ls-postshot { margin-inline: 0; }
.ls-postshot picture { display: block; border: 1px solid var(--border);
  border-radius: var(--r-control); overflow: hidden; }
.ls-postshot img { width: 100%; height: auto; display: block; }
.ls-postshot figcaption { margin-top: .5rem; font-size: var(--text-caption);
  line-height: var(--text-caption--line-height); color: var(--muted); }

/* The sample statement, rendered as HTML (sample_statement.html). The PDF's
   layout at web sizes: one column, tables that stay readable on a phone. */
.ls-stmt-wrap { max-width: 760px; }
.ls-stmt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.ls-stmt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 1.25rem 1rem; color: var(--text-strong); font-size: .94rem; }
@media (min-width: 576px) { .ls-stmt { padding: 1.75rem 2rem; } }
.ls-stmt p { margin: 0; }
.ls-stmt__mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.ls-stmt__top { display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.ls-stmt__brand { font: 600 1.1rem var(--font-wordmark); color: var(--ink); }
.ls-stmt__sample { font: 500 .68rem var(--font-data); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--mist); border-radius: 4px; padding: .25rem .5rem; }
.ls-stmt__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem;
  align-items: flex-start; border-bottom: 2px solid var(--accent); padding: 1rem 0 .75rem; }
.ls-stmt__eyebrow { font: 500 .72rem var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ls-stmt__tenant { font: 600 1.35rem/1.25 var(--font-ui); letter-spacing: -.02em; color: var(--ink); margin: .25rem 0 0; }
.ls-stmt__property { color: var(--muted); font-size: .9rem; }
.ls-stmt__sealed { font: 600 .78rem var(--font-ui); background: var(--success-bg); color: var(--success-text);
  padding: .25rem .6rem; border-radius: var(--r-pill); white-space: nowrap; }
.ls-stmt__facts { margin: .75rem 0 1.25rem !important; background: var(--surface-alt); border-radius: 6px;
  padding: .5rem .75rem; font-size: .84rem; color: var(--text-2); }
.ls-stmt__block { margin-bottom: 1.5rem; }
.ls-stmt__h { display: flex; gap: .6rem; align-items: baseline; font: 600 .78rem var(--font-ui);
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
  margin: 0 0 .25rem; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
.ls-stmt__rows { margin: 0; }
.ls-stmt__row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0;
  border-bottom: 1px solid var(--divider); }
.ls-stmt__row dt { font-weight: 400; min-width: 0; }
.ls-stmt__row dd { margin: 0; font-family: var(--font-data); font-variant-numeric: tabular-nums;
  text-align: right; white-space: nowrap; }
.ls-stmt__row--quiet { color: var(--muted); }
.ls-stmt__row--total { border-top: 1.5px solid var(--ink); border-bottom: 0; font-weight: 600; color: var(--ink); }
.ls-stmt__row--total dt { font-weight: 600; }
.ls-stmt__ref { display: block; font: .74rem/1.4 var(--font-data); color: var(--muted); margin-top: .15rem; font-weight: 400; }
.ls-stmt__ref--link { color: var(--primary); }
.ls-stmt__derivation { margin-top: .5rem !important; background: var(--primary-tint); border-radius: 6px;
  padding: .45rem .75rem; font: .86rem var(--font-data); color: var(--ink); overflow-wrap: anywhere; }
.ls-stmt__due { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem;
  border-top: 1.5px solid var(--ink); padding-top: .75rem; }
.ls-stmt__due-label { font-weight: 600; color: var(--ink); }
.ls-stmt__due-label small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.ls-stmt__due-amount { font: 600 1.6rem var(--font-data); color: var(--primary); letter-spacing: -.02em; }
.ls-stmt__box { border: 1px solid var(--border); border-radius: 6px; padding: .75rem; font-size: .84rem; color: var(--text-2); }
.ls-stmt__box > p { margin: .6rem 0 0; }
.ls-stmt__box > p:first-child { margin-top: 0; }
.ls-stmt__k { font: 600 .7rem var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ls-stmt__accounts { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 0 1.5rem; }
@media (min-width: 576px) { .ls-stmt__accounts { grid-template-columns: 1fr 1fr; } }
.ls-stmt__accounts li, .ls-stmt__sum { display: flex; justify-content: space-between; gap: .75rem;
  padding: .2rem 0; border-bottom: 1px solid var(--divider); }
.ls-stmt__sum { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 600; color: var(--ink); margin-top: .25rem !important; }
.ls-stmt__scroll { overflow-x: auto; margin-top: .4rem; }
.ls-stmt__cap { width: 100%; min-width: 26rem; border-collapse: collapse; font-size: .8rem; }
.ls-stmt__cap th, .ls-stmt__cap td { padding: .25rem 0 .25rem .75rem; border-bottom: 1px solid var(--divider);
  text-align: right; font-family: var(--font-data); font-variant-numeric: tabular-nums; font-weight: 400; }
.ls-stmt__cap thead th { font: 600 .66rem var(--font-ui); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ls-stmt__cap th:first-child { text-align: left; padding-left: 0; }
.ls-stmt__foot { border-top: 1px solid var(--border); padding-top: .75rem; font-size: .76rem; color: var(--muted); }
.ls-stmt__foot p + p { margin-top: .4rem; }
.ls-stmt__foot strong { color: var(--text-2); }

/* Page two's notes, numbered. */
.ls-stmt-notes { list-style: none; counter-reset: note; padding: 0; }
.ls-stmt-notes li { counter-increment: note; position: relative; padding: 0 0 1.1rem 2.4rem; }
.ls-stmt-notes li::before { content: counter(note); position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--primary); color: var(--surface); font: 600 .8rem/1.6rem var(--font-data); text-align: center; }

/* Glossary strip at the foot of a post (LT-23). */
.ls-gloss__strip { line-height: 1.9; }

/* Shared FAQ accordion (partials/_faq.html): tool and landing pages. */
.ls-faqblock__h { font: 600 clamp(22px, 2.6vw, 26px)/1.2 var(--font-ui); letter-spacing: -.025em; color: var(--ink); margin: 0 0 14px; }
.ls-faqblock__list { border-top: 1px solid var(--border); }
.ls-faqblock__item { border-bottom: 1px solid var(--border); }
.ls-faqblock__q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none;
  font: 600 16.5px/1.35 var(--font-ui); color: var(--ink);
}
.ls-faqblock__q::-webkit-details-marker { display: none; }
.ls-faqblock__q::after { content: "+"; flex: none; font: 400 22px/1 var(--font-ui); color: var(--primary); }
.ls-faqblock__item[open] .ls-faqblock__q::after { content: "−"; }
.ls-faqblock__a { margin: 0 0 16px; max-width: 68ch; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.ls-pagefaq { margin: 2.5rem 0; }

/* --- Ask AI row (web/ask_ai.py): a muted label and two hairline pills,
       centred, on one line on phones too. Quiet on calculators. ---------- */
.ls-askai { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 16px; text-align: center; }
.ls-askai__label { margin: 0; font-size: 15px; color: var(--muted); }
.ls-askai__links { display: flex; flex-wrap: nowrap; justify-content: center; gap: 10px; max-width: 100%; }
.ls-askai__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px 10px 16px;
  border-radius: 999px; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--panel-border), var(--shadow-panel);
  font: 500 16px/1.2 var(--font-ui); text-decoration: none; white-space: nowrap;
}
.ls-askai__btn svg { width: 20px; height: 20px; flex: none; }
.ls-askai__btn:hover, .ls-askai__btn:focus-visible { background: var(--mist); color: var(--ink); text-decoration: none; }
.ls-askai--quiet { margin-top: 12px; }
.ls-askai--quiet .ls-askai__label { font-size: 14px; }
.ls-askai--stack { flex-direction: column; gap: 10px; }
.ls-askai--stack .ls-askai__label { color: var(--ink); font-weight: 500; }
@media (max-width: 575.98px) { .ls-askai__label { flex-basis: 100%; } }
@media (max-width: 359.98px) { .ls-askai__btn { padding: 9px 16px 9px 13px; font-size: 15px; } }
/* The home hero's demo and free trial buttons (marketing/partials/_hero.html),
   also used at the end of a post with end_ctas (Dean, Dec 4 2026) and the
   CAM calculator's last block. Phones: Book a demo and Take the tour share
   the first row at equal widths, Free trial spans the full row below them
   with "No credit card required" on its own line under it (Dean, Dec 5 2026).
   From 720px all three sit on one line at their natural widths. */
.ls-hero__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 28px; }
.ls-hero__actions > .ls-btn { flex: 1 1 0; min-width: 0; }
.ls-hero__trial { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 100%; }
.ls-hero__trial .ls-btn { width: 100%; }
.ls-hero__note { font-size: 13px; line-height: 1.3; color: var(--muted); text-align: center; }
@media (max-width: 359.98px) { .ls-hero__actions > .ls-btn { flex-basis: 100%; } }
@media (min-width: 720px) {
  .ls-hero__actions > .ls-btn, .ls-hero__trial { flex: 0 0 auto; }
}

/* Announcement bar above the header (content.ANNOUNCEMENT). App primary tint, one link. */
.ls-announce { display: block; background: var(--primary-tint); border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.4; }
.ls-announce__in { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 12px; padding-block: 9px; text-align: center; }
.ls-announce__cta { font-weight: 600; color: var(--primary); white-space: nowrap; }
.ls-announce:hover, .ls-announce:focus-visible { color: var(--ink); text-decoration: none; }
.ls-announce:hover .ls-announce__cta, .ls-announce:focus-visible .ls-announce__cta { text-decoration: underline; }
.ls-announce:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
.ls-announce__short { display: none; }
@media (max-width: 899.98px) { .ls-announce__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .ls-announce__short { display: inline; } }
