/* 
========================================================================
VIBECODERJOURNAL - PRINT-EDITORIAL DESIGN SYSTEM
========================================================================
Table of Contents:
1. DESIGN TOKENS & SYSTEM VARIABLES (Section B)
2. FLUID TYPOGRAPHY SCALE (Section B)
3. RESET & CANVAS BASELINE (Section A)
4. PRINT-EDITORIAL STRUCTURAL DEVICES (Section C)
5. HEADER & NAVIGATION
6. FOOTER
7. INTERACTIVE CONTROLS (Buttons, Forms) (Section A)
8. BADGES, EYEBROWS & STATUS MARKERS (Section B & C)
9. ARTICLE CARD VARIANTS (Section A & C)
10. EDITORIAL COMPONENT WIDGETS
    - Leaderboards & Tables (Section B & C)
    - Key Takeaways Box (Section C)
    - Pull Quotes (Section C)
    - Author Biography Card (Section C)
    - Folio & Datelines (Section C)
11. PRINT STYLESHEET (@media print) (Section C)
========================================================================
*/

/* 1. DESIGN TOKENS & SYSTEM VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&display=swap');

:root {
  /* Fonts */
  --font-headline: 'Archivo', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale (Strict 8px Grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;

  /* Image Aspect Ratios */
  --ratio-hero: 16 / 9;
  --ratio-card: 3 / 2;
  --ratio-portrait: 4 / 5;
  --ratio-thumb: 1 / 1;

  /* Layered Rules / Borders */
  --rule-hair: 1px solid rgba(14, 14, 16, 0.08);   /* 8% black internal separator */
  --rule-mid: 1px solid rgba(14, 14, 16, 0.20);    /* 20% black section boundary */
  --rule-strong: 2px solid #0e0e10;                /* Structural break / masthead */

  /* Motion (Fast & Restrained, Capped under 200ms) */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;

  /* Colors (Light Canvas Baseline) */
  --bg-color: #ffffff;
  --bg-offset: #f7f7f8;
  --text-color: #0e0e10;
  --text-color-muted: #626266;

  /* Brand Accents (Extracted from Logo) */
  --color-primary: #00825a;        /* Green dot 161° hue */
  --color-accent-hover: #006042;
  --color-secondary: #e1523d;      /* Red-orange dot 8° hue */

  /* Score Color Indicators (Extreme Accents Only) */
  --color-score-high: #00825a;     /* Green (>= 90/9.0) */
  --color-score-low: #e1523d;      /* Red-orange (< 50/5.0) */

  /* Limits */
  --measure: 66ch;
  --max-content-width: 1360px;
}

/* Dark Mode (Contrast & Hue Matched) */
[data-theme="dark"] {
  --bg-color: #0B0B0C;             /* Near black */
  --bg-offset: #141416;
  --text-color: #f1f1f3;
  --text-color-muted: #a1a1a6;

  /* Hue Preserved Accents */
  --color-primary: #2CBA8D;        /* Lighter Green, 161° hue */
  --color-accent-hover: #4FD3A8;
  --color-secondary: #F2705C;      /* Lighter Red-orange, 8° hue */
  
  --color-score-high: #2CBA8D;
  --color-score-low: #F2705C;

  /* Dark Rule Alignments */
  --rule-hair: 1px solid rgba(241, 241, 243, 0.08); /* 8% white */
  --rule-mid: 1px solid rgba(241, 241, 243, 0.20);  /* 20% white */
  --rule-strong: 2px solid #f1f1f3;
}

/* 2. FLUID TYPOGRAPHY SCALE */
h1, h2, h3, h4, h5, h6, .c-card__title, .entry-title {
  font-family: var(--font-headline);
  line-height: var(--lh-headline, 1.15);
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: -0.015em;
  text-wrap: balance; /* Prevent awkward title wraps */
}

h1 { font-size: clamp(2rem, 3.4vw, 3rem); }         /* 32 -> 48px */
h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }   /* 24 -> 30px */
h3 { font-size: clamp(1.25rem, 1.6vw, 1.4375rem); } /* 20 -> 23px */
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.8125rem; }

/* Display / Giant Title */
.text-display {
  font-size: clamp(2.5rem, 5.5vw, 5rem);            /* 40 -> 80px */
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
}

p {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  margin-bottom: var(--space-4);
  color: var(--text-color);
  text-wrap: pretty; /* Prevents single-word widows */
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.01em;
}

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

