/*
 * Your Local Florist — identity layer over Pico.css.
 *
 * Pico supplies accessible, tested behaviour for semantic HTML (Principle II);
 * everything below supplies the identity, so the site reads as intentional
 * rather than as a recognisable framework default (Principle IV).
 *
 * DIRECTION — "the herbarium sheet".
 * This directory is a checked record of real shops: who they are, where, and
 * when we last verified it. That is what a pressed-specimen sheet is, so the
 * site is built like one — pale board, warm sheets, hairline rules, a botanical
 * serif for names, and one kōwhai gold used sparingly. The competition
 * (order-gatherer sites) look like discount e-commerce: red banners, urgency
 * badges, stock roses. Looking calm and catalogued is the trust signal.
 *
 * No web fonts and no images: the display face is the system serif, the mark is
 * inline SVG, and the only texture is a CSS gradient (Principle III).
 *
 * Pico is served as a SEPARATE stylesheet, linked before this one in Layout.tsx
 * — not @import-ed. A relative @import would serialise the two downloads: the
 * browser must fetch this file and parse it before it discovers Pico. Two
 * parallel <link> tags avoid that request chain, which matters for SC-009.
 * `npm run build:css` copies Pico into this directory.
 */

:root {
  /* Board, sheet, ink. */
  --lf-paper: #f1f3ed;
  --lf-paper-deep: #e8ece3;
  --lf-sheet: #fcfcf8;
  --lf-ink: #16261e;
  --lf-ink-muted: #566a5d;
  --lf-rule: #dbe1d5;

  /* Pressed leaf — every action colour. */
  --lf-leaf: #1e5b41;
  --lf-leaf-deep: #143d2c;
  --lf-leaf-wash: #e6ede7;

  /* Kōwhai gold — the mark, and accents. Never body text: too light to read. */
  --lf-kowhai: #c98a12;

  --lf-open: var(--lf-leaf);
  /* Closed is grey, never red. A closed shop is not an error. */
  --lf-closed: #7c8a80;

  --lf-display:
    ui-serif, 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --lf-sans:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --lf-size-step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --lf-size-step--1: clamp(0.84rem, 0.81rem + 0.15vw, 0.92rem);
  --lf-size-step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --lf-size-step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.42rem);
  --lf-size-step-2: clamp(1.5rem, 1.36rem + 0.7vw, 1.95rem);
  --lf-size-step-3: clamp(1.9rem, 1.62rem + 1.4vw, 2.8rem);
  --lf-size-step-4: clamp(2.4rem, 1.9rem + 2.5vw, 4rem);

  --lf-measure: 60ch;

  --lf-space-1: 0.25rem;
  --lf-space-2: 0.5rem;
  --lf-space-3: 0.75rem;
  --lf-space-4: 1rem;
  --lf-space-5: 1.25rem;
  --lf-space-6: 1.5rem;
  --lf-space-8: 2rem;
  --lf-space-10: 2.5rem;
  --lf-space-12: 3rem;
  --lf-space-16: 4rem;

  --lf-radius: 0.75rem;
  --lf-radius-sm: 0.375rem;
  --lf-shell: 64rem;

  /* Map onto Pico's own variables so its components inherit the identity. */
  --pico-font-family: var(--lf-sans);
  --pico-font-size: var(--lf-size-step-0);
  --pico-border-radius: var(--lf-radius-sm);
  --pico-primary: var(--lf-leaf);
  --pico-primary-hover: var(--lf-leaf-deep);
  --pico-primary-focus: rgb(30 91 65 / 25%);
  --pico-primary-inverse: var(--lf-sheet);
  --pico-background-color: var(--lf-paper);
  --pico-color: var(--lf-ink);
  --pico-muted-color: var(--lf-ink-muted);
  --pico-muted-border-color: var(--lf-rule);
  --pico-card-background-color: var(--lf-sheet);
  --pico-spacing: var(--lf-space-4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --lf-paper: #111814;
    --lf-paper-deep: #0d1310;
    --lf-sheet: #1a231d;
    --lf-ink: #e9efe7;
    --lf-ink-muted: #9aab9f;
    --lf-rule: #2b372f;

    --lf-leaf: #7cc79c;
    --lf-leaf-deep: #9bdcb6;
    --lf-leaf-wash: #1b2c22;

    --lf-kowhai: #e2b155;
    --lf-closed: #93a397;

    --pico-primary-inverse: #0f1712;
    --pico-primary-focus: rgb(124 199 156 / 30%);
  }
}

