/* ===== Sound Map site styles ===== */
:root {
  --g900:#12342b; --g800:#184435; --g700:#1f5a45; --g500:#2a8a68; --g100:#e3efe9; --g50:#f3f8f5;
  --surface:#fff; --on-accent:#fff; --ink:#1d2a25; --muted:#62706a; --line:#dbe3df; --site-w:960px;
  --input-bg:#f8f9fa; /* very very pale grey for form fields & dropdowns */
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
* { box-sizing: border-box; }
body { margin:0; min-height:100vh; font-family:var(--sans); color:var(--ink); line-height:1.55;
  background-color:#fff;
  background-image:url("../background.jpg");
  background-size:100% auto;        /* full width of the window, height follows the picture's proportions */
  background-position:center top;
  background-repeat:no-repeat; }
a { color:var(--g700); }

/* Fixed-width site box */
.site { width:min(var(--site-w),100%); margin:28px auto 40px; background:var(--surface); border:2px solid #aeb3b1; border-radius:18px;
  box-shadow:0 10px 40px rgba(18,52,43,.18); overflow:hidden; }

/* Header (inside the box, not full width) */
.site-header { min-height:7vh; position:relative; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px 24px;
  padding:22px 28px; color:#3a3f3d; background:#fff; border-bottom:1px solid #dcdfde; }
.site-header > * { position:relative; z-index:1; }
.brand { display:flex; align-items:center; gap:12px; color:#3a3f3d; text-decoration:none; }
.brand .logo { flex:none; display:block; height:6vh; max-height:6vh; width:auto; }
.tagline { margin:0; justify-self:center; text-align:center; text-wrap:balance; font-size:0.75rem; letter-spacing:.9px; text-transform:uppercase;
  color:#3a3f3d; }
.site-header nav { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; padding:5px; border-radius:999px; background:var(--g50); border:1px solid var(--line); }
.site-header nav a { color:#4a4f4d; text-decoration:none; padding:8px 16px; border-radius:999px; font-size:0.9375rem; transition:background .15s; }
.site-header nav a:hover { background:rgba(0,0,0,.07); }
.site-header nav a.active { background:var(--g800); color:#fff; font-weight:600; }

/* Header on narrower screens: tagline drops to its own row, then (phones) everything stacks and centres */
@media (max-width:900px) {
  .site-header { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"brand nav" "tagline tagline"; }
  .brand { grid-area:brand; }
  .site-header nav { grid-area:nav; }
  .tagline { grid-area:tagline; width:100%; padding-top:12px; border-top:1px solid rgba(0,0,0,.12); }
}
@media (max-width:600px) {
  .site-header { grid-template-columns:1fr; grid-template-areas:"brand" "tagline" "nav"; justify-items:center; row-gap:10px; }
  .brand .logo { height:56px; max-height:56px; }
  .tagline { border-top:0; padding-top:0; }
}

/* Main + footer */
.page { padding:32px 28px 16px; }
.page h1 { font-family:var(--sans); font-size:2.125rem; line-height:1.15; margin:0 0 6px; color:var(--g900); font-weight:600; }
.lede { color:var(--muted); margin:0 0 22px; font-size:1.0625rem; }
.site-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 16px; margin-top:24px; padding:18px 28px;
  border-top:1px solid var(--line); background:var(--g50); color:var(--muted); font-size:0.8125rem; }
@media (max-width:700px) {
  .site { margin:0; border-radius:0; }
  .site-header { padding:18px 16px; }
  .page { padding:24px 16px 8px; }
  .site-footer { padding:16px; }
}

/* Shared buttons */
.sm-btn { font:inherit; font-size:0.875rem; padding:8px 14px; border:0; border-radius:999px; background:var(--surface); color:var(--g900);
  box-shadow:0 1px 6px rgba(0,0,0,.25); cursor:pointer; }
.sm-btn:hover { background:var(--g50); }
.sm-btn.on { background:var(--g500); color:var(--on-accent); }

/* Map frame */
.sm-frame { --sm-height:560px; position:relative; isolation:isolate; height:var(--sm-height); border-radius:14px; overflow:hidden;
  border:1px solid var(--line); box-shadow:0 4px 18px rgba(18,52,43,.15); background:#e8e8e8; }
@media (max-width:640px) { .sm-frame { --sm-height:70vh; min-height:420px; } }
.sm-frame .sm-map { position:absolute; inset:0; }
.sm-frame .sm-toolbar { pointer-events:none; position:absolute; z-index:1000; top:10px; left:56px; display:flex; gap:8px; align-items:center; }
.sm-count { background:var(--surface); padding:8px 14px; border-radius:999px; box-shadow:0 1px 6px rgba(0,0,0,.25); font-size:0.8125rem; color:var(--muted); }
.sm-warn { pointer-events:none; position:absolute; z-index:1000; left:12px; right:12px; bottom:30px; max-width:520px; background:var(--surface)3cd; padding:10px 12px;
  border-radius:10px; box-shadow:0 1px 6px rgba(0,0,0,.3); display:none; font-size:0.8125rem; }
.sm-out { position:absolute; z-index:1000; left:12px; bottom:30px; width:min(560px,calc(100% - 24px)); background:var(--surface); padding:14px 16px;
  border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,.3); display:none; font-size:0.8125rem; }
.sm-out h4 { margin:0 0 6px; font-family:var(--sans); font-size:1rem; color:var(--g900); }
.sm-out p { margin:0 0 8px; color:var(--muted); }
.sm-out pre { margin:0 0 10px; max-height:170px; overflow:auto; white-space:pre-wrap; background:var(--g50); border:1px solid var(--line);
  padding:8px 10px; border-radius:8px; font-size:0.75rem; user-select:all; }
.sm-out .row { display:flex; gap:8px; }
.sm-out .sm-btn { box-shadow:none; border:1px solid var(--line); }
.sm-out .sm-btn.on { border-color:var(--g500); }

/* Contact form */
.contact-form { max-width:560px; display:grid; gap:16px; margin-top:20px; position:relative; }
.contact-form label { display:grid; gap:6px; font-size:0.875rem; font-weight:600; color:var(--g900); }
.contact-form input, .contact-form textarea { font:inherit; font-size:1rem; font-weight:400; color:var(--ink); width:100%; padding:11px 14px;
  border:1px solid var(--line); border-radius:12px; background:var(--input-bg); }
.contact-form textarea { min-height:170px; resize:vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline:2px solid var(--g500); outline-offset:1px; }
.contact-form .hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.contact-form button { justify-self:start; font:inherit; font-size:1rem; font-weight:600; padding:11px 28px; border:0; border-radius:999px;
  background:var(--g500); color:var(--on-accent); cursor:pointer; transition:background .15s; }
.contact-form button:hover:not(:disabled) { background:var(--g700); }
.contact-form button:disabled { opacity:.6; cursor:default; }
.form-status { max-width:560px; margin-top:16px; padding:12px 14px; border-radius:10px; font-size:0.9375rem; }
.form-status.ok { background:var(--g100); color:#174; }
.form-status.err { background:#fde8e6; color:#8a1f14; }
.contact-photo { float:left; width:350px; margin:4px 26px 14px 0; border-radius:12px; overflow:hidden; box-shadow:0 4px 14px rgba(0,0,0,.2); justify-self: end;}
.contact-photo img { display:block; width:100%; height:auto; }

/* Full screen */
.leaflet-bar a.sm-fs { display:grid; place-items:center; color:#222; cursor:pointer; }
.sm-frame:fullscreen { border-radius:0; border:0; box-shadow:none; }
.sm-frame:-webkit-full-screen { border-radius:0; border:0; box-shadow:none; }
.sm-frame.sm-full { position:fixed; inset:0; z-index:9999; width:100%; height:100%; min-height:0; border-radius:0; border:0; box-shadow:none; }

/* Map pins, clusters, popups */
.sm-pin { background:none; border:0; filter:drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.sm-pin svg { display:block; transition:transform .15s ease; transform-origin:50% 90%; }
.sm-pin:hover svg { transform:scale(1.2); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color:rgba(42,138,104,.3); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color:rgba(31,90,69,.92); color:#fff; font-family:var(--sans); font-weight:600; }
.marker-cluster-large div { background-color:rgba(18,52,43,.95); }
.leaflet-popup-content-wrapper { border-radius:14px; box-shadow:0 6px 24px rgba(0,0,0,.28); }
.leaflet-popup-content { margin:14px 16px; font-family:var(--sans); font-size:0.875rem; line-height:1.5; }
.popup h3 { margin:0 0 4px; font-family:var(--sans); font-size:1.1875rem; color:var(--g900); font-weight:600; }
.popup .pmeta { font-size:0.75rem; color:var(--muted); margin-bottom:8px; }
.popup .pdesc p { margin:0 0 8px; }
.leaflet-popup-content a { position:relative; z-index:5; cursor:pointer; pointer-events:auto; }
.popup .plinks { margin-top:12px; padding-top:8px; border-top:1px solid var(--line); font-size:0.8125rem; }

/* Categories (Anthropophony / Biophony / Geophony) */
.cat { display:inline-block; font-size:0.75rem; font-weight:600; padding:2px 10px; border-radius:999px; margin:0 4px 2px 0; color:#fff; }
.cat-anthropophony { background:#b4651f; }
.cat-biophony { background:#237a5b; }
.cat-geophony { background:#3b6e91; }
.popup .pcats { margin-bottom:8px; }

/* Audio players (popups and library) */
.ttitle { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:1.5rem; font-size:0.75rem; margin:10px 0 3px; color:var(--muted); font-weight:600; letter-spacing:.2px; }
.q-toggle { font:inherit; font-size:.6875rem; font-weight:700; letter-spacing:.05em; padding:1px 9px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--muted); cursor:pointer; }
.q-toggle:hover:not(:disabled) { background:var(--g50); }
.q-toggle[aria-pressed="true"] { background:var(--g500); border-color:var(--g500); color:var(--on-accent); }
.q-toggle:disabled { opacity:.5; cursor:progress; }
.sm-wp { display:flex; align-items:center; gap:10px; }
.sm-wp .pp { flex:none; display:grid; place-items:center; width:38px; height:38px; padding:0; border-radius:50%; border:0; background:var(--g500); color:var(--on-accent); cursor:pointer; transition:background .15s, transform .15s; }
.sm-wp .pp:hover { background:var(--g700); transform:scale(1.06); }
.sm-wp .pp svg { width:14px; height:14px; fill:currentColor; }
.sm-wp .wave { flex:1; min-width:0; cursor:pointer; position:relative; isolation:isolate; overflow:hidden; }
.sm-wp .time { flex:none; font-size:0.6875rem; color:var(--muted); min-width:64px; text-align:right; font-variant-numeric:tabular-nums; }
.sm-wp .err { font-size:0.75rem; color:#b00; }

/* Library */
.lib-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:0 0 18px; }
.lib-tools input, .lib-tools select { font:inherit; font-size:0.9375rem; padding:10px 14px; border:1px solid var(--line); border-radius:999px; background:var(--input-bg); color:var(--ink); }
.lib-tools input { flex:1; min-width:200px; }
.lib-tools input:focus, .lib-tools select:focus { outline:2px solid var(--g500); outline-offset:1px; }
.lib-tools .count { color:var(--muted); font-size:0.8125rem; }
.item { border:1px solid var(--line); border-radius:14px; margin-bottom:12px; background:var(--surface); transition:box-shadow .2s, border-color .2s; }
.item:hover { box-shadow:0 4px 14px rgba(18,52,43,.10); }
.item.open { border-color:var(--g500); box-shadow:0 6px 20px rgba(18,52,43,.14); }
.item-head { display:flex; gap:14px; align-items:flex-start; padding:14px 16px; }
.item .play { flex:none; display:grid; place-items:center; width:46px; height:46px; padding:0; border-radius:50%; border:0; background:var(--g500); color:var(--on-accent); cursor:pointer; transition:background .15s, transform .15s; }
.item .play:hover:not(:disabled) { background:var(--g700); transform:scale(1.06); }
.item .play:disabled { background:#c5cfca; cursor:default; }
.item .play svg { width:16px; height:16px; fill:currentColor; }
.item-main { flex:1; min-width:0; }
.item-main h2 { margin:0; font-family:var(--sans); font-size:1.25rem; font-weight:600; color:var(--g900); }
.item .meta { font-size:0.8125rem; color:var(--muted); margin:2px 0 6px; }
.chip { display:inline-block; background:var(--g100); color:var(--g700); font-size:0.75rem; font-weight:600; padding:2px 10px; border-radius:999px; margin:0 4px 2px 0; }
.item .snippet { margin:6px 0 0; color:#47554f; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.item.open .snippet { display:none; }
.item .toggle { flex:none; display:inline-flex; align-items:center; gap:6px; font:inherit; font-size:0.8125rem; padding:7px 12px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--g700); cursor:pointer; }
.item .toggle:hover { background:var(--g50); }
.item .toggle svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:2; transition:transform .2s; }
.item.open .toggle svg { transform:rotate(180deg); }
.item-body { padding:0 16px 16px 76px; }
.item-body .desc p { margin:0 0 10px; }
.item-body .links { margin-top:14px; font-size:0.875rem; color:var(--muted); }
@media (max-width:640px) { .item-body { padding-left:16px; } .item-head { flex-wrap:wrap; } }

/* About */
.prose { max-width:800px; font-size:1.0625rem; line-height:1.7; color:var(--muted); }
.prose h2 { font-family:var(--sans); font-size:1.5rem; color:var(--g900); margin:1.2em 0 .4em; font-weight:600; }
.prose h2:first-child { margin-top:0; }
.about-photo { float:left; width:190px; margin:4px 26px 14px 0; border-radius:12px; overflow:hidden; box-shadow:0 4px 14px rgba(0,0,0,.2);}
.about-photo img { display:block; width:100%; height:auto; }
.placeholder { background:var(--surface)8e1; border:1px dashed #d6b656; border-radius:10px; padding:10px 14px; font-size:0.9375rem; color:#6b5a1d; }
@media (max-width:560px) { .about-photo { float:none; width:100%; max-width:260px; margin:0 0 16px; } }

/* Body text on the About and Contact pages: same grey as the rest of the site */
.prose, .prose p, .prose li { color:var(--muted); }

/* Library link + collection stats page */
.lib-link { margin-left:auto; font-size:.875rem; font-weight:600; text-decoration:none; padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--g700); }
.lib-link:hover { background:var(--g50); }
.back-link { display:inline-block; margin-bottom:10px; font-size:.9375rem; }
.stat-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin:0 0 30px; }
.stat-card { padding:16px 18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.stat-card .num { display:block; font-size:2rem; font-weight:700; line-height:1.15; color:var(--g900); font-variant-numeric:tabular-nums; }
.stat-card .lbl { display:block; margin-top:2px; font-size:.875rem; color:var(--muted); }
.stat-section { margin:0 0 34px; }
.stat-section h2 { margin:0 0 4px; font-size:1.25rem; font-weight:600; color:var(--g900); }
.stat-section .note { margin:0 0 14px; font-size:.9375rem; color:var(--muted); }
.hbars { display:grid; gap:10px; }
.hbar { display:grid; grid-template-columns:minmax(7rem,11rem) 1fr minmax(4.5rem,auto); gap:12px; align-items:center; font-size:.9375rem; }
.hbar .track { display:block; height:1.4rem; border-radius:999px; background:var(--g100); overflow:hidden; }
.hbar .fill { display:block; height:100%; border-radius:999px; background:var(--g500); }
.hbar .val { text-align:right; font-variant-numeric:tabular-nums; color:var(--ink); }
.hbar .pc { color:var(--muted); }
.hbar .lbl a { color:var(--ink); font-weight:600; text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:3px; }
.hbar .lbl a:hover { color:var(--g700); text-decoration-color:currentColor; }
.fill.bar-anthropophony { background:#b4651f; }
.fill.bar-biophony { background:#237a5b; }
.fill.bar-geophony { background:#3b6e91; }
.vbars-wrap { overflow-x:auto; }
.vbars { display:flex; gap:6px; height:14rem; margin:0; padding:0; list-style:none; }
.vbar { position:relative; flex:1 0 2.2rem; height:100%; font-size:.75rem; color:var(--muted); }
.vbar .col { position:absolute; left:50%; bottom:1.6rem; width:70%; max-width:2.4rem; min-height:2px; height:calc((100% - 3.4rem) * var(--p)); transform:translateX(-50%); border-radius:6px 6px 0 0; background:var(--g500); }
.vbar .n { position:absolute; left:0; right:0; text-align:center; bottom:calc(1.6rem + (100% - 3.4rem) * var(--p) + 3px); color:var(--ink); font-variant-numeric:tabular-nums; }
.vbar a { position:absolute; inset:0; display:block; color:inherit; text-decoration:none; border-radius:6px; }
.vbar a:hover .col { background:var(--g700); }
.vbar a:hover .x { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.vbar .x { position:absolute; left:0; right:0; bottom:0; text-align:center; line-height:1.4rem; }
@media (max-width:560px) { .hbar { grid-template-columns:1fr auto; } .hbar .track { grid-column:1 / -1; grid-row:2; } }

/* =====================================================================
   ACCESSIBILITY
   ===================================================================== */

/* Keyboard focus: always clearly visible */
:focus-visible { outline:3px solid #f2a01d; outline-offset:2px; }

/* Skip link (appears when you press Tab) */
.skip-link { position:absolute; left:8px; top:-80px; z-index:5000; padding:10px 16px; border-radius:8px; background:#000; color:#fff; font-weight:600; text-decoration:none; }
.skip-link:focus { top:8px; }

/* Toolbar */
.a11y-bar { position:relative; z-index:3000; width:min(var(--site-w),100%); margin:12px auto 0; display:flex; justify-content:flex-end; }
.a11y-bar + .site { margin-top:10px; }
.a11y-toggle { display:inline-flex; align-items:center; gap:8px; font:inherit; font-size:.875rem; font-weight:600; padding:8px 14px; border:1px solid var(--line);
  border-radius:999px; background:var(--surface); color:var(--g900); cursor:pointer; box-shadow:0 1px 6px rgba(0,0,0,.2); }
.a11y-toggle:hover { background:var(--g50); }
.a11y-panel { position:absolute; right:0; top:calc(100% + 8px); width:min(390px,100%); padding:14px 16px 6px; border:1px solid var(--line); border-radius:14px;
  background:var(--surface); color:var(--ink); box-shadow:0 10px 30px rgba(0,0,0,.3); font-size:.9375rem; }
.a11y-panel[hidden] { display:none; }
.a11y-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:14px; }
.a11y-label { flex:0 0 100%; font-size:.75rem; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--muted); }
.a11y-btn { font:inherit; font-size:.875rem; padding:7px 13px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--ink); cursor:pointer; }
.a11y-btn:hover:not(:disabled) { background:var(--g50); }
.a11y-btn[aria-pressed="true"] { background:var(--g500); border-color:var(--g500); color:var(--on-accent); }
.a11y-btn:disabled { opacity:.4; cursor:default; }
.a11y-size { min-width:3.4em; text-align:center; font-weight:600; }
.a11y-reset { margin-left:auto; }
.a11y-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@media (max-width:700px) { .a11y-bar { padding:0 12px; } .a11y-panel { right:12px; width:calc(100% - 24px); } }

/* Reduced motion (the visitor's system setting, or the toolbar option) */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; } }
html.sm-still *, html.sm-still *::before, html.sm-still *::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; }

/* Greyscale */
html.sm-grey { filter:grayscale(1); }

/* No background pictures */
html.sm-nobg body { background-image:none; background-color:#fff; }

/* Easier-to-read text: wider letters, words and lines */
html.sm-font { --sans:Verdana,Tahoma,"Trebuchet MS",sans-serif; }
html.sm-font body { letter-spacing:.03em; word-spacing:.12em; line-height:1.8; }

/* Underline and embolden every link */
html.sm-links a { text-decoration:underline; text-underline-offset:3px; font-weight:600; }

/* Header layout for large text (same arrangement as narrow screens) */
html.sm-big .site-header { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"brand nav" "tagline tagline"; }
html.sm-big .brand { grid-area:brand; }
html.sm-big .site-header nav { grid-area:nav; }
html.sm-big .tagline { grid-area:tagline; width:100%; padding-top:12px; border-top:1px solid rgba(0,0,0,.12); }
html.sm-huge .site-header { grid-template-columns:1fr; grid-template-areas:"brand" "tagline" "nav"; justify-items:center; row-gap:10px; }
html.sm-huge .tagline { border-top:0; padding-top:0; }

/* ----- High contrast (light): black on white ----- */
html.sm-contrast { --surface:#fff; --input-bg:#fff; --on-accent:#fff; --ink:#000; --muted:#1a1a1a; --line:#000; --g900:#000; --g800:#000; --g700:#0a3d91; --g500:#0a5f2e; --g100:#fff; --g50:#fff; }
html.sm-contrast body { background:#fff; background-image:none; }
html.sm-contrast .site-header { background:#000; background-image:none; }
html.sm-contrast .leaflet-container a { color:#0a3d91; }

/* ----- High contrast (dark): yellow and white on black ----- */
html.sm-dark { --surface:#000; --input-bg:#000; --on-accent:#000; --ink:#fff; --muted:#ececec; --line:#bdbdbd; --g900:#ffe14d; --g800:#ffe14d; --g700:#ffe14d; --g500:#ffe14d; --g100:#2b2b2b; --g50:#161616; color-scheme:dark; }
html.sm-dark body { background:#000; background-image:none; }
html.sm-dark .site-header { background:#000; background-image:none; border-bottom:2px solid #ffe14d; }
html.sm-dark .site-header nav a.active { background:#ffe14d; color:#000; }
html.sm-dark .leaflet-container a { color:#ffe14d; }
html.sm-dark .leaflet-popup-content-wrapper, html.sm-dark .leaflet-popup-tip, html.sm-dark .leaflet-bar a, html.sm-dark .leaflet-control-layers,
html.sm-dark .leaflet-control-attribution, html.sm-dark .leaflet-control-scale-line { background:#000; color:#fff; border-color:#fff; }
html.sm-dark .leaflet-tile-pane { filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.92); }
html.sm-dark .form-status.ok { color:#fff; }
html.sm-dark .form-status.err { background:#4a0f0a; color:#fff; }
html.sm-dark .sm-warn { background:#333; color:#fff; }

/* shared by both contrast themes */
html.sm-contrast .site-header .tagline, html.sm-dark .site-header .tagline { color:#fff; text-shadow:none; }
html.sm-contrast .site-header nav, html.sm-dark .site-header nav { background:#000; border-color:#fff; -webkit-backdrop-filter:none; backdrop-filter:none; }
html.sm-contrast .site-header nav a, html.sm-dark .site-header nav a { color:#fff; }
html.sm-contrast .site-header nav a.active { background:#fff; color:#000; }
html.sm-contrast .logo, html.sm-dark .logo { filter:brightness(0) invert(1); }
html.sm-contrast .site, html.sm-dark .site { border-color:var(--ink); box-shadow:0 0 0 3px var(--ink); }
html.sm-contrast .site-footer, html.sm-dark .site-footer { border-top:2px solid var(--ink); }
html.sm-contrast .item, html.sm-dark .item, html.sm-contrast .sm-frame, html.sm-dark .sm-frame,
html.sm-contrast .lib-tools input, html.sm-dark .lib-tools input, html.sm-contrast .lib-tools select, html.sm-dark .lib-tools select,
html.sm-contrast .contact-form input, html.sm-dark .contact-form input, html.sm-contrast .contact-form textarea, html.sm-dark .contact-form textarea { border-width:2px; border-color:var(--ink); }
html.sm-contrast .lib-tools input, html.sm-dark .lib-tools input, html.sm-contrast .lib-tools select, html.sm-dark .lib-tools select,
html.sm-contrast .contact-form input, html.sm-dark .contact-form input, html.sm-contrast .contact-form textarea, html.sm-dark .contact-form textarea { color:var(--ink); }
html.sm-contrast .item .snippet, html.sm-dark .item .snippet { color:var(--muted); }
html.sm-contrast .chip, html.sm-dark .chip { border:1px solid var(--ink); }
html.sm-contrast .page a, html.sm-dark .page a, html.sm-contrast .site-footer a, html.sm-dark .site-footer a { text-decoration:underline; }
html.sm-contrast .leaflet-popup-content a, html.sm-dark .leaflet-popup-content a { text-decoration:underline; }