.text-small {
  font-family: var(--font-headline);
  font-size: 13px;
  color: var(--text-color-muted);
}

/* 3. RESET & CANVAS BASELINE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Page Frame at Breakpoints (Section C5) */
.page-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 1440px) {
  .page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    border-left: var(--rule-mid);
    border-right: var(--rule-mid);
  }
}

@media (min-width: 1920px) {
  .page-wrapper {
    max-width: 1600px;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

/* Accessible focus outline */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 9999;
  font-weight: 700;
  font-family: var(--font-headline);
  border: var(--rule-strong);
}
.skip-link:focus {
  top: 10px;
}

.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Responsive Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}

.span-12 { grid-column: span 12; }
.span-9  { grid-column: span 9; }
.span-8  { grid-column: span 8; }
.span-6  { grid-column: span 6; }
.span-4  { grid-column: span 4; }
.span-3  { grid-column: span 3; }
.span-2  { grid-column: span 2; }

@media (max-width: 1024px) {
  .span-9, .span-8, .span-6, .span-4, .span-3, .span-2 {
    grid-column: span 12;
  }
}

/* Asymmetrical columns structure */
.main-column {
  grid-column: span 8;
}
.sidebar-column {
  grid-column: span 4;
}
@media (max-width: 1024px) {
  .main-column, .sidebar-column {
    grid-column: span 12;
  }
}

/* 4. PRINT-EDITORIAL STRUCTURAL DEVICES */

/* Section Dividers with Inset Labels (Section C2) */
.c-section-divider {
  position: relative;
  width: 100%;
  margin: var(--space-6) 0 var(--space-4) 0;
  border-bottom: var(--rule-mid);
}

.c-section-divider__label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: var(--bg-color);
  padding-right: var(--space-4);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-color);
}

/* Hairline Rules */
.divider-h {
  width: 100%;
  height: 1px;
  background-color: rgba(14, 14, 16, 0.08);
  margin: var(--space-4) 0;
}
[data-theme="dark"] .divider-h {
  background-color: rgba(241, 241, 243, 0.08);
}

/* Vertical grid lines (Section C2) */
.grid-vertical-rules {
  position: relative;
}

@media (min-width: 1025px) {
  .grid-vertical-rules > [class*="span-"]:not(:last-child) {
    border-right: var(--rule-hair);
    padding-right: var(--space-5);
  }
}

/* Typographic Drop Cap (Section C2) */
.has-drop-cap::first-letter {
  font-family: var(--font-headline);
  font-size: clamp(3.5rem, 6vw, 4.75rem);
  font-weight: 800;
  float: left;
  line-height: 0.85;
  margin-right: 12px;
  margin-top: 6px;
  color: var(--text-color);
}

/* Photographic treatment (desaturated with frame) (Section A5) */
.c-card__media, .alignfull, .alignwide {
  border: var(--rule-hair);
  overflow: hidden;
  background-color: var(--bg-offset);
}

.c-card__media img,
.alignfull img,
.alignwide img,
.c-author-card__avatar {
  filter: grayscale(12%) contrast(1.02);
  transition: filter var(--dur-base) var(--ease);
}

.c-card:hover .c-card__media img {
  filter: grayscale(0%) contrast(1);
}

/* 5. HEADER & NAVIGATION */
.c-top-bar {
  background-color: var(--color-secondary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 0;
  text-align: center;
  position: relative;
  z-index: 1001;
}

.c-top-bar__ticker-link {
  text-decoration: underline;
  color: #ffffff;
}

.c-header {
  background-color: var(--bg-color);
  border-bottom: var(--rule-strong);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color var(--dur-base) var(--ease);
}

.c-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.c-logo {
  display: flex;
  align-items: center;
  max-width: 196px;
}

.c-logo img {
  width: 196px;
  height: 56px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .c-logo img {
  /* Invert image colors to turn black text white. */
  filter: invert(1) brightness(0.95);
  mix-blend-mode: screen;
}

.c-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
}

.c-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
}

.c-nav__link {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--text-color);
  padding: 0 var(--space-1);
}

.c-nav__link:hover {
  color: var(--color-primary);
}

.c-nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-primary);
}

.c-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.c-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: color var(--dur-fast) var(--ease);
}

.c-action-btn:hover {
  color: var(--color-primary);
}

.c-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.theme-toggle-dark-icon,
.theme-toggle-light-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-light-icon { display: block; }
[data-theme="light"] .theme-toggle-dark-icon { display: block; }

