@font-face {
  font-family: "Splash";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/Splash-Regular.woff2") format("truetype");
}

/* palmcoaststorylines.com — custom.css v51
   v49: .site-splash padding-top 15px → 8px. .site-sub padding-bottom 15px → 8px.
        Tightens both masthead rules to ~half the height of storylines... copy.
   v48: .vip-video box-shadow white lift 0 8px 24px rgba(255,255,255,1.0).
   v47: .vip-video-caption white, padded. .vip-video, .doc-card, .article-sig to custom.css. Shadows on all boxes.
   v46: .vip-video-caption color #6b6b70 (reverted in v47).
   v45: --card-kicker #b8390e. --muted #6b6b70. --splash-shadow diffuse. text-stroke on .site-splash.
   v44: --bg #e8e8e4. --body-font Lora.
   v43: line-height 1.55; margin-bottom 0.9em.
   Light = DEFAULT. Dark via [data-theme="dark"]. Serif = Lora. Sans = Inter. */

/* ── DARK THEME VARS ── */
:root,
[data-theme="dark"] {
  --bg: #ffffff;
  --fg: #f4f0e8;
  --accent: #b8390e;
  --muted: #6b6b70;
  --bright: #fdfaf4;
  --card-bg: #f4f0e8;
  --card-fg: #0a0a0a;
  --card-kicker: #b8390e;
  --card-deck: #000;
  --card-byline: #6b6b70;
  --card-border: #2a2a2a;
  --rule: #2a2a2a;
  --rule-thin: #1e1e1e;
  --body-text: #d4cfc8;
  --tagline: #6b6b70;
  --avatar-bg: #1a1a1a;
  --avatar-bdr: #333;
  --footer-bg: transparent;
  --footer-fg: #3a3a3a;
  --footer-rule: #161616;
  --inv-bg: #f4f0e8;
  --inv-th-color: #b8390e;
  --inv-td-bdr: #000;
  --inv-th-bdr: #000;
  --inv-story-fg: #000;
  --link-color: #38bdf8;
  --link-border: rgba(56,189,248,.4);
  --tip-bg: #111;
  --tip-fg: #d4cfc8;
  --tip-border: #2a2a2a;
  --shadow: 0 6px 24px rgba(0,0,0,.65);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.12);
  --p1-red: #BF312A;
  --p1-blue: #3B546A;
  --splash-shadow: 1px 2px 4px rgba(0,0,0,0.30), 2px 4px 10px rgba(0,0,0,0.15);
  --body-font: 'Lora', Georgia, serif;
  --sans-font: 'Inter', system-ui, sans-serif;
  --nav-bg: #111;
  --nav-fg: #f4f0e8;
  --nav-border: #2a2a2a;
  --nav-hover: #b8390e;
  --overlay-bg: rgba(0,0,0,.7);
}

/* ── LIGHT THEME VARS ── */
[data-theme="light"] {
  --bg: #ffffff;
  --fg: #000000;
  --accent: #b8390e;
  --muted: #6b6b70;
  --bright: #0a0a0a;
  --card-bg: #fff;
  --card-fg: #0a0a0a;
  --card-kicker: #b8390e;
  --card-deck: #1a1a1a;
  --card-byline: #6b6b70;
  --card-border: #d4cfc8;
  --rule: #d4cfc8;
  --rule-thin: #d4cfc8;
  --body-text: #000000;
  --tagline: #6b6b70;
  --avatar-bg: #dddbd6;
  --avatar-bdr: #c8c4bc;
  --footer-bg: transparent;
  --footer-fg: #6b6b70;
  --footer-rule: #d4cfc8;
  --inv-bg: #fff;
  --inv-th-color: #b8390e;
  --inv-td-bdr: #d4cfc8;
  --inv-th-bdr: #1a1a1a;
  --inv-story-fg: #1a1a1a;
  --link-color: #1a5f8a;
  --link-border: rgba(26,95,138,.4);
  --tip-bg: #fff;
  --tip-fg: #1a1a1a;
  --tip-border: #d4cfc8;
  --shadow: 0 6px 24px rgba(0,0,0,.18);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.10);
  --p1-red: #BF312A;
  --p1-blue: #3B546A;
  --splash-shadow: 1px 2px 4px rgba(0,0,0,0.30), 2px 4px 10px rgba(0,0,0,0.15);
  --body-font: 'Lora', Georgia, serif;
  --sans-font: 'Inter', system-ui, sans-serif;
  --nav-bg: #ffffff;
  --nav-fg: #1a1a1a;
  --nav-border: #d4cfc8;
  --nav-hover: #b8390e;
  --overlay-bg: rgba(0,0,0,.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 20px; }
