@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");
:root {
    --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #FFFFFF;
    --ink: #1a2032; --muted: #1a2032; --line: #e6e8ee;
    --primary: #51639e; --primary-2: #3F4ECF; --accent: #ea2f12;
    --sage: #FFFFFF; --sage-ink: #1a2032;
    --font-heading: "Playfair Display", Georgia, serif; --font-body: "Manrope", system-ui, sans-serif;
    --hdr-bg: radial-gradient(circle, #1a2032 0%, #3b4872 100%); --hdr-text: #EDEFF7;
    --ftr-bg: linear-gradient(135deg, #1a2032 0%, #3b4872 100%); --ftr-text: #FFFFFF;
    --ftr-link: #f0f6d3; --ftr-link-hover: #FFFFFF;
    --ftr-muted: color-mix(in srgb, var(--ftr-text) 74%, transparent);
    --ftr-panel-bg: color-mix(in srgb, var(--ftr-text) 7%, transparent);
    --ftr-border: color-mix(in srgb, var(--ftr-text) 20%, transparent);
    --ftr-btn-bg: var(--primary); --ftr-btn-text: var(--surface); --ftr-btn-hover: var(--primary-2);
    --ftr-logo-filter: none;
    --fs-base: 16px; --fs-h1: 2.5rem; --fs-h2: 1.95rem; --fs-h3: 1.6rem;
    --logo-max-height: 52px;
    --logo-display: block;
    --title-display: none;
    --logo-image: url("https://gxixwdjfmegxcxfeflro.supabase.co/storage/v1/object/public/directory-media/5645c858-0a9a-4787-8944-d8a5529089a9/logo.png?v=1789884340299"); --logo-fallback: transparent; --logo-radius: 0px;
    --hero-banner-display: none;
  }

  * { box-sizing: border-box; }
  body { margin: 0; position: relative; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-base); -webkit-font-smoothing: antialiased; }
  h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  a { color: var(--primary); text-decoration: none; }
  a:hover { color: var(--primary-2); }
  .dir-footer-link { color: var(--ftr-link); }
  .dir-footer-link:hover { color: var(--ftr-link-hover); }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 15px; border-radius: 11px; padding: 13px 20px; }
  .btn-primary { background: var(--primary); color: #fff; }
  .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
  .chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; color: var(--ink); font-weight: 500; }
  .facet-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .facet-group-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
  .badge { display: inline-flex; align-items: center; gap: 6px; background: var(--sage); color: var(--sage-ink); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
  .badge img { height: 16px; }
  .tag { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); color: var(--ink); border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 600; }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
  .card-logo-box { height: 158px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
  .card-logo-box img { max-width: 70%; max-height: 70%; object-fit: contain; }
  .eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .muted { color: var(--muted); }
  /* Entry notes and content-page bodies. Paragraphs and lists share one
     size — lists used to inherit the smaller body size while paragraphs
     were locked at 16.5px. Headings (h2–h4; h3/h4 had margin: 0 from the
     global reset above) keep space underneath so the next block can breathe. */
  .prose { font-size: 16.5px; line-height: 1.7; }
  .prose p,
  .prose ul,
  .prose ol,
  .prose li,
  .prose blockquote { font-size: inherit; line-height: inherit; }
  .prose p { margin: 0 0 16px; }
  .prose ul,
  .prose ol { margin: 0 0 16px; padding-left: 1.4em; }
  .prose li { margin: 0.35em 0; }
  .prose li > p { margin: 0 0 8px; }
  .prose li > p:last-child { margin-bottom: 0; }
  .prose li > ul,
  .prose li > ol { margin: 0.35em 0 0; }
  .prose h2,
  .prose h3,
  .prose h4 { line-height: 1.3; }
  .prose h2 { font-size: calc(var(--fs-h2) * 0.75); margin: 32px 0 16px; }
  .prose h3 { font-size: calc(var(--fs-h3) * 0.85); margin: 26px 0 14px; }
  .prose h4 { font-size: 1.125em; margin: 22px 0 12px; }
  .prose > :first-child { margin-top: 0; }
  .prose blockquote { margin: 0 0 16px; padding: 0 0 0 16px; border-left: 3px solid var(--line); color: var(--muted); }
  @media (max-width: 900px) { .wrap { padding: 0 20px; } }


  .entry-logo { height: 40px; width: auto; display: block; margin-bottom: 10px; }
  .hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
  .gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
  .gallery img { width: 110px; height: 84px; object-fit: cover; border-radius: 8px; }
  .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
  .category-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
  .category-chip { display: inline-block; font-size: 12px; background: var(--surface-2); border-radius: 999px; padding: 5px 11px; text-decoration: none; color: var(--ink); font-weight: 600; }
  .link-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
  .link-tile { padding: 8px 14px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; }
  .link-tile--primary { background: var(--primary); color: #fff; }
  .link-tile--secondary { background: var(--surface-2); color: var(--ink); }
  .product-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 12px 0; }
  .product-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
  .product-tile__img { height: 130px; object-fit: cover; width: 100%; }
  .product-tile__body { padding: 14px 15px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
  .product-tile__price { font-size: 18px; font-weight: 800; }
  .provider { font-size: 12px; opacity: .65; }
  .contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
  .contact-card p { margin: 0; font-size: 14.5px; }
  .evidence-list dt { font-weight: 700; margin-top: 12px; font-size: 15.5px; }
  .evidence-list dd { margin: 0 0 4px; font-size: 15px; color: var(--muted); }

  /* Site navigation — CSS-first so every destination is a crawlable <a href>
     even when the hamburger/dropdown is closed. Desktop dropdowns use
     :hover/:focus-within; mobile uses <details>/<summary> (no JS). */
  /* Hero banner markup is always in the page. theme.css shows it by setting
     --hero-banner-display and points --hero-intro-bg at transparent, so a
     banner change does not rewrite the HTML. */
  .dir-page-banner {
    display: var(--hero-banner-display, none);
    position: absolute; top: 0; left: 0; right: 0; z-index: 0; pointer-events: none;
    height: calc(var(--hero-banner-height, 480px) + 100px);
    background-image: var(--hero-banner-image, none);
    background-size: cover; background-position: center top; background-repeat: no-repeat;
  }
  .dir-page-banner::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 18%, var(--bg) 92%);
  }
  .dir-page { position: relative; z-index: 1; }
  .dir-home-intro {
    position: relative; overflow: hidden;
    background: var(--hero-intro-bg, linear-gradient(180deg, var(--sage) 0%, var(--bg) 60%));
  }
  /* Header must stack above following page content. The homepage hero band is
     a later sibling with an opaque background; without a z-index the dropdown
     (and mobile panel) paint underneath it. Content pages look fine because
     their wrap is transparent. Stay below .dm-consent (40). */
  .dir-site-header { position: relative; z-index: 30; border-bottom: 1px solid var(--line); background: var(--hdr-bg); backdrop-filter: blur(6px); }
  .dir-site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
  .dir-brand { display: flex; align-items: center; gap: 12px; color: inherit; flex: none; }
  /* Logo image, height, and whether the mark or title shows come from
     theme.css (--logo-image, --logo-max-height, --logo-display, --title-display).
     min-width keeps the no-logo placeholder square; a real logo's intrinsic
     width (via content: url()) grows past that. */
  .dir-brand__mark {
    display: var(--logo-display, block);
    margin: 15px 0; flex: none;
    height: var(--logo-max-height, 84px);
    width: auto;
    min-width: var(--logo-max-height, 84px);
    max-height: var(--logo-max-height, 84px);
    object-fit: contain;
    border-radius: var(--logo-radius, 12px);
    background: var(--logo-fallback, var(--primary)) center / cover no-repeat;
    content: var(--logo-image, none);
  }
  .dir-brand__title { display: var(--title-display, block); }
  .dir-brand:focus-visible, .dir-nav-desktop a:focus-visible, .dir-nav-mobile a:focus-visible, .dir-nav-mobile summary:focus-visible, .dir-breadcrumb a:focus-visible, .dir-footer-nav a:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 3px;
  }
  .dir-nav-desktop { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
  .dir-nav-desktop a { color: var(--hdr-text); font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
  .dir-nav-desktop a:hover { color: var(--primary); }
  .dir-nav-item { position: relative; }
  .dir-nav-item--dropdown > a::after { content: " ▾"; font-size: 11px; opacity: .7; }
  .dir-nav-dropdown {
    display: none; position: absolute; top: 100%; right: 0; min-width: 220px; z-index: 8;
    background: var(--bg); border: 1px solid color-mix(in srgb, var(--hdr-text) 20%, transparent); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; margin: 0; list-style: none; isolation: isolate;
  }
  /* The header background can be translucent or a gradient, so it is painted
     as an overlay on a solid page-colour base rather than used as the fill. */
  .dir-nav-dropdown::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--hdr-bg); pointer-events: none; }
  .dir-nav-item--dropdown:hover .dir-nav-dropdown,
  .dir-nav-item--dropdown:focus-within .dir-nav-dropdown { display: block; }
  .dir-nav-dropdown a { display: block; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
  .dir-nav-dropdown a:hover { color: var(--hdr-text); background: color-mix(in srgb, var(--hdr-text) 12%, transparent); }
  .dir-nav-mobile { display: none; position: relative; }
  .dir-nav-mobile > summary {
    list-style: none; cursor: pointer; min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
    color: var(--hdr-text); font-size: 20px; font-weight: 700;
  }
  .dir-nav-mobile > summary::-webkit-details-marker { display: none; }
  .dir-nav-mobile__panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 9;
    width: min(320px, calc(100vw - 40px)); background: var(--surface);
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16);
    padding: 8px; display: flex; flex-direction: column;
  }
  .dir-nav-mobile__panel a, .dir-nav-mobile__panel summary {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--ink);
    font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .dir-nav-mobile__panel a:hover, .dir-nav-mobile__panel summary:hover { background: var(--surface-2); }
  .dir-nav-mobile__section { border-radius: 8px; }
  .dir-nav-mobile__section > summary { list-style: none; }
  .dir-nav-mobile__section > summary::-webkit-details-marker { display: none; }
  .dir-nav-mobile__section > summary::after { content: "+"; font-weight: 700; color: var(--muted); }
  .dir-nav-mobile__section[open] > summary::after { content: "−"; }
  .dir-nav-mobile__children { display: flex; flex-direction: column; padding: 0 0 6px 12px; }
  @media (max-width: 800px) {
    .dir-nav-desktop { display: none; }
    .dir-nav-mobile { display: block; }
  }
  .dir-breadcrumb { margin: 20px 0; }
  .dir-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
  .dir-breadcrumb li { display: flex; align-items: center; gap: 6px; }
  .dir-breadcrumb li:not(:last-child)::after { content: ">"; color: var(--line); font-weight: 500; }
  .dir-breadcrumb a { color: var(--muted); }
  .dir-breadcrumb a:hover { color: var(--primary); }
  .dir-breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
  .dir-footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px 32px; flex: 1; min-width: 220px; }
  .dir-footer-col { display: flex; flex-direction: column; gap: 6px; }
  .dir-footer-col__title { font-family: var(--font-heading); font-size: 14.5px; font-weight: 600; color: var(--ftr-text); }
  .dir-footer-col a { font-size: 13.5px; }
  .dir-footer__grid { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr) minmax(300px, 1.3fr); gap: 28px 40px; align-items: start; }
  .dir-footer__grid--no-nav { grid-template-columns: minmax(160px, 1fr) minmax(300px, 1.3fr); }
  .dir-footer__grid .dir-footer-nav { min-width: 0; }
  .dir-platform-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px; border-radius: 14px; border: 1px solid var(--ftr-border); background: var(--ftr-panel-bg); }
  .dir-platform-panel__eyebrow { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ftr-muted); }
  .dir-platform-panel__logo { display: inline-block; line-height: 0; border-radius: 4px; }
  .dir-platform-panel__logo img { height: 26px; width: auto; display: block; filter: var(--ftr-logo-filter); }
  .dir-platform-panel__tagline { margin: 0; font-family: var(--font-heading); font-style: italic; font-size: 1.5rem; line-height: 1.2; color: var(--ftr-text); }
  .dir-platform-panel__body { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ftr-text); }
  .dir-platform-panel__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ftr-btn-bg); color: var(--ftr-btn-text); border: 1px solid var(--ftr-border); font-weight: 600; font-size: 14.5px; }
  .dir-platform-panel__btn:hover { background: var(--ftr-btn-hover); color: var(--ftr-btn-text); }
  .dir-platform-panel__btn svg { flex: none; }
  .dir-platform-panel a:focus-visible { outline: 2px solid var(--ftr-text); outline-offset: 3px; }
  .dir-footer__bar { border-top: 1px solid var(--ftr-border); }
  .dir-footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 22px; font-size: 12.5px; color: var(--ftr-muted); }
  @media (max-width: 1000px) {
    .dir-footer__grid, .dir-footer__grid--no-nav { grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr); }
    .dir-footer__grid--no-nav { grid-template-columns: minmax(0, 1fr); }
    .dir-platform-panel-wrap { grid-column: 1 / -1; }
  }
  @media (max-width: 640px) {
    .dir-footer__grid { grid-template-columns: minmax(0, 1fr); }
    .dir-footer__bar-inner { flex-direction: column; }
  }
  .dm-consent { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 16px 18px; font-size: 13.5px; line-height: 1.5; }
  .dm-consent p { margin: 0 0 12px; }
  .dm-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
  .dm-consent button { font-family: inherit; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 8px 12px; cursor: pointer; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
  .dm-consent button.dm-consent__accept { background: var(--primary); color: #fff; border-color: var(--primary); }


  .dir-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
  .dir-toolbar__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .dir-count { font-family: var(--font-heading); font-size: 21px; font-weight: 600; margin: 0; }
  .dir-active-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
  .dir-active-chip button { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 14px; line-height: 1; padding: 2px; }
  .dir-clear-all { background: transparent; border: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
  .dir-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
  .dir-seg button { border: 0; background: var(--surface); color: var(--ink); font-family: inherit; font-weight: 600; font-size: 13px; padding: 8px 16px; cursor: pointer; }
  .dir-seg button.active { background: var(--primary); color: #fff; }
  .dir-body { display: flex; flex-direction: column; gap: 24px; }
  .dir-content-row { display: flex; flex-direction: column; gap: 24px; }
  .dir-rail { width: 250px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
  .dir-rail__group { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .dir-rail__group:last-child { border-bottom: 0; }
  .dir-rail__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .dir-select { width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 13.5px; }
  .dir-distance__place { width: 100%; box-sizing: border-box; padding: 9px 10px; margin-bottom: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 13.5px; }
  .dir-distance__row { display: flex; flex-direction: column; gap: 8px; }
  .dir-distance__hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
  .dir-row__miles { display: block; font-weight: 600; color: var(--primary); }
  .dir-also { margin-top: 28px; }
  .dir-also__title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
  .dir-msel { position: relative; }
  .dir-msel__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: left; }
  .dir-msel__trigger:hover { border-color: var(--primary); }
  .dir-msel__trigger--active { border-color: var(--primary); color: var(--primary); font-weight: 700; }
  .dir-msel__trigger-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dir-msel__chevron { flex: none; color: var(--muted); transition: transform .12s; }
  .dir-msel__trigger[aria-expanded="true"] .dir-msel__chevron { transform: rotate(180deg); }
  .dir-msel__panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 6; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 8px; }
  .dir-msel__search { width: 100%; padding: 7px 9px; margin-bottom: 6px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 13px; }
  .dir-msel__options { display: flex; flex-direction: column; max-height: 240px; overflow-y: auto; }
  .dir-msel__option { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; font-size: 13.5px; cursor: pointer; }
  .dir-msel__option:hover { background: var(--surface-2); }
  .dir-msel__option input { flex: none; width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
  .dir-msel__option--hidden { display: none; }
  .dir-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .dir-switch-label { font-size: 13.5px; font-weight: 500; }
  .dir-switch { width: 38px; height: 21px; border-radius: 999px; background: var(--line); position: relative; border: 0; cursor: pointer; flex: none; padding: 0; }
  .dir-switch.active { background: var(--primary); }
  .dir-switch__knob { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: left .12s; }
  .dir-switch.active .dir-switch__knob { left: 19px; }
  .dir-results { flex: 1; min-width: 0; }
  .dir-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
  .dir-row { display: flex; gap: 0; padding: 0; border-bottom: 1px solid var(--line); align-items: stretch; text-decoration: none; color: inherit; }
  .dir-row:last-child { border-bottom: 0; }
  .dir-row:hover { background: var(--surface-2); }
  /* Logo is its own column: bg fills the cell, image is centred. Mobile
     keeps a compact 64px strip; desktop uses 208px so wide marks stay
     readable. Height always stretches to the row. */
  .dir-row__logo { position: relative; width: 64px; min-width: 64px; align-self: stretch; border-radius: 0; background: var(--surface-2); flex: none; overflow: hidden; }
  .dir-row__logo img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: calc(100% - 24px); max-height: calc(100% - 24px); width: auto; height: auto; object-fit: contain; }
  .dir-row__body { flex: 1; min-width: 0; padding: 20px; }
  .dir-row__body h3 { font-size: calc(var(--fs-h3) * 0.75); margin: 0 0 6px; color: var(--ink); }
  .dir-row__desc { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 0 8px; max-width: 66ch; }
  .dir-row__meta { font-size: 12.5px; line-height: 1.7; color: var(--muted); margin: 0 0 8px; }
  .dir-row__meta strong { display: block; font-weight: 700; color: var(--primary); margin-top: 2px; }
  .dir-row__tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .dir-empty { padding: 48px 24px; text-align: center; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .dir-map-pane { flex: 1; min-width: 0; position: relative; }
  .dir-map-count { position: absolute; top: 16px; left: 16px; z-index: 2; }
  .dir-search-form { max-width: 880px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 10px 18px; box-shadow: 0 12px 32px -18px rgba(0,0,0,.35); }
  .dir-search-form input { flex: 1 1 220px; min-width: 0; border: 0; outline: 0; font-size: 16px; font-family: inherit; background: transparent; color: var(--ink); }
  .dir-hmc-btn { flex: none; }
  .dir-ai-banner { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; }
  .dir-ai-banner[hidden] { display: none; }
  .dir-ai-banner strong { font-family: var(--font-heading); }
  .dir-ai-banner__based { color: var(--muted); font-size: 13px; }
  .dir-ai-banner__actions { display: flex; gap: 12px; margin-left: auto; }
  .dir-ai-banner__actions button { background: transparent; border: 0; color: var(--primary); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; font-family: inherit; }
  .dir-row__why { font-size: 13px; line-height: 1.5; color: var(--ink); margin: 8px 0 0; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; }
  .dir-row__why[hidden] { display: none; }
  .dir-row__why strong { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .dir-hmc-backdrop { display: none; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.4); align-items: flex-end; justify-content: center; padding: 16px; }
  .dir-hmc-backdrop.dir-hmc-backdrop--open { display: flex; }
  .dir-hmc-dialog { width: min(560px, 100%); max-height: min(82vh, 720px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; }
  .dir-hmc-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .dir-hmc-dialog header h2 { margin: 0; font-family: var(--font-heading); font-size: 18px; }
  .dir-hmc-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
  .dir-hmc-msg { font-size: 14.5px; line-height: 1.55; padding: 10px 12px; border-radius: 12px; max-width: 92%; white-space: pre-wrap; }
  .dir-hmc-msg--assistant { background: var(--surface-2); align-self: flex-start; }
  .dir-hmc-msg--user { background: var(--primary); color: #fff; align-self: flex-end; }
  .dir-hmc-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
  .dir-hmc-form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: vertical; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 14.5px; }
  .dir-hmc-error { color: #b91c1c; font-size: 13px; margin: 0 16px 12px; }
  .dir-hmc-error[hidden] { display: none; }
  @media (min-width: 641px) {
    .dir-hmc-backdrop { align-items: center; }
  }

  /* Desktop: results and map render permanently side by side (the List/Map
     segmented control is mobile-only, see below) — .dir-pane-hidden is only
     given effect under the 900px stacked-layout breakpoint.
     2026-09-18: the filter rail also switches from a fixed-width left
     column to a horizontal, wrapping bar spanning the full width above
     results+map — a 3-column (rail | results | map) row left results too
     narrow. Tablet (641-900px, below) keeps its existing stacked full-width
     rail and List/Map toggle untouched. */
  @media (min-width: 901px) {
    #dir-view-toggle { display: none; }

    .dir-rail { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; width: 100%; padding: 16px; }
    .dir-rail__group { flex: 0 1 220px; padding: 0; border-bottom: 0; }

    .dir-content-row { flex-direction: row; align-items: flex-start; gap: 28px; }
    .dir-results { flex: 0 0 calc(66.666% - 14px); }
    .dir-map-pane { flex: 0 0 calc(33.333% - 14px); }

    .dir-row__logo { width: 208px; min-width: 208px; }
  }

  .dir-filters-trigger { display: none; }
  .dir-rail__drawer-header { display: none; }
  .dir-rail-backdrop { display: none; }
  @media (max-width: 640px) {
    .dir-filters-trigger { display: inline-flex; align-items: center; gap: 6px; }
    .dir-rail {
      display: none;
      position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 21;
      max-height: 78vh; width: auto; border-radius: 18px 18px 0 0;
      box-shadow: var(--shadow-lg, 0 -10px 34px rgba(0,0,0,.25));
      overflow-y: auto; border-bottom: 0;
    }
    .dir-rail.dir-rail--open { display: block; }
    .dir-rail__drawer-header {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      position: sticky; top: 0; background: var(--surface); z-index: 1;
      padding: 14px 16px; border-bottom: 1px solid var(--line);
    }
    .dir-rail__drawer-header span:first-child { font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
    .dir-rail-backdrop.dir-rail-backdrop--open {
      display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 20;
    }
  }

  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 2px;
  }

  /* Hero band — landscape logo tile (fixes the old square/too-narrow tile),
     full-size serif H1, one-line summary, categorisation chip rail. No
     action buttons here — every action lives in the sidebar below, exactly
     once (BUILD_BRIEF.md). */
  .dir-entry-hero { display: flex; gap: 40px; align-items: center; padding: 32px 0 40px; flex-wrap: wrap; }
  .dir-entry-logo { width: 360px; height: 160px; flex: none; padding: 28px 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .dir-entry-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .dir-entry-logo--fallback span { font-family: var(--font-heading); font-size: 40px; font-weight: 600; color: var(--primary); }
  .dir-entry-hero__body { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 14px; }
  .dir-entry-hero__body h1 { line-height: 1.08; letter-spacing: -0.01em; }
  .dir-entry-hero__summary { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 640px; }
  .dir-entry-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip-hero { text-decoration: none; }
  .chip-hero:hover { background: var(--surface-2); }
  .dir-enquiry { position: fixed; inset: 0; z-index: 40; }
  .dir-enquiry[hidden], .dir-enquiry__body[hidden], #dir-enquiry-success[hidden], .dir-enquiry__error[hidden] { display: none !important; }
  .dir-enquiry__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); border: 0; padding: 0; }
  .dir-enquiry__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
    background: var(--surface); color: var(--ink); box-shadow: -12px 0 40px rgba(0,0,0,.18);
    display: flex; flex-direction: column; overflow: auto;
  }
  .dir-enquiry__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .dir-enquiry__header h2 { font-size: 18px; }
  .dir-enquiry__close { border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 8px; }
  .dir-enquiry__body { padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 12px; }
  .dir-enquiry__to, .dir-enquiry__prompt { margin: 0; font-size: 14px; color: var(--muted); }
  .dir-enquiry__test { margin: 0; font-size: 13px; color: #92400e; background: #fef3c7; padding: 8px 10px; border-radius: 8px; }
  .dir-enquiry__label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
  .dir-enquiry__label input, .dir-enquiry__label textarea {
    font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  }
  .dir-enquiry__error { margin: 0; color: #b91c1c; font-size: 13px; }
  .dir-enquiry__success { margin: 0; font-size: 15px; }
  .dir-jumpbar-outer { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
  .dir-jumpbar { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; }
  .dir-jumpchip { flex: none; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; white-space: nowrap; }
  .dir-jumpchip:hover { background: var(--surface); }
  .dir-entry-section { scroll-margin-top: 62px; padding-top: 28px; }
  .dir-entry-section > h2 { font-size: calc(var(--fs-h2) * 0.6875); line-height: 1.25; margin: 0 0 18px; }
  /* Two-column layout via named grid areas (not flex) specifically so the
     mobile breakpoint below can reorder aside-before-main — "contact panel
     and map before body text on mobile" (BUILD_BRIEF.md) — without
     touching the DOM order. */
  .dir-entry-body { display: grid; grid-template-columns: minmax(0, 752px) minmax(0, 1fr); grid-template-areas: "main aside"; gap: 56px; align-items: start; padding-top: 8px; padding-bottom: 48px; }
  .dir-entry-main { grid-area: main; min-width: 0; }
  .dir-aside { grid-area: aside; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

  /* Sidebar panels — previously bare, unstyled wrapper divs (just a flex
     gap between them); now real bordered cards, matching the reference
     design's ".panel" and improving the content-page "On this topic" list
     that shares this class for free. */
  .dir-aside-block { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
  .dir-rail__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

  .dir-contact-panel { display: flex; flex-direction: column; gap: 14px; }
  .dir-contact-panel .btn { width: 100%; justify-content: center; }
  .dir-contact-row { margin: 0; font-size: 14px; line-height: 1.5; }
  .dir-contact-row address { font-style: normal; }
  .dir-contact-row__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }

  .dir-map-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
  .dir-static-map, .dir-map-embed { width: 100%; height: 260px; object-fit: cover; border: 0; display: block; }
  .dir-map-card__link { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); }

  .dir-claim-quiet { margin: 0; padding: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
  .dir-claim-quiet button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--primary); text-decoration: underline; cursor: pointer; }

  .dir-attrs { display: flex; flex-direction: column; }
  .dir-attr-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .dir-attr-row:last-child { border-bottom: 0; }
  .dir-attr-row span:first-child { color: var(--muted); }
  .dir-attr-row span:last-child { font-weight: 600; text-align: right; }

  /* Related entries — a full-width 4-up section below the two-column
     layout (BUILD_BRIEF.md), not the old compact aside list. */
  .dir-related { padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
  .dir-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .dir-related-card { padding: 20px; gap: 14px; text-decoration: none; color: inherit; justify-content: flex-start; }
  .dir-related-card__logo { width: 40px; height: 40px; border-radius: 8px; background: var(--surface-2); flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .dir-related-card__logo img { max-width: 70%; max-height: 70%; object-fit: contain; }
  .dir-related-card__body { display: flex; flex-direction: column; gap: 4px; }
  .dir-related-card__body strong { font-size: 14.5px; }
  .dir-related-card__body span { font-size: 12.5px; color: var(--muted); }

  @media (max-width: 900px) {
    .dir-body { flex-direction: column; }
    .dir-rail { width: 100%; }
    .dir-entry-hero { padding: 20px 0 28px; }
    .dir-entry-logo { width: 100%; height: 140px; }
    .dir-entry-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "aside" "main"; gap: 32px; }
    .dir-aside { width: 100%; }
    .dir-related-grid { grid-template-columns: minmax(0, 1fr); }
    /* Below the side-by-side breakpoint, results/map fall back to the
       List/Map toggle (#dir-view-toggle) instead of stacking both in full. */
    .dir-pane-hidden { display: none; }
  }

