/* Date Me Directory — Deep Sea (Controlled) Theme
   Palette (from your screenshot):
   Blue:        #3E60A7  (62, 96, 167)
   Off-white:   #E7E6DE  (231, 230, 222)
   Pale yellow: #E2C874  (226, 200, 116)
   Gold:        #DFB14C  (223, 177, 76)
   Navy:        #1C2E61  (28, 46, 97)
   Deep navy:   #132041  (19, 32, 65)

   Phase 1: tokens + reusable components
   Phase 2: spacing rhythm, readability, responsiveness, focus styles, contrast, QA polish
*/

/* -----------------------------
   Tokens
------------------------------ */
:root {
  /* Base palette */
  --blue: #0e2a66;
  --plaster: #f4cb83;
  --pale-yellow: #E2C874;
  --gold: #DFB14C;
  --navy: #0e2a66;
  --deep-navy: #26479a;

  --blue-rgb: 62, 96, 167;
  --plaster-rgb: 231, 230, 222;
  --pale-yellow-rgb: 226, 200, 116;
  --gold-rgb: 223, 177, 76;
  --navy-rgb: 28, 46, 97;
  --deep-navy-rgb: 19, 32, 65;

  /* Semantic tokens */
  --background: var(--plaster);
  --surface: #FFFFFF; /* crisp cards read better than translucent off-white */
  --panel: rgba(var(--plaster-rgb), 0.94);

  --text: var(#f4cb83);
  --muted-text: rgba(var(--deep-navy-rgb), 0.72);

  --primary: var(--blue);
  --primary-rgb: var(--blue-rgb);
  --secondary: var(--navy);
  --accent: var(--gold);

  /* Graph page background gradient target */
  --graph-gradient-to: #B7C6E4;

  /* Accents (meaningful roles) */
  --accent-1: var(--primary); /* primary highlight */
  --accent-2: var(--accent);  /* insight callouts */
  --accent-3: var(--secondary); /* method callouts / technical */
  --accent-4: rgba(var(--gold-rgb), 0.14); /* featured framing fill */
  --accent-5: rgba(var(--plaster-rgb), 0.78); /* metadata chips */

  /* Borders / shadows */
  --border: rgba(var(--navy-rgb), 0.22);
  --border-strong: rgba(var(--navy-rgb), 0.34);

  --shadow-sm: 0 12px 26px rgba(var(--deep-navy-rgb), 0.14);
  --shadow:    0 20px 54px rgba(var(--deep-navy-rgb), 0.20);
  --shadow-lg: 0 26px 66px rgba(var(--deep-navy-rgb), 0.22);

  /* Layout + rhythm */
  --max: 1080px;
  --prose: 74ch;
  --gutter: 1rem;
  --gutter-lg: 2rem;

  /* Spacing scale */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;

  --section-y: 3rem;
  --section-y-lg: 4.2rem;

  /* Radii */
  --radius: 18px;
  --radius-sm: 12px;

  /* Typography (Georgia everywhere) */
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, Garamond, ui-serif, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --h1: clamp(2.35rem, 3.5vw, 3.2rem);
  --h2: clamp(1.6rem, 2.25vw, 2.15rem);
  --h3: 1.22rem;
  --body: 1.05rem;
  --small: 0.92rem;

  --lh: 1.70;
  --lh-tight: 1.18;

  --fw-regular: 400;
  --fw-bold: 800;
  --fw-black: 900;

  /* Focus */
  --focus-ring: rgba(var(--blue-rgb), 0.35);

  
}

/* -----------------------------
   Base
------------------------------ */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--body);
  line-height: var(--lh);
  color: var(--text);
  background: var(--background);
  position: relative;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Make tap targets feel consistent */
a, button, [role="button"], input, select, textarea {
  border-radius: 10px;
}

/* -----------------------------
   Typography
------------------------------ */
h1, h2, h3 {
  line-height: var(--lh-tight);
  margin: 0;
  letter-spacing: -0.2px;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); color: var(--accent); }
h3 { font-size: var(--h3); color: var(--accent); }

h1 + p, h2 + p, h3 + p { margin-top: var(--space-2); }

/* Graph hub pages: make the main title gold (readable on stars) */
#graph-page h1,
#graph-page .hub-home-link,
#graph-hub h1,
#graph-hub .hub-home-link,
.graph-title,
.hub-title {
  color: var(--pale-yellow);
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}


p {
  margin: 0 0 1rem;
  color: var(--text);
  max-width: var(--prose);
}

ul, ol { margin: 0.6rem 0 1rem 1.25rem; padding: 0; max-width: var(--prose); }
li { margin: 0.35rem 0; }

