/* site.css — python-visuals.com's shared layer: the menu, the footer, the falling sky's canvas, and the design language
   carried across every page (captain, 2026-09-16 evening: "make sure the design language is carried across the entire site
   … make sure that the nav bar is consistent"; menu + footer everywhere; the papers keep their own reading page).
   Extracted once (9/16 evening) from the home template's own CSS — the chrome rules verbatim, class names mapped to pv-*
   and tokens to --pv-*, so no page's own classes or tokens can collide with them — and edited HERE as the source since.
   Loaded after each page's own <style>, so on an equal footing the shared layer wins. */

:root {
  /* the PV tokens, namespaced so no page's own tokens can reach the shared layer (values derived from the home template) */
  --pv-navy-deep: #0A1428;
  --pv-navy-mid: #142440;
  --pv-navy-soft: #1F3354;
  --pv-gold: #C9A84C;
  --pv-gold-bright: #F0C040;
  --pv-cream: #F5F0E8;
  --pv-cream-85: rgba(245, 240, 232, 0.85);
  --pv-cream-78: rgba(245, 240, 232, 0.78);
  --pv-cream-62: rgba(245, 240, 232, 0.62);
  --pv-cream-42: rgba(245, 240, 232, 0.42);
  --pv-silver: #B8C5D6;
  --pv-line: rgba(184, 197, 214, 0.16);
  --pv-line-strong: rgba(184, 197, 214, 0.30);
  --pv-font-display: 'Instrument Serif', Georgia, serif;
  --pv-font-body: 'DM Sans', system-ui, sans-serif;
  --pv-font-mono: 'DM Mono', ui-monospace, monospace;
  --pv-radius: 12px;
  --pv-radius-sm: 8px;
  --pv-max-w: 1120px;
  --pv-card-bg: linear-gradient(165deg, rgba(31, 51, 84, 0.50), rgba(16, 28, 52, 0.72) 55%, rgba(10, 20, 40, 0.88));
  --pv-card-edge: inset 0 1px 0 rgba(245, 240, 232, 0.06);
  --pv-shadow-rest: 0 1px 0 rgba(0, 0, 0, 0.25), 0 14px 34px -14px rgba(0, 0, 0, 0.55);
}

/* ═══ Resets — pages style bare elements: the legal pages underline every link in red, indent every list and pad every
   footer; the papers turn every list into a vertical flex column (found 9/16: it stacked the menu's links). These tie with
   a page's bare-element rules and win by loading later; the component rules below outrank them. ═══ */
:where(.pv-nav, .pv-footer) { font-family: var(--pv-font-body); line-height: 1.6; letter-spacing: normal; text-transform: none; text-align: left; }
footer.pv-footer { font-family: var(--pv-font-body); }
:where(.pv-nav, .pv-footer) :is(a, p, li, span, strong, summary, h4) { font-family: inherit; }
:where(.pv-nav, .pv-footer) a { border: 0; background: none; text-transform: none; letter-spacing: normal; font-weight: inherit; float: none; }
:where(.pv-nav, .pv-footer) ul { display: block; flex-direction: row; gap: normal; width: auto; max-width: none; float: none; }
:where(.pv-nav, .pv-footer) :is(ul, li, p, h4) { margin: 0; padding: 0; list-style: none; color: inherit; text-transform: none; }

