/* Dogecoin67.com — Deep visual pass: mirrors bitcoin47.com editorial design (HomeBitcoin + tokens)
   while staying uniquely Doge (warm yellow accents, approachable dark editorial, velocity + complementarity).
   Self-contained static. Uses patterns from src/styles/tokens.css [data-theme="bitcoin"],
   src/layouts/HomeBitcoin.astro (.hb-* structure), and src/layouts/BitcoinDataLayout.astro (charts/stats).
*/

:root {
  /* Dogecoin accent (official-ish yellow) */
  --doge-yellow: #F4B731;
  --doge-yellow-dark: #c68f1f;
  --doge-orange: #E07A2D;
  --doge-gold: #fbbf24;

  /* Dark editorial base — mirrored/adapted from bitcoin47 "bitcoin" theme in tokens.css */
  --doge-bg-primary: #0d1117;
  --doge-bg-secondary: #161b22;
  --doge-bg-card: #1c2128;
  --doge-bg-body: #0d1117;
  --doge-text-primary: #f0f6fc;
  --doge-text-secondary: #8b949e;
  --doge-text-muted: #6b7280;
  --doge-accent: #F4B731;
  --doge-accent-hover: #c68f1f;
  --doge-accent-soft: #2d1a00;
  --doge-border: #30363d;

  /* Light-friendly fallbacks for content areas / subpages (warm off-white for friendliness) */
  --doge-light-bg: #f8f9fa;
  --doge-light-card: #ffffff;
  --doge-light-text: #111827;
  --doge-light-secondary: #4b5563;

  /* Shared */
  --doge-radius: 0.625rem;
  --doge-max-width: 72rem;
  --doge-font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --doge-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --doge-transition: 0.15s ease;
}

/* Base resets + typography (Space Grotesk + Inter to match bitcoin47 exactly) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--doge-font-body);
  color: var(--doge-text-primary);
  background: var(--doge-bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--doge-font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.9rem, 6.5vw, 3.1rem); }
h2 { font-size: 1.45rem; margin-top: 2rem; margin-bottom: 0.65rem; }
h3 { font-size: 1.05rem; margin-top: 1.25rem; margin-bottom: 0.4rem; }

p { margin-bottom: 0.9rem; color: var(--doge-text-secondary); }
ul, ol { margin: 0.65rem 0 0.9rem 1.15rem; }
li { margin-bottom: 0.3rem; color: var(--doge-text-secondary); }
a { color: inherit; text-decoration: none; }

/* (Cleaned: removed large block of duplicate old light-theme base rules (body, h*, p, li, a using undefined --text-*/--bg-* vars) that were causing low-contrast/illegible text on the dark homepage buckets and other elements. All styles now consistently use the --doge-* dark editorial tokens.) */

/* ===== HEADER / NAV (dark editorial, bitcoin-mirrored) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--doge-bg-primary) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--doge-border);
}
.header-inner {
  max-width: var(--doge-max-width);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text {
  font-family: var(--doge-font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--doge-accent);
}
.logo-tag {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--doge-text-secondary);
  font-weight: 600;
}
.nav-desktop {
  display: none;
  gap: 0.15rem;
  align-items: center;
}
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-link {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--doge-text-secondary);
  border-radius: 0.375rem;
  transition: all 0.1s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--doge-text-primary); background: var(--doge-bg-secondary); }
.nav-link.active { color: var(--doge-accent); background: var(--doge-accent-soft); }

.hamburger {
  display: block; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--doge-text-secondary);
}
@media (min-width: 768px) { .hamburger { display: none; } }

.mobile-menu {
  display: none; flex-direction: column; background: var(--doge-bg-primary);
  border-bottom: 1px solid var(--doge-border); padding: 0.4rem 1rem 0.8rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.55rem 0; border-bottom: 1px solid var(--doge-border);
  font-weight: 600; font-size: 0.92rem; color: var(--doge-text-primary);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ===== HERO (bitcoin-style with doge warmth) ===== */
.doge-hero {
  position: relative;
  overflow: hidden;
  padding: 4.25rem 1rem 3.25rem;
  background: linear-gradient(135deg, #0d1117 0%, #1a1200 55%, #2a1a05 100%);
}
.doge-hero--photo {
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.doge-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.45;
}
.doge-hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0.55) 0%, rgba(13,17,23,0.82) 70%, #0d1117 100%);
  pointer-events: none;
}
.doge-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin: 0 auto;
  text-align: center;
}
.doge-hero-ticker { position: relative; z-index: 1; }
.doge-feat-card--img {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0;
  overflow: hidden;
}
.doge-feat-thumb {
  width: 100%;
  height: 7.5rem;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--doge-border);
}
.doge-feat-card--img .doge-feat-body {
  padding: 0 1.1rem 0.25rem;
}
.doge-feat-card--img .doge-feat-arrow {
  padding: 0 1.1rem 0.9rem;
  align-self: flex-end;
}
/* Hub page heroes */
.hub-hero {
  margin: 0 0 1.25rem;
  border-radius: var(--doge-radius);
  overflow: hidden;
  border: 1px solid var(--doge-border);
  max-height: 14rem;
}
.hub-hero img {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
  object-position: center;
}
.doge-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--doge-text-secondary); margin-bottom: 1rem;
}
.doge-symbol {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; background: var(--doge-accent);
  color: #111827; border-radius: 9999px; font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 0 0 4px rgba(244,183,49,0.15);
}
.doge-hero-title {
  font-family: var(--doge-font-display);
  font-size: clamp(2.05rem, 7vw, 3.35rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  color: var(--doge-text-primary); margin-bottom: 0.9rem;
}
.doge-hero-desc {
  font-size: 1.02rem; color: var(--doge-text-secondary);
  max-width: 42rem; margin: 0 auto 1.6rem; line-height: 1.55;
}
.doge-hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center;
}
.doge-cta-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.65rem; background: var(--doge-accent); color: #111827;
  font-family: var(--doge-font-display); font-weight: 700; font-size: 0.9rem;
  border-radius: 0.4rem; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.doge-cta-primary:hover { background: var(--doge-yellow-dark); transform: translateY(-1px); }