html.font-sm { font-size: 18px; }
html.font-md { font-size: 20px; }
html.font-lg { font-size: 24px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body-font);
  font-size: 1rem;
  min-height: 100vh;
  overflow-x: hidden;
}

body.typeface-serif { --body-font: 'Lora', Georgia, serif; }
body.typeface-sans  { --body-font: 'Inter', system-ui, sans-serif; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .35;
  pointer-events: none;
  z-index: 100;
}

/* ── MASTHEAD ── */
.masthead { padding: 0; text-align: center; position: relative; }
.masthead-top-space { height: 2px; }
.masthead-rule { border: none; border-top: 3px solid var(--accent); margin: 0; display: block; }
.masthead-link { display: block; text-decoration: none; }
.masthead-link:hover { text-decoration: none; }
.site-splash {
  font-family: "Splash", cursive;
  font-size: clamp(3rem,13.5vw,97px);
  color: var(--bright);
  line-height: 1;
  display: block;
  padding-top: 18px;
  padding-bottom: 1px;
  text-shadow: var(--splash-shadow);
  -webkit-text-stroke: 0.3px rgba(0,0,0,0.55);
}
.site-sub { font-family: 'Courier Prime', Courier, monospace; font-size: clamp(0.9rem,4vw,1.4rem); color: var(--accent); letter-spacing: 0.15em; display: block; padding-bottom: 2px; line-height: 1; }
.site-tagline { font-family: 'IBM Plex Mono', monospace; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tagline); opacity: 0.6; margin-top: .4rem; display: block; }

