:root {
  --bg-paper: #F7F6F2;
  --bg-card: #FFFFFF;
  --bg-subtle: #EFECE6;
  --bg-navy: #0F172A;
  --bg-navy-light: #1E293B;
  --text-main: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --border-color: #E2DDD4;
  --border-strong: #111827;
  --accent-crimson: #991B1B;
  --accent-crimson-hover: #7F1D1D;
  --accent-gold: #B45309;
  --accent-gold-bg: #FEF3C7;
  --accent-vipps: #FF5B24;
  --accent-vipps-hover: #E04814;
  --accent-green: #15803D;
  --accent-fb: #1877F2;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
}

body.dark-mode {
  --bg-paper: #0B0F17;
  --bg-card: #121926;
  --bg-subtle: #1A2334;
  --text-main: #F3F4F6;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --border-color: #243047;
  --border-strong: #9CA3AF;
  --accent-crimson: #EF4444;
  --accent-gold-bg: #3B2806;
}

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

body {
  background-color: var(--bg-paper);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
}

/* 1. LIVE MACRO & ENERGY TICKER BAR */
.macro-ticker-bar {
  background-color: #090D16;
  color: #E5E7EB;
  font-family: var(--font-mono);
  font-size: 11px;
  border-bottom: 1px solid #1E293B;
  padding: 6px 0;
}

.macro-ticker-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

@keyframes tickerMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 6px #10B981;
  }
  50% {
    opacity: 0.45;
    transform: scale(0.88);
    box-shadow: 0 0 2px #10B981;
  }
}

@keyframes sheepFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(-1.5deg);
  }
}

.ticker-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  border: 1px solid #374151;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: livePulse 2.4s ease-in-out infinite;
}

.ticker-label {
  color: #10B981;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticker-items {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: tickerMarquee 42s linear infinite;
}

.ticker-items:hover .ticker-track,
.ticker-items:active .ticker-track {
  animation-play-state: paused;
}

.ticker-sep {
  color: #334155;
  font-weight: 700;
  user-select: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ticker-symbol {
  color: #9CA3AF;
  font-weight: 600;
}

.ticker-val {
  color: #F9FAFB;
  font-weight: 600;
}

.ticker-change.up {
  color: #34D399;
}

.ticker-change.down {
  color: #F87171;
}

/* 2. COMPACT HEADER & BRAND SWITCHER */
.site-header {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-top-bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}

.brand-switcher-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.switcher-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11.5px;
  margin-right: 2px;
}

.brand-switch-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.brand-switch-btn .domain-hint {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 10.5px;
}

.brand-switch-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

body.dark-mode .brand-switch-btn.active {
  background: #F59E0B;
  color: #090D16;
  border-color: #F59E0B;
}

.brand-switch-btn.active .domain-hint {
  color: #FBBF24;
}

body.dark-mode .brand-switch-btn.active .domain-hint {
  color: #1F2937;
}

.header-utility-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-compact {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
}

.btn-compact:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

/* CLEAN MASTHEAD */
.masthead-clean {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--text-main);
}

.topbar-sheep-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

.masthead-brand-left {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
}

.masthead-sheep-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  animation: sheepFloat 5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.masthead-brand-left:hover .masthead-sheep-logo {
  transform: scale(1.05) rotate(-3deg);
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-sheep-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.masthead-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.masthead-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-main);
}

.masthead-domain-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-crimson);
  background: var(--bg-subtle);
  padding: 2px 7px;
  border-radius: 4px;
}

.masthead-tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.masthead-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 12.5px;
  width: 190px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 12.5px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-vipps {
  background-color: var(--accent-vipps);
  color: #fff;
}

.btn-vipps:hover {
  background-color: var(--accent-vipps-hover);
}

.btn-pluss {
  background-color: var(--bg-navy);
  color: #FDE68A;
  border: 1px solid #B45309;
}

