/* ============================================================
   LAND RECORDS — SITE-WIDE DESIGN SYSTEM
   Amber Randhawa. Msndrstd Creative.

   This file is the single source of truth for the design system
   the homepage established. It is enqueued on EVERY page.
   `landrecords.css` now holds only the front-page-specific
   sections and must not redefine anything in here.

   THE RULES THIS FILE ENFORCES

   1. ONE GRID, TWO COLUMNS MAXIMUM. Prose is never split across
      columns. A section is one column of writing, or one column
      of writing beside one object. Equal-weight card rows are the
      only exception.

   2. GROUNDS ARE LIGHT. Linen and oat alternate. NOTHING on this
      site is a dark ground, page headers included. "Too dark" is
      the note that started the redesign and it has been raised
      three separate times.

   3. NO EYEBROW TAGS. Headings open every section.

   4. FIVE TYPE STEPS. That is the whole scale.
      display  serif italic, headings and pull quotes ONLY
      body     16px sans, ALL prose, one size, no "lede" variant
      small    14px sans, captions, table cells, notes
      label    11px caps tracked, table headers and buttons only
      figure   17px sans medium, numbers in tables
      Serif never appears outside display. Body never varies.
      Buttons may grow their hit area, never their label size.

   5. ONE MEASURE. Prose caps at 62ch and everything in a column
      shares the same left and right edge. Section 08 of the
      homepage is the one deliberate centred exception.

   6. EVERY ACCENT HAS ONE JOB.
      Forest  headings, primary buttons
      Coral   the action colour: mark, filled CTA, links
      Sage    tint blocks and the footer band, never type
      Earth   labels, captions, table headers
      Ink     body
      Coral text never sits on oat. It measures 3.84 and fails.
   ============================================================ */

.lr {
  --gut: clamp(22px, 4.5vw, 68px);
  --maxw: 1240px;
  --pad: clamp(52px, 5vw, 78px);
  --rule: rgba(39, 59, 41, 0.16);
  --measure: 62ch;

  /* the five steps */
  --t-display-l: clamp(2rem, 3.4vw, 2.9rem);
  --t-display-m: clamp(1.45rem, 2.1vw, 1.9rem);
  --t-display-s: 1.125rem;
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-label: 0.6875rem;
  --t-figure: 1.0625rem;

  background: var(--color-linen);
  color: var(--color-ink);
  font-family: var(--font-body);
  overflow-x: clip;
}
.lr *, .lr *::before, .lr *::after { box-sizing: border-box; }

/* ---------- container and grid ---------- */

.lr-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.lr-wrap--narrow { max-width: 820px; }

.lr-cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 46px);
  row-gap: clamp(26px, 3vw, 40px);
}

.lr-c4, .lr-c5, .lr-c6, .lr-c7, .lr-c8,
.lr-rt4, .lr-rt5, .lr-rt6, .lr-rt7, .lr-rt8 { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .lr-c4 { grid-column: 1 / span 4; }
  .lr-c5 { grid-column: 1 / span 5; }
  .lr-c6 { grid-column: 1 / span 6; }
  .lr-c7 { grid-column: 1 / span 7; }
  .lr-c8 { grid-column: 1 / span 8; }
  /* .lr-rt4 was missing here, which silently auto-placed every
     right-hand 4-column block into a single narrow track and left
     451px of dead space beside it on the About page. */
  .lr-rt4 { grid-column: 9 / span 4; }
  .lr-rt8 { grid-column: 5 / span 8; }
  .lr-rt7 { grid-column: 6 / span 7; }
  .lr-rt6 { grid-column: 7 / span 6; }
  .lr-rt5 { grid-column: 8 / span 5; }
}

.lr-sec { padding-block: var(--pad); }
.lr-sec--tight { padding-block: calc(var(--pad) * 0.6); }
.lr-ground-linen { background: var(--color-linen); }
.lr-ground-oat   { background: var(--color-oat); }

/* ---------- the five type steps ---------- */

/* 1 · display — headings and pull quotes only */
.lr-disp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.006em;
  margin: 0;
  color: var(--color-forest);
  text-wrap: balance;
}
h1.lr-disp { font-size: var(--t-display-l); line-height: 1.06; }
h2.lr-disp { font-size: var(--t-display-m); }
h3.lr-disp { font-size: var(--t-display-s); line-height: 1.25; }