.muted { color: var(--muted-text); }

/* Make the little line under "Featured graphs" gold */
.featured-subtitle {
  color: var(--plaster) !important; /* gold */
}



code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  padding: 0.14rem 0.38rem;
  border: 1px solid rgba(var(--navy-rgb), 0.20);
  border-radius: 10px;
  background: rgba(var(--plaster-rgb), 0.95);
  color: var(--text);
}

/* Links: gold default, pale-yellow hover */
a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(to right, rgba(var(--gold-rgb), 0.65), rgba(var(--gold-rgb), 0.65));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
}
a:hover {
  color: var(--gold);
  background-image: linear-gradient(to right, rgba(var(--pale-yellow-rgb), 0.70), rgba(var(--pale-yellow-rgb), 0.70));
}
/* Graph hub cards: links navy, hover pale yellow */
.card a {
  color: var(--navy);
  background-image: linear-gradient(
    to right,
    rgba(var(--navy-rgb), 0.55),
    rgba(var(--navy-rgb), 0.55)
  );
}

.card a:hover {
  color: var(--gold);
  background-image: linear-gradient(
    to right,
    rgba(var(--pale-yellow-rgb), 0.90),
    rgba(var(--pale-yellow-rgb), 0.90)
  );
}

/* -----------------------------
   Layout
------------------------------ */
.container {
  width: min(var(--max), calc(100% - (var(--gutter-lg) * 2)));
  margin-inline: auto;
}

.section { padding: var(--section-y) 0; }
@media (min-width: 900px) { .section { padding: var(--section-y-lg) 0; } }

.section > * + * { margin-top: var(--space-4); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.6rem 0.8rem;
  background: rgba(var(--plaster-rgb), 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; }

/* -----------------------------
   Site header (navy = white text)
------------------------------ */
.site-header {
  border-bottom: 1px solid rgba(var(--plaster-rgb), 0.14);
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(var(--primary-rgb), 0.35) 0%, rgba(var(--primary-rgb), 0) 62%),
    linear-gradient(180deg, rgba(var(--deep-navy-rgb), 0.96) 0%, rgba(var(--navy-rgb), 0.92) 60%, rgba(var(--navy-rgb), 0.78) 100%);
}

.site-header .container { padding: 2.35rem 0 1.35rem; }
.site-header, .site-header * { color: var(--background); }
.site-header h2 { color: var(--background); }
.site-header .site-subtitle { color: rgba(var(--plaster-rgb), 0.88); }
.site-header .muted { color: rgba(var(--plaster-rgb), 0.70); }

.site-header a { background-image: none; padding-bottom: 0; }

.site-title { margin: 0; color: var(--background); }
.site-subtitle { margin: 0.6rem 0 1.2rem; max-width: var(--prose); }

.header-actions,
.site-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* -----------------------------
   Reusable components
------------------------------ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--plaster-rgb), 0.18);
  text-decoration: none;
  font-weight: var(--fw-bold);
  line-height: 1;
  background-image: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.site-header .btn { box-shadow: 0 16px 40px rgba(var(--deep-navy-rgb), 0.20); }

.btn-primary {
  color: var(--background);
  background: rgba(var(--primary-rgb), 0.92);
}
.btn-primary:hover { background: rgba(var(--gold-rgb), 0.92); }

.btn-ghost {
  color: var(--background);
  background: rgba(var(--plaster-rgb), 0.10);
  border-color: rgba(var(--plaster-rgb), 0.22);
}
.btn-ghost:hover {
  background: rgba(var(--plaster-rgb), 0.16);
  border-color: rgba(var(--plaster-rgb), 0.34);
}

/* Chips / badges */
.chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem 0.64rem;
  font-size: 0.78rem;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
}

.chip {
  border: 1px solid rgba(var(--navy-rgb), 0.20);
  background: rgba(var(--plaster-rgb), 0.78);
  color: var(--text);
}

.badge {
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  background: linear-gradient(180deg, rgba(var(--pale-yellow-rgb), 0.92), rgba(var(--gold-rgb), 0.92));
  color: var(--text);
}

/* Featured framing */
.featured-frame {
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  background: rgba(var(--gold-rgb), 0.14);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

/* -----------------------------
   Top layout (overview + context card)
------------------------------ */
.top-layout {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .top-layout { grid-template-columns: minmax(0, 1fr) 390px; }
  .context-card { position: sticky; top: 1rem; }
}

.context-block {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(var(--navy-rgb), 0.14);
}
.context-block:first-of-type { border-top: none; padding-top: 0; }

.context-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-text);
  font-weight: 900;
  margin-bottom: 0.25rem;
}