/* ── HAMBURGER BUTTON ── */
.hamburger-btn {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  background: #e8e8e4; border: 1px solid #ccc8c0; border-left: none;
  padding: .35rem .45rem; cursor: pointer; z-index: 300;
  display: flex; flex-direction: column; gap: 4px; transition: border-color .2s;
}
.hamburger-btn span { display: block; width: 20px; height: 2px; background: #6b6b70; transition: background .2s, transform .2s, opacity .2s; }
.hamburger-btn:hover { border-color: #b8390e; border-left: none; }
.hamburger-btn:hover span { background: #b8390e; }
.hamburger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MONA WELCOME OVERLAY ── */
.mona-welcome-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 800; display: flex; align-items: center; justify-content: center; padding: 1.5rem; transition: opacity .3s ease; }
.mona-welcome-overlay.dismissed { opacity: 0; pointer-events: none; }
.mona-welcome-card { background: #e8e8e4; border-left: 3px solid #b8390e; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2rem 1.75rem 1.5rem; position: relative; box-shadow: 0 8px 40px rgba(0,0,0,.45); color: #1a1a1a; }
.mona-welcome-close { position: absolute; top: .75rem; right: .75rem; background: none; border: none; font-size: 1.4rem; line-height: 1; color: #6b6b70; cursor: pointer; padding: 0 .25rem; transition: color .2s; }
.mona-welcome-close:hover { color: #b8390e; }
.mona-welcome-card .card-rule { margin-bottom: 1.4rem; }
.mona-welcome-card .lede { font-size: 1.1rem; line-height: 1.7; color: #1a1a1a; font-weight: 300; margin-bottom: 1.2rem; font-style: italic; }
.mona-welcome-card .lede strong { font-style: normal; font-weight: 600; color: #0a0a0a; }
.mona-welcome-card .body-graf { font-size: .95rem; line-height: 1.75; color: #2a2a2a; font-weight: 400; margin-bottom: 0.5rem; }
.mona-welcome-card .article-sig { font-family: 'IBM Plex Mono', monospace; font-size: .7rem; color: #6b6b70; margin-top: 1.25rem; letter-spacing: .05em; }
.mona-welcome-actions { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #ccc8c0; }
.mona-welcome-btn { background: #b8390e; color: #fff; border: none; font-family: 'IBM Plex Mono', monospace; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; padding: .6rem 1.25rem; cursor: pointer; transition: opacity .2s; width: 100%; }
.mona-welcome-btn:hover { opacity: .85; }

/* ── NAV OVERLAY ── */
.nav-overlay { display: none; position: fixed; inset: 0; background: var(--overlay-bg); z-index: 400; }
.nav-overlay.open { display: block; }

/* ── NAV PANEL ── */
.nav-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; background: #e8e8e4; border-right: 1px solid #ccc8c0; color: #1a1a1a; z-index: 500; overflow-y: auto; display: none; flex-direction: column; }
.nav-panel.open { display: flex; }
.nav-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #ccc8c0; }
.nav-panel-title { font-family: 'IBM Plex Mono', monospace; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: #6b6b70; }
.nav-panel-close { background: none; border: none; color: #6b6b70; font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0 .2rem; transition: color .2s; }
.nav-panel-close:hover { color: #b8390e; }
.nav-panel-section { padding: 1.25rem; border-bottom: 1px solid #ccc8c0; }
.nav-panel-label { font-family: 'IBM Plex Mono', monospace; font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; color: #6b6b70; margin-bottom: .85rem; }
.nav-panel-list { list-style: none; padding: 0; }
.nav-panel-list li { margin-bottom: .5rem; }
.nav-panel-list a { font-family: 'Lora', serif; font-size: 1.1rem; color: #1a1a1a; text-decoration: none; transition: color .2s; }
.nav-panel-list a:hover { color: #b8390e; }
/* Submenus */
.nav-has-sub { margin-bottom: .5rem; }
.nav-sub-toggle { background: none; border: none; cursor: pointer; font-family: 'Lora', serif; font-size: 1.1rem; color: #1a1a1a; padding: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; transition: color .2s; }
.nav-sub-toggle:hover { color: #b8390e; }
.nav-sub-arrow { font-size: .7rem; transition: transform .2s; display: inline-block; margin-left: .5rem; }
.nav-sub-toggle[aria-expanded="true"] .nav-sub-arrow { transform: rotate(90deg); }
.nav-sub-list { list-style: none; padding: 0; margin: .3rem 0 .5rem 0; display: none; background: #f0ede8; border-left: 3px solid #b8390e; }
.nav-sub-list.open { display: block; }
.nav-sub-list li { margin: 0; border-bottom: 1px solid #e0ddd8; }
.nav-sub-list li:last-child { border-bottom: none; }
.nav-sub-list a { font-family: 'Lora', serif; font-size: 1rem; color: #1a1a1a; text-decoration: none; display: block; padding: .5rem .75rem; transition: background .15s, color .15s; }
.nav-sub-list a:hover { background: #e8e4de; color: #b8390e; }
[data-theme="dark"] .nav-sub-toggle { color: #e0e0e0; }
[data-theme="dark"] .nav-sub-list { background: #1e2530; border-left-color: #BF312A; }
[data-theme="dark"] .nav-sub-list li { border-bottom-color: #2a3340; }
[data-theme="dark"] .nav-sub-list a { color: #d0d0d0; }
[data-theme="dark"] .nav-sub-list a:hover { background: #263040; color: #BF312A; }

/* ── SETTINGS CONTROLS ── */
.nav-settings { display: flex; flex-direction: column; gap: 1rem; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.setting-label { font-family: 'IBM Plex Mono', monospace; font-size: .6rem; letter-spacing: .1em; color: #6b6b70; white-space: nowrap; }
.setting-controls { display: flex; gap: .3rem; }
.setting-btn { background: none; border: 1px solid #ccc8c0; color: #6b6b70; font-family: 'IBM Plex Mono', monospace; font-size: .6rem; letter-spacing: .05em; padding: .25rem .5rem; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.setting-btn:hover { color: #b8390e; border-color: #b8390e; }
.setting-btn.active { color: #b8390e; border-color: #b8390e; background: rgba(184,57,14,.08); }
.font-size-sm { font-size: .5rem; }
.font-size-md { font-size: .65rem; }
.font-size-lg { font-size: .8rem; }
.setting-note { font-family: 'IBM Plex Mono', monospace; font-size: .58rem; color: #6b6b70; line-height: 1.6; border-left: 2px solid #b8390e; padding-left: .6rem; }
.setting-controls-stepsize { display: flex; align-items: center; gap: .35rem; }
.setting-stepsize-input { width: 48px; padding: .25rem .4rem; border: 1px solid #ccc8c0; border-radius: 3px; background: #f0efea; font-family: 'IBM Plex Mono', monospace; font-size: .68rem; color: #1a1a1a; text-align: center; -moz-appearance: textfield; }
.setting-stepsize-input::-webkit-outer-spin-button,
.setting-stepsize-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.setting-stepsize-input:focus { outline: none; border-color: #3B546A; }
.setting-stepsize-unit { font-family: 'IBM Plex Mono', monospace; font-size: .6rem; color: #6b6b70; }

/* ── LAYOUT ── */
.content { max-width: 720px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 600px) { .content { padding: 0 1.5rem; } }
@media (min-width: 1200px) { .content { max-width: 800px; } }

/* ── ANIMATIONS ── */
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ── INTRO ── */
.intro-section { padding: 1.2rem 0 1.25rem; opacity: 0; transform: translateY(24px); animation: rise .9s ease forwards .2s; }
.card-rule { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.8rem; }
.card-rule span { font-family: 'IBM Plex Mono', monospace; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.card-rule::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.identity { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1rem; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--avatar-bg); border: 1px solid var(--avatar-bdr); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.avatar::after { content: '\2666'; color: var(--accent); font-size: 2.2rem; }
.identity-text .byline { font-family: 'IBM Plex Mono', monospace; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--tagline); margin-bottom: .25rem; }
.identity-text .name { font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 700; color: var(--bright); line-height: 1.1; }
.identity-text .descriptor { font-family: 'IBM Plex Mono', monospace; font-size: .6rem; color: var(--accent); letter-spacing: .1em; margin-top: .2rem; }
.lede { font-size: 1.2rem; line-height: 1.7; color: var(--body-text); font-weight: 300; margin-bottom: 1.6rem; font-style: italic; }
.lede strong { font-style: normal; font-weight: 500; color: var(--bright); }
.body-graf { font-size: 1rem; line-height: 1.55; color: var(--body-text); font-weight: 500; margin-bottom: 0.9em; }
.body-graf em { color: var(--fg); font-style: italic; }
.the-question { border-left: 2px solid var(--accent); padding: 1rem 1.25rem; margin: 2rem 0; background: rgba(184,57,14,.06); }
.the-question p { font-size: 1rem; line-height: 1.7; color: var(--body-text); font-weight: 300; font-style: italic; }
.pause { text-align: center; color: var(--muted); letter-spacing: .5em; font-size: .9rem; margin: 2rem 0 0; opacity: .6; }
.section-divider { border: none; border-top: 1px solid var(--rule-thin); }

/* ── TRANSITION ── */
.transition-section { padding: 2.5rem 0 2rem; opacity: 0; transform: translateY(20px); animation: rise .9s ease forwards .5s; }
.section-label { font-family: 'IBM Plex Mono', monospace; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .75rem; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--rule-thin); }
.corey-graf { font-size: 1rem; line-height: 1.55; color: var(--body-text); font-weight: 500; margin-bottom: 0.9em; }
.corey-graf em { font-style: italic; color: var(--bright); }
.corey-hinge { font-family: 'Lora', serif; font-size: 1.35rem; font-style: italic; color: var(--bright); margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule-thin); }

/* ── STORY CARD ── */
.story-section { padding: 1.25rem 0 3rem; opacity: 0; transform: translateY(20px); animation: rise .9s ease forwards .8s; }
.story-card { border: 1px solid var(--accent); background: var(--card-bg); padding: 1.75rem 1.5rem; position: relative; box-shadow: var(--shadow); }
.story-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent); }
.story-kicker { font-family: 'IBM Plex Mono', monospace; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--card-kicker); margin-bottom: .75rem; }
.story-headline { font-family: 'Lora', serif; font-size: 1.45rem; font-weight: 700; color: var(--card-kicker); line-height: 1.2; margin-bottom: .6rem; }
.story-headline a { color: var(--card-kicker); text-decoration: none; }
.story-headline a:hover { color: var(--accent); }
.story-deck { font-size: 1rem; line-height: 1.65; color: var(--card-deck); font-weight: 500; margin-bottom: 1.25rem; font-style: italic; }
.story-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--card-border); }
.story-byline { font-family: 'IBM Plex Mono', monospace; font-size: .6rem; letter-spacing: .12em; color: var(--card-byline); }
.story-byline strong { color: var(--card-fg); }

/* ── ARTICLE BODY ── */
.article-body { padding: 0 0 3rem; }
.article-rule { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }
.article-note { font-family: 'IBM Plex Mono', monospace; font-size: .7rem; line-height: 1.7; color: var(--muted); background: rgba(107,107,112,.08); border-left: 2px solid var(--muted); padding: .75rem 1rem; margin-bottom: 1.5rem; }
.article-graf { font-size: 1rem; line-height: 1.55; color: var(--body-text); font-weight: 500; margin-bottom: 0.9em; }
.article-hammer { font-size: 1.1rem; line-height: 1.6; color: var(--bright); font-weight: 700; margin-bottom: 1.2rem; font-style: italic; }
.article-quote { border-left: 2px solid var(--rule); padding: .75rem 1.25rem; margin: 1.5rem 0; font-size: .95rem; line-height: 1.8; color: var(--body-text); font-style: italic; font-weight: 300; }
.article-sig { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; color: var(--muted); margin-top: 2rem; letter-spacing: .05em; line-height: 1.8; padding-top: 1.25rem; border-top: 1px solid var(--rule-thin); }
.video-cue { font-family: 'IBM Plex Mono', monospace; font-size: .7rem; color: var(--link-color); margin-bottom: .3rem; }

/* ── VIP VIDEO BLOCK ── */
.vip-video {
  margin: 32px 0;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255,255,255,1.0);
}
.vip-video video,
.vip-video iframe {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
}

/* ── DOC CARDS ── */
.doc-card-link { display: block; text-decoration: none; color: inherit; }
.doc-card-link .doc-card { margin-bottom: 16px; transition: border-color 0.15s, box-shadow 0.15s; }
.doc-card-link:hover .doc-card { border-color: #3B546A; box-shadow: 0 3px 12px rgba(59,84,106,0.18); cursor: pointer; }
.doc-card { background: #fff; border: 1px solid #d4cfc8; padding: 18px 20px; margin-bottom: 16px; border-radius: 4px; box-shadow: var(--shadow-card); }
.doc-card-id { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #3B546A; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.doc-card-title { font-family: 'Lora', serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.doc-card-body { font-size: 15px; color: #3a3530; line-height: 1.65; }

/* ── MORE INVESTIGATIONS TABLE ── */
.investigations-section { background: var(--inv-bg); padding: 2.5rem 2rem 3rem; box-shadow: var(--shadow); }
.investigations-table { width: 100%; border-collapse: collapse; font-family: 'IBM Plex Mono', monospace; font-size: .75rem; }
.investigations-table th { font-family: 'IBM Plex Mono', monospace; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-th-color); padding: .5rem 0; border-bottom: 2px solid var(--inv-th-bdr); text-align: left; }
.investigations-table td { padding: .85rem 0; border-bottom: 1px solid var(--inv-td-bdr); vertical-align: top; }
.investigations-table td.date-cell { color: var(--muted); white-space: nowrap; padding-left: .75rem; width: 5rem; font-size: .65rem; }
.investigations-table td.storyline-cell { width: 30%; padding-right: .75rem; }
.investigations-table td.storyline-cell a { color: var(--inv-th-color); text-decoration: none; }
.investigations-table td.story-cell { font-family: 'Lora', serif; font-size: .85rem; line-height: 1.4; }
.investigations-table td.story-cell a { color: var(--inv-story-fg); text-decoration: none; }
.investigations-table td.story-cell a:hover,
.investigations-table td.storyline-cell a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .investigations-table { font-size: .65rem; }
  .investigations-table td.story-cell { font-size: .8rem; }
  .investigations-table td.date-cell { width: 4rem; font-size: .6rem; }
}

/* ── SPECTRE TOOLTIP ── */
.spectre-wrap { position: relative; display: inline-block; }
.spectre-term { color: var(--accent); text-decoration: none; font-family: 'IBM Plex Mono', monospace; font-size: .9em; letter-spacing: .08em; font-weight: 700; border-bottom: 1px dotted var(--accent); cursor: help; }
.spectre-tip { visibility: hidden; opacity: 0; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: var(--tip-bg); border: 1px solid var(--tip-border); border-left: 2px solid var(--accent); color: var(--tip-fg); font-family: 'IBM Plex Mono', monospace; font-size: .7rem; line-height: 1.6; letter-spacing: .02em; padding: .75rem 1rem; width: 280px; z-index: 200; pointer-events: none; font-style: normal; transition: opacity .2s ease; }
.spectre-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--tip-border); }
.spectre-wrap:hover .spectre-tip { visibility: visible; opacity: 1; }

/* ── FOOTER ── */
.footer { text-align: center; padding: 2.5rem 1.5rem; border-top: 1px solid var(--footer-rule); background: var(--footer-bg); }
.footer-name { font-family: 'Lora', serif; font-size: .9rem; color: var(--footer-fg); }
.footer-name span { color: var(--accent); }

/* ── SOURCES ── */
.sources-section { padding: 2.5rem 2rem 3rem; border-top: 1px solid var(--rule-thin); max-width: 720px; margin: 0 auto; }
@media (min-width: 1200px) { .sources-section { max-width: 800px; } }
@media (max-width: 600px) { .sources-section { padding: 2.5rem 1.5rem 3rem; } }
.sources-group { margin-bottom: 2.5rem; }
.sources-heading { font-family: 'IBM Plex Mono', monospace; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule-thin); }
.source-item { margin-bottom: 1.25rem; padding-left: 1rem; border-left: 1px solid var(--rule); }
.source-title { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; color: var(--bright); margin-bottom: .3rem; letter-spacing: .02em; }
.source-desc { font-size: .9rem; line-height: 1.7; color: var(--body-text); font-weight: 300; margin-bottom: .3rem; }
.source-link { display: inline-block; margin-top: .4rem; font-family: 'IBM Plex Mono', monospace; font-size: .65rem; color: var(--link-color); text-decoration: none; letter-spacing: .08em; border-bottom: 1px solid var(--link-border); padding-bottom: 2px; }
.source-list { list-style: none; padding: 0; }
.source-list li { font-size: .9rem; line-height: 1.75; color: var(--body-text); font-weight: 300; padding: .4rem 0 .4rem 1rem; border-left: 1px solid var(--rule); margin-bottom: .5rem; }
.source-list li em { color: var(--body-text); font-style: italic; }

/* ── DISCLAIMER ── */
.disclaimer { font-family: 'IBM Plex Mono', monospace; font-size: .68rem; line-height: 1.75; color: var(--muted); border-left: 2px solid var(--muted); padding: .75rem 1rem; margin: 1.5rem 0 2rem; font-style: italic; }

/* ── SOURCE CARD ── */
.source-card { border: 1px solid var(--rule); border-left: 3px solid var(--accent); padding: 1rem 1.25rem; margin: 1.75rem 0; background: rgba(107,107,112,.05); box-shadow: var(--shadow-card); }
.source-card-label { font-family: 'IBM Plex Mono', monospace; font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.source-card-title { font-family: 'Lora', serif; font-size: .95rem; font-weight: 700; color: var(--bright); line-height: 1.3; margin-bottom: .3rem; }
.source-card-title a { color: var(--bright); text-decoration: none; border-bottom: 1px solid var(--rule); }
.source-card-title a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.source-card-meta { font-family: 'IBM Plex Mono', monospace; font-size: .62rem; color: var(--muted); letter-spacing: .04em; line-height: 1.6; }

/* ── VIP EMBED BLOCK ── */
.vip-note { font-family: var(--body-font); font-size: .95rem; font-style: italic; line-height: 1.75; color: var(--body-text); border-left: 2px solid var(--accent); padding: .6rem 1.25rem; margin: 1.75rem 0 1rem; }
.vip-embed { position: relative; width: 100%; aspect-ratio: 16/9; margin: 0; background: #1a1a1a; }
.vip-card-wrap .vip-embed { margin: 0; }
.vip-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ── VIP CONTROLS ── */
.vip-controls { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 3px; margin: 0 0 1.75rem; position: relative; z-index: 100; }
.vip-card-wrap .vip-controls { margin: 0 !important; border-radius: 0; border-top: none; }
.vip-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 50px; padding: .4rem .55rem .3rem; background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; font-family: 'IBM Plex Mono', monospace; color: var(--muted); transition: color .12s, background .12s, transform .08s, box-shadow .08s; box-shadow: 0 3px 0 var(--rule), inset 0 1px 0 rgba(255,255,255,.6); -webkit-tap-highlight-color: transparent; }
.vip-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--card-bg); }
.vip-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rule), inset 0 2px 0 rgba(0,0,0,.06); color: var(--accent); }
.vip-btn svg { display: block; width: 18px; height: 13px; flex-shrink: 0; }
.vip-btn-label { font-size: .52rem; letter-spacing: .05em; line-height: 1; color: inherit; }
.vip-divider { width: 1px; height: 26px; background: var(--rule-thin); margin: 0 .2rem; flex-shrink: 0; }
.vip-goto-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; background: var(--bg); border: 1px solid var(--rule); border-radius: 20px; cursor: pointer; font-family: 'IBM Plex Mono', monospace; font-size: .6rem; letter-spacing: .05em; color: var(--muted); white-space: nowrap; transition: color .12s, background .12s, border-color .12s, transform .08s, box-shadow .08s; box-shadow: 0 3px 0 var(--rule), inset 0 1px 0 rgba(255,255,255,.6); -webkit-tap-highlight-color: transparent; }
.vip-goto-btn:hover { color: var(--p1-blue); border-color: var(--p1-blue); background: var(--card-bg); }
.vip-goto-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rule), inset 0 2px 0 rgba(0,0,0,.06); }
.vip-goto-btn svg { width: 11px; height: 11px; flex-shrink: 0; }
.vip-goto-input { width: 0; overflow: hidden; opacity: 0; padding: 0; border: none; background: transparent; font-family: 'IBM Plex Mono', monospace; font-size: .7rem; letter-spacing: .05em; color: var(--fg); transition: width .18s ease, opacity .18s ease, padding .18s ease; }
.vip-goto-input.open { width: 68px; opacity: 1; padding: .28rem .45rem; border: 1px solid var(--p1-blue); border-radius: 3px; background: var(--card-bg); outline: none; }
.vip-toast { font-family: 'IBM Plex Mono', monospace; font-size: .58rem; letter-spacing: .04em; color: var(--accent); margin-left: auto; opacity: 0; transition: opacity .25s; white-space: nowrap; pointer-events: none; }
.vip-toast.show { opacity: 1; }

/* Caption — white, italic, Inter, padded */
.vip-video-caption {
  font-family: var(--sans-font);
  font-size: .65rem;
  color: #ffffff;
  font-style: italic;
  letter-spacing: .04em;
  padding: 6px 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