/* 2 · body */
.lr p, .lr-body {
  font-size: var(--t-body);
  line-height: 1.7;
  margin: 0;
  max-width: var(--measure);
  text-wrap: pretty;
}
.lr p + p { margin-top: 1em; }

/* 3 · small */
.lr-small { font-size: var(--t-small); line-height: 1.6; }

/* 4 · label */
.lr-btn, .lr-label, .lr-crumbs,
.lr-table thead th, .lr-table caption,
.lr-fig-sub, .lr-card-meta {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* 5 · figure */
.lr-fig { font-size: var(--t-figure); font-weight: 500; color: var(--color-forest); display: block; line-height: 1.2; }
.lr-fig-sub { color: var(--color-earth); display: block; margin-top: 4px; letter-spacing: 0.14em; }

/* ---------- shared marks ---------- */

.lr-mark { width: 40px; height: 3px; background: var(--color-coral); display: block; margin: 18px 0 22px 0; }

.lr-note {
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--color-earth);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  margin-top: 24px;
  max-width: var(--measure);
}
.lr-note b { display: block; font-weight: 500; color: var(--color-forest); margin-bottom: 2px; }

/* ---------- buttons ---------- */

.lr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lr-actions--center { justify-content: center; margin-top: 34px; }

.lr-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 13px 24px;
  letter-spacing: 0.2em;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--color-forest);
  color: #FFFFFF;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.lr-btn:hover, .lr-btn:focus-visible { background: var(--color-coral); }
.lr-btn--go { background: var(--color-coral); }
.lr-btn--go:hover, .lr-btn--go:focus-visible { background: var(--color-forest); }
.lr-btn--ghost { background: transparent; color: var(--color-forest); border-color: var(--color-forest); }
.lr-btn--ghost:hover, .lr-btn--ghost:focus-visible { background: var(--color-forest); color: #FFFFFF; }
/* Wider hit area only. The label keeps the label type step. */
.lr-btn--wide { padding-inline: 56px; }

/* ============================================================
   INTERIOR PAGE HEADER

   Replaces the forest-ground headers every interior template used
   to carry. Light, per rule 2. The nav sits over it, so the block
   carries the nav height as top padding.
   ============================================================ */

.lr-head {
  background: var(--color-linen);
  padding-top: calc(var(--nav-height, 90px) + clamp(28px, 4vw, 54px));
  padding-bottom: clamp(30px, 4vw, 52px);
  border-bottom: 1px solid var(--rule);
}
.lr-head .lr-disp { max-width: 20ch; }
.lr-head .lr-lede {
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--color-earth);
  max-width: var(--measure);
  margin-top: 18px;
}

/* Breadcrumbs. Real <nav>, real list — answer engines read these. */
.lr-crumbs { color: var(--color-earth); margin-bottom: 16px; }
.lr-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5em; list-style: none; margin: 0; padding: 0; }
.lr-crumbs li::after { content: "/"; margin-left: 0.5em; color: var(--rule); }
.lr-crumbs li:last-child::after { content: none; }
.lr-crumbs a { color: var(--color-earth); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.25s, border-color 0.25s; }
.lr-crumbs a:hover, .lr-crumbs a:focus-visible { color: var(--color-coral); border-bottom-color: var(--color-coral); }
.lr-crumbs [aria-current="page"] { color: var(--color-forest); }

/* ============================================================
   PROSE — styles raw WordPress content to the five steps.

   Community pages, the FAQ and blog posts all store their copy in
   the WP content field, so this block is what makes editor output
   obey the system without anyone hand-classing every paragraph.
   ============================================================ */

.lr-prose { max-width: var(--measure); }
.lr-prose > * + * { margin-top: 1em; }

.lr-prose h2, .lr-prose h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-forest);
  line-height: 1.15;
  text-wrap: balance;
  margin-top: 1.9em;
}
.lr-prose h2 { font-size: var(--t-display-m); }
.lr-prose h3 { font-size: var(--t-display-s); }
.lr-prose h2:first-child, .lr-prose h3:first-child { margin-top: 0; }

.lr-prose p, .lr-prose li { font-size: var(--t-body); line-height: 1.7; }
.lr-prose ul, .lr-prose ol { padding-left: 1.3em; }
.lr-prose ul { list-style: disc; }
.lr-prose ol { list-style: decimal; }
.lr-prose li + li { margin-top: 0.4em; }
.lr-prose li::marker { color: var(--color-earth); }

