/* Daily Analysis on the shared premium-minimal layer (css/relay.css): same canvas, type, cards and motion
   as the landing page. Loads after css/analysis.css and only restyles; every block, filter and live
   update stays as it is (scripts/build-analysis.mjs, js/analysis.js). */

/* the shared dot grid / gold progress line replace the old texture and bar */
.an-drift, .scroll-progress { display: none; }
.an-body-page { background: transparent; }
.nav-home { display: none; }
@media (min-width: 1560px) { .nav-home { display: inline-flex; } }

/* ---------- header ---------- */
.an-hero { border-bottom: 1px solid rgba(255, 255, 255, .06); padding-top: calc(var(--nav-h) + 50px + clamp(28px, 5vh, 56px) + var(--safe-t)); }
.an-hero-video, .an-hero-still img { opacity: .55; }
.an-chip { margin-bottom: 14px; }
.an-pulse { width: 7px; height: 7px; border-radius: 50%; background: #5B616B; margin-left: 2px; }
body.is-today .an-pulse { background: var(--gold); animation: pulse 2s ease-out infinite; }
.an-dateline { font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; letter-spacing: .02em; text-transform: none; color: #A9AEB6; margin-bottom: 10px; }
.an-dateline .today-tag { font-family: var(--font-mono); }
.an-title { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; max-width: 18ch; }
.an-title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold-hi); letter-spacing: -.01em; }
.an-title::after { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.an-hero .lead { color: #A9AEB6; }
.an-meta { font-family: var(--font-mono); font-size: 12px; color: #9399A3; }

/* market mood pill with a soft glow in the mood's colour (gold rising, blue falling, silver shimmer) */
.mood { position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, .1); background: rgba(18, 21, 25, .8); }
.mood-label { font-family: var(--font-mono); font-weight: 400; letter-spacing: .04em; text-transform: lowercase; color: #9399A3; }
.mood-glow { position: absolute; inset: -60% -20%; z-index: -1; border-radius: 50%; pointer-events: none; opacity: .8; filter: blur(14px);
  background: radial-gradient(closest-side, rgba(201, 206, 214, .22), transparent 70%); animation: moodGlow 4s ease-in-out infinite; }
.mood.bull .mood-glow { background: radial-gradient(closest-side, rgba(212, 168, 75, .4), transparent 70%); animation-name: moodRise; }
.mood.bear .mood-glow { background: radial-gradient(closest-side, rgba(47, 107, 255, .38), transparent 70%); animation-name: moodFall; }
@keyframes moodGlow { 50% { opacity: .45; transform: scale(.94); } }
@keyframes moodRise { 0%, 100% { transform: translate3d(0, 10%, 0); opacity: .55; } 50% { transform: translate3d(0, -12%, 0); opacity: 1; } }
@keyframes moodFall { 0%, 100% { transform: translate3d(0, -10%, 0); opacity: .55; } 50% { transform: translate3d(0, 12%, 0); opacity: 1; } }

/* share buttons + the disclaimer: readable mono small print */
.an-share .btn { border: 1px solid rgba(255, 255, 255, .12); background: #121519; color: var(--fg); }
.an-disclaimer, .fine, .snap-note, .auto-note, .ev-note { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; color: #9399A3; }
.an-disclaimer { border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); }
.key-alert { background: var(--card); border-color: rgba(212, 168, 75, .35); border-radius: var(--r-card); }
.ka-list time, .ka-count { font-family: var(--font-mono); }

/* ---------- pair switch: a minimal segmented control, sticky under the nav ---------- */
.pair-bar { top: calc(var(--nav-h) + var(--ticker-h, 0px) + var(--safe-t)); background: rgba(13, 15, 18, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06); }
.pb-track { border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: #121519; }
.pb-chip { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.pb-pill { box-shadow: 0 0 20px rgba(212, 168, 75, .35); transition-timing-function: var(--ease-precise) !important; }

/* ---------- section headers ---------- */
.an-h2 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3rem); letter-spacing: -.025em; font-weight: 600; margin-bottom: clamp(24px, 18px + 1.6vw, 40px); }
.an-h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold-hi); }
section .tagchip.reveal { margin-bottom: 14px; }

/* ---------- pair cards ---------- */
.pair-card { background: var(--card); border: 1px solid var(--card-line); border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045); }
.pc-cover-in h3 { font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; }
.bias { font-family: var(--font-mono); font-weight: 500; letter-spacing: .06em; }
.conf-label, .levels caption, .snap-label, .plan h4, .scen h4 { font-family: var(--font-mono); font-weight: 400; letter-spacing: .06em; text-transform: lowercase; color: #9399A3; }
.conf b { font-family: var(--font-mono); font-weight: 500; }

/* the chart card: thin-bordered, a soft glow, "my analysis snapshot · published hh:mm" */
.snap-head { font-family: var(--font-mono); font-size: 11.5px; }
.snap-frame { border: 1px solid rgba(212, 168, 75, .22); border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 30px 80px -30px rgba(212, 168, 75, .25); }
.snap-open { border-radius: 999px; }

/* levels: mono numbers, thin lines; resistance blue, support gold */
.rung-tag, .rung-val, .levels, .levels td, .levels th { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rung-tag, .rung-val { font-weight: 500; background: var(--card); }
.rung.res { color: #8FAEFF; }
.rung.sup { color: var(--gold-hi); }
.levels td { font-weight: 500; }
.levels th, .levels td { border-top-color: rgba(255, 255, 255, .06); }
.zone-band.res { background: rgba(47, 107, 255, .12); box-shadow: inset 2px 0 0 #8FAEFF; }

/* plan + scenarios: clean cards, "If / Then" side by side */
.plan, .scen, .structure { padding: 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .015); }
.checks .tick path { stroke: var(--gold); }
.scen-card { background: #0F1216; border-color: rgba(255, 255, 255, .08); border-radius: 12px; }
@media (min-width: 600px) {
  .scen-card { grid-template-columns: 1fr 1fr; align-items: start; gap: 14px; }
  .scen-then { border-left: 1px solid rgba(212, 168, 75, .25); padding-left: 14px; }
}
.scen-card span { font-family: var(--font-mono); font-weight: 500; }

/* ---------- events + calendar: mono time column, minimal impact dots ---------- */
.ev { background: var(--card); border-color: var(--card-line); border-radius: 12px; }
.ev-time, .ev-count, .impact { font-family: var(--font-mono); font-weight: 500; }
.ev-dot { border-width: 1.5px; }
.cal-widget { background: var(--card); border-color: var(--card-line); border-radius: 16px; }
.cal-filters .chip, .nf-chips .chip, .arch-controls .chip { font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- news + archive ---------- */
.nf-item { background: var(--card); border-color: var(--card-line); border-radius: 14px; }
.nf-head, .nf-credit { font-family: var(--font-mono); font-size: 11.5px; }
.js .nf-list > .nf-item:nth-child(odd) { --nx: -24px; } .js .nf-list > .nf-item:nth-child(even) { --nx: 24px; }
.nf-item.arrive { animation: nfSide 640ms var(--ease-precise) both; }
@keyframes nfSide { from { opacity: 0; transform: translate3d(var(--nx, 0), 0, 0); } }
.arch-list a { background: var(--card); border-color: var(--card-line); border-radius: 14px; }
.arch-list time { font-family: var(--font-mono); font-weight: 500; }
.arch-cal { font-family: var(--font-mono); }

/* ---------- footer ---------- */
.footer { padding-top: 64px; }

@media (prefers-reduced-motion: reduce) {
  .mood-glow, .an-pulse { animation: none !important; }
  .nf-item.arrive { animation: none; }
}

/* the old texture and chart-frame artwork are replaced by the dot grid and the thin glowing border
   (hiding them also stops their images downloading before the headline paints) */
.an-archive.tex-hex::before, .an-pairs[data-frame] .snap-frame::before { display: none; }