.btn-crimson {
  background-color: var(--accent-crimson);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
}

.btn-fb {
  background-color: var(--accent-fb);
  color: #fff;
}

/* NAV BAR */
.nav-bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  border-top: 1px solid var(--border-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-btn {
  background: none;
  border: none;
  padding: 8px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text-main);
}

.nav-btn.active {
  color: var(--accent-crimson);
  border-bottom-color: var(--accent-crimson);
}

.nav-btn.nav-special {
  color: var(--accent-gold);
}

/* MAIN CONTAINER */
.main-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

/* ZEROHEDGE-STYLE READER-FRIENDLY FEED LAYOUT */
.zh-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 28px;
  justify-content: center;
  align-items: start;
}

.zh-layout.focus-single-col {
  grid-template-columns: minmax(0, 780px);
}

.zh-layout.focus-single-col .zh-right-rail {
  display: none;
}

.zh-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.zh-feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zh-feed-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

body.dark-mode .zh-feed-card:hover {
  border-color: #3B4D6B;
}

.zh-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.zh-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-crimson);
}

.source-pill {
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.pluss-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0F172A;
  color: #FBBF24;
  border: 1px solid #D97706;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zh-time-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.zh-card-headline {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.24;
  color: var(--text-main);
  margin-bottom: 8px;
  cursor: pointer;
}

.zh-card-headline:hover {
  color: var(--accent-crimson);
}

.zh-card-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

/* 1 VISUAL / CHART PER STORY IN FEED */
.zh-card-visual-wrap {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #0B1325;
  cursor: pointer;
}

.zh-card-visual {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.card-visual-svg,
.feed-chart-box svg,
.article-chart-box svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: hidden;
}

.zh-card-caption {
  background: var(--bg-subtle);
  padding: 6px 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* INLINE EXPANDED CONTENT IN FEED */
.zh-inline-expanded {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.norwegian-angle-callout {
  background: var(--bg-subtle);
  border-left: 3.5px solid var(--accent-crimson);
  padding: 12px 16px;
  border-radius: 0 5px 5px 0;
  margin-bottom: 16px;
  font-size: 14px;
}

.norwegian-angle-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-crimson);
  margin-bottom: 4px;
}

.zh-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

.zh-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zh-action-link {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.zh-action-link:hover {
  border-color: var(--accent-crimson);
  color: var(--accent-crimson);
}

/* COMPACT RIGHT RAIL */
.zh-right-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 118px;
}

.rail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.most-read-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.most-read-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.most-read-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.most-read-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-crimson);
  background: var(--bg-subtle);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.most-read-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

.most-read-item:hover .most-read-title {
  color: var(--accent-crimson);
}

/* ARTICLE READER VIEW */
.article-reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 28px;
  justify-content: center;
  align-items: start;
}

.article-main-paper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px 34px;
  box-shadow: var(--shadow-sm);
}

.back-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.back-link-btn:hover {
  color: var(--accent-crimson);
}

.reader-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  margin: 8px 0 12px;
}

.reader-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.reader-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-size: 12.5px;
}