/* ---------- Base ---------- */

html {
  background: var(--lf-paper);
}

body {
  /* Full-bleed bands need the width; the shell handles the measure. */
  max-width: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: var(--lf-sans);
  color: var(--lf-ink);
  background: var(--lf-paper);
  /* Long addresses must wrap rather than push the body sideways (Principle IV). */
  overflow-wrap: break-word;
}

.lf-shell {
  inline-size: 100%;
  max-inline-size: var(--lf-shell);
  margin-inline: auto;
  padding-inline: var(--lf-space-5);
}

/*
 * Pico's classless layout caps body > header/main/footer at fixed breakpoint
 * widths (510/700/950/1200/1450px). This site's header, hero and footer are
 * full-bleed bands and the measure comes from .lf-shell instead, so that
 * container is switched off. Without this the bands stop short of the viewport
 * edge and jump width at every breakpoint.
 */
body > header,
body > main,
body > footer {
  max-width: none;
  padding-inline: 0;
  padding-block: 0;
}

.lf-main {
  flex: 1 0 auto;
  padding-block: var(--lf-space-10) var(--lf-space-16);
}

.lf-main > * + * {
  margin-block-start: var(--lf-space-10);
}

/* Page-level rhythm. Sections inside the shell are spaced generously; the
   blocks within a section set their own, tighter, spacing. */
.lf-main > .lf-shell > * + * {
  margin-block-start: var(--lf-space-10);
}

/* The hero band supplies its own top rhythm and meets the header edge-to-edge. */
.lf-main.lf-has-hero {
  padding-block-start: 0;
}

h1,
h2,
h3 {
  font-family: var(--lf-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--lf-ink);
}

h1 {
  font-size: var(--lf-size-step-3);
  line-height: 1.08;
  margin-block: 0 var(--lf-space-3);
  text-wrap: balance;
}

h2 {
  font-size: var(--lf-size-step-2);
  line-height: 1.15;
  margin-block: 0 var(--lf-space-5);
}

p {
  max-inline-size: var(--lf-measure);
  line-height: 1.6;
}

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

/* Keyboard users are not an afterthought — the type-ahead is a keyboard
   component, and `outline: none` appears nowhere in this stylesheet. */
:focus-visible {
  outline: 2px solid var(--lf-leaf);
  outline-offset: 2px;
  border-radius: var(--lf-radius-sm);
}

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

/* The small tracked-out label used for record fields and eyebrows. It marks
   what a herbarium sheet marks: the field name, not the value. */
.lf-label {
  display: inline-block;
  font-family: var(--lf-sans);
  font-size: var(--lf-size-step--2);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lf-ink-muted);
  margin-block: 0 var(--lf-space-2);
}

.lf-label a {
  color: inherit;
  text-decoration: none;
}

.lf-label a:hover {
  color: var(--lf-leaf);
}

.lf-lead {
  font-size: var(--lf-size-step-1);
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--lf-ink-muted);
  margin-block: 0;
}

/* ---------- Breadcrumbs ---------- */

.lf-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lf-space-2);
  margin: 0;
  padding: 0;
  font-size: var(--lf-size-step--1);
  color: var(--lf-ink-muted);
}

.lf-crumbs li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--lf-space-2);
}

.lf-crumbs li + li::before {
  content: '/';
  color: var(--lf-rule);
}

.lf-crumbs a {
  color: var(--lf-ink-muted);
  text-decoration: none;
}

.lf-crumbs a:hover {
  color: var(--lf-leaf);
  text-decoration: underline;
}

.lf-crumbs [aria-current='page'] {
  color: var(--lf-ink);
}

/* The trail belongs to the heading below it, not to the section above. */
.lf-main > .lf-shell > .lf-crumbs + .lf-page-head,
.lf-main > .lf-shell > .lf-crumbs + .lf-record {
  margin-block-start: var(--lf-space-4);
}