/* =========================================
   Global background image (star chart)
   File should exist at: site/assets/bg/star-chart.jpg
   ========================================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background-image: url("/assets/bg/star-chart.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 15%, rgba(0,0,0,.28), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.18), transparent 48%),
    linear-gradient(180deg, rgba(0,0,0,.46), rgba(0,0,0,.28));
}

/* -----------------------------
   Grid / Cards (directory + featured + story cards)
------------------------------ */
.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.4rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .container { width: min(var(--max), calc(100% - (var(--gutter) * 2))); }
}

/* Cards: star texture per card
   File should exist at: site/assets/bg/star-background.jpg
*/
.card {
  position: relative;
  overflow: hidden;

  border-radius: var(--radius);
  padding: 1.2rem;

  /* star background + readable overlay */
  background-image:
    linear-gradient(180deg,
      rgba(var(--plaster-rgb), 0.92),
      rgba(var(--plaster-rgb), 0.78)
    ),
    url("/assets/bg/star-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border: 1px solid rgba(var(--navy-rgb), 0.26);
  border-top: 6px solid rgba(var(--primary-rgb), 0.90);

  box-shadow: var(--shadow);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: var(--shadow-lg);
}

.card-title { 
  margin: 0 0 0.45rem; 
  color: var(--navy); 
}

.card-body { margin: 0 0 0.9rem; max-width: var(--prose); }

a.card {
  display: block;
  color: inherit;
  background-image: none;
  padding-bottom: 0;
}

/* Graph hub cards: make titles navy */
.card .card-title,
.card h2,
.card h3 {
  color: var(--navy);
}


/* -----------------------------
   Callouts (Semantic accents)
------------------------------ */
.callouts {
  display: grid;
  gap: 1.1rem;
  margin: 1.25rem 0 1.5rem;
}

@media (min-width: 900px) {
  .callouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.callout {
  background: rgba(var(--plaster-rgb), 0.96);
  border: 1px solid rgba(var(--navy-rgb), 0.20);
  border-radius: var(--radius);
  padding: 1rem 1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.92), rgba(var(--deep-navy-rgb), 0.92));
}

.callout-title {
  font-weight: 900;
  margin: 0 0 0.35rem;
  letter-spacing: -0.1px;
  color: var(--accent);
}

.callout p { margin: 0; }

.callout--insight { border-color: rgba(var(--gold-rgb), 0.40); }
.callout--insight::before {
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.92), rgba(var(--pale-yellow-rgb), 0.92));
}

.callout--method { border-color: rgba(var(--navy-rgb), 0.32); }
.callout--method::before {
  background: linear-gradient(180deg, rgba(var(--navy-rgb), 0.92), rgba(var(--deep-navy-rgb), 0.92));
}

.callout-warn { border-color: rgba(var(--gold-rgb), 0.40); }
.callout-warn::before {
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.92), rgba(var(--pale-yellow-rgb), 0.92));
}

/* -----------------------------
   Details / Summary
------------------------------ */
.details {
  margin-top: 1rem;
  border: 1px solid rgba(var(--navy-rgb), 0.26);
  border-left: 10px solid rgba(var(--primary-rgb), 0.90);
  border-radius: var(--radius);
  background: rgba(var(--plaster-rgb), 0.96);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.details > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1rem;
  user-select: none;
  position: relative;
}

.details > summary::-webkit-details-marker { display: none; }

.details > summary::after {
  content: "▾";
  position: absolute;
  right: 1rem;
  top: 1.05rem;
  color: var(--muted-text);
  transform: rotate(0deg);
  transition: transform 160ms ease;
}

.details[open] > summary::after { transform: rotate(180deg); }

.summary-title { font-weight: 900; color: var(--accent); }
.summary-hint { font-size: var(--small); color: var(--muted-text); margin-top: 0.25rem; }

.details-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(var(--navy-rgb), 0.14);
}