.doge-cta-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.5rem; background: transparent; color: var(--doge-text-primary);
  font-family: var(--doge-font-display); font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--doge-border); border-radius: 0.4rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.doge-cta-ghost:hover { border-color: var(--doge-accent); color: var(--doge-accent); }

/* Ticker (repeating keywords) */
.doge-hero-ticker {
  margin-top: 2.75rem; border-top: 1px solid var(--doge-border);
  padding-top: 0.7rem; font-size: 0.68rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--doge-text-secondary);
  white-space: nowrap; overflow: hidden; display: flex;
}
.doge-ticker-track { display: inline-flex; flex-shrink: 0; animation: doge-ticker 32s linear infinite; }
@keyframes doge-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== LIVE BULLETIN (yellow variant of bitcoin hb-bulletin) ===== */
.doge-bulletin {
  background: #111827;
  border-top: 1px solid rgba(244,183,49,0.25);
  border-bottom: 1px solid rgba(244,183,49,0.15);
  color: #f3f4f6;
}
.doge-bulletin-inner {
  max-width: var(--doge-max-width);
  margin: 0 auto;
  padding: 0.95rem 1rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
}
.doge-bulletin-badge {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  background: rgba(244,183,49,0.18); color: var(--doge-yellow);
  padding: 0.18rem 0.5rem; border-radius: 0.25rem; white-space: nowrap;
}
.doge-bulletin-meta { font-size: 0.68rem; color: #6b7280; white-space: nowrap; }
.doge-bulletin-body { flex: 1; min-width: 220px; }
.doge-bulletin-body p { margin: 0; color: #e5e7eb; font-size: 0.89rem; line-height: 1.45; }
.doge-bulletin-body .headline { font-weight: 700; color: #fff; margin-bottom: 0.1rem; font-family: var(--doge-font-display); }

/* ===== FEATURED BAR ===== */
.doge-featured {
  background: var(--doge-bg-secondary);
  border-top: 1px solid var(--doge-border);
  border-bottom: 1px solid var(--doge-border);
  padding: 2.1rem 1rem;
}
.doge-featured-inner {
  max-width: var(--doge-max-width);
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.1rem;
}
.doge-feat-card {
  display: flex; align-items: flex-start; gap: 0.95rem;
  padding: 1.1rem 1.25rem; background: var(--doge-bg-card);
  border: 1px solid var(--doge-border); border-radius: var(--doge-radius);
  text-decoration: none; color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.doge-feat-card:hover { border-color: var(--doge-accent); transform: translateY(-2px); }
.doge-feat-icon { font-size: 1.65rem; flex-shrink: 0; line-height: 1; padding-top: 0.1rem; }
.doge-feat-kicker {
  display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--doge-accent); font-family: var(--doge-font-display); font-weight: 600; margin-bottom: 0.2rem;
}
.doge-feat-title {
  font-family: var(--doge-font-display); font-size: 0.98rem; font-weight: 700;
  color: var(--doge-text-primary); line-height: 1.25; margin: 0 0 0.3rem;
}
.doge-feat-desc {
  font-size: 0.78rem; color: var(--doge-text-secondary); line-height: 1.45; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.doge-feat-arrow { font-size: 1.05rem; color: var(--doge-accent); flex-shrink: 0; align-self: center; transition: transform 0.15s ease; }
.doge-feat-card:hover .doge-feat-arrow { transform: translateX(3px); }

/* ===== BUCKETS / EDITORIAL SECTIONS (core bitcoin mirror) ===== */
.doge-buckets {
  padding: 3rem 1rem 2.5rem;
  background: var(--doge-bg-primary);
}
.doge-buckets-inner {
  max-width: var(--doge-max-width);
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(295px, 1fr)); gap: 2.1rem;
}
.doge-bucket { display: flex; flex-direction: column; gap: 0; }
.doge-bucket-header { margin-bottom: 0.75rem; }
.doge-bucket-tag {
  display: inline-block; font-size: 0.6rem; font-family: var(--doge-font-display);
  font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  border: 1px solid; border-radius: 9999px; padding: 0.12rem 0.55rem; margin-bottom: 0.45rem;
}
.doge-bucket-label {
  font-family: var(--doge-font-display); font-size: 1.12rem; font-weight: 700;
  color: var(--doge-text-primary); margin: 0 0 0.5rem; letter-spacing: -0.01em;
}
.doge-bucket-rule { height: 2px; width: 2.3rem; border-radius: 1px; background: var(--doge-accent); opacity: 0.85; }
.doge-bucket-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.doge-bucket-item { border-bottom: 1px solid var(--doge-border); }
.doge-bucket-item:last-child { border-bottom: none; }
.doge-bucket-link {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.78rem 0;
  text-decoration: none; color: inherit; transition: color 0.12s ease;
}
.doge-bucket-link:hover { color: var(--doge-accent); }
.doge-bucket-icon { font-size: 1.15rem; flex-shrink: 0; width: 1.65rem; text-align: center; }
.doge-bucket-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.doge-bucket-title { font-family: var(--doge-font-display); font-size: 0.9rem; font-weight: 600; line-height: 1.25; color: var(--doge-text-primary); }
.doge-bucket-desc {
  font-size: 0.78rem; color: #d1d5db; /* brighter secondary for legibility on dark buckets (was marginal #8b949e); high contrast */
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.doge-bucket-arrow { font-size: 0.9rem; color: #9ca3af; flex-shrink: 0; transition: color 0.12s ease, transform 0.12s ease; }
.doge-bucket-link:hover .doge-bucket-arrow { color: var(--doge-accent); transform: translateX(2px); }

/* Ensure bucket links themselves have good base contrast */
.doge-bucket-link { color: inherit; }
.doge-bucket-link:hover { color: var(--doge-accent); }

/* ===== DATA / STATS (from BitcoinDataLayout) ===== */
.doge-data-section { margin: 2.25rem 0 1.5rem; }
.doge-data-section-title {
  font-family: var(--doge-font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--doge-text-primary); margin-bottom: 0.9rem;
}
.doge-stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 0.75rem;
}
.doge-stat-card {
  background: var(--doge-bg-card); border: 1px solid var(--doge-border);
  border-radius: var(--doge-radius); padding: 0.85rem 1rem;
}
.doge-stat-label { font-size: 0.7rem; color: var(--doge-text-secondary); margin-bottom: 0.15rem; }
.doge-stat-value { font-family: var(--doge-font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.05; color: var(--doge-text-primary); }
.doge-stat-sub { font-size: 0.7rem; color: var(--doge-text-muted); margin-top: 0.15rem; }

.doge-data-chart-container {
  background: var(--doge-bg-card); border: 1px solid var(--doge-border);
  border-radius: var(--doge-radius); padding: 0.9rem; margin: 0.5rem 0 0.6rem;
}
.doge-data-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: 0.4rem; }
.doge-data-links a {
  font-size: 0.78rem; color: var(--doge-accent); text-decoration: none;
}
.doge-data-links a:hover { text-decoration: underline; }

/* ===== CONTENT PAGES — FULLY DARK THEME (matching homepage for consistency + legibility) ===== */
.page {
  max-width: var(--doge-max-width);
  margin: 0 auto;
  padding: 1.75rem 1rem 2.75rem;
  color: var(--doge-text-primary);
  background: var(--doge-bg-primary);  /* dark like homepage body */
}
.page h1 {
  font-size: 1.95rem; margin-bottom: 0.45rem;
  border-bottom: 3px solid var(--doge-accent); padding-bottom: 0.45rem;
  display: inline-block; color: var(--doge-text-primary);
}
.page .intro { font-size: 1.02rem; color: #d1d5db; max-width: 54ch; }  /* brighter secondary for readability */

/* Make subsections have visual contrast/breakup on dark */
.subsection { 
  margin-top: 2.2rem; 
  padding-top: 0.3rem;
}
.subsection h2 {
  font-size: 1.38rem; margin-top: 0; padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--doge-border); 
  color: var(--doge-text-primary);
}

/* Tables — dark theme, high contrast */
table { 
  width: 100%; border-collapse: collapse; margin: 0.9rem 0; font-size: 0.88rem; 
  background: var(--doge-bg-card); 
  border: 1px solid var(--doge-border);
}
th, td { text-align: left; padding: 0.55rem 0.7rem; border: 1px solid var(--doge-border); }
th { 
  background: var(--doge-bg-secondary); 
  font-weight: 700; 
  color: var(--doge-text-primary); 
}

/* Amazon CTAs (yellow on dark or light) */
.amazon-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--doge-accent); color: #111827; font-weight: 700;
  font-size: 0.86rem; padding: 0.48rem 0.95rem; border-radius: 0.375rem;
  text-decoration: none; margin: 0.4rem 0.2rem 0.4rem 0;
  transition: background 0.1s ease, transform 0.1s ease;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.07);
}
.amazon-cta:hover { background: var(--doge-yellow-dark); transform: translateY(-1px); }
.amazon-cta.secondary {
  background: transparent; color: var(--doge-accent); border: 1px solid var(--doge-accent);
}

/* ===== RICH CALLOUTS, INTERJECTIONS & HIGHLIGHTED AREAS (dark theme, high contrast, colorful) ===== */
.callout {
  background: rgba(244,183,49,0.10);
  border-left: 5px solid var(--doge-accent);
  padding: 0.95rem 1.15rem;
  margin: 1.15rem 0;
  border-radius: 0 0.375rem 0.375rem 0;
  color: #f5f5f5;
}
.callout h3, .callout strong { color: #fcd34d; margin-top: 0; font-size: 1rem; }

/* Callout variants for more visual interest and color */
.callout--note {
  background: rgba(96,165,250,0.10);
  border-left-color: #60a5fa;
}
.callout--note h3 { color: #93c5fd; }

.callout--tip {
  background: rgba(52,211,153,0.10);
  border-left-color: #34d399;
}
.callout--tip h3 { color: #6ee7b7; }

.callout--highlight {
  background: rgba(251,191,36,0.14);
  border-left-color: #fbbf24;
  font-weight: 500;
}
.callout--highlight h3 { color: #fcd34d; }

.callout--interject {
  background: rgba(244,183,49,0.07);
  border-left: 3px solid var(--doge-orange);
  padding: 0.6rem 0.95rem;
  margin: 0.8rem 0;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* Inline highlight / interjection spans for color and emphasis throughout text */
.highlight {
  background: rgba(244,183,49,0.18);
  color: #fcd34d;
  padding: 0.05rem 0.35rem;
  border-radius: 0.2rem;
  font-weight: 600;
}
.text-accent { color: var(--doge-accent); font-weight: 600; }
.text-warm { color: #fbbf24; }

/* Footer */
.site-footer {
  background: var(--doge-bg-secondary);
  border-top: 1px solid var(--doge-border);
  padding: 1.6rem 1rem; font-size: 0.78rem; color: var(--doge-text-secondary);
  line-height: 1.55;
}
.footer-inner { max-width: var(--doge-max-width); margin: 0 auto; }
.footer-inner p { margin: 0.2rem 0; }
.footer-inner a { color: var(--doge-accent); text-decoration: underline; }
.cross-link { display: inline-block; margin-top: 0.4rem; font-weight: 600; color: var(--doge-text-secondary); }

/* Reveal + misc */
.reveal { opacity: 0; transform: translateY(6px); transition: all .35s ease; }
.reveal.visible { opacity: 1; transform: none; }

.doge-data-disclaimer {
  background: rgba(244,183,49,0.08); border: 1px solid rgba(244,183,49,0.22);
  border-radius: 0.45rem; padding: 0.8rem 1.1rem; font-size: 0.8rem;
  color: var(--doge-text-secondary); line-height: 1.5; margin-bottom: 1.1rem;
}
.doge-data-disclaimer strong { color: var(--doge-text-primary); }

/* Responsive */
@media (max-width: 640px) {
  .doge-hero { padding-top: 2.6rem; }
  .page { padding-top: 1.1rem; }
  h1 { font-size: 1.7rem; }
  .doge-buckets-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   TEXTBOOK READABILITY & ELEGANT PROFESSIONAL FORMATTING PASS (Phase 1)
   Remediation for "blocks of grey text": crowded dense walls, low-contrast
   secondary (#8b949e) on dark for long body copy, insufficient leading + para
   margins, inconsistent hierarchy/breathing on most content pages.
   Goals (user + web design expert): elegant textbook/financial-resource feel
   (like high-quality reference or educational site) — generous leading (1.78+),
   comfortable brighter body text for longform reading, more vertical air
   between paras/sections without losing density or affiliate space, strong
   scannable hierarchy, visual breakers (callouts, rules, blockquotes) entry
   points. All prior spacing/expandables/affs/callouts preserved. Dark theme
   intact. Base UI elements keep secondary grey; long prose content lifts.
   ============================================================ */
.page { padding: 2.6rem 1.25rem 4.25rem; }
.subsection { margin-top: 1.7rem; }
h2 { margin-bottom: 0.75rem; }
.callout { padding: 1.1rem 1.25rem; margin-bottom: 1.1rem; }
.affiliate-card, .pull-stat, .aff-card { padding: 0.95rem 1.05rem; margin-bottom: 0.95rem; }

/* Base content pages: lift long-form body out of "grey blocks" */
.page p,
.page li,
.subsection p,
.page ul,
.page ol {
  color: #e5e7eb;
  line-height: 1.78;
  margin-bottom: 1.05rem;
}

/* Stronger prose wrappers (already excellent; ensure they dominate for textbook) */
.prose p,
.article-prose p,
.subsection .prose p,
.subsection .article-prose p {
  margin-bottom: 1.1rem;
  line-height: 1.82;
  color: #f0f6fc;
}

.section-break { margin: 2rem 0; }
/* end Phase 1 textbook pass */

/* Additional bulletin/chart breathing for cleaner textbook layout */
.doge-bulletin-body p { margin-bottom: 0.85rem; }
.my-3 { margin: 0.8rem 0; }

/* ===== EXPANDABLES & COMPACT INTERACTIVITY (pure static <details>, no JS) =====
   Perfect for technical depth, 2026 notes, step lists, specs, commands.
   Keeps top-level view scannable while giving users control. Doge yellow accents.
   Use: <details class="expandable"><summary>Label</summary><div class="expand-body">...</div></details>
*/
details.expandable {
  border: 1px solid var(--doge-border);
  border-radius: var(--doge-radius);
  background: var(--doge-bg-card);
  margin: 1.15rem 0;
  overflow: hidden;
}
details.expandable > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.72rem 1rem;
  font-weight: 600;
  color: var(--doge-accent);
  background: rgba(244,183,49,0.055);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.1s ease;
  font-size: 0.95rem;
}
details.expandable > summary:hover { background: rgba(244,183,49,0.11); }
details.expandable > summary::-webkit-details-marker { display: none; }
details.expandable[open] > summary {
  border-bottom: 1px solid var(--doge-border);
  background: rgba(244,183,49,0.09);
}
details.expandable .expand-body {
  padding: 0.9rem 1rem 1.05rem;
  color: var(--doge-text-secondary);
  font-size: 0.93rem;
  line-height: 1.58;
}
details.expandable .expand-body p { margin-bottom: 0.72rem; }
details.expandable .expand-body ul, details.expandable .expand-body ol { margin: 0.45rem 0 0.7rem 1.15rem; }
details.expandable .expand-body li { margin-bottom: 0.32rem; }

/* Compact variant for very tight lists or command blocks */
details.expandable.compact > summary { padding: 0.55rem 0.9rem; font-size: 0.88rem; }
details.expandable.compact .expand-body { padding: 0.6rem 0.9rem 0.75rem; font-size: 0.87rem; }

/* ===== OUTLINE FORMAT ENHANCEMENTS (for fuller subpages) =====
   Stronger visual structure, numbered steps, checklists, dedicated affiliate blocks
   to create scannable "textbook outline" feel and plenty of room for links/ads/detail.
*/
.outline-header {
  font-family: var(--doge-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--doge-accent);
  margin: 1.6rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--doge-border);
}
.outline-step {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-left: 0.1rem;
}
.outline-step-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  background: var(--doge-accent);
  color: #111827;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.outline-step-body { flex: 1; color: var(--doge-text-secondary); line-height: 1.55; }
.outline-step-body strong { color: #fcd34d; }

.checklist {
  list-style: none;
  padding-left: 0.1rem;
}
.checklist li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.55rem;
  color: var(--doge-text-secondary);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--doge-accent);
  font-weight: 700;
}

.affiliate-block {
  background: var(--doge-bg-card);
  border: 1px solid var(--doge-border);
  border-radius: var(--doge-radius);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
}
.affiliate-block h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  color: var(--doge-accent);
}
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}
.affiliate-grid .aff-card { margin: 0; }

.key-points {
  background: rgba(244,183,49,0.06);
  border-left: 4px solid var(--doge-accent);
  padding: 0.85rem 1rem;
  margin: 1.1rem 0;
  border-radius: 0 0.375rem 0.375rem 0;
}
.key-points ul { margin: 0.4rem 0 0; }

/* ============================================================
   RICH TEXTBOOK-STYLE CONTENT TEMPLATE (dark theme, high contrast)
   Lots of visual hierarchy, bold, size variation, color, emojis,
   callouts, interjections, graphic breakups. Fully dark + accessible.
   ============================================================ */

/* Core prose — dark, comfortable, very legible */
.article-prose,
.prose {
  max-width: 72ch;
  margin: 0 auto;
  font-size: 1.03rem;
  line-height: 1.78;
  color: #f0f6fc;
}

/* Much stronger visual formatting & hierarchy */
.article-prose h2,
.prose h2 {
  font-family: var(--doge-font-display);
  font-size: 1.58rem;
  font-weight: 800;
  margin-top: 2.3rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--doge-accent);
  color: var(--doge-text-primary);
  letter-spacing: -0.015em;
}
.article-prose h3,
.prose h3 {
  font-family: var(--doge-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.7rem;
  margin-bottom: 0.4rem;
  color: #fcd34d;
}
.article-prose h4,
.prose h4 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-top: 1.3rem;
  margin-bottom: 0.3rem;
  color: #e5e7eb;
}

/* Lead text, bold emphasis, color interjections */
.article-prose .lead,
.prose .lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e7eb;
}
.article-prose strong,
.prose strong { 
  color: #fcd34d; 
  font-weight: 700; 
}
.article-prose em,
.prose em {
  color: #c0c0c0;
  font-style: italic;
}

/* Lists with more color & emoji friendliness */
.article-prose ul,
.prose ul,
.article-prose ol,
.prose ol {
  margin: 0.9rem 0 1.05rem 1.35rem;
}
.article-prose li,
.prose li {
  margin-bottom: 0.42rem;
}
.article-prose ul li::marker {
  color: var(--doge-accent);
  font-size: 1.1em;
}

/* Visual graphic breakups & section dividers */
.section-break {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--doge-accent), transparent);
  margin: 1.7rem 0;
  opacity: 0.6;
}
.section-break.emoji {
  height: auto;
  background: none;
  text-align: center;
  font-size: 1.25rem;
  margin: 1.5rem 0;
  color: var(--doge-accent);
  opacity: 0.65;
}
.color-divider {
  height: 1px;
  background: var(--doge-border);
  margin: 1.4rem 0;
}

