/* pages.css — the one stylesheet of the layer pages (written by build-pages.cjs; edit it there).
 * Light, and on the same tokens as the map's light theme (.lye-shell[data-theme="light"] in
 * layearth.css), so the page and the embedded map read as one surface. */
:root { --bg: #ffffff; --bg2: #f6f8fb; --sunk: #eef1f6; --line: #e2e7ef; --line2: #cfd7e3;
  --fg: #0f172a; --fg2: #334155; --muted: #64748b; --gold: #b8860b; --ink: #0f172a;
  --r: 12px; --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: #1d5fbf; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px; border-bottom: 1px solid var(--line); }
.lp-brand { color: var(--fg); text-decoration: none; display: flex; gap: 8px; align-items: baseline; }
.lp-brand b { font-size: 17px; } .lp-brand span { color: var(--muted); font-size: 14px; }
.lp-top-app { font-size: 14px; font-weight: 600; text-decoration: none; }
.lp-main { max-width: 760px; margin: 0 auto; padding: 28px 20px 40px; }
.lp-main.lp-wide { max-width: 1080px; }
.lp-kicker { margin: 0 0 6px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
i[style*="--a"] { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 1px rgba(15,23,42,.18); flex: none; }
.lp-pro { color: var(--gold); font-weight: 600; }
h1 { margin: 0 0 10px; font-size: clamp(30px, 6vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
h2 { margin: 34px 0 8px; font-size: 19px; letter-spacing: -.01em; }
p { margin: 0 0 12px; color: var(--fg2); }
.lp-lede { font-size: 18px; color: var(--fg2); }
.lp-cta { margin: 18px 0 20px; }
.lp-btn { display: inline-block; padding: 11px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600;
  text-decoration: none; font-size: 15px; }
.lp-btn:hover { background: #1e293b; }
.lp-map { position: relative; height: min(62vh, 520px); min-height: 340px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line2); background: var(--sunk); margin: 0 -20px; }
@media (min-width: 800px) { .lp-map { margin: 0 -120px; } }
@media (max-width: 799px) { .lp-map { border-radius: 0; border-left: 0; border-right: 0; } }
/* The embedded map is the app minus what a page does not need: no layer menu, no link to itself,
 * no close (closing the only layer would leave an empty map on a page about that layer). */
.lp-map .lye-dock, .lp-map .lye-dock-tab, .lp-map [data-page], .lp-map [data-pclose] { display: none !important; }
.lp-gate { position: absolute; inset: 0; z-index: 60; font: 16px/1.5 var(--font); color: var(--fg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 20px; text-align: center; background: rgba(246,248,251,.9); }
.lp-gate[hidden] { display: none; }
.lp-units { font-size: 14px; } .lp-units b { color: var(--fg); margin-right: 6px; }
.lp-sib { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-sib a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px;
  color: var(--fg); text-decoration: none; font-size: 14px; }
.lp-sib a:hover { background: var(--bg2); }
.lp-idx { columns: 2 300px; column-gap: 28px; padding-left: 18px; font-size: 15px; }
.lp-idx li { margin: 4px 0; break-inside: avoid; }
.lp-idx small { color: var(--muted); }
.lp-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lp-grid a { display: flex; flex-direction: column; gap: 6px; height: 100%; color: var(--fg); text-decoration: none; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; background: var(--bg); }
.lp-grid a:hover { border-color: var(--line2); background: var(--bg2); }
.lp-grid img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--sunk); display: block; }
.lp-grid b { display: flex; align-items: center; gap: 8px; padding: 4px 14px 0; font-size: 16px; }
.lp-grid b .lp-pro { margin-left: auto; font-size: 12px; line-height: 1; padding: 3px 7px; border: 1px solid currentColor; border-radius: 999px; }
.lp-grid span { padding: 0 14px 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.lp-foot { max-width: 1080px; margin: 0 auto; padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; }
/* og.png is this page at 1200x630 with ?shot=1: the map alone, with a title card. */
body.lp-shot { overflow: hidden; }
body.lp-shot .lp-top, body.lp-shot .lp-foot, body.lp-shot main > :not(.lp-map) { display: none !important; }
body.lp-shot .lp-main { padding: 0; max-width: none; }
body.lp-shot .lp-map { position: fixed; inset: 0; height: auto; margin: 0; border: 0; border-radius: 0; }
body.lp-shot .lp-map .lye-panel { display: none !important; }
.lp-shotcard { position: fixed; left: 28px; top: 28px; z-index: 70; padding: 14px 20px; border-radius: 14px; background: rgba(255,255,255,.94);
  box-shadow: 0 10px 32px rgba(15,23,42,.18); }
.lp-shotsig { position: fixed; left: 28px; bottom: 28px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: 999px; background: rgba(15,23,42,.88); color: #fff; font-size: 17px; box-shadow: 0 10px 32px rgba(15,23,42,.25); }
.lp-shotsig i { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.3); }
.lp-shotsig span { color: #cbd5e1; font-weight: 500; }
.lp-code { box-sizing: border-box; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--bg2); color: var(--fg); font: 12px/1.45 ui-monospace, Menlo, monospace; resize: vertical; }
.lp-shotcard small { display: block; color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.lp-shotcard b { display: block; font-size: 38px; line-height: 1.15; letter-spacing: -.02em; }
/* item pages (build-items.cjs): the facts of one thing, and the card it shares as */
.lp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 8px; padding: 0; }
.lp-facts div { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.lp-facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.lp-facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; color: var(--fg); }
.lp-src { font-size: 14px; color: var(--muted); }