/* -----------------------------
   Charts
------------------------------ */
.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.chart-media {
  width: 100%;
  height: auto;
  aspect-ratio: auto;

  padding: 1.25rem;
  overflow: hidden;

  border-radius: var(--radius);
  border: 2px solid rgba(var(--primary-rgb), 0.35);

  /* NEW: stars background behind charts */
  background-image:
    linear-gradient(180deg,
      rgba(var(--plaster-rgb), 0.88),
      rgba(var(--plaster-rgb), 0.65)
    ),
    url("/assets/bg/card-stars.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 200px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}


.chart-media img,
.chart-media svg,
.chart-media object {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.chart-media img { width: 100%; object-fit: contain; }
.chart-placeholder { color: var(--muted-text); font-size: var(--small); }

/* -----------------------------
   Writeups
------------------------------ */
.writeup {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(var(--navy-rgb), 0.14);
}

.writeup-title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--accent);
}

.writeup,
.writeup pre,
.writeup code { font-family: inherit; }

.writeup pre {
  white-space: normal;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* -----------------------------
   Graph hub home link
------------------------------ */
.hub-home-link {
  display: inline-block;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.2px;

  color: var(--accent);
  text-decoration: none;
  background-image: none;
  line-height: 1.05;
}

.hub-home-link:hover,
.hub-home-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.hub-context { margin-top: 0.75rem; margin-bottom: 1rem; }

/* Graph page background: stars instead of gradient */
#graph-page {
  min-height: 100vh;

  background-image:
    url("/assets/bg/card-stars.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* optional: gives a nice slow-drift feel */
}

/* Single-graph pages: renderer label + back link = pale yellow */
/* Single-graph pages */
#graph-page {
  min-height: 100vh;

  background-image: url("/assets/bg/card-stars.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* optional: gives a nice slow-drift feel */
}

/* Renderer label + Back to charts: force pale yellow, override global <a> styling */
/* Single-graph pages (graph.js): Renderer line + Back to charts = pale yellow */
#graph-page .muted,
#graph-page .muted * {
  color: #E2C874 !important;
}

/* Back to charts link (graph.js uses .small-link) */
#graph-page a.small-link,
#graph-page a.small-link:visited,
#graph-page a.small-link:hover,
#graph-page a.small-link:active {
  color: --gold !important;

  /* override your global fancy underline */
  background-image: linear-gradient(
    to right,
    rgba(226, 200, 116, 0.90),
    rgba(226, 200, 116, 0.90)
  ) !important;

  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
}





.renderer-frame {
  width: 100%;
  height: 80vh;
  border: 0;
}

#vis svg {
  width: 100%;
  height: auto;
  display: block;
}

/* -----------------------------
   Footer
------------------------------ */
.site-footer {
  border-top: 1px solid rgba(var(--navy-rgb), 0.22);
  padding: 1.6rem 0;
  background: linear-gradient(180deg, rgba(var(--plaster-rgb), 0.92), rgba(var(--plaster-rgb), 0.78));
}

.site-footer p { margin: 0; }

/* -----------------------------
   Dividers
------------------------------ */
hr {
  border: none;
  border-top: 1px solid rgba(var(--navy-rgb), 0.22);
  margin: 1.4rem 0;
}

/* =============================
   Artsy hero + motion layer
   ============================= */
.hero {
  position: relative;
  margin: 18px 0 28px;
  padding: 8px 0 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.hero::before,
.hero::after {
  display: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 62ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

/* Homepage hero button variants */
.hero .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(var(--blue-rgb), 1),
    rgba(var(--gold-rgb), 0.95)
  );
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  filter: saturate(1.05);
}

.hero .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.hero .btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative sparkle */
.sparkle {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  opacity: .7;
  background-image:
    radial-gradient(circle at 12% 28%, rgba(255,255,255,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 18%, rgba(255,255,255,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 22%, rgba(255,255,255,.6) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 62%, rgba(255,255,255,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 72%, rgba(255,255,255,.5) 0 1px, transparent 2px);
  animation: floaty 8s ease-in-out infinite;
}
/* Appendix: make all text light yellow for readability on the star background */
/* If the container uses a class */
.appendix,
.appendix p,
.appendix li,
.appendix .muted { color: var(--pale-yellow); }
/* Appendix: force the Important Information list to pale yellow */
#appendix ul li,
#appendix ul li strong {
  color: #E2C874;
}
/* Single-renderer pages ONLY: renderer label + Back to charts = pale yellow
   (These pages use <main id="graph-page" data-renderer="...">)
*/
#graph-page[data-renderer] .muted,
#graph-page[data-renderer] .muted * {
  color: #E2C874 !important;
}

#graph-page[data-renderer] a.small-link,
#graph-page[data-renderer] a.small-link:visited,
#graph-page[data-renderer] a.small-link:hover,
#graph-page[data-renderer] a.small-link:active {
  color: #E2C874 !important;

  /* override your global underline gradient */
  background-image: linear-gradient(
    to right,
    rgba(226, 200, 116, 0.90),
    rgba(226, 200, 116, 0.90)
  ) !important;

  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
}




@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; transform: none !important; animation: none !important; }
}