.c-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .c-nav { display: none; }
  .c-menu-toggle { display: flex; }
}

.c-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-color);
  z-index: 999;
  border-top: var(--rule-hair);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base) var(--ease);
}

.c-drawer--open {
  opacity: 1;
  visibility: visible;
}

.c-drawer .c-nav__list {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.c-drawer .c-nav__link {
  font-size: 18px;
  padding: var(--space-2) 0;
  width: 100%;
}

/* 6. FOOTER */
.c-footer {
  background-color: var(--bg-color);
  border-top: var(--rule-strong);
  padding: var(--space-8) 0 var(--space-6) 0;
  margin-top: auto;
}

.c-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

@media (max-width: 900px) {
  .c-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

.c-footer__about p {
  font-size: 14px;
  color: var(--text-color-muted);
  margin-top: var(--space-3);
  max-width: 320px;
}

.c-footer__title {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  color: var(--text-color);
}

.c-footer__links li {
  margin-bottom: var(--space-2);
}

.c-footer__links a {
  font-family: var(--font-headline);
  font-size: 14px;
  color: var(--text-color-muted);
}

.c-footer__links a:hover {
  color: var(--color-primary);
}

.c-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: var(--rule-hair);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-color-muted);
}

@media (max-width: 600px) {
  .c-footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* 7. INTERACTIVE CONTROLS (Section A8: Radius 2px on inputs and buttons) */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: 2px; /* Human constraint: 2px on controls */
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.c-btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.c-btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.c-btn--secondary {
  background-color: transparent;
  color: var(--text-color);
  border-color: var(--border-color-thick);
}

.c-btn--secondary:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.c-btn--ghost {
  background-color: transparent;
  color: var(--text-color);
  border-color: transparent;
}

.c-btn--ghost:hover {
  background-color: var(--bg-offset);
}

.c-btn--small {
  padding: var(--space-2) var(--space-3);
  font-size: 11px;
}

.c-form-group {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.c-label {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-color);
}

.c-input {
  width: 100%;
  font-family: var(--font-headline);
  font-size: 15px;
  padding: var(--space-3);
  border: var(--rule-mid);
  background-color: var(--bg-color);
  color: var(--text-color);
  border-radius: 2px; /* Human choice: 2px */
  transition: border-color var(--dur-fast) var(--ease);
}

.c-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* 8. BADGES, EYEBROWS & STATUS MARKERS */
.c-eyebrow {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  font-variant: all-small-caps;
  letter-spacing: 0.12em;
  color: var(--text-color-muted);
  display: inline-block;
  margin-bottom: var(--space-2);
}

.c-eyebrow--primary { color: var(--color-primary); }
.c-eyebrow--secondary { color: var(--color-secondary); }

.c-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background-color: var(--bg-offset);
  color: var(--text-color-muted);
  padding: 4px 8px;
  border: var(--rule-hair);
  border-radius: 2px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.c-tag:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.c-tag--active {
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  background-color: var(--bg-color) !important;
}

.c-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  letter-spacing: 0.06em;
  border-radius: 2px;
}

.c-badge--live {
  background-color: var(--color-primary);
  color: #ffffff;
}

.c-badge--breaking {
  background-color: var(--color-secondary);
  color: #ffffff;
}

/* 9. ARTICLE CARD VARIANTS (Section A3: Irregular layouts) */
.c-card {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  background: none;
}

.c-card__link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

.c-card__media {
  width: 100%;
  margin-bottom: var(--space-3);
}

/* Strict fixed ratios using variables (Section B5) */
.c-card__media--hero     { aspect-ratio: var(--ratio-hero); }
.c-card__media--card     { aspect-ratio: var(--ratio-card); }
.c-card__media--portrait { aspect-ratio: var(--ratio-portrait); }
.c-card__media--thumb    { aspect-ratio: var(--ratio-thumb); }

.c-card__media img {
  width: 100%;
  height: 100%;
}

.c-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  position: relative;
  z-index: 3;
}

.c-card__title {
  margin-bottom: var(--space-2);
  font-weight: 800;
  line-height: var(--lh-headline);
  letter-spacing: -0.01em;
  font-size: var(--text-h3);
}

.c-card__title a {
  position: relative;
  z-index: 3;
}

.c-card:hover .c-card__title {
  color: var(--color-primary);
}

.c-card__dek {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-color-muted);
  margin-bottom: var(--space-3);
}