.lr-prose a {
  color: var(--color-coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.lr-prose a:hover, .lr-prose a:focus-visible { color: var(--color-forest); }

.lr-prose strong { font-weight: 500; color: var(--color-forest); }

.lr-prose blockquote {
  border-left: 3px solid var(--color-coral);
  padding-left: clamp(16px, 2vw, 26px);
  margin-block: 1.8em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-display-s);
  line-height: 1.5;
  color: var(--color-forest);
}
.lr-prose blockquote p { font-size: inherit; line-height: inherit; }

.lr-prose img { width: 100%; height: auto; margin-block: 1.8em; }
.lr-prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.4em; }

/* Prose that needs the full column, not the 62ch measure */
.lr-prose--wide { max-width: none; }
.lr-prose--wide > p, .lr-prose--wide > ul, .lr-prose--wide > ol { max-width: var(--measure); }

/* ============================================================
   TABLES — real <table> elements, deliberately.
   Answer engines extract tables. Do not convert these to divs.
   ============================================================ */

.lr-table { width: 100%; border-collapse: collapse; margin-block: 1.6em; }
.lr-table caption {
  caption-side: top;
  text-align: left;
  color: var(--color-earth);
  padding-bottom: 12px;
  letter-spacing: 0.16em;
}
.lr-table thead th {
  color: var(--color-earth);
  text-align: left;
  padding: 0 0 10px 0;
  border-bottom: 1px solid var(--color-forest);
  vertical-align: bottom;
  white-space: nowrap;
}
.lr-table tbody th, .lr-table tbody td {
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-weight: 400;
  font-size: var(--t-small);
  line-height: 1.6;
}
.lr-table tbody th { text-align: left; color: var(--color-ink); font-weight: 500; }
.lr-table th + th, .lr-table th + td, .lr-table td + td { padding-left: clamp(14px, 2vw, 28px); }
.lr-table .num { text-align: right; white-space: nowrap; font-size: var(--t-figure); font-weight: 500; color: var(--color-forest); }
.lr-table th.num { font-size: var(--t-label); color: var(--color-earth); }

.lr-tablescroll { overflow-x: auto; }

/* ============================================================
   QUESTION AND ANSWER

   The GEO pattern that actually gets extracted: a question-phrased
   heading with a direct 40 to 80 word answer immediately under it.
   Used by the FAQ and by the answer blocks on guide pages.
   ============================================================ */

.lr-qa { border-top: 1px solid var(--rule); }
.lr-qa-item { border-bottom: 1px solid var(--rule); padding-block: clamp(22px, 2.6vw, 32px); }
.lr-qa-item h2, .lr-qa-item h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-display-s);
  line-height: 1.3;
  color: var(--color-forest);
  margin: 0 0 10px 0;
  max-width: 46ch;
}
.lr-qa-item p { font-size: var(--t-body); line-height: 1.7; }
.lr-qa-item p + p { margin-top: 0.9em; }

/* ============================================================
   CARDS — equal-weight rows only, per rule 1.
   ============================================================ */

.lr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(22px, 3vw, 46px);
  margin-top: 30px;
  border-top: 1px solid var(--color-forest);
  padding-top: 28px;
}
.lr-cards--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.lr-card p { font-size: var(--t-small); line-height: 1.62; max-width: none; }
.lr-card h3 { margin: 0 0 8px 0; }
.lr-card h3 a { color: inherit; text-decoration: none; transition: color 0.25s; }
.lr-card h3 a:hover, .lr-card h3 a:focus-visible { color: var(--color-coral); }
.lr-card-meta { color: var(--color-earth); display: block; margin-bottom: 8px; }
.lr-card-thumb { display: block; margin-bottom: 14px; overflow: hidden; background: var(--color-sage); }
.lr-card-thumb img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.lr-card:hover .lr-card-thumb img { transform: scale(1.03); }
.lr-card-n { font-family: var(--font-display); font-style: italic; font-size: var(--t-display-s); color: var(--color-coral); display: block; margin-bottom: 8px; }

/* ============================================================
   CLOSING ASK — the one centred block, reused site-wide.
   ============================================================ */