.lf-page-head > * + * {
  margin-block-start: var(--lf-space-3);
}

.lf-page-head p {
  margin-block: 0;
}

/* Injected by geolocate.js — never present on the no-JS path. */
.lf-geo {
  margin-block: var(--lf-space-4) 0;
}

/* ---------- Header ---------- */

.lf-header {
  background: var(--lf-sheet);
  border-block-end: 1px solid var(--lf-rule);
}

.lf-header .lf-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lf-space-4);
  min-block-size: 4.5rem;
  padding-block: var(--lf-space-3);
}

.lf-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--lf-space-3);
  text-decoration: none;
  color: var(--lf-ink);
}

.lf-seal {
  flex: 0 0 auto;
  display: block;
}

.lf-seal-ring,
.lf-seal-stem,
.lf-seal-leaf,
.lf-seal-bell,
.lf-seal-bud {
  transition: opacity 150ms ease;
}

.lf-seal-ring,
.lf-seal-stem {
  stroke: var(--lf-leaf);
  fill: none;
}

.lf-seal-leaf {
  fill: var(--lf-leaf);
}

.lf-seal-bell {
  stroke: var(--lf-kowhai);
  fill: none;
}

.lf-seal-bud {
  fill: var(--lf-kowhai);
}

.lf-wordmark {
  font-family: var(--lf-display);
  font-size: var(--lf-size-step-1);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.lf-wordmark-accent {
  color: var(--lf-leaf);
}

@media (max-width: 30rem) {
  .lf-header .lf-shell {
    min-block-size: 4rem;
  }

  .lf-seal {
    inline-size: 2rem;
    block-size: 2rem;
  }

  .lf-wordmark {
    font-size: var(--lf-size-step-0);
  }
}

.lf-header-link {
  font-size: var(--lf-size-step--1);
  font-weight: 600;
  color: var(--lf-ink-muted);
  text-decoration: none;
}

.lf-header-link:hover {
  color: var(--lf-leaf);
}

.lf-skip {
  position: absolute;
  inset-inline-start: -9999px;
}

.lf-skip:focus {
  position: static;
  display: inline-block;
  padding: var(--lf-space-2) var(--lf-space-4);
}

/* ---------- Hero ---------- */

/*
 * The masthead sheet: header and hero share one warm white field, and the
 * catalogue below sits on the pale board. One tonal step, no ornament — the
 * texture experiment that lived here read as noise and was cut.
 */
.lf-hero {
  position: relative;
  padding-block: var(--lf-space-12) var(--lf-space-12);
  background: var(--lf-sheet);
  border-block-end: 1px solid var(--lf-rule);
}

.lf-hero .lf-shell {
  position: relative;
}

.lf-hero h1 {
  font-size: var(--lf-size-step-4);
  max-inline-size: 18ch;
  margin-block-end: var(--lf-space-5);
}

.lf-hero-lead {
  max-inline-size: 48ch;
  margin-block-end: var(--lf-space-8);
}

/* The one flourish: a hairline rule interrupted by the mark's gold. */
.lf-hero-rule {
  display: flex;
  align-items: center;
  gap: var(--lf-space-3);
  max-inline-size: none;
  margin-block-end: var(--lf-space-6);
  color: var(--lf-ink-muted);
  font-size: var(--lf-size-step--2);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The one spot of kōwhai gold in the type: the separator, echoing the mark. */
.lf-hero-dot {
  color: var(--lf-kowhai);
}

.lf-hero-rule::after {
  content: '';
  flex: 1 1 auto;
  block-size: 1px;
  min-inline-size: 2rem;
  background: var(--lf-rule);
}

/* ---------- Search ---------- */

.lf-search {
  display: grid;
  gap: var(--lf-space-3);
  max-inline-size: 40rem;
  margin-block: 0;
}

/*
 * Pico treats any [role=search] as a joined pill-shaped input group: it forces
 * `display: inline-flex`, pins 5rem radii onto the first and last children and
 * pulls them together with a negative margin. This form is a labelled grid, not
 * a joined group, so those three rules are undone here. Selector weight is
 * matched deliberately — `[role=search] > :first-child` is (0,2,0), so a plain
 * `.lf-search button` would silently lose.
 */
.lf-search > :first-child,
.lf-search > :last-child,
.lf-search input[type='search'],
.lf-search button {
  border-radius: var(--lf-radius-sm);
}

.lf-search button:not(:first-child) {
  margin-inline-start: 0;
}

.lf-search-field {
  position: relative;
  display: grid;
  gap: var(--lf-space-2);
}

.lf-search label {
  font-size: var(--lf-size-step--1);
  font-weight: 600;
  color: var(--lf-ink-muted);
  margin: 0;
}

.lf-search input[type='search'] {
  margin: 0;
  min-block-size: 3.25rem;
  padding-inline: var(--lf-space-4);
  font-size: var(--lf-size-step-1);
  font-family: var(--lf-sans);
  color: var(--lf-ink);
  background: var(--lf-sheet);
  border: 1px solid var(--lf-rule);
  border-radius: var(--lf-radius-sm);
  box-shadow: none;
}

/* On the masthead sheet the field would otherwise be white on white; on the
   board it is the sheet. Either way the input is one tonal step from behind. */
.lf-hero .lf-search input[type='search'] {
  background: var(--lf-paper);
}

.lf-search input[type='search']:focus {
  border-color: var(--lf-leaf);
}

.lf-search button {
  min-block-size: 3.25rem;
  padding-inline: var(--lf-space-6);
  margin: 0;
  font-family: var(--lf-sans);
  font-size: var(--lf-size-step-0);
  font-weight: 600;
  color: var(--pico-primary-inverse);
  background: var(--lf-leaf);
  border: 1px solid var(--lf-leaf);
  border-radius: var(--lf-radius-sm);
}

.lf-search button:hover {
  background: var(--lf-leaf-deep);
  border-color: var(--lf-leaf-deep);
}

@media (min-width: 34rem) {
  .lf-search {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--lf-space-3);
  }
}

/* Combobox popup. Hidden until the enhancement script opens it, so the no-JS
   path is unaffected. */
.lf-suggestions {
  position: absolute;
  inset-block-start: 100%;
  inset-inline: 0;
  z-index: 10;
  margin-block-start: var(--lf-space-1);
  padding: 0;
  list-style: none;
  background: var(--lf-sheet);
  border: 1px solid var(--lf-rule);
  border-radius: var(--lf-radius-sm);
  box-shadow: 0 12px 28px rgb(22 38 30 / 12%);
  max-block-size: 20rem;
  overflow-y: auto;
}

.lf-suggestions:empty,
.lf-suggestions[hidden] {
  display: none;
}

.lf-suggestions li {
  margin: 0;
  border-block-start: 1px solid var(--lf-rule);
}

.lf-suggestions li:first-child {
  border-block-start: 0;
}

.lf-suggestions a {
  display: block;
  min-block-size: 44px;
  padding: var(--lf-space-3) var(--lf-space-4);
  color: var(--lf-ink);
  text-decoration: none;
  font-size: var(--lf-size-step-0);
}

.lf-suggestions [aria-selected='true'] a,
.lf-suggestions a:hover {
  background: var(--lf-leaf-wash);
}

/* Standalone disambiguation list — same component, no popup chrome. */
.lf-suggestions.lf-static {
  position: static;
  box-shadow: none;
  max-inline-size: 40rem;
}

.lf-place-parent {
  display: block;
  font-size: var(--lf-size-step--1);
  color: var(--lf-ink-muted);
}

/* ---------- Listings ---------- */

.lf-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--lf-space-3);
}

