/* Nothing 2 Do Here: the 2020 Sasebo look, refreshed (design preview Chris
   approved, Nov 26): charcoal navbar, dark rounded uppercase title banners,
   rust section banners, rounded photos, pill buttons, a color per area, dark
   mode. Area colors come from areas.json and are set by app.js as --area (and
   --pin on map pins) with CSSOM, never as style attributes. */

/* ---- fonts: self-hosted (OFL, see vendor/fonts/*.LICENSE), system fallbacks ---- */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/vendor/fonts/nunito-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(/vendor/fonts/nunito-sans-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Inconsolata"; font-style: normal; font-weight: 500; font-display: swap; src: url(/vendor/fonts/inconsolata-latin-500-normal.woff2) format("woff2"); }

:root {
  --font: "Nunito Sans", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Inconsolata", ui-monospace, Menlo, Consolas, monospace;
  --bg: #fcfcfc; --panel: #ffffff; --fg: #3f3f3f; --muted: #6a6564; --line: #e6e1e0; --code-bg: #f3f1f0;
  --nav: #333333; --navfg: #ffffff; --h1: #434343; --h2: #b5524d; --accent: #d9474a; --link: #a93c3b;
  --pill: #5f5f5f; --pill-bg: #efecea; --sea: #d7e9f2; --shadow: rgb(0 0 0 / .14); --focus: #d9474a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1b1b; --panel: #262424; --fg: #e8e4e3; --muted: #b0a9a7; --line: #3a3636; --code-bg: #2c2a2a;
    --nav: #111010; --navfg: #f2efee; --h1: #3a3838; --h2: #a14a46; --accent: #ff7174; --link: #ff8f8a;
    --pill: #4c4a4a; --pill-bg: #322f2f; --sea: #1b2a33; --shadow: rgb(0 0 0 / .5); --focus: #ff7174;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1b1b; --panel: #262424; --fg: #e8e4e3; --muted: #b0a9a7; --line: #3a3636; --code-bg: #2c2a2a;
  --nav: #111010; --navfg: #f2efee; --h1: #3a3838; --h2: #a14a46; --accent: #ff7174; --link: #ff8f8a;
  --pill: #4c4a4a; --pill-bg: #322f2f; --sea: #1b2a33; --shadow: rgb(0 0 0 / .5); --focus: #ff7174;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); overflow-wrap: break-word; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main { display: block; max-width: 62rem; margin: 0 auto; padding: .5rem max(16px, env(safe-area-inset-right)) 2rem max(16px, env(safe-area-inset-left)); }
main:focus { outline: none; }
.prose { max-width: 44rem; margin-inline: auto; }
.muted, time { color: var(--muted); }
time { display: block; font-size: .9rem; }
pre { overflow-x: auto; background: var(--code-bg); padding: .75rem; border-radius: 8px; font-size: .9rem; }
code { background: var(--code-bg); padding: .1em .3em; border-radius: 4px; font-size: .9em; font-family: var(--mono); }
pre code { background: none; padding: 0; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--muted); }
table { border-collapse: collapse; display: block; overflow-x: auto; } td, th { border: 1px solid var(--line); padding: .3rem .6rem; }
.back { display: inline-block; margin-top: 2rem; font-weight: 600; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 50; padding: .5rem .9rem; border-radius: 999px; background: var(--panel); color: var(--fg); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* ---- navbar and menu ----------------------------------------------------------- */
.navbar { background: var(--nav); color: var(--navfg); }
.navbar-inner {
  position: relative; max-width: 62rem; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .75rem;
  min-height: 56px; padding: .3rem max(16px, env(safe-area-inset-right)) .3rem max(16px, env(safe-area-inset-left));
}
.site-title { display: inline-flex; align-items: center; gap: .55rem; color: var(--navfg); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap; }
.brand-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #d9474a; box-shadow: inset 0 0 0 3px #fff; }
.menu-button, .menu-close, .search-link {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
  background: none; color: var(--navfg); cursor: pointer; font: inherit;
}
.menu-button { margin-left: -10px; }
.search-link { margin-left: auto; margin-right: -10px; }
.menu-button:hover, .search-link:hover, .menu-button[aria-expanded="true"] { background: rgb(255 255 255 / .12); }
.bars { display: grid; gap: 4px; width: 20px; }
.bars span { display: block; height: 2px; border-radius: 1px; background: currentColor; }
.menu-close { color: var(--fg); font-size: 1.6rem; line-height: 1; }
.menu-close:hover { background: var(--pill-bg); }
.menu-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgb(0 0 0 / .45); }
.site-menu {
  /* Phones: a full-height drawer from the left (above Leaflet's panes, z 400-1000). */
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1200;
  width: min(20rem, 86vw); overflow-y: auto; overscroll-behavior: contain;
  padding: .75rem .75rem 2rem; background: var(--panel); color: var(--fg);
  border-right: 1px solid var(--line); box-shadow: 4px 0 24px var(--shadow);
}
.menu-backdrop[hidden], .site-menu[hidden] { display: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 .5rem .75rem; }
.menu-title { font-weight: 800; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a {
  display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .75rem; border-radius: 10px;
  color: var(--fg); text-decoration: none; font-family: var(--mono); font-weight: 500; font-size: 1.05rem;
}
.menu-list a:hover { background: var(--pill-bg); }
.menu-list a[aria-current="page"] { background: var(--pill-bg); font-weight: 700; }
.menu-list li:not(.menu-area) { border-top: 1px solid var(--line); }
.menu-list li.menu-area + li:not(.menu-area) { margin-top: .35rem; }
.dot { display: inline-block; flex: none; width: .65rem; height: .65rem; border-radius: 50%; background: var(--area, var(--muted)); }
body.menu-open { overflow: hidden; }

@media (min-width: 52rem) {
  /* Wide screens: the menu is a row of links in the navbar, always shown. */
  .menu-button, .search-link, .menu-head, .menu-backdrop, .menu-backdrop[hidden] { display: none; }
  .site-menu, .site-menu[hidden] {
    display: block; position: static; width: auto; margin-left: auto; padding: 0; overflow: visible;
    background: none; color: inherit; border: 0; box-shadow: none;
  }
  .menu-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1rem; }
  .menu-list li:not(.menu-area) { border: 0; }
  .menu-list li.menu-area + li:not(.menu-area) { margin-top: 0; padding-left: 1rem; border-left: 1px solid rgb(255 255 255 / .25); }
  .menu-list a {
    min-height: 40px; padding: .35rem .05rem; border-radius: 0; gap: .4rem;
    color: var(--navfg); font-size: .95rem; opacity: .88; border-bottom: 2px solid transparent;
  }
  .menu-list a:hover { background: none; opacity: 1; border-bottom-color: rgb(255 255 255 / .5); }
  .menu-list a[aria-current="page"] { background: none; opacity: 1; font-weight: 500; border-bottom-color: var(--accent); }
  .menu-list .dot { width: .55rem; height: .55rem; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .7); }
  body.menu-open { overflow: auto; }
}