.lr-sec.lr-close { padding-block: calc(var(--pad) * 1.65); }
.lr-close h2.lr-disp { font-size: var(--t-display-l); line-height: 1.06; }
.lr-close .lr-mark { margin: 26px 0 26px 0; }
.lr-close .lr-actions { margin-top: 36px; gap: 14px; }
.lr-close .lr-btn { min-height: 56px; padding: 18px 34px; }

/* Centred, and the only centred block on the site. Deliberate
   exception to the one-left-edge rule, at Gogi's direction
   2026-08-31: the page holds a single left edge the whole way
   down, so breaking it once at the end reads as a full stop. The
   62ch measure still governs, it is just centred. */
.lr-close .lr-close-inner {
  grid-column: 1 / -1;
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
}
.lr-close .lr-mark { margin-inline: auto; }
.lr-close p { margin-inline: auto; }
.lr-close .lr-actions { justify-content: center; }

/* ---------- full-bleed photograph band ---------- */

.lr-band-photo {
  --band-oversize: 1.30;
  position: relative;
  display: block;
  width: 100%;
  height: clamp(230px, 33vw, 440px);
  overflow: hidden;
  line-height: 0;
  background: var(--color-oat);
}
.lr-band-photo img {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(var(--band-oversize) * 100%);
  top: calc((1 - var(--band-oversize)) * 50%);
  object-fit: cover;
  object-position: 50% 58%;
}
.lr-band-photo.is-parallax img { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .lr-band-photo img { transform: none !important; }
}

/* ---------- reveal, opt-in so JS failure never blanks a page ---------- */

.lr-js .lr-rise { opacity: 0; transform: translateY(18px); }
.lr-js .lr-rise.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   INTERIOR NAV

   main.css was written when every interior page opened on a
   forest header, so it sets the pre-scroll nav to linen and
   inverts the logo to white. Interior headers are LIGHT now, so
   all of that has to come back to dark or the nav disappears.

   Scoped to body:not(.home) — the homepage nav is owned entirely
   by landrecords.css and is not touched here.
   ============================================================ */

body:not(.home) .site-nav:not(.scrolled) .nav-links a,
body:not(.home) .site-nav:not(.scrolled) .nav-dropdown-trigger,
body:not(.home) .site-nav:not(.scrolled) .nav-logo-text {
  color: var(--color-earth);
}
body:not(.home) .site-nav:not(.scrolled) .nav-links a::after {
  background: var(--color-coral);
}
body:not(.home) .site-nav:not(.scrolled) .nav-logo img {
  filter: none;
}
body:not(.home) .site-nav:not(.scrolled) .nav-cta {
  background: var(--color-forest) !important;
  color: #FFFFFF !important;
  border-color: transparent;
}
body:not(.home) .site-nav:not(.scrolled) .nav-cta:hover,
body:not(.home) .site-nav:not(.scrolled) .nav-cta:focus-visible {
  background: var(--color-coral) !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
}
body:not(.home) .site-nav:not(.scrolled) .nav-toggle span {
  background: var(--color-ink);
}
body:not(.home) .site-nav { background: rgba(243, 237, 229, 0.95); }
body.single .site-nav { border-bottom-color: rgba(39, 59, 41, 0.08); }

/* ---------- portraits and pull quotes ---------- */

.lr-portrait {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--color-sage);
}

.lr-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-display-s);
  line-height: 1.5;
  color: var(--color-forest);
  border-left: 3px solid var(--color-coral);
  padding-left: clamp(16px, 2vw, 26px);
  margin-block: clamp(26px, 3vw, 38px);
  max-width: var(--measure);
}
.lr-pull p { font-size: inherit; line-height: inherit; max-width: none; }
.lr-pull + .lr-pull { margin-top: clamp(22px, 2.4vw, 30px); }

/* ============================================================
   DEFINITION LISTS AND FORMS
   ============================================================ */

.lr-facts { margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--rule); }
.lr-facts > div { padding-block: 16px; border-bottom: 1px solid var(--rule); }
.lr-facts dt {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-earth);
  margin-bottom: 5px;
}
.lr-facts dd { margin: 0; font-size: var(--t-small); line-height: 1.6; }
.lr-facts dd a { color: var(--color-coral); text-decoration: underline; text-underline-offset: 3px; }
.lr-facts dd a:hover, .lr-facts dd a:focus-visible { color: var(--color-forest); }