.lf-listing {
  display: grid;
  gap: var(--lf-space-4);
  padding: var(--lf-space-5);
  background: var(--lf-sheet);
  border: 1px solid var(--lf-rule);
  border-radius: var(--lf-radius);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

/* A pressed stem down the edge on hover. The only motion on the page. */
.lf-listing:hover,
.lf-listing:focus-within {
  border-color: color-mix(in srgb, var(--lf-leaf) 45%, var(--lf-rule));
  box-shadow: inset 3px 0 0 var(--lf-leaf);
}

@media (min-width: 44rem) {
  .lf-listing {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--lf-space-6);
  }
}

.lf-listing-name {
  font-family: var(--lf-display);
  font-size: var(--lf-size-step-1);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--lf-space-1);
}

.lf-listing-name a {
  color: var(--lf-ink);
  text-decoration: none;
}

.lf-listing-name a:hover {
  color: var(--lf-leaf);
  text-decoration: underline;
}

/*
  The street line reads as content, so it keeps full ink weight while the meta
  run below it stays muted. Same size as the meta line: the address orients you,
  it does not compete with the name or the call button.
*/
.lf-listing address {
  font-style: normal;
  font-size: var(--lf-size-step--1);
  color: var(--lf-ink);
  margin: 0 0 var(--lf-space-1);
}

