/* The LetLens site menu (12 Nov 2026). One stylesheet for every page that carries the menu: the
   home page, the council pages, the hub, /about, the guides and the answer pages. The links come
   from scripts/site_menu.py.
   Phone (under 768px): Fable's full-screen sheet, with the links scrolling between a fixed head
   and a fixed foot (Call and the beta line). Tablet and desktop: Astra's wide panel under the top
   bar, two columns, everything visible without scrolling.
   Rule 2: nothing under 15px. Rule 25: one light design, no dark styles. */
:root{
  --sm-ink:#161F1D; --sm-ink2:#4E5A56; --sm-teal:#0E4C48; --sm-teal-soft:#E3EEEB;
  --sm-card:#FBF9F4; --sm-soft:#F1EEE6; --sm-line:#DCD6C9;
  --sm-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

/* ---- Menu button: the same control in every top bar ---------------------------------------- */
.sm-toggle{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:0 14px;
  border:1px solid rgba(14,76,72,.35);border-radius:12px;background:var(--sm-card);color:var(--sm-teal);
  font-family:var(--sm-font);font-size:17px;font-weight:700;line-height:1;cursor:pointer;flex:none;
  -webkit-tap-highlight-color:transparent}
.sm-toggle:hover{background:var(--sm-teal-soft)}
.header-inner > .sm-toggle,.top .wrap > .sm-toggle{margin-left:auto}
.sm-icon{width:20px;height:20px;flex:none}

/* ---- "Need help?" beside Menu (brief 2026-11-24-simple-landing-pages-and-booking) ----------- */
/* Opens /book-a-call?topic=general. The same size and shape as Menu so the pair reads as one
   control group (rule 32); filled, because it is the one action in the bar. The pair sits in
   .sm-actions, pushed to the right, 8px apart. Over the home map it is a floating chip like the
   logo and Menu. */
.sm-help{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:0 14px;
  border:1px solid var(--sm-teal);border-radius:12px;background:var(--sm-teal);color:#fff;
  font-family:var(--sm-font);font-size:17px;font-weight:700;line-height:1;text-decoration:none;
  white-space:nowrap;flex:none;-webkit-tap-highlight-color:transparent}
.sm-help:hover{background:#0B3D3A;border-color:#0B3D3A;color:#fff}
.sm-help:focus-visible{outline:3px solid var(--sm-teal);outline-offset:2px}
.sm-actions{display:inline-flex;align-items:center;gap:8px;margin-left:auto;flex:none}
.sm-actions > .sm-toggle{margin-left:0}
#topbar .sm-help{pointer-events:auto;min-height:48px;box-shadow:0 2px 10px rgba(20,30,28,.10)}
/* Phones: the pair must fit beside the logo without pushing past the gutter. At 420px and under the
   help icon goes and both controls tighten; at 374px and under Menu shows its icon only (the word
   stays as its accessible name). */
@media (max-width:420px){
  .sm-help .sm-help-icon{display:none}
  .sm-actions{gap:6px}
  .sm-help,.sm-toggle{padding:0 10px;font-size:16px}
  .sm-toggle{gap:6px}
}
@media (max-width:420px){
  /* The home map's floating logo chip is wider than a page logo, so there Menu is icon-only. */
  #topbar .sm-toggle > span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);
    clip-path:inset(50%);white-space:nowrap}
  #topbar .sm-toggle{padding:0 12px}
}
@media (max-width:374px){
  .sm-toggle > span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);
    clip-path:inset(50%);white-space:nowrap}
  .sm-toggle{padding:0 11px}
}
.sm-toggle:focus-visible,.sm-panel a:focus-visible,.sm-panel button:focus-visible{
  outline:3px solid var(--sm-teal);outline-offset:2px}