/* ═══ Nav — phone: brand + a Menu; desktop: the proposed first-visit menu ═══ */
nav.pv-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 20, 40, 0.97);
  border-bottom: 1px solid var(--pv-line);
}
.pv-nav-inner {
  max-width: var(--pv-max-w); margin: 0 auto; padding: 0.8rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.pv-brand { font-family: var(--pv-font-display); font-style: italic; font-size: 1.35rem; color: var(--pv-cream); text-decoration: none; }
.pv-brand .pv-dot { color: var(--pv-gold); }
.pv-links { display: none; }
.pv-menu { position: relative; }
.pv-menu summary {
  list-style: none; cursor: pointer;
  font-family: var(--pv-font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pv-cream-78); border: 1px solid var(--pv-line-strong); border-radius: 999px; padding: 0.45rem 0.95rem;
}
.pv-menu summary::-webkit-details-marker { display: none; }
.pv-menu ul {
  position: absolute; right: 0; top: calc(100% + 0.6rem); min-width: 230px; list-style: none;
  background: rgba(10, 20, 40, 0.98); border: 1px solid var(--pv-line); border-radius: 10px; padding: 0.5rem 0;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
}
.pv-menu li a { display: block; padding: 0.55rem 1.1rem; color: var(--pv-cream-78); text-decoration: none; font-size: 0.95rem; }
.pv-menu li.pv-sub a { padding-left: 1.8rem; font-size: 0.88rem; color: var(--pv-cream-62); }
.pv-menu li.pv-sep { border-top: 1px solid var(--pv-line); margin: 0.4rem 0; }
@media (min-width: 900px) {
  .pv-nav-inner { padding: 1rem 2rem; }
  .pv-menu { display: none; }
  .pv-links { display: flex; gap: 1.7rem; list-style: none; align-items: center; }
  .pv-links > li > a { color: var(--pv-cream-78); text-decoration: none; font-size: 0.93rem; }
  .pv-links > li > a:hover { color: var(--pv-cream); }
  .pv-quiet { border: 1px solid var(--pv-line-strong); border-radius: var(--pv-radius-sm); padding: 0.5rem 1rem; }
  .pv-drop { position: relative; }
  .pv-drop > a { cursor: default; }
  .pv-drop .pv-drop-panel {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 0.8rem; min-width: 230px;
    background: rgba(10, 20, 40, 0.98); border: 1px solid var(--pv-line); border-radius: 10px; padding: 0.5rem 0;
    opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  }
  .pv-drop:hover .pv-drop-panel, .pv-drop:focus-within .pv-drop-panel { opacity: 1; visibility: visible; }
  .pv-drop .pv-drop-panel a { display: block; padding: 0.5rem 1.2rem; color: var(--pv-cream-78); text-decoration: none; font-size: 0.9rem; }
  .pv-drop .pv-drop-panel a:hover { color: var(--pv-cream); background: rgba(184, 197, 214, 0.06); }
}
.pv-nav { font-family: var(--pv-font-body); }
.pv-drop > a { color: var(--pv-cream-78); }

/* footer */
footer.pv-footer { margin-top: 2rem; border-top: 1px solid var(--pv-line); background: linear-gradient(180deg, #101F38, #0A1428); padding: 3rem 1.25rem 1.5rem; }
.pv-footer-inner { max-width: var(--pv-max-w); margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { footer.pv-footer { padding: 4rem 2rem 2rem; } .pv-footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.pv-footer-brand p { color: var(--pv-cream-62); font-size: 0.92rem; margin-top: 0.7rem; line-height: 1.6; }
.pv-footer-col h4 { font-family: var(--pv-font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pv-silver); margin-bottom: 0.9rem; font-weight: 500; }
.pv-footer-col ul { list-style: none; }
.pv-footer-col li { padding: 0.25rem 0; }
.pv-footer-col a { color: var(--pv-cream-78); text-decoration: none; font-size: 0.9rem; }
.pv-footer-col a:hover { color: var(--pv-cream); }
.pv-footer-cities { max-width: var(--pv-max-w); margin: 2.4rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--pv-line); text-align: center; font-size: 0.82rem; color: var(--pv-cream-62); line-height: 1.8; }
.pv-footer-cities strong { color: var(--pv-cream-78); font-family: var(--pv-font-mono); font-weight: 500; letter-spacing: 0.06em; }
.pv-footer-legal { max-width: var(--pv-max-w); margin: 1.3rem auto 0; text-align: center; }
.pv-footer-legal a { display: inline-block; margin: 0 0.6rem; font-family: var(--pv-font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pv-cream-62); text-decoration: none; }
.pv-footer-bottom { max-width: var(--pv-max-w); margin: 1.4rem auto 0; text-align: center; font-family: var(--pv-font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--pv-cream-42); line-height: 1.7; }
footer.pv-footer { position: relative; z-index: 1; text-align: left; }
.pv-footer .pv-footer-cities, .pv-footer .pv-footer-legal, .pv-footer .pv-footer-bottom { text-align: center; }

/* ═══ The falling sky + blueprint grid behind the page (ruled 9/16 ~17:20; site-wide the same evening): drawn by
   /js/site-sky.js into .skyfield. ═══ */
.skyfield { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
@media (prefers-reduced-motion: reduce) { .skyfield { opacity: 0.55; } }

/* ═══ Keep it simple, site-wide: no backdrop blur anywhere (it was one of the old pages' lag sources). ═══ */
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* ═══ The headings' italic words are gold (ruled 9/16 evening) — on every page that carries the design language. ═══ */
body.pv-lang :is(h1, h2, h3) em { color: var(--pv-gold) !important; }

/* ═══ The legal pages, brought into the design language: navy, cream text, the display serif, gold accents; their own
   sticky header becomes a plain page title (the shared menu owns the top of the screen); no animated blur layer. ═══ */
body.pv-legal { background: var(--pv-navy-deep); color: var(--pv-cream); }
body.pv-legal::before {
  animation: none; filter: none; z-index: -2;
  background:
    radial-gradient(1000px 640px at 12% -6%, rgba(201, 168, 76, 0.09), transparent 62%),
    radial-gradient(1200px 760px at 90% 16%, rgba(184, 197, 214, 0.075), transparent 64%),
    radial-gradient(1000px 760px at 52% 106%, rgba(201, 168, 76, 0.08), transparent 66%);
}
body.pv-legal > header { position: relative; top: auto; background: transparent; border-bottom: 0; padding: 3.2rem 1.5rem 0.5rem; }
body.pv-legal .brand { color: var(--pv-gold); font-weight: 500; }
body.pv-legal h1 { font-family: var(--pv-font-display); font-weight: 400; text-transform: none; letter-spacing: -0.01em; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.1; color: var(--pv-cream); }
body.pv-legal .doc-date { color: var(--pv-silver); }
body.pv-legal main { margin-top: 2.2rem; }
body.pv-legal article { background: var(--pv-card-bg); border: 1px solid var(--pv-line); border-radius: var(--pv-radius); box-shadow: var(--pv-shadow-rest), var(--pv-card-edge); }
body.pv-legal h2 { font-family: var(--pv-font-display); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.6rem; color: var(--pv-cream); }
body.pv-legal .section-number { color: var(--pv-gold); }
body.pv-legal p, body.pv-legal li { color: var(--pv-cream-85); }
body.pv-legal strong { color: var(--pv-cream); }
body.pv-legal main a { color: var(--pv-gold); border-bottom-color: rgba(201, 168, 76, 0.35); }
body.pv-legal main a:hover { color: var(--pv-gold-bright); border-bottom-color: var(--pv-gold-bright); }
/* A table wider than a phone (the cookies list) scrolls inside itself instead of pushing the whole page sideways —
   the live cookies page already overflowed a 390 px screen before this layer (measured 9/16). */
body.pv-legal article table { display: block; max-width: 100%; overflow-x: auto; }