.lf-meta {
  font-size: var(--lf-size-step--1);
  color: var(--lf-ink-muted);
  margin: 0;
  max-inline-size: none;
}

.lf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lf-space-3);
}

/*
 * The call button is the product. It is the largest, warmest and only pill-
 * shaped thing on the page — every other surface is a soft rectangle — because
 * ringing the shop is the single action this site exists to produce.
 */
.lf-call {
  display: inline-flex;
  align-items: center;
  gap: var(--lf-space-2);
  min-block-size: 44px;
  padding: var(--lf-space-2) var(--lf-space-5);
  font-family: var(--lf-display);
  font-size: var(--lf-size-step-1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--pico-primary-inverse);
  background: var(--lf-leaf);
  border-radius: 999px;
  text-decoration: none;
}

.lf-call:hover {
  background: var(--lf-leaf-deep);
  color: var(--pico-primary-inverse);
}

.lf-call svg {
  flex: 0 0 auto;
  opacity: 0.85;
}

.lf-call-lg {
  font-size: var(--lf-size-step-2);
  padding: var(--lf-space-3) var(--lf-space-6);
  min-block-size: 3.5rem;
}

.lf-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: var(--lf-space-2) var(--lf-space-4);
  font-size: var(--lf-size-step--1);
  font-weight: 600;
  color: var(--lf-ink);
  background: transparent;
  border: 1px solid var(--lf-rule);
  border-radius: var(--lf-radius-sm);
  text-decoration: none;
}

.lf-link:hover {
  border-color: var(--lf-leaf);
  color: var(--lf-leaf);
}

/* ---------- Status ---------- */

.lf-status {
  display: inline-flex;
  align-items: center;
  gap: var(--lf-space-2);
  font-size: var(--lf-size-step--1);
  margin: 0 0 var(--lf-space-1);
  max-inline-size: none;
}

.lf-status::before {
  content: '';
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.lf-status-open {
  color: var(--lf-open);
  font-weight: 600;
}

.lf-status-open::before {
  background: var(--lf-open);
}

.lf-status-closed {
  color: var(--lf-closed);
}

.lf-status-closed::before {
  box-shadow: inset 0 0 0 1px var(--lf-closed);
}

/* ---------- Florist record ---------- */

.lf-record {
  padding: var(--lf-space-6);
  background: var(--lf-sheet);
  border: 1px solid var(--lf-rule);
  border-radius: var(--lf-radius);
}

.lf-record h1 {
  margin-block-end: var(--lf-space-2);
}

.lf-record .lf-actions {
  margin-block-start: var(--lf-space-6);
}

.lf-section h2 {
  font-family: var(--lf-sans);
  font-size: var(--lf-size-step--2);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lf-ink-muted);
  margin-block-end: var(--lf-space-3);
}

.lf-section address {
  font-style: normal;
  font-size: var(--lf-size-step-1);
  font-family: var(--lf-display);
}

.lf-branches {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--lf-space-2);
}

/* ---------- Hours ---------- */

.lf-hours {
  margin: 0;
  font-size: var(--lf-size-step-0);
  font-variant-numeric: tabular-nums;
  border-collapse: collapse;
  max-inline-size: 24rem;
}

.lf-hours td {
  padding: var(--lf-space-2) 0;
  border-block-end: 1px solid var(--lf-rule);
  background: none;
}

.lf-hours tr:last-child td {
  border-block-end: 0;
}

.lf-hours td:first-child {
  color: var(--lf-ink-muted);
  padding-inline-end: var(--lf-space-6);
}