.reader-visual-box {
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.reader-visual-art {
  width: 100%;
  height: auto;
  background: #0F172A;
  overflow: hidden;
}

.reader-caption {
  padding: 8px 14px;
  background: var(--bg-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.reader-body-text {
  font-family: var(--font-body-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-main);
}

.reader-body-text p {
  margin-bottom: 18px;
}

/* FACEBOOK ASSISTANT & VIPPS WIDGETS */
.fb-assistant-card {
  background: #F0F7FF;
  border: 1.5px solid #93C5FD;
  border-radius: 7px;
  padding: 16px 18px;
  margin: 22px 0;
}

body.dark-mode .fb-assistant-card {
  background: #112239;
  border-color: #2563EB;
}

.fb-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fb-assistant-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #1E40AF;
}

body.dark-mode .fb-assistant-title {
  color: #93C5FD;
}

.fb-textarea-preview {
  width: 100%;
  min-height: 130px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #BFDBFE;
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
}

.pluss-paywall-card {
  margin: 22px 0;
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  color: #F9FAFB;
  border: 2px solid #D97706;
  border-radius: 8px;
  padding: 24px;
}

.paywall-badge {
  display: inline-block;
  background: #D97706;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.paywall-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.paywall-perks {
  list-style: none;
  margin: 12px 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 13px;
  color: #E2E8F0;
}

.paywall-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vipps-support-card {
  margin-top: 24px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--accent-vipps);
  border-radius: 8px;
  padding: 18px 20px;
}

.vipps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.vipps-brand-pill {
  background: var(--accent-vipps);
  color: #fff;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 12px;
}

.amount-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.amount-pill {
  padding: 7px 14px;
  border-radius: 5px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  font-size: 13px;
}

.amount-pill.selected {
  border-color: var(--accent-vipps);
  background: var(--accent-vipps);
  color: #fff;
}

/* MONETIZATION & CMS GRIDS */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0 30px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured-tier {
  border: 2px solid #D97706;
}

.tier-popular-ribbon {
  position: absolute;
  top: -11px;
  right: 16px;
  background: #D97706;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 10px;
}

.tier-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.tier-price {
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0 4px;
}

.tier-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.tier-features {
  list-style: none;
  margin: 14px 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.revenue-calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 28px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  align-items: center;
}

.slider-group {
  margin-bottom: 14px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.slider-input {
  width: 100%;
  accent-color: var(--accent-crimson);
}

.revenue-result-card {
  background: #0F172A;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
}

.cms-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  align-items: start;
}

.cms-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 22px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 8px 11px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background: var(--bg-paper);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
}

.form-textarea {
  min-height: 110px;
  line-height: 1.5;
  resize: vertical;
}

.preset-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toast-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0F172A;
  color: #fff;
  border-left: 4px solid #34D399;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
  display: none;
}

.site-footer {
  background: #090D16;
  color: #D1D5DB;
  padding: 36px 16px 28px;
  border-top: 2px solid var(--accent-crimson);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
}

@media (max-width: 960px) {
  .zh-layout,
  .article-reader-layout,
  .pricing-grid,
  .calc-grid,
  .cms-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}


/* INLINE SOURCE LINKS & PRIMARY SOURCES FOOTER BOX */
.inline-source-link,
.reader-body-text a {
  color: var(--accent-crimson);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.inline-source-link:hover,
.reader-body-text a:hover {
  background-color: rgba(153, 27, 27, 0.08);
  opacity: 0.9;
}

body.dark-mode .inline-source-link,
body.dark-mode .reader-body-text a {
  color: #F87171;
}

.primary-sources-box {
  background: var(--bg-paper);
  border: 1px solid var(--border-color);
  border-left: 3.5px solid #0F172A;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
}

body.dark-mode .primary-sources-box {
  border-left-color: #94A3B8;
}

.primary-sources-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.primary-sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.primary-sources-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.4;
}

.primary-sources-list a {
  color: var(--accent-crimson);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.dark-mode .primary-sources-list a {
  color: #F87171;
}


@media (max-width: 768px) {
  .masthead-clean {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .masthead-right-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-input {
    width: 100%;
  }

  .zh-feed-card {
    padding: 16px;
  }

  .zh-card-headline {
    font-size: 20px;
  }

  .article-main-paper {
    padding: 18px 16px;
  }

  .reader-title {
    font-size: 24px;
  }

  .zh-card-visual-wrap,
  .reader-visual-box,
  .feed-chart-box,
  .article-chart-box {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .zh-card-visual svg,
  .reader-visual-art svg,
  .card-visual-svg {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    overflow: hidden;
  }

  .zh-card-caption,
  .reader-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 10px;
  }

  .paywall-perks {
    grid-template-columns: 1fr;
  }
}
