@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-italic-cyrillic-ext.39689184.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-italic-cyrillic.47d42151.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-italic-greek-ext.787fc783.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-italic-greek.29e273a4.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-italic-vietnamese.1991ed58.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-italic-latin-ext.71254244.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-italic-latin.7291b597.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-normal-cyrillic-ext.ca157063.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-normal-cyrillic.71d5ee93.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-normal-greek-ext.6e9e020a.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-normal-greek.1be3448e.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-normal-vietnamese.5c66f9e0.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-normal-latin-ext.34b9c504.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/inter-normal-latin.3100e775.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url("/static/fonts/montserrat-300-cyrillic-ext.9e360bb4.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url("/static/fonts/montserrat-300-cyrillic.40aab8ec.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url("/static/fonts/montserrat-300-vietnamese.50336707.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url("/static/fonts/montserrat-300-latin-ext.6fe66d1e.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; font-display: swap; src: url("/static/fonts/montserrat-300-latin.a04fdaae.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/roboto-500-cyrillic-ext.a99e7e70.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/roboto-500-cyrillic.09913395.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/roboto-500-greek-ext.e44efd49.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/roboto-500-greek.4a1a773d.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/roboto-500-math.41e63fe7.woff2") format("woff2"); unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/roboto-500-symbols.5cb4c667.woff2") format("woff2"); unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/roboto-500-vietnamese.15c77aed.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/roboto-500-latin-ext.1e597a6e.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/roboto-500-latin.5bcc3aa1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Fallback'; src: local("Arial"), local("ArialMT"); size-adjust: 107.40%; ascent-override: 90.20%; descent-override: 22.46%; line-gap-override: 0.00%; }
@font-face { font-family: 'Montserrat Fallback'; src: local("Arial"), local("ArialMT"); size-adjust: 112.83%; ascent-override: 85.79%; descent-override: 22.25%; line-gap-override: 0.00%; }
@font-face { font-family: 'Roboto Fallback'; src: local("Arial"), local("ArialMT"); size-adjust: 100.30%; ascent-override: 92.50%; descent-override: 24.34%; line-gap-override: 0.00%; }


  :root {
    /* brand */
    --navy: #0b2545;
    --navy-rgb: 11, 37, 69;
    --navy-lift: #123a63;
    --white: #ffffff;
    --bronze: #a35a2a; /* rusty bronze: the logo star and the main accent colour */
    --bronze-rgb: 163, 90, 42;
    --bronze-light: #d08a56; /* the same bronze on navy and on dark photos */
    --bronze-light-rgb: 208, 138, 86;
    --on-bronze-light: #1c0e05; /* text on a --bronze-light fill */
    --sea-pale: #e4eef8; /* the pale sea-blue pill of the two cards above the footer of a dock page (design B3) */
    --sea-pale-hover: #d3e4f4;
    --sea-pale-ink: #0f3a63; /* text on --sea-pale, 10:1 */

    /* semantic: swapped by high-contrast mode */
    --ink: var(--navy);
    --ink-soft: #45607a;
    --bg: #ffffff;
    --surface: #ffffff;
    --accent: var(--bronze);
    --accent-dark: #7d4320;
    --accent-text: #8a4a1f; /* accent for text on white, 6.4:1 */
    --on-accent: #ffffff; /* text on accent fills, 5.2:1 */
    --border: #e7e2d6;
    --card-line: var(--border); /* the outline of a card, tile or panel (owner, 2026-10-24: the thin line stays, no shadow; transparent would make every card flat) */
    --card-shadow: none; /* the shadow under a card, same switch */
    --surface-tint: #ffffff; /* the whole site is flat white (owner, 2026-10-24): no tinted page behind cards; kept as a token so the few "quiet fill" uses stay white */

    /* status: notice, error, success */
    --notice-bg: #fdf3e2;
    --notice-border: #e9c17a;
    --notice-text: #7a5108;
    --danger-bg: #fdecea;
    --danger-border: #f3b4ab;
    --danger-text: #9c2c1f;
    --success-bg: #eafaf3;
    --success-border: #9fe0c0;
    --success-text: #146b43;

    /* prose and warm accents */
    --ink-prose: #24405c;
    --ink-prose-strong: #1d3a56;
    --amber: #8a5a12;

    /* type */
    /* since 2026-10-18 the whole site is set in Inter (the owner's decision). The two names below are historical: they still mean "the face of headings and prose" */
    /* each 'X Fallback' is the local Arial sized to the metrics of X (styles/fonts.css), shown only until the web font has loaded, so the swap barely moves the text */
    --font-serif: 'Inter', 'Inter Fallback', system-ui, sans-serif;
    --font-serif-bare: 'Inter', 'Inter Fallback', sans-serif;
    --font-sans: 'Inter', 'Inter Fallback', system-ui, sans-serif;
    --font-logo: 'Montserrat', 'Montserrat Fallback', 'Inter', sans-serif;

    /* shape and motion */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-pill: 999px;
    --ease: 0.15s ease;

    /* layout */
    --page-max: 1320px;
    --warn-bg: #fff1d6;
    --warn-border: #e2a53b;
    --warn-text: #7a4a00;
    --gutter: clamp(16px, 4vw, 24px); /* 24px from 600px wide up, 16px on small phones */
    --header-h: 64px;

    /* stacking order, lowest to highest */
    --z-raise: 1;
    --z-header: 5;
    --z-panel: 20;
    --z-lightbox: 1100; /* above Leaflet (its panes and controls go up to 1000) so the photo viewer covers the map */
    --z-skip: 100;
    --z-above-map: 1000; /* above Leaflet's own panes and controls */
    --z-guide: 9999;
  }


  html.a11y-contrast {
    --ink: #000000; --ink-soft: #202020; --bg: #ffffff; --surface: #ffffff;
    --accent: #6b3314; --accent-dark: #4a220c; --accent-text: #4a220c; --on-accent: #ffffff; --border: #000000;
  }


  :root { color-scheme: light; } /* no dark theme yet: stops the browser drawing dark form controls and scrollbars on a light page */
  * { box-sizing: border-box; }
  :focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
  main:focus { outline: none; }
  /* a page shown inside the profile's frame (index.tsx drops the header and footer and adds this class) */
  html.embed body { background: var(--white); }
  html.embed .rt-planner { height: 720px; }
  .skip-link {
    position: absolute; left: 8px; top: -60px; z-index: var(--z-skip); background: var(--ink); color: var(--white);
    padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: 0.9rem;
  }
  .skip-link:focus { top: 8px; }
  body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
  }
  h1, h2, h3 { font-family: var(--font-serif); margin: 0 0 0.4em; line-height: 1.15; }
  /* one voice across the site: Inter headings and prose in deep navy, calm and spaced (the whole site moved from Fraunces to Inter on 2026-10-18) */
  main h1 { font-weight: 600; font-size: clamp(1.75rem, 3.2vw, 2.4rem); letter-spacing: -0.015em; }
  main h2, main h3 { font-weight: 600; letter-spacing: -0.01em; }
  main p, main figcaption, main dd { font-family: var(--font-serif); line-height: 1.7; }
  main h1, main h2 { text-wrap: balance; }
  main p { text-wrap: pretty; }
  ::selection { background: rgba(163, 90, 42, 0.3); }
  a { color: inherit; }
  /* touch: no double-tap zoom delay on anything you press, and a calm bronze flash instead of the grey default */
  a, button, label, summary, select, input, textarea, [role="button"] { touch-action: manipulation; }
  a, button, label, summary, [role="button"] { -webkit-tap-highlight-color: rgba(var(--bronze-rgb), 0.14); }
  /* a panel that scrolls (viewer, menu, chat) keeps the scroll to itself instead of passing it on to the page behind */
  .vw, .vw-side, .stage-rail, .vw-thumbs, .user-menu, .chat-convs, .chat-thread, .ac-list, .mini-list { overscroll-behavior: contain; }
  /* text for screen readers only */
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  /* a message that takes the focus when the page opens (an error to read) needs no ring, it is not a control */
  [role="alert"]:focus { outline: none; }
  .wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }


  header.site {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
  header.site .wrap {
    display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px;
    max-width: none;
  }
  /* widely spaced thin wordmark followed by the compass star */
  .logo { display: inline-flex; flex-direction: row; align-items: center; gap: 0.5rem; line-height: 1; text-decoration: none; color: var(--ink); white-space: nowrap; }
  .logo .logo-star { width: 1.2rem; height: 1.2rem; fill: var(--bronze); }
  html.a11y-contrast .logo .logo-star { fill: currentColor; }
  .logo .logo-word { font-family: var(--font-logo); font-weight: 300; font-size: 0.8rem; letter-spacing: 0.6em; margin-right: -0.6em; }
  .header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
  .user-wrap { position: relative; display: none; }
  /* the account button (owner, 2026-11-10: option 4 "Clean bay" of design-options/avatar-icon-4/): a 44 px target holding a 40 px round picture, the same
     bay from above for everyone with the initial on it, or the user's own photo instead of both; the small badge at the bottom right (::before) holds the
     chevron (::after, a mask so it takes the button colour), which turns over while the menu is open */
  .avatar-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0; border: 0;
    border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; touch-action: manipulation; text-decoration: none;
  }
  .avatar-btn > span, .avatar-btn > img {
    position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; box-sizing: border-box; transition: transform 0.15s ease;
  }
  .avatar-btn > span {
    display: flex; align-items: center; justify-content: center; padding-bottom: 1px;
    background: #a9d0e2 url("/static/avatar/bay.533ab2a9.svg") center / 100% 100% no-repeat; color: var(--navy);
    font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 19px; line-height: 1;
  }
  .avatar-btn > span[hidden] { display: none; }
  .avatar-btn::before {
    content: ""; position: absolute; right: 0; bottom: 0; z-index: 1; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(var(--navy-rgb), 0.15);
  }
  .avatar-btn::after {
    content: ""; position: absolute; right: 4px; bottom: 4px; z-index: 2; width: 10px; height: 10px; background: currentColor;
    -webkit-mask: url("/static/avatar/chevron.fdc558ea.svg") center / 100% 100% no-repeat; mask: url("/static/avatar/chevron.fdc558ea.svg") center / 100% 100% no-repeat;
    transition: transform 0.15s ease;
  }
  .avatar-btn:hover > span, .avatar-btn:hover > img { transform: scale(1.05); }
  .avatar-btn:hover { color: var(--ink); }
  .avatar-btn:hover::before { border-color: #cfc8b6; }
  .avatar-btn:active { scale: 0.96; }
  .avatar-btn:active::before { border-color: #bfb7a2; }
  .avatar-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .avatar-btn[aria-expanded="true"] { color: var(--accent-text); }
  .avatar-btn[aria-expanded="true"]::before { border-color: var(--accent); }
  .avatar-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
  @media (prefers-reduced-motion: reduce) { .avatar-btn > span, .avatar-btn > img, .avatar-btn::after { transition: none; } }
  /* the account menu under the avatar: your email, then everything you can do with your account */
  .user-menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--z-panel); min-width: 220px; padding: 6px; background: var(--surface); color: var(--ink);
    border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(var(--navy-rgb), 0.18);
  }
  .user-menu[hidden] { display: none; }
  .user-menu a, .user-menu button {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--ink); font: inherit; font-size: 0.9rem; text-align: left; text-decoration: none; cursor: pointer;
  }
  .user-menu a[hidden] { display: none; }
  .user-menu a:hover, .user-menu button:hover, .user-menu a:focus-visible, .user-menu button:focus-visible { background: var(--surface-tint); outline: none; }
  .user-menu form { margin: 0; }
  .um-email { padding: 8px 10px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; color: var(--ink-soft); }
  .um-sep { height: 1px; margin: 5px -6px; background: var(--border); }
  .um-badge { min-width: 18px; padding: 1px 6px; box-sizing: border-box; text-align: center; border-radius: var(--radius-pill); background: var(--bronze-light); color: var(--on-bronze-light); font-size: 0.72rem; font-weight: 700; }
  .um-badge[hidden] { display: none; }
  .user-menu .um-danger { color: var(--danger-text); }
  .user-menu .um-danger:hover { background: var(--danger-bg); }
  .avatar-btn img { object-fit: cover; display: block; }
  .avatar-btn img[hidden] { display: none; }
  .btn-login {
    display: inline-flex; align-items: center; text-decoration: none;
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    padding: 9px 18px; font-size: 0.88rem; font-weight: 600; color: var(--ink);
    white-space: nowrap;
  }
  .btn-login:hover { border-color: var(--accent); color: var(--accent-text); }

  /* The header chips (University, Plan a route, Map): plain links, the same pill as Log in */
  .why-chip { display: inline-flex; align-items: center; text-decoration: none; padding: 9px 18px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
  .why-chip .chip-icon { width: 16px; height: 16px; margin-right: 6px; flex: none; }
  .why-chip:hover { border-color: var(--accent); color: var(--accent-text); }
  .why-chip:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
  .why-chip[aria-current="page"] { border-color: var(--accent); color: var(--accent-text); }
  @media (max-width: 480px) { .why-chip { padding: 8px 10px; font-size: 0.8rem; } .btn-login { font-size: 0.8rem; } }
  @media (max-width: 400px) { .why-chip { padding: 8px 10px; } }
  /* Home and map header (owner, 2026-11-17): University, Blog and Plan a route sit in .hdr-chips. Above 480 px the group is invisible (display: contents), so the chips stay cells of the pill as before; University and Blog step aside below 600 px when the planner is on, and "Plan a route" below 820 px (all are in the account menu and the footer). On phones (480 px and less) the chips are hidden, see the phone block below. */
  .hdr-chips { display: contents; }
  @media (min-width: 481px) and (max-width: 600px) { .has-trip #blog-chip, .has-trip #blog-page-chip { display: none; } }
  @media (min-width: 481px) and (max-width: 820px) { #route-chip { display: none; } }
  /* phones (480 px and less) show none of the home header chips (owner, 2026-11-22): University, Blog and Plan a route stay in the account menu and the footer */
  @media (max-width: 480px) {
    header.site .hdr-chips { display: none; }
    header.site .hero-pill .hdr-chips + a::before { display: none; }
    /* logged in: the script hides Log in; the empty box steps aside */
    header.site .hero-pill:has(#auth-link[style*="display: none"]) { display: contents; }
  }

  /* Logo + icons + login pill can outrun very narrow phones (~320px). The
     search icon gives first; the accessibility button always stays. */
  @media (max-width: 400px) {
    .header-actions { gap: 6px; }
    .btn-login { padding: 8px 12px; }
  }

  /* the accessibility options: a small tab stuck to the right edge of the screen (owner, 2026-10-19); the panel opens to its left */
  .a11y-wrap { position: fixed; right: 0; top: 46%; z-index: var(--z-panel); }
  .a11y-tab {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 52px; padding: 0; margin: 0; cursor: pointer; touch-action: manipulation;
    border: 1px solid rgba(255,255,255,0.35); border-right: 0; border-radius: var(--radius-xl) 0 0 14px; background: var(--navy); color: var(--white);
    box-shadow: 0 4px 14px rgba(var(--navy-rgb), 0.28);
  }
  .a11y-tab:hover { background: var(--navy-lift); }
  .a11y-tab:focus-visible { outline: 2px solid var(--bronze-light); outline-offset: 2px; }
  .a11y-tab svg { width: 19px; height: 19px; }
  .a11y-panel {
    position: absolute; top: 0; right: 100%; margin-right: 8px; max-height: min(78vh, 480px); overflow-y: auto; overscroll-behavior: contain; z-index: var(--z-panel); width: 230px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 16px; box-shadow: 0 14px 32px rgba(var(--navy-rgb), 0.18);
    display: flex; flex-direction: column; gap: 14px;
  }
  .a11y-panel[hidden] { display: none; }
  .a11y-row { display: flex; flex-direction: column; gap: 8px; }
  .a11y-label { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
  .a11y-seg { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
  .a11y-seg button {
    flex: 1; border: none; border-right: 1px solid var(--border); background: var(--surface); color: var(--ink);
    padding: 7px 0; cursor: pointer; font-family: inherit; font-size: 0.85rem;
  }
  .a11y-seg button:last-child { border-right: none; }
  .a11y-seg button.active { background: var(--ink); color: var(--white); }
  .a11y-check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink); cursor: pointer; }
  .a11y-reset {
    align-self: flex-start; border: none; background: none; color: var(--accent-text);
    font-size: 0.8rem; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline;
  }

  html.a11y-text-large { font-size: 112.5%; }
  html.a11y-text-larger { font-size: 125%; }
  html.a11y-underline a:not(.icon-btn):not(.btn-login):not(.btn-cta):not(.logo) { text-decoration: underline; }
  html.a11y-reduce-motion, html.a11y-reduce-motion * { transition: none !important; animation: none !important; }
  html.a11y-grayscale { filter: grayscale(1); }
  html.a11y-readable-font, html.a11y-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0.01em;
  }
  html.a11y-big-cursor, html.a11y-big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24"><path d="M3 2l7.6 19.2 2.5-8 8-2.4z" fill="black" stroke="white" stroke-width="1.2"/></svg>') 2 2, auto !important;
  }
  .a11y-reading-guide {
    position: fixed; left: 0; right: 0; height: 34px; margin-top: -17px; pointer-events: none; z-index: var(--z-guide);
    background: rgba(255,214,0,0.28); border-top: 2px solid rgba(153,109,0,0.75); border-bottom: 2px solid rgba(153,109,0,0.75);
    display: none;
  }
  .a11y-reading-guide.active { display: block; }

  footer.site { border-top: 1px solid var(--border); margin-top: 80px; padding: 32px 0; color: var(--ink-soft); font-size: 0.85rem; }
  footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
  footer.site a { color: var(--ink-soft); }
  footer.site .foot-osm { flex-basis: 100%; font-size: 0.78rem; }
  footer.site .foot-credit { flex-basis: 100%; margin-top: -6px; font-size: 0.72rem; }
  footer.site .foot-credit a { text-decoration: underline; text-underline-offset: 2px; }

  /* The two cards above the footer of an Asset page (design B3, round 3, owner 2026-11-16; ui/contactStrip.tsx): "Something on this page wrong?" and the
     dock's "Got a better photo of ...?", side by side from 800px, stacked below. Each card: a rounded photo on top, a heading, one pale sea-blue button.
     The outline comes from the card group in components.css (.strip-card). */
  .contact-strip { margin-top: 40px; }
  .contact-strip + footer.site { margin-top: 40px; }
  .contact-strip-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  @media (min-width: 800px) { .contact-strip-row.has-extra { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }
  .strip-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: 12px 12px 22px; border-radius: var(--radius-xl); background: var(--surface); }
  .strip-card > :not(.strip-photo) { margin-inline: 12px; }
  .strip-photo { display: block; width: 100%; min-width: 0; height: 170px; object-fit: cover; border-radius: var(--radius-md); background: var(--border); }
  .strip-h { margin: 0; font-family: var(--font-logo); font-size: 1.4rem; font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
  .contact-strip-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill); background: var(--sea-pale); color: var(--sea-pale-ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; touch-action: manipulation; transition: transform var(--ease); }
  .contact-strip-btn:hover { background: var(--sea-pale-hover); }
  .contact-strip-btn:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
  .contact-strip-btn:active { scale: 0.97; }
  @media (max-width: 480px) { .contact-strip-btn { align-self: stretch; } }

  /* The sign-up pop-up (option 4 of design-options/signup-prompt/round-4, owner 2026-11-18, after option D of round-3; ui/signupPrompt.tsx, client/lib/signupPrompt.ts): a small
     card at the bottom right (a bottom sheet on phones; non-modal: no backdrop, the page stays usable) with a short strip of the owner's bay photo, the heading, one line, the benefits with small icon tiles and a teal button; every word in it is Montserrat 300,
     like the dock card heading .strip-h (owner). The card has no "Log in" and no "Don't show again" (X and Escape close it). The outline comes from the card group in
     components.css (.sp-card, .sp-back). .sp-back is the small "Welcome back" bar at the bottom for a browser where someone has been logged in before; it keeps both. */
  .sp-card, .sp-back { font-family: var(--font-logo); font-weight: 300; color: var(--ink); }
  .sp-card button, .sp-back button { font: inherit; }
  .sp-card :focus-visible, .sp-back :focus-visible { outline: 2px solid var(--sea-pale-ink); outline-offset: 3px; }
  .sp-card {
    position: fixed; inset: auto 20px 20px auto; z-index: calc(var(--z-guide) - 1); width: min(340px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 40px);
    margin: 0; padding: 12px 12px 18px; border-radius: var(--radius-xl); background: var(--surface); overflow: auto; overscroll-behavior: contain;
  }
  .sp-card[open] { display: flex; flex-direction: column; gap: 14px; animation: sp-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .sp-card > :not(.sp-photo):not(.sp-x) { margin-inline: 6px; }
  .sp-photo { flex: none; width: 100%; height: 124px; overflow: hidden; border-radius: var(--radius-md); background: var(--sea-pale); }
  .sp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
  .sp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  .sp-list li { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 0.84rem; line-height: 1.25; min-width: 0; }
  .sp-list li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .sp-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; }
  .sp-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .sp-ic-routes { background: #dcecf7; color: #1f5f8b; }
  .sp-ic-ock { background: #fde6df; color: #b4533f; }
  .sp-ic-pin { background: #d9f2ee; color: #0f7a6c; }
  .sp-ic-bell { background: #ece6f6; color: #7a56b0; }
  .sp-act { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
  /* the button: the glass of the home "Open map" button (frosted blur, fine navy ring, soft shadow, navy ink), with a soft translucent
     fill in the colours of the map's dock kinds (blue, teal, coral) and an inner highlight, so that it reads as glass on the white card too */
  .sp-cta {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(31, 95, 139, 0.16), rgba(25, 168, 151, 0.16) 55%, rgba(212, 119, 98, 0.16)); color: var(--navy); font-size: 1rem; font-weight: 300;
    text-decoration: none; touch-action: manipulation; -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 1px rgba(var(--navy-rgb), 0.14), 0 0 0 4px rgba(255, 255, 255, 0.55), 0 3px 12px rgba(var(--navy-rgb), 0.14);
    transition: transform var(--ease);
  }
  .sp-cta > svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .sp-cta:hover { background: linear-gradient(135deg, rgba(31, 95, 139, 0.26), rgba(25, 168, 151, 0.26) 55%, rgba(212, 119, 98, 0.26)); }
  .sp-cta:active { scale: 0.97; }
  .sp-card .sp-cta:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 6px; }
  .sp-back .contact-strip-btn { margin-top: 0; font-weight: 300; font-size: 1rem; align-self: auto; }
  .sp-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-soft); font-size: 0.95rem;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; touch-action: manipulation;
  }
  .sp-link:hover { color: var(--ink); }
  .sp-link:active { scale: 0.97; }
  .sp-x {
    position: absolute; top: 20px; right: 20px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--card-line); border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--ink); cursor: pointer;
    touch-action: manipulation; transition: transform var(--ease);
  }
  .sp-x:hover { background: var(--surface); border-color: var(--ink-soft); }
  .sp-x:active { scale: 0.92; }
  .sp-x svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
  .sp-back {
    position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: calc(var(--z-guide) - 1);
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; width: max-content; max-width: calc(100% - 24px);
    padding: 8px 60px 8px 20px; border-radius: var(--radius-xl); background: var(--surface); animation: sp-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .sp-back strong { font-weight: 300; font-size: 1.1rem; }
  .sp-back .sp-x { top: 50%; right: 8px; translate: 0 -50%; }
  @keyframes sp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .sp-card[open], .sp-back { animation: none; } .sp-x { transition: none; } }
  @media (max-width: 640px) {
    .sp-card { inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px; width: auto; max-height: calc(100dvh - 20px); }
    .sp-photo { height: 100px; }
    .sp-card[open] { gap: 12px; }
    .sp-list { gap: 8px 8px; }
    .sp-list li { font-size: 0.82rem; }
    .sp-ic { width: 28px; height: 28px; }
    .sp-cta { align-self: stretch; }
    .sp-x { top: 16px; right: 16px; }
  }


  .breadcrumb { font-size: 0.85em; color: var(--ink-soft); margin-bottom: 16px; }
  .breadcrumb a { text-decoration: none; color: var(--accent-text); }

  /* the numbered circle that stands for several docks on a zoomed-out map (client/lib/cluster.ts, design D of design-options/map-dots): a white disc with a donut
     of the dock kinds it holds (client/lib/dockDots.ts, colours in shared/dockKinds.ts) and the count in navy; .dk-ring-sum is the plain ring of a circle whose
     kinds are not known (the summary of a big catalogue, counts only) */
  .dk-wrap { background: none; border: 0; }
  .dk-cluster { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; color: var(--navy); font: 700 0.85rem/1 var(--font-sans); font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(var(--navy-rgb), 0.3); cursor: pointer; transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1); }
  /* beats Leaflet's .leaflet-map-pane svg (z-index 200), which would cover the count, and the planner's 16 px icon rule (.rt-planner svg) */
  .dk-wrap .dk-cluster svg.dk-ring { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
  .dk-ring-bg { fill: rgba(255, 255, 255, 0.94); }
  .dk-ring-sum { stroke: #8a99ad; }
  .dk-cluster .dk-num { position: relative; z-index: 1; pointer-events: none; }
  /* a single dock: an SVG circle filled with the colour of its kind, white edge (client/lib/dockDots.ts); a dock with a photo has a halo ring in the pane under the dots */
  .leaflet-pane.leaflet-dkhalo-pane { z-index: 399; } /* two classes: Leaflet's own .leaflet-pane (400) loads later and would win */
  .leaflet-interactive.dk-dot { transform-box: fill-box; transform-origin: center; transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
  .leaflet-interactive.dk-dot:hover { transform: scale(1.35); }
  /* the small window of a dock on the map: its photo, name, kind and the link */
  .dock-pop { display: flex; flex-direction: column; gap: 3px; min-width: 200px; cursor: pointer; }
  .dock-pop-photo { display: block; margin: 0 0 4px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-tint); line-height: 0; }
  .dock-pop-photo img { display: block; width: 100%; height: auto; aspect-ratio: 220 / 130; object-fit: cover; }
  .dock-pop strong { font-size: 0.95rem; line-height: 1.25; overflow-wrap: anywhere; }
  .dock-pop span { color: var(--ink-soft); font-size: 0.8rem; text-transform: capitalize; }
  .dk-cluster.dk-m { font-size: 0.9rem; }
  .dk-cluster.dk-l { font-size: 0.92rem; }
  .dk-wrap:hover .dk-cluster, .dk-wrap:focus-visible .dk-cluster { transform: scale(1.1); }
  .dk-wrap:active .dk-cluster { transform: scale(1.04); }
  .dk-wrap:focus-visible { outline: none; }
  .dk-wrap:focus-visible .dk-cluster { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) { .dk-cluster, .leaflet-interactive.dk-dot { transition: none; } }
  /* the photo that floats above a single dock dot (client/lib/mapPhotos.ts): the hover window's frame and pointer (Leaflet's popup classes) around its photo, smaller.
     Its pane sits above the dots and below the circles, the planner's stops and the hover window. */
  .leaflet-pane.leaflet-dkphotos-pane { z-index: 450; }
  .dk-photo { background: none; border: 0; }
  .dk-photo-card { position: relative; transform-origin: 50% 100%; animation: dk-photo-in 200ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .dk-photo .leaflet-popup-content-wrapper { padding: 3px; border-radius: 14px; line-height: 0; box-shadow: 0 2px 12px rgba(var(--navy-rgb), 0.35); }
  .dk-photo .dock-pop-photo { margin: 0; border-radius: 11px; -webkit-user-drag: none; }
  .dk-photo .leaflet-popup-tip { pointer-events: none; }
  .dk-photo:hover .leaflet-popup-content-wrapper { box-shadow: 0 6px 20px rgba(var(--navy-rgb), 0.5); }
  .dk-photo-s .leaflet-popup-content-wrapper { border-radius: 10px; }
  .dk-photo-s .dock-pop-photo { border-radius: 7px; }
  /* the "Dock type" key at the bottom left of the home map and /map (ui/mapKey.tsx, round 2 of design-options/map-dots): frosted, small; outline from the card group */
  .map-key { position: absolute; left: 10px; bottom: 24px; z-index: var(--z-above-map); max-width: 150px; padding: 8px 11px 9px; border-radius: 12px; background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 0.7rem/1.2 var(--font-sans); color: #3d4d63; pointer-events: none; }
  .map-key p { margin: 0; }
  .map-key .map-key-h { margin-bottom: 5px; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #66748a; }
  .map-key-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .map-key-l li, .map-key-n { display: flex; align-items: center; gap: 7px; min-width: 0; }
  .map-key-sw { flex: none; display: block; }
  .map-key .map-key-n { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(var(--navy-rgb), 0.08); }
  @keyframes dk-photo-in { from { opacity: 0; transform: scale(0.92); } }
  @media (prefers-reduced-motion: reduce) { .dk-photo-card { animation: none; } }
  /* the map ruler of every map (client/lib/ruler.ts): its button looks like the map's other buttons (the around map's .ar-mapbtn), pressed = navy;
     the flags are SVG with a white edge so they read on the map and on the sea depth layer; the distance is a white pill with navy text */
  .map-ruler { position: relative; }
  .map-ruler-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(var(--navy-rgb), 0.14); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 0.12s cubic-bezier(0.23, 1, 0.32, 1); }
  .leaflet-container .map-ruler-btn svg { width: 18px; height: 18px; }
  .map-ruler-btn:hover { border-color: var(--accent); color: var(--accent-text); }
  .map-ruler-btn:active { scale: 0.95; }
  .map-ruler-btn:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
  .map-ruler-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
  .map-ruler-btn[aria-pressed="true"]:hover { background: #163a63; color: var(--white); }
  @media (pointer: coarse), (max-width: 640px) { .map-ruler-btn { width: 44px; height: 44px; } }
  .leaflet-container.is-measuring, .leaflet-container.is-measuring .leaflet-interactive { cursor: crosshair; }
  .leaflet-container.is-measuring:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: -3px; }
  .leaflet-marker-icon.map-ruler-flag { background: none; border: 0; pointer-events: none; }
  .leaflet-container .leaflet-marker-icon.map-ruler-flag svg { display: block; width: 28px; height: 34px; filter: drop-shadow(0 1px 1.5px rgba(var(--navy-rgb), 0.45)); transform-origin: 5px 32px; }
  .leaflet-marker-icon.map-ruler-label { background: none; border: 0; pointer-events: none; }
  .map-ruler-pill { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); padding: 3px 10px; border: 1px solid rgba(var(--navy-rgb), 0.22); border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font: 700 0.8rem/1.3 var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 1px 4px rgba(var(--navy-rgb), 0.3); }
  .map-ruler-pill.is-aside { transform: translate(28px, -150%); }
  @media (prefers-reduced-motion: no-preference) {
    .leaflet-container .leaflet-marker-icon.map-ruler-flag svg { animation: map-ruler-in 180ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  }
  @keyframes map-ruler-in { from { opacity: 0; transform: scale(0.6); } }

  .btn-cta {
    display: inline-block;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    transition: transform var(--ease);
  }
  .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--navy-rgb), 0.3); }

  /* Shared across pages */
  .kicker {
    color: var(--accent-text); font-weight: 500; font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.2em;
  }
  .empty {
    padding: 24px; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--ink-soft); font-size: 0.9rem;
  }
  .cf-turnstile { min-height: 65px; } /* the box is drawn by Cloudflare's script; reserve its height so the form does not jump */
  .error {
    background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-text);
    padding: 10px 14px; border-radius: var(--radius-md); font-size: 0.88rem; margin-bottom: 16px;
  }
  .success {
    background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text);
    padding: 10px 14px; border-radius: var(--radius-md); font-size: 0.88rem; margin-bottom: 16px;
  }
  .back-link { display: inline-block; margin-top: 18px; font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; }
  .back-link:hover { color: var(--accent-text); }
  .photo-input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  .photo-input:focus-visible + label { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
  .list { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .list a {
    display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; text-decoration: none; color: var(--ink);
  }
  .list img, .list .thumb-ph { width: 100%; height: 140px; object-fit: cover; display: block; }
  .list .thumb-ph { background: var(--border); }
  .list .copy { padding: 14px; }
  .list h2 { font-size: 1rem; margin: 0 0 4px; text-wrap: auto; } /* a card title: the heading level follows the page (h1, then h2), the look stays small */
  .list p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

  /* notice box: neutral heads-up inside a page */
  .notice {
    background: var(--notice-bg); border: 1px solid var(--notice-border); color: var(--notice-text);
    padding: 14px 18px; border-radius: var(--radius-md); font-size: 0.88rem;
  }

  /* "Log out" is a POST form that looks like a link */
  .logout-form { display: inline; }
  .logout-btn { border: none; background: none; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; }

  /* a submit <button> styled as .btn-cta: drop the native border, keep the pointer */
  button.btn-cta { border: none; cursor: pointer; }
  /* a form's submit button while its request is on the way (client/site.ts switches it off too, so it cannot be sent twice) */
  button[aria-busy="true"] { opacity: 0.7; cursor: progress; }
  /* pressed: buttons and call-to-action links sink a little (the separate scale property adds to any transform set elsewhere; the few that scale themselves keep their own rule) */
  button:not(:disabled):not([class*="stage-"]):not([class*="vw-"]):active, .btn-cta:active, .btn-login:active { scale: 0.97; }

  /* sea headings and wave cards (continent and country pages) */
  .sea-head {
    display: flex; align-items: center; gap: 8px;
    color: var(--ink); font-weight: 600; font-size: 0.9rem;
    margin-top: 32px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  }
  .sea-head.first { margin-top: 24px; }
  .sea-head i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
  .sea-head .count { color: var(--ink-soft); font-weight: 400; }
  /* min(): on a phone, with the page gutters, 170px columns no longer fit two across, so shrink to half the row */
  .card-grid, .country-grid {
    display: grid; gap: 18px 14px; margin: 18px 0 0;
    grid-template-columns: repeat(auto-fill, minmax(min(170px, calc(50% - 7px)), 1fr));
  }
  /* Every card, tile and panel gets its outline and shadow from here (tokens --card-line, --card-shadow: transparent and none = flat on white). A card's own rule sets only its layout, radius and padding. */
  .pm-rail, .pm-mapwrap, .pm-card, .phc-box, .sl-answers, .ph-card, .ph-route, .ph-plain, .bn-b-card, .bn-b-stat, .bn-b-lane, .bn-b-notes, .bn-starter, .country-card, .wave-card, .al-link, .featured-card, .map-teaser, .map-key, .pp-card, .rt-card, .photo-split, .photo-done, .del-card, .chat-card, .su-card, .why-win, .result-row, .b-sum-card, .admin-tile, .queue-row, .review-card, .strip-card, .profile-card, .tk-seg, .tk-res-list, .tk-cardb, .tk-tile, .tk-cal, .tk-crew-pic, .tk-chart, .tk-pcard, .tk-sum, .tk-ask, .trip-hand, .ar-card, .pi-panel, .uni-door, .bl-card, .sp-card, .sp-back, .card, .dl-card, .dl-act, .lb-stats, .lb-empty, .sl-card, .sl-area {
    border: 1px solid var(--card-line); box-shadow: var(--card-shadow);
  }
  /* The top of a page inside the profile: icon and name on the left, one general line under it, an optional button on the right (ui/pageHead.tsx) */
  .pg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 20px; }
  .pg-head-text { min-width: 0; }
  .pg-head h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.75rem; text-wrap: balance; }
  .pg-ico { width: 28px; height: 28px; flex: none; color: var(--accent-text); }
  .pg-head p { margin: 6px 0 0; color: var(--ink-soft); font-size: 1rem; }
  .country-card, .wave-card {
    position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: var(--surface);
    border-radius: var(--radius-md) 10px 0 0;
    padding: 16px 16px 20px; color: var(--ink); text-decoration: none;
    transition: transform var(--ease);
  }
  .country-card:hover, a.wave-card:hover { text-decoration: underline; text-underline-offset: 4px; }
  .btn-cta:active, .share-btn:active, .photos-btn:active, .favorite-btn:active { transform: scale(0.98); }
  .count { font-variant-numeric: tabular-nums; }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
  .country-card .name, .wave-card .name { font-weight: 600; font-size: 0.9rem; }
  .wave-card .count { color: var(--ink-soft); font-weight: 400; }
  .list-note { color: var(--ink-soft); font-size: 0.9rem; margin: 14px 0 0; text-align: center; }

  /* The suggestions under a search box (client/lib/combobox.ts): a floating list, as the route planner's (.rt-results). The form gets .sg-host, and .sg-open while the list
     shows (it is lifted above what follows it). The active row (arrow keys) and the pointed row get a quiet navy fill, the active one also a bronze bar, so it shows on white. */
  .sg-host { position: relative; }
  .sg-host.sg-open { z-index: var(--z-panel); }
  .sg-list {
    position: absolute; z-index: var(--z-panel); left: 0; right: 0; top: calc(100% + 6px); min-width: min(18rem, calc(100vw - 2 * var(--gutter)));
    margin: 0; padding: 6px; list-style: none; text-align: left;
    background: var(--white); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: 0 14px 36px rgba(var(--navy-rgb), 0.2);
    max-height: min(60vh, 360px); overflow-y: auto; overscroll-behavior: contain;
  }
  .sg-list[hidden] { display: none; }
  .sg-opt {
    display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 12px; border-radius: var(--radius-md); border-left: 3px solid transparent;
    cursor: pointer; font: 0.93rem/1.3 var(--font-sans); touch-action: manipulation; -webkit-tap-highlight-color: rgba(var(--navy-rgb), 0.08);
  }
  .sg-opt:hover { background: rgba(var(--navy-rgb), 0.05); }
  .sg-opt.on { background: rgba(var(--navy-rgb), 0.08); border-left-color: var(--accent); }
  .sg-opt:active { background: rgba(var(--navy-rgb), 0.12); }
  .sg-main { overflow-wrap: anywhere; }
  .sg-main b { font-weight: 700; }
  .sg-opt small { font-size: 0.78rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sg-fix .sg-main { color: var(--accent-text); }
