/* The site's type, colours and header, loaded by every page including the map (site.css has the rest, for the
   pages other than the map).
   Type (James, 2026-11-29): Source Serif 4 for headings and reading, served from vendor/ (SIL OFL); a plain sans
   for controls; nothing under 12 px. */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(vendor/source-serif-4/latin.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: 'Source Serif 4'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(vendor/source-serif-4/latin-ext.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: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(vendor/source-serif-4/italic-latin.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: 'Source Serif 4'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(vendor/source-serif-4/italic-latin-ext.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; }
:root {
  --bg: #ece2c8; --panel-bg: #f5eeda; --card: #fbf7ee; --ink: #2c2417; --muted: #65573d; --gold: #8a6a22;
  --accent: #9c3c2e; --line: rgba(156,122,46,0.3);
  --font-display: 'Source Serif 4', Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Consolas', 'Menlo', monospace;
  /* the type scale: every size on the site is one of these */
  --t-xs: 12px; --t-sm: 13px; --t-md: 15px; --t-lg: 17px; --t-xl: 22px; --t-2xl: 30px;
}
/* the header (header.js writes the name, the sections and "Find a person"; the page adds Viewing as and the lock) */
.site-head { display: flex; align-items: center; gap: 8px 14px; padding: 8px 18px; min-height: 52px;
  border-bottom: 1px solid var(--line); background: var(--panel-bg); position: sticky; top: 0; z-index: 30;
  font-family: var(--font-body); font-size: var(--t-md); }
.site-head .sh-lead { display: flex; align-items: center; gap: 22px; flex: none; }
.site-head .brand { font-family: var(--font-display); font-weight: 600; font-size: 19px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.site-nav { display: flex; gap: 2px; }
.site-nav a { text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 5px; white-space: nowrap; }
.site-nav a:hover { background: rgba(255,255,255,0.6); }
.site-nav a.on { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-nav a:focus-visible, .site-head button:focus-visible, .site-head input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sh-find { position: relative; margin-left: auto; flex: 0 1 250px; min-width: 0; }
.sh-find input { width: 100%; font: inherit; font-size: var(--t-md); color: var(--ink); padding: 6px 12px 6px 32px; border-radius: 999px;
  border: 1px solid rgba(156,122,46,0.5); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%2365573d' stroke-width='2'/%3E%3Cpath d='M12.6 12.6 17 17' stroke='%2365573d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 11px 50% / 15px; }
.sh-find input::placeholder { color: #8b7b5c; }
.sh-find-open { display: none; }
.sh-find-list { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 300px; z-index: 70; max-height: 60vh; overflow-y: auto;
  background: var(--card); border: 1px solid rgba(156,122,46,0.5); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.16); padding: 4px 0; }
.sh-find-list.show { display: block; }
.sh-hit { padding: 7px 14px; cursor: pointer; }
.sh-hit b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--t-md); }
.sh-hit span { color: var(--muted); font-size: var(--t-sm); }
.sh-hit.cur, .sh-hit:hover { background: #f1e6cc; }
.sh-none { padding: 9px 14px; color: var(--muted); font-size: var(--t-sm); }

/* Viewing as and the lock: the same quiet button */
.lock-btn, #lock-btn { font: inherit; font-family: var(--font-body); font-size: var(--t-sm); color: var(--muted); white-space: nowrap;
  background: none; border: 1px solid rgba(156,122,46,0.45); border-radius: 999px; padding: 5px 11px; cursor: pointer; letter-spacing: 0; text-transform: none; }
.lock-btn:hover, #lock-btn:hover { background: rgba(255,255,255,0.6); }

@media (max-width: 1120px) {
  /* narrower windows: the lock and Viewing as become icons, so the sections never hide behind the search box */
  .lock-btn, #lock-btn { padding: 0; width: 34px; height: 34px; }
  .lock-btn .lk-t, #lock-btn .lk-t { display: none; }
}
@media (max-width: 820px) {
  /* phones: the name and the buttons on one row, the sections on a second (a bar at the bottom comes in a later step) */
  .site-head { flex-wrap: wrap; padding: 6px 12px 0; gap: 4px 8px; }
  .site-head .sh-lead { display: contents; }
  .site-head .brand { font-size: 16px; order: 0; margin-right: auto; }
  .site-nav { order: 9; flex: 1 0 100%; justify-content: space-between; margin: 0 -6px; }
  .site-nav a { padding: 9px 8px 10px; }
  .sh-find { order: 1; flex: none; min-width: 0; margin-left: 0; position: static; }
  .sh-find input { display: none; }
  .sh-find-open { display: grid; place-items: center; width: 36px; height: 34px; border-radius: 999px; border: 1px solid rgba(156,122,46,0.45);
    background: none; color: var(--muted); cursor: pointer; }
  .site-head.finding .sh-find { order: 8; flex: 1 0 100%; padding-bottom: 6px; }
  .site-head.finding .sh-find input { display: block; }
  .site-head.finding .sh-find-open { display: none; }
  .sh-find-list { left: 12px; right: 12px; min-width: 0; top: auto; }
  .site-head > :not(.sh-lead):not(.sh-find) { order: 2; }
  .lock-btn, #lock-btn { padding: 0; width: 34px; height: 34px; }
  .lock-btn .lk-t, #lock-btn .lk-t { display: none; }
}