/* ---- banners and page heads ---------------------------------------------------- */
.banner {
  margin: 1.5rem 0 .75rem; padding: .7rem 1rem; border-radius: 16px;
  background: var(--h1); color: #fff; text-align: center; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 800; font-size: clamp(1.25rem, 1rem + 1.6vw, 1.75rem); line-height: 1.25;
  overflow-wrap: anywhere; text-wrap: balance;
}
.area-banner { background: var(--area); background: color-mix(in srgb, var(--area) 75%, #000); }
.page-head { margin-bottom: 1.25rem; }
.lede { margin: .25rem 0 .25rem; color: var(--muted); font-size: 1.05rem; max-width: 46rem; }
.area-facts { margin: 0; font-size: .95rem; }
.section-title, .region-title {
  display: inline-block; margin: 2rem 0 1rem; padding: .3rem .85rem; border-radius: 8px;
  background: var(--h2); color: #fff; font-weight: 800; font-size: 1.2rem; line-height: 1.35;
}
.region-title .count { font-size: .85rem; font-weight: 600; opacity: .9; margin-left: .3rem; }
.region { scroll-margin-top: 1rem; }
.region:first-child .region-title { margin-top: 1rem; }

/* ---- post cards ---------------------------------------------------------------------
   A grid of cards. With a cover photo, the photo sits on top; without one the
   card has the area's color down its side. The title's link covers the card. */
.posts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.card:not(.has-cover) { border-left: 6px solid var(--area, var(--line)); }
.card .cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--pill-bg); margin: 0; }
.card-text { padding: .7rem .9rem .8rem; display: flex; flex-direction: column; gap: .2rem; }
.card h2, .card h3 { font-size: 1.08rem; line-height: 1.3; margin: 0; font-weight: 800; }
.card-link { color: var(--fg); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }
.card:hover .card-link { text-decoration: underline; }
.card-where { margin: 0; display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.card-blurb { margin: .1rem 0 0; font-size: .93rem; }
.card-distance { margin: 0; font-weight: 800; font-size: .88rem; }
.card time { font-size: .8rem; margin-top: auto; padding-top: .2rem; }

/* ---- home: area cards --------------------------------------------------------------- */
.area-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.area-card {
  position: relative; display: flex; flex-direction: column; gap: .3rem; min-height: 7.5rem; padding: 1rem 1.1rem;
  border-radius: 14px; color: #fff; background: var(--area, var(--pill)); background: color-mix(in srgb, var(--area, var(--pill)) 75%, #000);
  transition: transform .15s, box-shadow .15s;
}
.area-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--shadow); }
.area-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; font-weight: 800; }
.area-card .card-link { color: #fff; }
.area-card .card-link::after { border-radius: 14px; }
.area-card .card-link:focus-visible::after { outline-offset: 3px; }
.area-count { margin: 0; font-weight: 700; font-size: .9rem; }
.area-about { margin: 0; font-size: .92rem; line-height: 1.45; }
.home-map { margin: 1rem 0 0; }

/* ---- buttons and chips ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px;
  padding: .5rem 1.05rem; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  background: var(--pill); color: #fff; font: 700 .9rem var(--font); text-decoration: none; line-height: 1.2;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-google { background: #2b66c9; }
.btn-apple { background: #3b3b3b; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { filter: none; border-color: var(--muted); }
.btn-ghost[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn svg { flex: none; }
.chip-group { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 18rem; }
.chip-button {
  min-height: 36px; padding: .3rem .8rem; border: 2px solid var(--line); border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--fg); font: 700 .85rem var(--font);
}
.chip-button:hover { border-color: var(--muted); }
.chip-button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip-button .count { font-weight: 600; opacity: .75; font-size: .8rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .4rem 0 1rem; }
.chip {
  display: inline-block; padding: .2rem .8rem; border-radius: 999px; line-height: 1.5;
  background: var(--pill); color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none;
}
.chip:hover { text-decoration: underline; }
.chip-area { background: var(--area, var(--pill)); background: color-mix(in srgb, var(--area, var(--pill)) 75%, #000); }

/* ---- maps (Leaflet) ------------------------------------------------------------------------ */
.map-panel { margin: 1rem 0 .5rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.near-me { margin-left: auto; }
.map { height: min(62vh, 28rem); background: var(--sea); }
.map-world { height: min(72vh, 36rem); }
.loc-map { height: 15rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.map-failed { display: grid; place-items: center; color: var(--muted); }
.map-status { margin: .25rem 0 0; min-height: 1.5em; font-size: .92rem; color: var(--muted); }
.map-missing { font-size: .92rem; }
.leaflet-container { font: inherit; font-size: .85rem; background: var(--sea); }
.leaflet-container a { color: var(--link); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--fg); box-shadow: 0 3px 14px var(--shadow); }
.leaflet-popup-content { margin: .7rem .9rem; line-height: 1.4; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.pin-popup a { font-weight: 800; font-size: .95rem; }
.pin-sub { display: block; margin-top: .15rem; color: var(--muted); font-size: .8rem; }
.leaflet-control-attribution { font-size: .7rem; }
/* Pins: an empty divIcon (22 x 22, anchored at the tip) drawn as a teardrop in --pin. */
.pin { background: none; border: 0; }
.pin::before {
  content: ""; position: absolute; left: 1px; top: 1px; width: 20px; height: 20px; box-sizing: border-box;
  background: var(--pin, #5f5f5f); border: 2px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: -1px 1px 4px rgb(0 0 0 / .45);
}
.pin::after { content: ""; position: absolute; left: 8px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.pin-place::before { width: 16px; height: 16px; left: 3px; top: 3px; }
.pin-place::after { left: 9px; top: 9px; width: 4px; height: 4px; }
.pin:focus { outline: none; }
.pin:focus-visible::before { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9); }
}
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.95) contrast(.9); }

/* /map legend */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .5rem 0 1rem; }
.legend a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .3rem .85rem;
  border: 2px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: .9rem;
}
.legend a:hover { border-color: var(--area, var(--muted)); }
.legend .count { color: var(--muted); font-weight: 600; }
.swatch { width: .8rem; height: .8rem; border-radius: 50%; background: var(--area, var(--muted)); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }

/* ---- post page --------------------------------------------------------------------------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .4rem; padding: 0; margin: 1.25rem 0 0; font: 500 .95rem var(--mono); color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .4rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs + .banner { margin-top: .5rem; }
.post-date { margin: 0 0 .25rem; }
.post-date time { display: inline-block; margin-right: .9rem; }
.own-tags { margin: -.4rem 0 1rem; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .1rem .75rem; }
.own-tags a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.own-tags a:hover { color: var(--fg); text-decoration: underline; }
.post-body img, .post-gallery img { max-width: 100%; height: auto; display: block; margin: 1rem auto; border-radius: 14px; }
.post-body h2 { display: inline-block; margin: 1.75rem 0 .5rem; padding: .25rem .8rem; border-radius: 8px; background: var(--h2); color: #fff; font-size: 1.15rem; line-height: 1.35; }
.post-body h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }

/* The location block */
.loc { display: grid; gap: 10px; margin: 1rem 0 1.5rem; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.loc-title { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gps { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.gps-text { margin: 0; display: flex; flex-wrap: wrap; gap: 0 .9rem; font-family: var(--mono); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.gps-dms { color: var(--muted); }
.copy-gps { min-height: 36px; padding: .3rem .9rem; }
.places { list-style: none; display: grid; gap: .3rem; padding: .5rem 0 0; margin: 0; border-top: 1px solid var(--line); font-size: .92rem; }
.place-name { font-weight: 700; margin-right: .5rem; }
.places a { font-family: var(--mono); }

/* Embeds (YouTube, Google My Maps) */
.embed-figure { margin: 1.25rem 0; }
.embed { position: relative; width: 100%; overflow: hidden; border-radius: 12px; background: #000; }
.embed-youtube { aspect-ratio: 16 / 9; }
.embed-mymap { aspect-ratio: 4 / 3; background: var(--sea); }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.embed-link { display: inline-block; margin-top: .35rem; font-size: .85rem; }

/* Images and files of a post */
.media-missing { display: block; margin: 1rem 0; padding: 1.5rem 1rem; border: 1px dashed var(--muted); border-radius: 10px;
  background: var(--pill-bg); color: var(--fg); text-align: center; font-size: .95rem; overflow-wrap: anywhere; }
.attachments h3 { font-size: 1.1rem; margin: 2rem 0 .5rem; }
.attachments ul { padding-left: 1.25rem; }
.attachments a { overflow-wrap: anywhere; }

/* ---- Author box (post pages; words in site/author.json) ----------------------- */
.author-box {
  display: flex; gap: 1rem; align-items: flex-start; max-width: 44rem; margin: 2.5rem auto 0;
  padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.author-photo { flex: none; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0; }
.author-text { min-width: 0; }
.author-text p { margin: 0; }
.author-name { font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.author-text .author-bio { margin-top: .3rem; font-size: .95rem; }
.author-text .author-link { margin-top: .4rem; font-size: .95rem; }
/* The sign-up link shows only when the sign-up box does (subscribe.js). */
body:not(.mailing-list) .author-link { display: none; }
.author-text .author-disclaimer { margin-top: .5rem; font-size: .8rem; color: var(--muted); }
.author-box + .back { display: block; max-width: 44rem; margin: 1.5rem auto 0; }
.post + .back { display: block; max-width: 44rem; margin-inline: auto; }
@media (max-width: 30rem) {
  .author-box { gap: .8rem; padding: .9rem; }
  .author-photo { width: 64px; height: 64px; }
}
#subscribe { scroll-margin-top: 1rem; }

/* ---- search ------------------------------------------------------------------------ */
.search-form { margin: .75rem 0 0; }
.search-form input {
  width: 100%; font: inherit; padding: .55rem .9rem; min-height: 44px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg);
}
.search-hint { margin: .5rem 0 0; font-size: .95rem; }
.search-count { margin: 0 0 1.25rem; font-size: .95rem; }

/* ---- Mailing list ---------------------------------------------------------- */
.subscribe {
  max-width: 44rem; margin: 3rem auto 0; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
@media (max-width: 47rem) { .subscribe { margin-inline: 16px; } }
.subscribe h2 { font-size: 1.05rem; margin: 0; font-weight: 800; }
.subscribe-lede { margin: .15rem 0 .75rem; font-size: .95rem; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.subscribe-form input[type="email"] {
  flex: 1 1 14rem; min-width: 0; font: inherit; padding: .45rem .9rem; min-height: 44px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg);
}
.subscribe button {
  font: 700 .95rem var(--font); padding: .45rem 1.1rem; min-height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--h2); color: #fff;
}
.subscribe button:disabled { opacity: .6; cursor: default; }
.subscribe-note { margin: .6rem 0 0; font-size: .95rem; }
.subscribe-note:empty { display: none; }
.subscribe-note.error { color: #c5221f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .subscribe-note.error { color: #f28b82; } }
.subscribe [hidden] { display: none; }
.subscribe-topics { flex-basis: 100%; font-size: .95rem; }
.subscribe-topics summary { cursor: pointer; color: var(--link); width: fit-content; }
.subscribe-topics p { margin: .4rem 0; font-size: .9rem; }
.subscribe-topic-list { display: grid; gap: .45rem; }
.subscribe-topic-list label { display: block; cursor: pointer; }
.subscribe-topic-list input { margin: 0 .35rem 0 0; vertical-align: -1px; }
.subscribe-topic-list .topic-name { font-weight: 700; }
.subscribe-topic-list .topic-about { display: block; margin-left: 1.45rem; font-size: .88rem; }

/* ---- footer ------------------------------------------------------------------------------ */
footer {
  max-width: 62rem; margin: 3rem auto 0; padding: 1rem max(16px, env(safe-area-inset-right)) 2rem max(16px, env(safe-area-inset-left));
  border-top: 1px solid var(--line); font-size: .88rem; text-align: center;
}
.subscribe:not([hidden]) + footer { margin-top: 1.5rem; }

.visually-hidden, .hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .area-card { transition: none; }
  .area-card:hover { transform: none; }
}