.lr-formcard {
  background: var(--color-oat);
  padding: clamp(24px, 3vw, 40px);
}
.lr-form { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 22px); }
.lr-form-row { display: flex; flex-direction: column; gap: 14px; }
.lr-form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .lr-form-row--half { grid-template-columns: 1fr; } }

.lr-field { display: flex; flex-direction: column; gap: 6px; }
.lr-field label {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-earth);
}
.lr-optional { text-transform: none; letter-spacing: 0; font-weight: 400; }

.lr-field input,
.lr-field select,
.lr-field textarea {
  font-family: var(--font-body);
  font-size: var(--t-body);
  color: var(--color-ink);
  background: var(--color-linen);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
  min-height: 46px;
  transition: border-color 0.25s;
  appearance: none;
}
.lr-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.lr-field input:focus, .lr-field select:focus, .lr-field textarea:focus {
  outline: none;
  border-color: var(--color-forest);
}
.lr-field ::placeholder { color: var(--color-earth); opacity: 1; }

.lr-form-submit { justify-content: center; width: 100%; margin-top: 4px; }

/* A stray H1 inside content still gets the display step. The
   duplicate-title case is stripped in functions.php, but an author
   may legitimately use one further down a long page. */
.lr-prose h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-display-m);
  line-height: 1.15;
  color: var(--color-forest);
  margin-top: 1.9em;
}
.lr-prose h1:first-child { margin-top: 0; }

/* Headings need air above and a settled gap below. Without this the
   paragraph after an h2 collapses right up under it. */
.lr-prose h2 + *, .lr-prose h3 + *, .lr-prose h1 + * { margin-top: 0.75em; }
.lr-prose h2, .lr-prose h3, .lr-prose h1 { margin-bottom: 0; }

/* ---------- the answer block ---------- */

/* The direct answer that sits immediately under a question-phrased
   heading. Slightly heavier than body so a reader's eye lands on it,
   still the body type step. This is the shape answer engines lift. */
.lr-answer {
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--color-ink);
  border-left: 3px solid var(--color-sage);
  padding-left: clamp(14px, 1.8vw, 22px);
  margin-bottom: 1.4em;
}

.lr-list { padding-left: 1.25em; list-style: disc; max-width: var(--measure); margin-block: 1em; }
.lr-list li { font-size: var(--t-body); line-height: 1.7; }
.lr-list li + li { margin-top: 0.45em; }
.lr-list li::marker { color: var(--color-earth); }

.lr h3.lr-disp { margin-top: 1.9em; margin-bottom: 0.55em; }

/* The row that answers the question. One per table, never more. */
.lr-table tbody tr.is-best th, .lr-table tbody tr.is-best td {
  color: var(--color-forest);
  font-weight: 500;
  background: rgba(150, 180, 116, 0.18);
}

/* ============================================================
   THE DOCUMENT LAYOUT

   THE PROBLEM THIS SOLVES. Prose is capped at 62ch by rule 5, which
   is correct: nobody should read a 1200px line. But putting a 62ch
   measure inside a 1240px container left 545px of dead space on the
   right of EVERY prose page. Measured on seven pages, identical
   every time. The measure was right and the container was wrong.

   THE FIX. Two columns that use the whole width. Prose keeps its
   62ch in columns 1 to 7. An aside takes 9 to 12 and carries the
   things a reader actually wants beside the text: a photo, the
   figures at a glance, where to go next. It sticks as you scroll.

   Below 1000px the aside drops under the prose and everything
   becomes one column, which is the right answer on a phone.
   ============================================================ */

.lr-doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 46px); row-gap: clamp(30px, 4vw, 48px); }
.lr-doc-main  { grid-column: 1 / -1; }
.lr-doc-aside { grid-column: 1 / -1; }

@media (min-width: 1000px) {
  .lr-doc-main  { grid-column: 1 / span 7; }
  .lr-doc-aside { grid-column: 9 / span 4; position: sticky; top: calc(var(--nav-height, 90px) + 26px); align-self: start; }
}

/* Prose inside the document layout fills its column rather than
   stopping at 62ch, because the column IS about 62ch now. */