/* ---- The dialog ---------------------------------------------------------------------------- */
.sm-panel[hidden],.sm-backdrop[hidden]{display:none!important}
.sm-backdrop{position:fixed;inset:0;z-index:2147483647;background:rgba(22,31,29,.30)}
.sm-panel{position:fixed;inset:0;z-index:2147483647;display:flex;flex-direction:column;
  height:100vh;height:100dvh;margin:0;background:var(--sm-card);color:var(--sm-ink);
  font-family:var(--sm-font);font-size:17px;line-height:1.3;text-align:left;
  -webkit-text-size-adjust:100%}
.sm-panel *{box-sizing:border-box}
.sm-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;
  padding:calc(env(safe-area-inset-top,0px) + 12px) 20px 12px}
.sm-title{order:-1;margin:0;font-family:var(--sm-font);font-size:20px;font-weight:800;line-height:1.2;
  letter-spacing:-.01em;color:var(--sm-ink)}
.sm-close{display:inline-flex;align-items:center;gap:10px;min-height:48px;margin:0;padding:0 16px;
  border:1px solid var(--sm-line);border-radius:12px;background:var(--sm-card);color:var(--sm-teal);
  font-family:var(--sm-font);font-size:17px;font-weight:700;line-height:1;cursor:pointer}
.sm-close:hover{background:var(--sm-teal-soft)}
.sm-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;padding:4px 20px 20px}
.sm-cta{display:flex;align-items:center;justify-content:center;gap:12px;min-height:52px;
  padding:0 20px;border-radius:12px;background:var(--sm-teal);color:#fff;font-size:18px;
  font-weight:700;text-decoration:none}
.sm-cta:hover{background:#0B3D3A;color:#fff}
.sm-cta .sm-icon{width:22px;height:22px}
.sm-nav{display:block;margin:0;padding:0}
.sm-group{margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--sm-line)}
.sm-group-title{margin:0 0 4px;font-family:var(--sm-font);font-size:15px;font-weight:700;
  line-height:1.3;letter-spacing:.01em;color:var(--sm-ink2)}
.sm-group ul{list-style:none;margin:0;padding:0}
.sm-group li{margin:0;padding:0}
.sm-group li a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;
  margin:0 -10px;padding:0 10px;border-radius:10px;color:var(--sm-ink);font-size:17px;font-weight:600;
  text-decoration:none}
.sm-group li a:hover{background:var(--sm-soft);color:var(--sm-teal)}
.sm-group li a[aria-current="page"]{background:var(--sm-soft);color:var(--sm-teal);
  box-shadow:inset 3px 0 0 var(--sm-teal)}
.sm-chev{width:18px;height:18px;flex:none;color:var(--sm-ink2)}
.sm-ext{width:18px;height:18px;flex:none;color:var(--sm-ink2)}
.sm-vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;border:0}
.sm-foot{flex:none;padding:12px 20px calc(env(safe-area-inset-bottom,0px) + 12px);
  border-top:1px solid var(--sm-line);background:var(--sm-card)}
.sm-call{display:flex;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:0 20px;
  border:1px solid rgba(14,76,72,.45);border-radius:12px;background:var(--sm-card);color:var(--sm-teal);
  font-size:18px;font-weight:700;text-decoration:none}
.sm-call:hover{background:var(--sm-teal-soft)}
.sm-beta{margin:10px 0 0;font-size:15px;line-height:1.4;color:var(--sm-ink2);text-align:center}
.sm-beta a{display:inline-block;padding:13px 6px;margin:-13px -6px;color:var(--sm-teal);font-weight:600;
  text-decoration:underline;text-underline-offset:2px}

/* ---- Social profiles (20 Nov 2026, redesigned the same day) ---------------------------------
   From scripts/site_social.py. In a footer: a small icon and the platform name per profile, as the
   last line of the footer's own link group, in that footer's type size and link colour (icons are
   drawn in currentColor and sized in em). In the menu foot: the icons alone, beside Terms. No
   label, nothing bold, nothing larger than the text around it; every link is 44px tall to tap. */
/* width:0 with min-width:100% gives the line its own row without widening the link group. */
.site-social{display:flex;flex:0 0 100%;width:0;min-width:100%;flex-wrap:wrap;align-items:center;
  justify-content:inherit;gap:0 18px;margin:0;padding:0}
