/* Lenders Valley — shared styles
   Layout: a rate-sheet site. Narrow reading column for copy, wide column for rate tables,
   sticky product jump bar. Topographic contour lines as the one decorative motif (the "valley"). */

:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --ink: #15211c;
  --muted: #55645d;
  --line: #d9e0db;
  --accent: #1d5a48; /* spruce */
  --accent-ink: #ffffff;
  --accent-soft: #e2ece7;
  --rate: #9a6a14; /* brass, used only for the headline rate figure */
  --focus: #2f7dd1;
  --ok: #1f7a4d;
  --err: #b3261e;

  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-data: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.1rem, 4.6vw, 3.3rem);

  --wrap: 72rem;
  --read: 42rem;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1613;
    --surface: #16201c;
    --ink: #e6eee9;
    --muted: #9db0a6;
    --line: #2a3832;
    --accent: #6cc3a3;
    --accent-ink: #0c1411;
    --accent-soft: #1c2d26;
    --rate: #e2b45a;
    --focus: #7fb6f2;
    --ok: #63c58f;
    --err: #f08b84;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0f1613;
  --surface: #16201c;
  --ink: #e6eee9;
  --muted: #9db0a6;
  --line: #2a3832;
  --accent: #6cc3a3;
  --accent-ink: #0c1411;
  --accent-soft: #1c2d26;
  --rate: #e2b45a;
  --focus: #7fb6f2;
  --ok: #63c58f;
  --err: #f08b84;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 {
  font-size: var(--step-4);
  font-weight: 700;
}
h2 {
  font-size: var(--step-3);
  font-weight: 650;
}
h3 {
  font-size: var(--step-1);
  font-weight: 650;
}
p {
  margin: 0;
}
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) {
  .wrap {
    padding-inline: 1.5rem;
  }
}
.eyebrow {
  font-family: var(--f-data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 1rem;
  z-index: 50;
}
.num {
  font-family: var(--f-data);
  font-variant-numeric: tabular-nums;
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--accent);
}
.nav a[aria-current='page'] {
  color: var(--accent);
}
@media (max-width: 560px) {
  .nav .hide-sm {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: 600 0.95rem/1 var(--f-body);
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav a.btn {
  color: var(--accent-ink);
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
}
.btn.sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  /* WCAG 2.5.5: a touch target is at least 44px.
   *
   * The small variant exists for the header, which on a phone is the one
   * control every visitor reaches for -- and at 0.5rem padding it came out
   * 32px tall, which is a miss on a moving bus. The padding stays as
   * designed; only the box grows. */
  min-height: 44px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  padding-block: 3rem 2.25rem;
  display: grid;
  gap: 1.25rem;
  position: relative;
}
.hero p.lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: var(--read);
}
.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: var(--step--1);
}
.contours {
  position: absolute;
  inset: auto -10% -40% auto;
  width: 70%;
  max-width: 760px;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
}
@media (max-width: 700px) {
  .contours {
    width: 130%;
    opacity: 0.1;
  }
}

/*
 * Shown in place of a rate grid before any lender prices the product.
 *
 * A component the design never had, because the design assumed rates. It
 * borrows `.aside .box`'s surface treatment rather than reusing the class:
 * that rule is scoped to `.aside`, so `class="box"` out here would style
 * nothing at all.
 */
.request-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem 1.4rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
}
.request-panel p {
  color: var(--muted);
  max-width: 46ch;
}