.lr-doc-main .lr-prose { max-width: none; }
.lr-doc-main .lr-prose > p,
.lr-doc-main .lr-prose > ul,
.lr-doc-main .lr-prose > ol,
.lr-doc-main .lr-prose > blockquote { max-width: var(--measure); }
.lr-doc-main .lr-prose > table,
.lr-doc-main .lr-prose > .lr-tablescroll,
.lr-doc-main .lr-prose > figure,
.lr-doc-main .lr-prose > img { max-width: none; }
.lr-doc-main > p, .lr-doc-main > .lr-answer { max-width: var(--measure); }
.lr-doc-main .lr-table { max-width: none; }

/* ---------- the aside ---------- */

.lr-aside-block + .lr-aside-block { margin-top: clamp(26px, 3vw, 36px); }
.lr-aside-h {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-earth);
  display: block;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-forest);
}
.lr-aside-list { list-style: none; margin: 0; padding: 0; }
.lr-aside-list li { padding-block: 11px; border-bottom: 1px solid var(--rule); font-size: var(--t-small); line-height: 1.5; }
.lr-aside-list li b { display: block; font-weight: 500; color: var(--color-forest); font-size: var(--t-figure); line-height: 1.2; margin-bottom: 3px; }
.lr-aside-list a { color: var(--color-coral); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.lr-aside-list a:hover, .lr-aside-list a:focus-visible { border-bottom-color: var(--color-coral); }

/* ============================================================
   PHOTO SLOT

   A labelled placeholder, so an empty slot reads as "a photo goes
   here and here is its name" rather than as a broken image. Drop a
   file in under the name shown and the slot fills itself. Never
   ships a stock photo as a fallback, per the imagery rule.
   ============================================================ */

.lr-slot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg,
      rgba(150,180,116,0.20) 0 14px, transparent 14px 28px),
    var(--color-oat);
  border: 1px solid var(--rule);
  padding: 14px;
}
.lr-slot--wide { aspect-ratio: 3 / 2; }
.lr-slot--band { aspect-ratio: 12 / 5; }
.lr-slot span {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-earth);
  line-height: 1.5;
}
.lr-slot b { display: block; text-transform: none; letter-spacing: 0.02em; color: var(--color-forest); font-weight: 500; }

.lr-aside-photo { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; }

/* A one-column dropdown, for menus with a handful of items rather
   than the two-column Communities panel. */
.nav-dropdown--single { min-width: 260px; }
.nav-dropdown--single .nav-dropdown-inner { grid-template-columns: 1fr; }

/* A document section with no aside beside it takes the full track,
   so its tables can use the whole width.

   But EVERYTHING THAT IS TYPE SHARES ONE RIGHT EDGE. Letting the
   heading run the full 1900px while the paragraph under it stopped
   at 62ch put two different right edges in the same block, which is
   what read as broken. The heading, the rule, the answer, the body
   and the note all stop at the measure. Only tables and figures
   break out, and they are then the thing that defines the right
   edge, deliberately. */
.lr-doc > .lr-doc-main:only-child { grid-column: 1 / -1; }
.lr-doc > .lr-doc-main:only-child > p,
.lr-doc > .lr-doc-main:only-child > .lr-answer,
.lr-doc > .lr-doc-main:only-child > .lr-note,
.lr-doc > .lr-doc-main:only-child > .lr-list,
.lr-doc > .lr-doc-main:only-child > blockquote,
.lr-doc > .lr-doc-main:only-child > .lr-prose > *:not(table):not(figure):not(.lr-tablescroll) {
  max-width: var(--measure);
}
.lr-doc > .lr-doc-main:only-child > .lr-tablescroll,
.lr-doc > .lr-doc-main:only-child > table,
.lr-doc > .lr-doc-main:only-child > figure { max-width: none; }

/* Display headings inside a reading column wrap on sense, not on the
   container. Without this an h2 in a wide column runs one long line
   that no longer relates to the text beneath it.

   NOTE ON UNITS. Do NOT give a heading `max-width: var(--measure)`.
   `ch` resolves against the element's own font-size, so 62ch on a
   30px serif heading is about 1150px, not the ~630px the same value
   gives body copy. A display line wants roughly 26ch at its own
   size, which lands a little narrower than the text beneath it and
   is what makes the two read as one block. */
.lr-doc .lr-doc-main .lr-disp { max-width: 26ch; }
.lr-doc .lr-doc-main h3.lr-disp { max-width: 34ch; }