/* Blockquotes with color */
.article-prose blockquote,
.prose blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1.15rem 0.85rem 1.3rem;
  border-left: 5px solid var(--doge-accent);
  background: rgba(244,183,49,0.08);
  color: #e5e7eb;
}

/* Tables with color accents */
.article-prose table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.05rem 0;
  font-size: 0.9rem;
  background: var(--doge-bg-card);
  border: 1px solid var(--doge-border);
}
.article-prose th,
.prose th {
  background: var(--doge-bg-secondary);
  font-weight: 700;
  color: var(--doge-accent);
  border: 1px solid var(--doge-border);
}
.article-prose td,
.prose td {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--doge-border);
  color: #e5e7eb;
}

/* Product cards kept rich */
.featured-product,
.product-card {
  display: flex;
  gap: 0.85rem;
  background: var(--doge-bg-card);
  border: 1px solid var(--doge-border);
  border-radius: var(--doge-radius);
  padding: 0.8rem 0.95rem;
  margin: 0.85rem 0;
  align-items: flex-start;
}
.featured-product .fp-kicker,
.product-card .pc-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--doge-accent);
  font-family: var(--doge-font-display);
  font-weight: 600;
}

/* Pull stats colorful — support both <ul class="pull-stat"> and bare children */
.pull-stat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 0.7rem 0.9rem;
  background: var(--doge-bg-secondary);
  border: 1px solid var(--doge-border);
  border-radius: var(--doge-radius);
  list-style: none;
}
.pull-stat > li {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pull-stat .ps-num {
  font-family: var(--doge-font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--doge-accent);
}
.pull-stat .ps-label {
  font-size: 0.72rem;
  color: var(--doge-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Media + utilities (Imagine-ready) */
.media-block {
  margin: 1.05rem 0 1.5rem;
  border-radius: var(--doge-radius);
  overflow: hidden;
  border: 1px solid var(--doge-border);
  background: var(--doge-bg-secondary);
}
.media-block img,
.media-block svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 0;
  border-radius: 0;
}
.media-block.hero { margin-top: 0; }
.media-block figcaption,
.img-figure figcaption {
  font-size: 0.85rem;
  color: var(--doge-text-muted);
  padding: 0.5rem 0.75rem;
}
.img-sidebar {
  float: right;
  max-width: 14rem;
  margin: 0 0 1rem 1rem;
}
@media (max-width: 720px) {
  .img-sidebar { float: none; max-width: 100%; margin: 0 0 1rem; }
}
.mt-10 { margin-top: 2.4rem; }

/* Skip link + focus (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 1000;
  background: var(--doge-accent);
  color: #111827;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 0.375rem;
}
.skip-link:focus {
  left: 0.75rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--doge-accent);
  outline-offset: 2px;
}

/* ===== NEWSWATCH — newsroom shell (sidebar + independent scroll reader) ===== */
.nw-shell {
  --nw-sidebar-w: 18.5rem;
  --nw-chrome-h: 7.5rem; /* approximate sticky header offset */
  max-width: var(--doge-max-width);
  margin: 0 auto;
  padding: 0 0 1rem;
}
.nw-shell-header {
  padding: 1.15rem 1rem 0.85rem;
  border-bottom: 1px solid var(--doge-border);
  background: var(--doge-bg-primary);
}
.nw-shell-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
}
.nw-shell-header .nw-dek {
  margin: 0;
  max-width: 46rem;
  font-size: 0.92rem;
  color: var(--doge-text-secondary);
}
.nw-shell-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--doge-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nw-layout {
  display: grid;
  grid-template-columns: var(--nw-sidebar-w) minmax(0, 1fr);
  min-height: calc(100vh - var(--nw-chrome-h));
  max-height: calc(100vh - var(--nw-chrome-h));
  border-bottom: 1px solid var(--doge-border);
}
.nw-sidebar {
  border-right: 1px solid var(--doge-border);
  background: var(--doge-bg-secondary);
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
}
.nw-sidebar-head {
  padding: 0.75rem 0.85rem 0.5rem;
  border-bottom: 1px solid var(--doge-border);
  flex-shrink: 0;
}
.nw-sidebar-head h2 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--doge-accent);
}
.nw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.nw-filter {
  appearance: none;
  border: 1px solid var(--doge-border);
  background: var(--doge-bg-primary);
  color: var(--doge-text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--doge-font-body);
}
.nw-filter:hover,
.nw-filter[aria-pressed="true"] {
  border-color: var(--doge-accent);
  color: var(--doge-accent);
  background: rgba(244, 183, 49, 0.08);
}
.nw-feed {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.nw-feed-item {
  margin: 0;
  border-bottom: 1px solid rgba(48, 54, 61, 0.65);
}
.nw-feed-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: background 0.1s ease, border-color 0.1s ease;
}
.nw-feed-btn:hover {
  background: rgba(244, 183, 49, 0.06);
}
.nw-feed-btn.is-active,
.nw-feed-btn[aria-current="true"] {
  background: rgba(244, 183, 49, 0.1);
  border-left-color: var(--doge-accent);
}
.nw-feed-date {
  display: block;
  font-family: var(--doge-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--doge-accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}
.nw-feed-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--doge-text-primary);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.nw-feed-class {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--doge-text-muted);
}
.nw-sidebar-foot {
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--doge-border);
  font-size: 0.75rem;
  color: var(--doge-text-secondary);
}
.nw-sidebar-foot a {
  color: var(--doge-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nw-reader {
  min-width: 0;
  min-height: 0;
  max-height: inherit;
  overflow-y: auto;
  background: var(--doge-bg-primary);
  -webkit-overflow-scrolling: touch;
  padding: 1.15rem 1.25rem 2.5rem;
}
.nw-reader-inner {
  max-width: 42rem;
  margin: 0 auto;
}
.nw-reader .nw-entry {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 2rem;
  scroll-margin-top: 1rem;
}
.nw-reader .nw-entry + .nw-entry {
  padding-top: 1.5rem;
  border-top: 1px solid var(--doge-border);
}
.nw-entry header,
.news-item header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.55rem;
}
.nw-date {
  font-family: var(--doge-font-display);
  font-weight: 700;
  color: var(--doge-accent);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.nw-asof {
  font-size: 0.72rem;
  color: var(--doge-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nw-class {
  font-size: 0.7rem;
  font-weight: 600;
  color: #0d1117;
  background: var(--doge-accent);
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nw-title {
  font-size: 1.35rem;
  margin: 0.15rem 0 0.75rem;
  color: var(--doge-text-primary);
  line-height: 1.2;
}
.nw-lede {
  font-size: 1.02rem;
  color: var(--doge-text-primary);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.nw-utility {
  border-left: 3px solid var(--doge-accent);
  padding: 0.55rem 0 0.55rem 0.85rem;
  margin: 0.85rem 0;
  color: var(--doge-text-secondary);
  background: rgba(244, 183, 49, 0.05);
  border-radius: 0 0.35rem 0.35rem 0;
}
.nw-utility strong {
  color: #fcd34d;
}
.nw-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
}
.nw-links a {
  color: var(--doge-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nw-watchlist {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--doge-border);
}
.nw-watchlist h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

/* Stack on small screens: feed first (capped height), reader second */
@media (max-width: 860px) {
  .nw-layout {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: 0;
  }
  .nw-sidebar {
    max-height: 42vh;
    border-right: 0;
    border-bottom: 1px solid var(--doge-border);
  }
  .nw-reader {
    max-height: none;
    min-height: 50vh;
  }
}

/* Compact cards when used outside the shell */
.nw-entry.card,
.news-item {
  border: 1px solid var(--doge-border);
  background: var(--doge-bg-secondary);
  border-radius: var(--doge-radius);
  padding: 1.1rem 1.2rem 1rem;
  margin-bottom: 1rem;
}

/* Tool cards (placeholder surface until tools land) */
.tool-card {
  display: block;
  background: var(--doge-bg-card);
  border: 1px solid var(--doge-border);
  border-radius: var(--doge-radius);
  padding: 1rem 1.15rem;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.tool-card:hover {
  border-color: var(--doge-accent);
  transform: translateY(-1px);
}
.tool-card h3 {
  margin-top: 0;
  color: var(--doge-text-primary);
}
.tool-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* Article measure for long-form comfort + centered safe zone */
.page .article-prose {
  max-width: 48rem;
}
main.page {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
main.page.wide,
.page.wide {
  max-width: var(--doge-max-width);
}
/* Reading column never bleeds edge-to-edge on ultrawide */
.page {
  box-sizing: border-box;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}
.article-prose {
  color: var(--doge-text-secondary);
}
.article-prose h2,
.article-prose h3 {
  color: var(--doge-text-primary);
}
.article-prose a {
  color: var(--doge-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Buttons must not inherit prose link yellow (illegible on yellow CTA fill) */
.article-prose a.amazon-cta,
.article-prose a.doge-cta-primary,
a.amazon-cta {
  color: #111827 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}
.article-prose a.amazon-cta:hover,
a.amazon-cta:hover {
  color: #111827 !important;
  text-decoration: none !important;
  background: var(--doge-yellow-dark);
}
.article-prose a.amazon-cta.secondary,
a.amazon-cta.secondary {
  color: var(--doge-accent) !important;
  background: transparent !important;
  border: 1px solid var(--doge-accent);
  text-decoration: none !important;
}
.article-prose a.amazon-cta.secondary:hover,
a.amazon-cta.secondary:hover {
  color: #fcd34d !important;
  background: rgba(244, 183, 49, 0.12) !important;
}
/* Inline aff links stay gold on dark cards — not solid buttons */
.aff-card-body a:not(.amazon-cta) {
  color: #fcd34d !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  border-bottom: none;
}
/* Featured product links */
a.fp-link {
  color: #fcd34d !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Callout body contrast on tinted backgrounds */
.callout,
.callout--highlight,
.callout--note,
.callout--tip,
.callout--interject {
  color: #e8edf4;
}
.callout p,
.callout--highlight p,
.callout--note p,
.callout--tip p {
  color: #e8edf4;
}
.callout--highlight strong,
.callout strong {
  color: #fde68a;
}
/* Tables: ensure cell text readable */
.article-prose td,
.article-prose th,
table td,
table th {
  color: var(--doge-text-primary);
}
.article-prose td {
  color: #d1d5db;
}
/* Pull-stat labels */
.pull-stat .ps-label,
.pull-stat li {
  color: #c9d1d9;
}
/* Muted captions: never pure gray-on-dark with 10px + opacity */
.text-\[10px\],
.text-xs {
  color: #9ca3af !important;
  opacity: 1 !important;
}

/* Footer contrast lift */
.site-footer,
footer.site-footer,
.footer-legal {
  color: #9ca3af;
}
.footer-legal,
footer .text-\[10px\] {
  font-size: 0.75rem !important;
  opacity: 1 !important;
  line-height: 1.5;
}

/* Data disclaimer chip */
.data-note {
  font-size: 0.85rem;
  color: var(--doge-text-secondary);
  border: 1px solid var(--doge-border);
  background: rgba(244, 183, 49, 0.06);
  border-radius: var(--doge-radius);
  padding: 0.65rem 0.85rem;
  margin: 1rem 0;
}

/* Extra color & emoji helpers for pages */
.emoji { font-style: normal; }
.more-color { color: var(--doge-orange); font-weight: 600; }

/* Technical content support */
pre, code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Menlo", monospace;
  background: #161b22;
  color: #c9d1d9;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}
pre {
  padding: 0.9rem 1rem;
  margin: 0.9rem 0;
  overflow-x: auto;
  border: 1px solid var(--doge-border);
}
.tech-fact {
  background: rgba(96,165,250,0.08);
  border-left: 3px solid #60a5fa;
  padding: 0.5rem 0.8rem;
  margin: 0.6rem 0;
  font-size: 0.95rem;
}

/* Dropdown navigation styles for categories */
.nav-desktop .nav-list {
  display: flex;
  list-style: none;
  gap: 0.1rem;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-desktop .nav-item {
  position: relative;
}
.nav-desktop .nav-item > a {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--doge-text-secondary);
  border-radius: 0.375rem;
  transition: all 0.1s ease;
  white-space: nowrap;
  display: block;
}
.nav-desktop .nav-item > a:hover,
.nav-desktop .nav-item > a.active {
  color: var(--doge-text-primary);
  background: var(--doge-bg-secondary);
}
.nav-desktop .dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 200px;
  background: var(--doge-bg-secondary);
  border: 1px solid var(--doge-border);
  border-radius: 0.375rem;
  padding: 0.35rem 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  /* Keep hover path open while moving pointer into menu */
  margin-top: 0;
}
/* Invisible bridge so the pointer never leaves :hover between trigger and menu */
.nav-desktop .dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.65rem;
  height: 0.75rem;
}
.nav-desktop .nav-item:hover > .dropdown,
.nav-desktop .nav-item:focus-within > .dropdown {
  display: block;
}
.nav-desktop .dropdown li {
  list-style: none;
}
.nav-desktop .dropdown a {
  display: block;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  color: var(--doge-text-secondary);
  white-space: nowrap;
}
.nav-desktop .dropdown a:hover {
  color: var(--doge-accent);
  background: var(--doge-bg-primary);
}
.nav-desktop .dropdown .dropdown-header {
  padding: 0.2rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--doge-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--doge-border);
  margin-bottom: 0.2rem;
}

/* Bitcoin47-style aff-card for prominent Amazon links - improved fluid & appealing */
.aff-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--doge-bg-card);
  border: 1px solid var(--doge-border);
  border-radius: var(--doge-radius);
  padding: 0.85rem 1.1rem;
  margin: 0.9rem 0;
  position: relative;
  transition: transform 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease;
}
.aff-card:hover {
  transform: translateY(-1px);
  border-color: var(--doge-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.aff-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
  line-height: 1;
}
.aff-card-body {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
}
.aff-card-body a {
  color: #F4B731 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-bottom: 1px dotted #F4B731;
  padding-bottom: 1px;
}
.aff-card-body a:hover {
  border-bottom-style: solid;
}
.aff-card-body em {
  font-style: normal;
  color: #e5e7eb;
}
.aff-card-badge {
  position: absolute;
  top: -0.35rem;
  right: 0.85rem;
  background: var(--doge-accent);
  color: #111827;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.08rem 0.45rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Fluid amazon ctas - more appealing, consistent */
.amazon-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--doge-accent);
  color: #111827;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.48rem 0.95rem;
  border-radius: 0.375rem;
  text-decoration: none;
  margin: 0.35rem 0.15rem 0.35rem 0;
  transition: all 0.1s ease;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.07);
}
.amazon-cta:hover {
  background: var(--doge-yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.amazon-cta.secondary {
  background: transparent;
  color: var(--doge-accent);
  border: 1px solid var(--doge-accent);
  padding: 0.42rem 0.85rem;
}
.amazon-cta.secondary:hover {
  background: rgba(244,183,49,0.1);
  color: #F4B731;
  border-color: #F4B731;
}

/* Additional visual interest: section cards, more callout polish, emoji bullets */
.section-card {
  background: var(--doge-bg-secondary);
  border: 1px solid var(--doge-border);
  border-radius: var(--doge-radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.emoji-bullet::before {
  content: "🐶 ";
  color: var(--doge-accent);
}
.callout {
  background: rgba(244,183,49,0.10);
  border-left: 5px solid var(--doge-accent);
  padding: 0.95rem 1.15rem;
  margin: 1.15rem 0;
  border-radius: 0 0.375rem 0.375rem 0;
  color: #f5f5f5;
}
.callout h3, .callout strong { color: #fcd34d; margin-top: 0; font-size: 1rem; }
/* Page-end navigation (replaces crammed margin-left CTA rows) */
.page-end-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--doge-border);
}
.page-end-nav .amazon-cta {
  margin: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.35;
}
/* Primary CTA must stay dark-on-yellow even inside .article-prose */
.page-end-nav a.amazon-cta:not(.secondary),
.article-prose .page-end-nav a.amazon-cta:not(.secondary),
main.page .page-end-nav a.amazon-cta:not(.secondary) {
  color: #111827 !important;
  background: var(--doge-accent) !important;
  border: 1px solid var(--doge-accent) !important;
  text-decoration: none !important;
}
.page-end-nav a.amazon-cta:not(.secondary):hover,
.article-prose .page-end-nav a.amazon-cta:not(.secondary):hover {
  color: #111827 !important;
  background: var(--doge-yellow-dark) !important;
  border-color: var(--doge-yellow-dark) !important;
}
.page-end-nav a.amazon-cta.secondary,
.article-prose .page-end-nav a.amazon-cta.secondary {
  color: var(--doge-accent) !important;
  background: transparent !important;
  border: 1px solid var(--doge-accent) !important;
}
.aff-card-body a {
  overflow-wrap: anywhere;
}
main.page {
  padding-bottom: 3.5rem;
}
/* Footer never clips; keep safe horizontal pad */
.site-footer {
  overflow: visible;
}
.footer-inner {
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Constrained content shell (replaces dead Tailwind max-w / mx-auto / px-*) */
.doge-shell {
  max-width: var(--doge-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  width: 100%;
  box-sizing: border-box;
}
.doge-shell--narrow {
  max-width: 42rem;
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--doge-text-muted);
}
.doge-data-wrap {
  max-width: var(--doge-max-width);
  margin: 0 auto;
  padding: 0 max(1.25rem, env(safe-area-inset-left)) 0 max(1.25rem, env(safe-area-inset-right));
  box-sizing: border-box;
  width: 100%;
}
.doge-data-chart-container {
  max-width: 100%;
  overflow: hidden;
}
.doge-data-chart-container canvas {
  max-width: 100% !important;
}

/* Minimal utility shims (replaces Tailwind CDN) */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; min-width: 0; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.pr-8 { padding-right: 2rem; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.grid { display: grid; }

/* Sidebar art: capped height so it doesn't become a tall “bar” */
.img-float-shiba {
  float: right;
  clear: right;
  width: min(13rem, 34%);
  max-height: 16rem;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 20%;
  margin: 0.1rem 0 1.1rem 1.35rem;
  border-radius: var(--doge-radius);
  border: 1px solid var(--doge-border);
  background: var(--doge-bg-secondary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.article-prose::after,
.page::after {
  content: "";
  display: table;
  clear: both;
}
@media (max-width: 720px) {
  .img-float-shiba {
    float: none;
    display: block;
    width: min(14rem, 70%);
    max-height: 14rem;
    margin: 0 auto 1.15rem;
  }
}

.nw-shell-banner {
  display: block;
  width: 100%;
  max-height: 7.5rem;
  object-fit: cover;
  border-radius: var(--doge-radius);
  border: 1px solid var(--doge-border);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}