.lf-note {
  font-size: var(--lf-size-step--1);
  color: var(--lf-ink-muted);
  margin-block-start: var(--lf-space-3);
}

/* ---------- Tiles ---------- */

.lf-tiles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--lf-space-3);
}

.lf-tile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--lf-space-3);
  min-block-size: 44px;
  padding: var(--lf-space-4);
  background: var(--lf-sheet);
  border: 1px solid var(--lf-rule);
  border-radius: var(--lf-radius);
  text-decoration: none;
  color: var(--lf-ink);
  transition: border-color 150ms ease;
}

.lf-tile:hover {
  border-color: var(--lf-leaf);
  color: var(--lf-ink);
}

.lf-tile-name {
  font-family: var(--lf-display);
  font-size: var(--lf-size-step-0);
  font-weight: 600;
}

/* The count is set at display size because coverage is the honest answer to
   "is this directory any good in my region?" — it is data, not decoration. */
.lf-tile-count {
  flex: 0 0 auto;
  font-family: var(--lf-display);
  font-size: var(--lf-size-step-1);
  font-weight: 600;
  color: var(--lf-leaf);
  font-variant-numeric: tabular-nums;
}

.lf-tile-unit {
  font-family: var(--lf-sans);
  font-size: var(--lf-size-step--2);
  font-weight: 500;
  color: var(--lf-ink-muted);
  margin-inline-start: 0.35em;
  letter-spacing: 0.02em;
}

/* ---------- Notices ---------- */

.lf-inferred {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lf-space-2) var(--lf-space-3);
  align-items: baseline;
  font-size: var(--lf-size-step--1);
  color: var(--lf-ink-muted);
  padding: var(--lf-space-3) var(--lf-space-4);
  background: var(--lf-leaf-wash);
  border-radius: var(--lf-radius-sm);
  max-inline-size: none;
  margin-block-end: var(--lf-space-4);
}

.lf-inferred strong {
  color: var(--lf-ink);
}

/*
  The precise-location control, sitting inside the inferred line.
  Styled as a text link rather than .lf-link's bordered 44px box: its neighbour
  is the plain "Search somewhere else" anchor, and a heavy button beside it would
  read as the primary action on the page, which it is not — the phone numbers
  below it are. Kept at the anchor's colour and underline so the two read as a
  matched pair of ways to correct the guess.
*/
.lf-geo-inline {
  padding: 0;
  border: 0;
  background: none;
  width: auto;
  font: inherit;
  font-weight: inherit;
  color: var(--lf-leaf);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.lf-geo-inline:hover {
  color: var(--lf-leaf-deep);
}

.lf-geo-inline[disabled] {
  color: var(--lf-ink-muted);
  text-decoration: none;
  cursor: default;
}

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

.lf-attribution {
  flex: 0 0 auto;
  background: var(--lf-paper-deep);
  border-block-start: 1px solid var(--lf-rule);
  padding-block: var(--lf-space-10);
  font-size: var(--lf-size-step--1);
  color: var(--lf-ink-muted);
  line-height: 1.55;
}

.lf-attribution-grid {
  display: grid;
  gap: var(--lf-space-6);
}

@media (min-width: 48rem) {
  .lf-attribution-grid {
    grid-template-columns: minmax(14rem, 1fr) 2fr;
    gap: var(--lf-space-10);
  }
}

.lf-attribution p {
  margin-block: 0 var(--lf-space-3);
  max-inline-size: 62ch;
}

.lf-attribution p:last-child {
  margin-block-end: 0;
}

.lf-attribution a {
  color: var(--lf-ink);
}

.lf-colophon {
  display: flex;
  align-items: center;
  gap: var(--lf-space-3);
  font-family: var(--lf-display);
  font-size: var(--lf-size-step-0);
  color: var(--lf-ink);
}

/* ---------- Utilities ---------- */

/* Pico's `ul li { list-style: square }` outweighs `list-style: none` set on the
   list itself, so every list built from tiles or cards has to say it again. */
.lf-tiles li,
.lf-results li,
.lf-suggestions li,
.lf-branches li {
  list-style: none;
}

/* Wide content scrolls inside its own container; the body never does. */
.lf-scroll-x {
  overflow-x: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