/* ── Writing archive: one column ─────────────────────────────
   `.lr-cards` is auto-fit at minmax(240px, 1fr), so the Writing
   archive fell into two and three columns as the viewport grew.
   Articles read better as a single stacked list — each one keeps
   its full measure and the thumbnails line up down the page. */
body.blog .lr-cards,
body.archive .lr-cards,
body.home .lr-cards--posts {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
}

/* Writing archive, 2026-09-28: posts run across the page, three to a row,
   with short 2:1 thumbs. Phones get compact rows, square thumb left. */
body.blog .lr-card-thumb img,
body.archive .lr-card-thumb img { aspect-ratio: 2 / 1; }
body.blog .lr-card h2.lr-disp,
body.archive .lr-card h2.lr-disp { margin: 0 0 6px; }
body.blog .lr-card p,
body.archive .lr-card p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) {
  body.blog .lr-cards,
  body.archive .lr-cards { grid-template-columns: 1fr; gap: 18px; }
  body.blog .lr-card,
  body.archive .lr-card { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: start; }
  body.blog .lr-card > :not(.lr-card-thumb),
  body.archive .lr-card > :not(.lr-card-thumb) { grid-column: 2; }
  body.blog .lr-card-thumb,
  body.archive .lr-card-thumb { grid-column: 1; grid-row: 1 / span 3; margin-bottom: 0; }
  body.blog .lr-card-thumb img,
  body.archive .lr-card-thumb img { aspect-ratio: 1 / 1; }
}

/* A question heading that follows prose inside a document column needs
   room above it; h2.lr-disp carries no top margin by default, so a second
   question ran straight into the answer before it (commute guide). */
.lr .lr-doc-main p + h2.lr-disp,
.lr .lr-doc-main .lr-tablescroll + h2.lr-disp { margin-top: clamp(40px, 5vw, 64px); }

/* ── Grid blowout guard, 2026-09-28 ───────────────────────────
   A 1fr track floors at its item's min-content width, and the
   line-clamped excerpts (display:-webkit-box) report a huge
   min-content. On a 375px phone that pushed the home Writing rows
   and the /writing/ cards 25px past the gutter, where main's
   overflow clip cut the text off at the screen edge. min-width:0
   lets the tracks shrink to the column; min() keeps the auto-fit
   card minimums from exceeding a narrow phone's width. */
.lr-cards > *, .lr-entries > *, .lr-beats > *,
.lr-card > *, .lr-entry > * { min-width: 0; }
.lr-cards { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.lr-cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.lr-card h2, .lr-card h3, .lr-entry h3 { overflow-wrap: break-word; }

/* ── Breadcrumb bar, 2026-09-29 ───────────────────────────────
   Crumbs sit in a thin sage bar pinned directly under the main menu.
   .lr-crumbbar stays in the page flow as a spacer so the H1 keeps its
   place; the <nav> inside is the fixed bar. Phones: the bar sits in
   the same spot and tucks up behind the menu once the page scrolls,
   so it does not eat screen height while reading. Colours on sage:
   ink 7.05, forest 5.21. */
.lr-crumbbar { height: 44px; margin-bottom: 4px; }
.lr .lr-crumbs {
  position: fixed; top: var(--nav-height, 90px); left: 0; right: 0; z-index: 99;
  margin: 0; background: var(--color-sage);
  padding: 9px max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut)));
  color: var(--color-ink);
  transition: transform 0.3s var(--ease-out, ease);
}
.lr .lr-crumbs li::after { color: rgba(26, 34, 25, 0.45); }
.lr .lr-crumbs a { color: var(--color-ink); }
.lr .lr-crumbs a:hover, .lr .lr-crumbs a:focus-visible { color: var(--color-ink); border-bottom-color: var(--color-ink); }
.lr .lr-crumbs [aria-current="page"] { color: var(--color-forest); font-weight: 600; }
body.nav-open .lr .lr-crumbs { visibility: hidden; }
@media (max-width: 768px) {
  .lr-crumbbar { height: 38px; }
  .lr .lr-crumbs { padding: 8px var(--gut); }
  .lr .lr-crumbs ol { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .lr .lr-crumbs li:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .site-nav.scrolled ~ main .lr-crumbs { transform: translateY(-100%); }
}