.c-card__author {
  font-family: var(--font-headline);
  font-variant: all-small-caps;
  letter-spacing: 0.05em;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-color-muted);
  margin-top: auto;
}

/* Card Variant Modifiers */
.c-card--hero .c-card__title {
  font-size: var(--text-h1);
  margin-bottom: var(--space-3);
}

.c-card--horizontal {
  flex-direction: row;
  gap: var(--space-4);
  align-items: flex-start;
}

.c-card--horizontal .c-card__media {
  flex: 0 0 35%;
  margin-bottom: 0;
}

.c-card--horizontal .c-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .c-card--horizontal {
    flex-direction: column;
  }
  .c-card--horizontal .c-card__media {
    flex: none;
    width: 100%;
    margin-bottom: var(--space-3);
  }
}

.c-card--list-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: var(--rule-hair);
}

.c-card--list-row:last-child {
  border-bottom: none;
}

.c-card--list-row .c-card__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
}

.c-card--list-row .c-card__timestamp {
  flex: 0 0 55px;
  color: var(--text-color-muted);
}

.c-card--list-row .c-card__eyebrow {
  flex: 0 0 90px;
  margin-bottom: 0;
}

.c-card--list-row .c-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 0;
  padding-right: var(--space-4);
}

.c-card--list-row .c-card__right-media {
  flex: 0 0 70px;
  aspect-ratio: var(--ratio-thumb);
  overflow: hidden;
  border: var(--rule-hair);
}

@media (max-width: 768px) {
  .c-card--list-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  .c-card--list-row .c-card__left {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .c-card--list-row .c-card__timestamp,
  .c-card--list-row .c-card__eyebrow {
    flex: none;
  }
  .c-card--list-row .c-card__title {
    width: 100%;
    font-size: 15px;
  }
  .c-card--list-row .c-card__right-media {
    display: none;
  }
}

.c-card--minimal {
  padding: var(--space-3) 0;
  border-bottom: var(--rule-hair);
  display: flex;
  flex-direction: row;
  gap: var(--space-4);
  align-items: flex-start;
}

.c-card--minimal:last-child {
  border-bottom: none;
}

.c-card--minimal .c-card__number {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: var(--border-color-medium);
  flex: 0 0 24px;
}

.c-card--minimal .c-card__content {
  flex: 1;
}

.c-card--minimal .c-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
}

/* 10. EDITORIAL COMPONENT WIDGETS */

/* Score Badge System (Section B4: Extremes Accent Only) */
.c-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  /* Neutral defaults */
  background-color: var(--bg-offset);
  color: var(--text-color);
  border: var(--rule-mid);
  width: 34px;
  height: 34px;
  border-radius: 2px;
  flex-shrink: 0;
}

.c-score--large {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

/* Extremes color highlights only */
.c-score--high {
  background-color: var(--color-score-high);
  color: #ffffff;
  border-color: var(--color-score-high);
}

.c-score--low {
  background-color: var(--color-score-low);
  color: #ffffff;
  border-color: var(--color-score-low);
}

/* Tables & Data Sheets (Section B2 & C3) */
.c-table-wrapper {
  width: 100%;
  overflow-x: auto;
  position: relative;
  margin-bottom: var(--space-5);
}

.c-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: transparent;
}

.c-table th, .c-table td {
  padding: var(--space-3) var(--space-4);
}

.c-table th {
  border-top: var(--rule-strong);
  border-bottom: var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-color-muted);
  vertical-align: bottom;
}

.c-table td {
  font-family: var(--font-body);
  font-size: 14px;
  border-bottom: var(--rule-hair);
}

/* Pinned Table Columns for horizontal scroll */
.c-table th:nth-child(1),
.c-table td:nth-child(1) {
  position: sticky;
  left: 0;
  background-color: var(--bg-color);
  z-index: 10;
  width: 60px;
}
.c-table th:nth-child(2),
.c-table td:nth-child(2) {
  position: sticky;
  left: 60px;
  background-color: var(--bg-color);
  z-index: 10;
  border-right: 1px solid var(--border-color);
}
.c-table th:nth-child(1),
.c-table th:nth-child(2) {
  z-index: 11;
}

.c-table td.c-table__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.c-table th.c-table__num {
  text-align: right;
}

.c-table-score-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.c-table-score-bar__track {
  flex: 1;
  height: 6px;
  background-color: rgba(14, 14, 16, 0.08);
  min-width: 80px;
}
[data-theme="dark"] .c-table-score-bar__track {
  background-color: rgba(241, 241, 243, 0.08);
}