/* Product summary strip */
.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-top: 0.5rem;
}
.summary a {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.summary a:last-child {
  border-right: 0;
}
.summary a:hover {
  background: var(--accent-soft);
}
.summary .label {
  font-weight: 600;
  font-size: 0.95rem;
}
.summary .from {
  font-size: var(--step--1);
  color: var(--muted);
}
.summary .from b {
  font-family: var(--f-data);
  color: var(--rate);
  font-size: 1.35rem;
  font-weight: 600;
}
@media (max-width: 820px) {
  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary a:nth-child(2) {
    border-right: 0;
  }
  .summary a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

/* Jump bar */
.jump {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 3.75rem);
  z-index: 15;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.jump .wrap {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.6rem;
  scrollbar-width: none;
}
.jump a {
  flex: none;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--surface);
}
.jump a.active,
.jump a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Rate sections */
.rates {
  padding-block: 1rem 2rem;
}
.product {
  padding-block: 2.25rem 1rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.1rem;
}
.product:last-child {
  border-bottom: 0;
}
.product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.product-head .intro {
  display: grid;
  gap: 0.4rem;
  max-width: var(--read);
  min-width: 0;
}
.product-head .intro p {
  color: var(--muted);
}
/*
 * The rate grid scroller.
 *
 * Two scrollbars used to show on EVERY screen, including a desktop where the
 * table fits with room to spare:
 *
 *   1. the table was `width: calc(100% + 12px)` with `margin: -6px`, to pull
 *      the outer cells flush past `border-spacing: 6px`. Outside a scroll
 *      container a negative margin just overhangs; INSIDE one it does not
 *      reduce the scrollable width, so the box was permanently 12px wider
 *      than its scrollport -- a horizontal scrollbar that could never go
 *      away. The compensation now lives on this wrapper, which the table
 *      then fills exactly.
 *   2. `overflow-x: auto` on its own does not leave the other axis alone.
 *      Per the spec, when one axis is not `visible` the other computes
 *      `visible` to `auto` -- so `overflow-y` was `auto`, the horizontal
 *      scrollbar's own height overflowed the box vertically, and that
 *      produced the second scrollbar. It is pinned explicitly now.
 *
 * Clipping the y axis is safe here: a focus ring is 3px at 2px offset = 5px,
 * and `border-spacing: 6px` leaves 6px above the first row and below the
 * last inside the table's own box.
 */
.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  margin: -6px;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
}
.facts div {
  display: grid;
  gap: 0.1rem;
}
.facts dt {
  font-family: var(--f-data);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 600;
}
.rate-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 860px) {
  .rate-body {
    grid-template-columns: 1fr;
  }
}
table.grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  font-size: 0.95rem;
}
.grid-table caption {
  text-align: left;
  color: var(--muted);
  font-size: var(--step--1);
  padding: 0 6px 0.25rem;
  caption-side: bottom;
}
.grid-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 0.25rem;
  white-space: nowrap;
}
.grid-table thead th {
  font-family: var(--f-data);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}