.site-social .site-social-link{display:inline-flex;align-items:center;gap:.45em;min-height:44px;
  margin:0;padding:0;text-decoration:none}
.site-social-name{text-decoration:underline}
.site-social-icon{display:block;width:1.15em;height:1.15em;flex:none}
.site-social .site-social-link:focus-visible{outline:3px solid var(--sm-teal);outline-offset:2px;
  border-radius:6px}
.sm-beta{display:flex;align-items:center;justify-content:center;gap:10px}
.sm-social{flex:none;width:auto;min-width:0;gap:0;color:var(--sm-teal)}
.sm-social .site-social-link{justify-content:center;width:44px;height:44px;border-radius:10px}
.sm-social .site-social-link:hover{background:var(--sm-soft)}
.sm-social .site-social-icon{width:19px;height:19px}

/* Both layers sit above the privacy banner (2147483646): the panel follows the backdrop in the DOM.
   Phone: the page behind does not scroll while the sheet is open. */
@media (max-width:767px){
  html.sm-open,html.sm-open body{overflow:hidden}
  .sm-panel:not([hidden]){animation:sm-slide .22s cubic-bezier(.32,.72,0,1)}
}
@keyframes sm-slide{from{transform:translateX(24px);opacity:.4}to{transform:none;opacity:1}}

/* ---- Tablet and desktop: a wide panel under the top bar, two columns ----------------------- */
@media (min-width:768px){
  .sm-backdrop{background:rgba(22,31,29,.18)}
  .sm-panel{inset:auto;top:var(--sm-top,72px);right:24px;left:auto;width:min(720px,calc(100vw - 48px));
    height:auto;max-height:calc(100vh - var(--sm-top,72px) - 16px);border:1px solid var(--sm-line);
    border-radius:16px;box-shadow:0 24px 60px rgba(20,37,33,.22)}
  .sm-panel:not([hidden]){animation:sm-drop .16s ease-out}
  .sm-head{padding:14px 24px 4px}
  .sm-close{min-height:44px}
  .sm-scroll{padding:8px 24px 16px}
  .sm-nav{display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
  .sm-group{margin-top:18px}
  .sm-group li a{min-height:44px}
  .sm-chev{display:none}
  .sm-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px 16px;
    border-radius:0 0 16px 16px}
  .sm-call{min-height:48px;font-size:17px}
  .sm-beta{margin:0;justify-content:flex-end}
}
@keyframes sm-drop{from{transform:translateY(-6px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.sm-panel:not([hidden]){animation:none}}
@media print{.sm-toggle,.sm-panel,.sm-backdrop{display:none!important}}

/* Organic reading-page header. The map, paid pages and transaction pages keep their own controls. */
.site-header.organic-header{
  position:sticky;top:0;z-index:60;display:block;
  background:rgba(255,253,248,.96);border-bottom:1px solid #d4cfc4;backdrop-filter:blur(12px)
}
body:has(.organic-header) > .skip:focus{z-index:70}
.organic-header>.header-inner{
  box-sizing:border-box;width:100%;max-width:1180px;height:auto;min-height:72px;
  margin:0 auto;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px
}
.organic-header .brand{
  display:inline-flex;align-items:center;gap:10px;margin:0;min-height:44px;
  color:#142521;text-decoration:none;white-space:nowrap
}
.organic-header .brand>span{
  display:block;margin:0;color:inherit;font:850 19px/1.15 ui-sans-serif,system-ui,sans-serif;letter-spacing:-.025em
}
.organic-header .brand>.brand-mark{
  display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;
  background:#0e4c48;color:#fff;font-size:17px;letter-spacing:0
}
.organic-header .brand small{display:inline;margin-left:7px;color:#55635e;font-size:12px;font-weight:650}
@media (max-width:680px){
  .organic-header>.header-inner{min-height:62px;padding:8px 16px}
  .organic-header .brand>.brand-mark{width:28px;height:28px;border-radius:7px}
  .organic-header .brand small{display:none}
}