.c-table-score-bar__fill {
  height: 100%;
  background-color: var(--text-color); /* standard neutral */
}

/* Apply primary green if top-decile score */
.c-table-score-bar__fill--high {
  background-color: var(--color-score-high);
}
.c-table-score-bar__fill--low {
  background-color: var(--color-score-low);
}

/* Key Takeaways Box (Section C2) */
.c-takeaways {
  border: 1px solid var(--color-primary);
  border-left-width: 4px;
  padding: var(--space-4) var(--space-5);
  background-color: var(--bg-offset);
  margin: var(--space-5) 0;
  border-radius: 2px;
}

.c-takeaways__title {
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.c-takeaways ul {
  list-style: square;
  padding-left: var(--space-4);
}

.c-takeaways li {
  font-family: var(--font-body);
  margin-bottom: var(--space-2);
  line-height: 1.5;
  font-size: 16px;
}

/* Dateline (Section C2) */
.c-dateline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-color-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.c-dateline::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 1px;
  background-color: var(--border-color-medium);
}

/* Folio Line (Section C2) */
.c-folio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--rule-mid);
  padding-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-6);
}

.c-folio__mark {
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
}

/* Pull Quotes (Section C2: Hanging punctuation, headline font, rules) */
.c-pullquote {
  border-top: var(--rule-strong);
  border-bottom: var(--rule-strong);
  padding: var(--space-5) 0;
  text-align: left;
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  margin: var(--space-6) auto;
  hanging-punctuation: first allow-end;
  max-width: 800px;
}

.c-pullquote cite {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-3);
  color: var(--text-color-muted);
}

/* Author Biography Card (Section C2) */
.c-author-card {
  border: var(--rule-mid);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-5);
  background-color: var(--bg-offset);
  margin: var(--space-6) 0;
  border-radius: 2px;
}

.c-author-card__avatar {
  width: 80px;
  height: 80px;
  border: var(--rule-hair);
  flex-shrink: 0;
}

.c-author-card__name {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: var(--space-1);
}

.c-author-card__role {
  font-family: var(--font-headline);
  font-variant: all-small-caps;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-color-muted);
  display: block;
  margin-bottom: var(--space-2);
}

.c-author-card__bio {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-color-muted);
  margin-bottom: var(--space-3);
}

.c-author-card__links {
  display: flex;
  gap: var(--space-4);
}

.c-author-card__link {
  font-family: var(--font-headline);
  font-variant: all-small-caps;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .c-author-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Alert Boxes (Radius 2px) */
.c-alert {
  padding: var(--space-4);
  border: var(--rule-mid);
  border-left: 4px solid var(--text-color-muted);
  display: flex;
  gap: var(--space-3);
  font-size: 14px;
  line-height: 1.5;
  background-color: var(--bg-offset);
  border-radius: 2px;
}

.c-alert--info { border-left-color: var(--color-primary); }
.c-alert--warning { border-left-color: var(--color-secondary); }

.c-alert__icon {
  flex-shrink: 0;
  color: inherit;
}

.c-alert__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Breadcrumbs & Pagination */
.c-breadcrumbs {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  color: var(--text-color-muted);
}

.c-breadcrumbs__separator {
  color: rgba(14, 14, 16, 0.20);
}
[data-theme="dark"] .c-breadcrumbs__separator {
  color: rgba(241, 241, 243, 0.20);
}

.c-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.c-pagination__item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  border: var(--rule-mid);
  border-radius: 2px;
}

.c-pagination__item--active {
  background-color: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

.c-pagination__item:hover:not(.c-pagination__item--active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Newsletter Signup Block */
.c-newsletter-box {
  border: var(--rule-mid);
  padding: var(--space-6);
  background-color: var(--bg-offset);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 2px;
}

.c-newsletter-box__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-2);
}

.c-newsletter-box__subtitle {
  font-family: var(--font-body);
  color: var(--text-color-muted);
  font-size: 15px;
  margin-bottom: var(--space-4);
}

.c-newsletter-box__form {
  display: flex;
  gap: var(--space-2);
}

@media (max-width: 600px) {
  .c-newsletter-box__form {
    flex-direction: column;
  }
}

/* Progress Bar styling */
.c-progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  z-index: 9999;
}
.c-progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: var(--color-primary);
  transition: width 0.1s ease-out;
}