.grid-table thead th:first-child {
  text-align: left;
}
.grid-table thead th.grp {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}
.grid-table td {
  padding: 0;
}
.cell {
  width: 100%;
  min-height: 3.4rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  font: 600 1.1rem/1 var(--f-data);
  font-variant-numeric: tabular-nums;
  color: var(--rate);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.cell:hover {
  border-color: var(--accent);
}
.cell[data-rate=''] {
  color: var(--muted);
  font: 600 0.85rem/1 var(--f-body);
}
.cell.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.estimate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.estimate fieldset {
  gap: 0;
}
.estimate legend {
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.choices.sm span {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}
.est-rate {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.est-rate span {
  color: var(--muted);
  font-size: 0.95rem;
}
.est-rate b {
  font-family: var(--f-data);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--rate);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.est-rate b.ask {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--ink);
}
.est-note {
  color: var(--muted);
  font-size: 0.875rem;
}
.fineprint {
  font-size: var(--step--1);
  color: var(--muted);
  max-width: var(--read);
}
@media (max-width: 420px) {
  .cell {
    font-size: 0.95rem;
    min-height: 3rem;
  }
  .grid-table th {
    font-size: 0.8rem;
  }
}

.grid-table.single {
  max-width: 24rem;
}
.grid-table caption [data-grid-for] {
  color: var(--ink);
  font-weight: 600;
}
.direct {
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.95rem;
}
.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}
.contact-line span {
  font-family: var(--f-data);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 3.5rem;
}
.contact-line a {
  font-weight: 600;
  font-size: 1.05rem;
  user-select: all;
  overflow-wrap: anywhere;
}

/* Generic sections */
.section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  max-width: var(--read);
}
.section-head p {
  color: var(--muted);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  min-width: 0;
}
.steps li::before {
  content: counter(s);
  font-family: var(--f-data);
  font-weight: 600;
  color: var(--accent);
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
.steps p {
  color: var(--muted);
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.faq {
  display: grid;
  gap: 0;
  max-width: 52rem;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--f-data);
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin-top: 0.6rem;
  color: var(--muted);
  max-width: var(--read);
}

/* Blog cards */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}
.post-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.post-card:hover {
  border-color: var(--accent);
}
.post-card h3 {
  font-size: 1.2rem;
}
.post-card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.post-card .eyebrow {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* CTA band */
.cta {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cta h2 {
  font-size: var(--step-2);
}
.cta p {
  opacity: 0.85;
  margin-top: 0.3rem;
}
.cta .btn {
  background: var(--accent-ink);
  color: var(--accent);
  border-color: var(--accent-ink);
}

/* Article */
.article {
  padding-block: 2.5rem 3.5rem;
}
.crumbs {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.crumbs a {
  color: var(--muted);
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 0.4rem;
  opacity: 0.6;
}
.prose {
  max-width: var(--read);
  display: grid;
  gap: 1.1rem;
  font-size: 1.075rem;
}
.prose h1 {
  margin-bottom: 0.25rem;
}
.prose h2 {
  font-size: var(--step-2);
  margin-top: 1.25rem;
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}
.prose .byline {
  color: var(--muted);
  font-size: var(--step--1);
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.prose th {
  font-family: var(--f-data);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 500;
}
.callout {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
}

/* Form page */
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: 2.5rem;
  padding-block: 2.5rem 3.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1.5rem;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  min-width: 0;
}
legend {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: var(--step-1);
  margin-bottom: 0.75rem;
  padding: 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 560px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.field label,
.choice-label {
  font-weight: 600;
  font-size: 0.95rem;
}
.field .hint {
  font-size: 0.825rem;
  color: var(--muted);
}
input[type='text'],
input[type='email'],
input[type='tel'],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}
textarea {
  min-height: 7rem;
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choices label {
  position: relative;
}
.choices input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choices span {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
}
.choices input:checked + span {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.choices input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.field.invalid input,
.field.invalid textarea {
  border-color: var(--err);
}
.error-msg {
  color: var(--err);
  font-size: 0.85rem;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.form-foot p {
  font-size: 0.825rem;
  color: var(--muted);
  max-width: 30rem;
}
.status {
  padding: 1rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.status.ok {
  border-color: var(--ok);
  color: var(--ok);
}
.status.err {
  border-color: var(--err);
  color: var(--err);
}
.aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 5rem);
}
.aside .box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: 0.5rem;
  background: var(--surface);
}
.aside ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  display: grid;
  gap: 0.3rem;
}
@media (max-width: 860px) {
  .aside {
    position: static;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  color: var(--muted);
  font-size: var(--step--1);
  margin-top: 2rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h3 {
  font-family: var(--f-data);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.site-footer a {
  color: var(--muted);
}
.site-footer .legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}
@media (max-width: 700px) {
  .site-footer .cols {
    grid-template-columns: 1fr;
  }
}

/* ── Additions for the generated site ─────────────────────────────────────
 * Two things the design-phase stylesheet never needed, because the prototype
 * did not have them.
 */

/* The `hidden` attribute has to win.
 *
 * Its user-agent rule is `display: none`, which any later `display` in this
 * file overrides -- and `.choices { display: flex }` does exactly that. The
 * quote form hides two of its three property-type sets with `hidden`, so
 * without this ALL THREE show at once and the form offers "Office" and
 * "Detached house" side by side. Caught by a browser test asserting the
 * commercial set was hidden; it was not. */
[hidden] {
  display: none !important;
}

/* The honeypot (§6.2): invisible to people, present for bots.
 *
 * Positioned off-screen rather than `display: none` or `hidden`, because a
 * bot worth defending against skips fields it can see are hidden -- and a
 * person who somehow fills this in has their enquiry silently binned, so it
 * must be genuinely unreachable: no tab stop, no screen reader, no space on
 * the page. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* An article's own image, above its body.
 *
 * `aspect-ratio` with `object-fit: cover` rather than a free height: the
 * image arrives from the admin at whatever size was uploaded, and a column
 * of articles whose headers are each a different height reads as a broken
 * grid. Cropping is the lesser evil, and the admin chooses the crop by
 * choosing the image. */
.article__hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius, 8px);
  margin: 0 0 1.4rem;
  background: var(--surface-2, #f5f7fa);
}