/* Accordion / FAQ styling using native details/summary */
.c-accordion {
  border: var(--rule-hair);
  margin-bottom: var(--space-3);
  background-color: var(--bg-offset);
  border-radius: 2px;
}
.c-accordion__summary {
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hide default list marker */
}
.c-accordion__summary::-webkit-details-marker {
  display: none; /* Hide default safari marker */
}
.c-accordion__summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color-muted);
}
.c-accordion[open] .c-accordion__summary::after {
  content: '–';
}
.c-accordion__content {
  padding: var(--space-4);
  border-top: var(--rule-hair);
  background-color: var(--bg-color);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}
.c-accordion__content > *:last-child {
  margin-bottom: 0;
}

/* Floating toast notification */
.c-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 12px 16px;
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.c-toast--visible {
  transform: translateY(0);
  opacity: 1;
}
.c-toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary); /* Green dot style */
}

/* Tooltip Card styling (Option 3) */
.c-tooltip-card {
  position: absolute;
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  max-width: 240px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.c-tooltip-card--visible {
  opacity: 1;
}

/* 11. PRINT STYLESHEET (Section C6) */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-family: 'Source Serif 4', Georgia, serif !important;
  }

  .c-header,
  .c-footer,
  .c-top-bar,
  .c-action-btn,
  .c-btn,
  .c-post-nav,
  .c-pagination,
  .js-theme-toggle,
  #comments,
  .c-newsletter-box {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  p, li, blockquote, pre {
    color: #000000 !important;
  }

  pre, blockquote, .c-author-card, .c-table-wrapper {
    page-break-inside: avoid;
    border: 1px solid #000000 !important;
  }

  a {
    text-decoration: underline !important;
    color: #000000 !important;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000000 !important;
    page-break-after: avoid;
  }
}

/* Leaderboard Responsive Styling & Mobile Cards (Section B2 & C3) */
.c-table-desktop {
  display: block;
}
.c-table-mobile {
  display: none;
}

@media (max-width: 768px) {
  .c-table-desktop {
    display: none;
  }
  .c-table-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .c-table-mobile-card {
    border-bottom: var(--rule-hair);
    padding-bottom: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .c-table-mobile-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .c-table-mobile-card__header span {
    font-family: var(--font-mono);
    color: var(--text-color-muted);
  }
  
  .c-score {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
  }
  
  .c-score--high {
    color: var(--color-primary);
  }
  
  .c-score--low {
    color: var(--color-secondary);
  }
  
  .c-table-mobile-card__metrics span {
    color: var(--text-color-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .c-table-mobile-card__metrics strong {
    font-size: 13px;
  }

  .c-superlative-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-3) !important;
  }
  .c-superlative-strip > div:nth-child(even) {
    display: none !important;
  }
}

/* ==========================================================================
   EDITORIAL ARTICLE READING MEASURE & IMAGE CENTERING RULES
   ========================================================================== */

.entry-content {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-color);
}

.entry-content p {
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.entry-content h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 800;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
  line-height: 1.25;
  border-top: var(--rule-hair);
  padding-top: var(--space-4);
}

.entry-content h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.45rem);
  font-weight: 800;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.entry-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.entry-content ul,
.entry-content ol {
  margin: var(--space-3) 0 var(--space-5) var(--space-4);
  padding-left: var(--space-3);
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: var(--space-2);
  line-height: 1.65;
}

/* Centering all images and media regardless of resolution */
.c-post-hero-media,
.entry-content figure,
.entry-content figure.aligncenter,
.entry-content figure.alignfull,
.entry-content figure.alignwide,
.wp-block-image {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: var(--space-4) auto var(--space-5) auto !important;
  background-color: transparent !important;
}

.c-post-hero-media img,
.entry-content img,
.entry-content figure img,
.wp-block-image img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 4px;
}

.entry-content figure figcaption,
.c-post-hero-media figcaption,
.wp-block-image figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-color-muted);
  text-align: center;
}

/* Wide Element Breakouts */
.entry-content .alignwide,
.entry-content .c-rec-matrix-wrapper,
.entry-content .c-comparison-table-wrap,
.c-comp-hero-grid {
  max-width: 1000px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Dual Comparison Hero Responsive Grid */
.c-comp-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .c-comp-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .c-comp-hero__vs {
    margin: 0 auto;
  }
}

/* Interactive Recommendation Matrix Cards */
.c-rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Tool Deep-Dive Card */
.c-tool-deepdive-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
