/* ═══════════════════════════════════════════════════════════════
   The Domestic Machine — Design System
   Sequel to Social Physics of the New Disorder
   Aesthetic: Institutional steel meets investigative journalism
   Palette: Steel, slate, institutional blue — cooler tones
   reflecting government architecture rather than market gauges
   ═══════════════════════════════════════════════════════════════ */

/* --- Tokens --- */
:root {
  --bg-void: #050608;
  --bg-primary: #0a0d12;
  --bg-secondary: #12151c;
  --bg-panel: #141820;
  --bg-elevated: #1c2028;

  --text-primary: #d4dae6;
  --text-secondary: #a0aab8;
  --text-muted: #667788;
  --text-bright: #eaf0f8;

  --steel: #8899aa;
  --steel-light: #a8b8c8;
  --steel-dim: #556677;
  --slate: #667788;
  --slate-dim: #445566;
  --institutional-blue: #3b82f6;
  --institutional-blue-dim: #2563eb;
  --danger: #ef4444;
  --danger-glow: #f87171;
  --field-green: #22c55e;
  --field-green-dim: #16a34a;
  --sovereignty-amber: #f59e0b;
  --sovereignty-amber-dim: #d97706;

  --border-steel: rgba(136, 153, 170, 0.25);
  --border-slate: rgba(102, 119, 136, 0.2);
  --border-hard: rgba(136, 153, 170, 0.4);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-data: 'Source Code Pro', 'SF Mono', Menlo, Consolas, monospace;

  --content-width: 720px;
  --wide-width: 900px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.78;
  font-weight: 400;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(136, 153, 170, 0.03) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-bright);
}

a {
  color: var(--institutional-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  transition: color 0.2s, border-color 0.2s;
}
a:hover {
  color: var(--steel-light);
  border-color: var(--steel);
}

/* --- Content Advisory --- */
.content-advisory {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.content-advisory-inner {
  text-align: center;
  padding: 16px 0;
  margin-top: 16px;
  border-top: 1px solid rgba(136, 153, 170, 0.2);
  border-bottom: 1px solid rgba(136, 153, 170, 0.2);
  font-size: 15px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Top Navigation --- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-steel);
  font-size: 14px;
}
.nav-back {
  color: var(--text-muted);
  border-bottom: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-back:hover { color: var(--steel-light); }
.nav-article {
  color: var(--steel-dim);
  font-family: var(--font-data);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-gradient {
  position: relative;
  width: 100%;
  height: 420px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    linear-gradient(180deg,
      var(--bg-void) 0%,
      rgba(18, 21, 28, 0.95) 30%,
      rgba(20, 24, 32, 0.9) 60%,
      var(--bg-primary) 100%
    );
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 24px 40px;
  background: linear-gradient(
    transparent 0%,
    rgba(5, 6, 8, 0.15) 35%,
    rgba(5, 6, 8, 0.7) 60%,
    rgba(10, 13, 18, 0.95) 100%
  );
  text-align: center;
}
.hero-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 24px 20px;
  text-align: center;
}

/* --- Source Attribution --- */
.source-attribution {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 24px 0;
}
.source-attribution p {
  background: rgba(136, 153, 170, 0.06);
  border: 1px solid rgba(136, 153, 170, 0.15);
  border-left: 3px solid var(--steel);
  border-radius: 2px;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.source-attribution a {
  color: var(--steel-light);
  border-bottom-color: rgba(136, 153, 170, 0.3);
}
.source-attribution strong {
  color: var(--text-bright);
}

.hero-credit {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px 24px 0;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}
.hero-credit a {
  color: var(--steel);
  border-bottom: 1px solid rgba(136, 153, 170, 0.3);
  text-decoration: none;
}

.series-tag {
  font-family: var(--font-data);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--steel);
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-bright);
  margin-bottom: 16px;
}
.article-dateline {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 12px;
}

.article-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Article Body --- */
.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-bright);
  margin: 56px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-steel);
}
.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  margin: 40px 0 16px;
}

.article-body p {
  margin-bottom: 20px;
  color: var(--text-primary);
}
.article-body p:last-child { margin-bottom: 0; }

.article-body em {
  color: var(--text-secondary);
  font-style: italic;
}
.article-body strong {
  color: var(--text-bright);
  font-weight: 600;
}

/* --- Receipt Section --- */
.receipt { margin-bottom: 48px; }
.receipt-intro {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- Gauge Data Table --- */
.gauge-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 15px;
  border: 1px solid var(--border-hard);
  table-layout: fixed;
}
.gauge-table thead {
  background: var(--bg-elevated);
}
.gauge-table th {
  font-family: var(--font-data);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-hard);
}
/* Default gauge table column widths */
.gauge-table th:nth-child(1),
.gauge-table td:nth-child(1) {
  width: 30%;
}
.gauge-table th:nth-child(2),
.gauge-table td:nth-child(2) {
  width: 20%;
}
.gauge-table th:nth-child(3),
.gauge-table td:nth-child(3) {
  width: 50%;
}

/* Article-specific column widths for optimal aesthetic balance */
.article-1-table th:nth-child(1), .article-1-table td:nth-child(1) { width: 30%; }
.article-1-table th:nth-child(2), .article-1-table td:nth-child(2) { width: 18%; }
.article-1-table th:nth-child(3), .article-1-table td:nth-child(3) { width: 52%; }

.article-2-table th:nth-child(1), .article-2-table td:nth-child(1) { width: 28%; }
.article-2-table th:nth-child(2), .article-2-table td:nth-child(2) { width: 32%; }
.article-2-table th:nth-child(3), .article-2-table td:nth-child(3) { width: 40%; }

.article-3-table th:nth-child(1), .article-3-table td:nth-child(1) { width: 28%; }
.article-3-table th:nth-child(2), .article-3-table td:nth-child(2) { width: 25%; }
.article-3-table th:nth-child(3), .article-3-table td:nth-child(3) { width: 47%; }

.article-4-table th:nth-child(1), .article-4-table td:nth-child(1) { width: 28%; }
.article-4-table th:nth-child(2), .article-4-table td:nth-child(2) { width: 27%; }
.article-4-table th:nth-child(3), .article-4-table td:nth-child(3) { width: 45%; }

.article-5-table th:nth-child(1), .article-5-table td:nth-child(1) { width: 25%; }
.article-5-table th:nth-child(2), .article-5-table td:nth-child(2) { width: 35%; }
.article-5-table th:nth-child(3), .article-5-table td:nth-child(3) { width: 40%; }

.article-7-table th:nth-child(1), .article-7-table td:nth-child(1) { width: 28%; }
.article-7-table th:nth-child(2), .article-7-table td:nth-child(2) { width: 32%; }
.article-7-table th:nth-child(3), .article-7-table td:nth-child(3) { width: 40%; }
.gauge-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-steel);
  vertical-align: top;
}
.gauge-table tbody tr:hover {
  background: rgba(136, 153, 170, 0.04);
}
.gauge-label {
  font-weight: 600;
  color: var(--text-bright);
}
.gauge-reading {
  font-family: var(--font-data);
  font-weight: 400;
}
.gauge-reading.danger {
  color: var(--danger);
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}
.gauge-reading.warning {
  color: var(--sovereignty-amber);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}
.gauge-reading.institutional {
  color: var(--institutional-blue);
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}
.gauge-reading.field {
  color: var(--field-green);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}

/* --- FRED Series Reference Table --- */
.fred-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  font-size: 14px;
  border: 1px solid var(--border-steel);
}
.fred-table th {
  font-family: var(--font-data);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  padding: 10px 14px;
  text-align: left;
  background: var(--bg-elevated);
  border-bottom: 2px solid var(--border-hard);
}
.fred-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(136, 153, 170, 0.12);
  font-family: var(--font-data);
  font-size: 13px;
}
.fred-table td:first-child {
  color: var(--steel);
  font-weight: 600;
  white-space: nowrap;
}

/* --- Data Panel (Chart Annotations) --- */
.data-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-hard);
  border-left: 3px solid var(--steel);
  border-radius: 2px;
  padding: 16px 20px;
  margin: 28px 0;
  box-shadow:
    0 0 12px rgba(136, 153, 170, 0.06),
    inset 0 1px 0 rgba(136, 153, 170, 0.08);
}
.data-panel.labor {
  border-left-color: var(--field-green);
}
.data-panel.enforcement {
  border-left-color: var(--danger);
}
.data-panel.sovereignty {
  border-left-color: var(--sovereignty-amber);
}
.data-panel.institutional {
  border-left-color: var(--institutional-blue);
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.panel-icon {
  font-size: 16px;
  filter: saturate(0.7);
}
.panel-series {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.04em;
}
.panel-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Feedback Loop Callout --- */
blockquote.feedback-loop {
  background: linear-gradient(135deg, rgba(136, 153, 170, 0.06), rgba(59, 130, 246, 0.04));
  border-left: 3px solid var(--institutional-blue);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 2px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}
blockquote.feedback-loop p { margin-bottom: 0; }

/* --- Pipe Diagram (NEW — The Domestic Machine) --- */
.pipe-diagram {
  background: var(--bg-panel);
  border: 1px solid var(--border-hard);
  border-radius: 2px;
  padding: 24px 28px;
  margin: 32px 0;
  font-family: var(--font-data);
  font-size: 14px;
  line-height: 1.8;
  color: var(--steel-light);
  overflow-x: auto;
}
.pipe-diagram .pipe-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-bottom: 12px;
}
.pipe-diagram pre {
  margin: 0;
  font-family: var(--font-data);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-secondary);
  white-space: pre;
}
.pipe-diagram .pipe-node {
  color: var(--text-bright);
  font-weight: 600;
}
.pipe-diagram .pipe-arrow {
  color: var(--steel-dim);
}
.pipe-diagram .pipe-danger {
  color: var(--danger);
}
.pipe-diagram .pipe-green {
  color: var(--field-green);
}
.pipe-diagram .pipe-blue {
  color: var(--institutional-blue);
}
.pipe-diagram .pipe-amber {
  color: var(--sovereignty-amber);
}

/* --- Honest Reckoning Aside (NEW — The Domestic Machine) --- */
.honest-reckoning {
  background: linear-gradient(135deg, rgba(136, 153, 170, 0.04), rgba(102, 119, 136, 0.02));
  border-left: 3px solid var(--slate);
  padding: 20px 24px;
  margin: 36px 0;
  border-radius: 0 2px 2px 0;
  position: relative;
}
.honest-reckoning::before {
  content: 'What We Got Wrong';
  display: block;
  font-family: var(--font-data);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--slate);
  margin-bottom: 10px;
  font-weight: 600;
}
.honest-reckoning p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.honest-reckoning p:last-child { margin-bottom: 0; }
.honest-reckoning em {
  color: var(--text-muted);
}
.honest-reckoning a {
  color: var(--slate);
  border-bottom-color: rgba(102, 119, 136, 0.3);
}

/* --- Series Crossover Link (NEW — to Social Physics) --- */
.crossover-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 13px;
  padding: 4px 12px;
  background: rgba(196, 164, 74, 0.08);
  border: 1px solid rgba(196, 164, 74, 0.2);
  border-radius: 2px;
  color: #c4a44a;
  border-bottom: none;
  transition: background 0.2s;
}
.crossover-link:hover {
  background: rgba(196, 164, 74, 0.15);
  color: #dcc060;
  border-color: rgba(196, 164, 74, 0.35);
}
.crossover-link::before {
  content: '⚙';
  font-size: 12px;
}

/* --- Pattern Name --- */
.pattern-name {
  color: var(--steel-light);
  font-weight: 700;
  border-bottom: 2px solid var(--steel-dim);
}

/* --- Section Dividers --- */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-hard) 20%,
    var(--border-hard) 80%,
    transparent
  );
  margin: 56px 0;
}

/* --- Sources --- */
.sources {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 2px solid var(--border-hard);
}
.sources h2 {
  font-size: 22px;
  margin-bottom: 24px;
}
.sources details {
  margin-bottom: 8px;
  border: 1px solid rgba(136, 153, 170, 0.12);
  border-radius: 2px;
}
.sources details[open] {
  border-color: var(--border-steel);
  margin-bottom: 16px;
}
.sources summary {
  cursor: pointer;
  padding: 12px 16px;
  background: var(--bg-secondary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sources summary::before {
  content: '\25B8';
  color: var(--steel-dim);
  transition: transform 0.2s;
  font-size: 12px;
}
.sources details[open] summary::before {
  transform: rotate(90deg);
}
.sources summary:hover {
  color: var(--text-bright);
  background: var(--bg-panel);
}
.sources summary h3 {
  font-size: 16px;
  margin: 0;
  display: inline;
  color: inherit;
}
.source-list {
  list-style: none;
  padding: 12px 16px 16px;
}
.source-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
}
.source-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--steel-dim);
}
.source-list li a {
  font-size: 14px;
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

/* --- Article Footer --- */
.article-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border-steel);
}
.nav-prev, .nav-next {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-muted);
  border-bottom: none;
  transition: color 0.2s;
}
.nav-prev:hover, .nav-next:hover { color: var(--steel-light); }
.nav-next { text-align: right; margin-left: auto; }

.series-footer {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 32px;
  font-style: italic;
  line-height: 1.6;
}

/* ═══ INDEX PAGE ═══ */
.index-hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-void);
}
.index-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 60%, rgba(136, 153, 170, 0.04) 0%, transparent 40%),
    linear-gradient(180deg,
      var(--bg-void) 0%,
      rgba(10, 13, 18, 0.6) 40%,
      rgba(20, 24, 32, 0.85) 70%,
      var(--bg-primary) 100%
    );
}
.index-hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 24px 48px;
  width: 100%;
}
.index-hero-overlay .series-tag { font-size: 14px; }
.index-hero-overlay h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 12px;
}
.index-hero-overlay .series-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: var(--steel);
  margin-bottom: 24px;
}
.index-hero-overlay .series-desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.index-body {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.article-card {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-steel);
  padding: 28px 32px;
  text-decoration: none;
  border-bottom: none;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}
.article-card:hover {
  background: var(--bg-panel);
  border-color: var(--steel);
}
.article-card:last-child { border-bottom: 1px solid var(--border-steel); }

.card-number {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--steel-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.card-pipe {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.card-pipe.labor { color: var(--field-green); background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.25); }
.card-pipe.enforcement { color: var(--danger); background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); }
.card-pipe.sovereignty { color: var(--sovereignty-amber); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); }
.card-pipe.documents { color: var(--institutional-blue); background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.25); }
.card-pipe.war { color: var(--danger-glow); background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.25); }
.card-pipe.synthesis { color: var(--steel-light); background: rgba(168, 184, 200, 0.1); border: 1px solid rgba(168, 184, 200, 0.25); }

.card-status {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--font-data);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 2px;
}
.card-status.live {
  color: var(--steel);
  background: rgba(136, 153, 170, 0.1);
  border: 1px solid var(--border-steel);
}

/* --- Framework Box --- */
.framework-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-hard);
  border-radius: 2px;
  padding: 24px 28px;
  margin: 32px 0;
}
.framework-box h4 {
  font-family: var(--font-data);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-bottom: 16px;
}
.framework-box ul {
  list-style: none;
  padding: 0;
}
.framework-box li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(136, 153, 170, 0.08);
  font-size: 16px;
}
.framework-box li:last-child { border-bottom: none; }
.framework-box li strong {
  color: var(--steel-light);
}

/* --- Companion Series Box --- */
.companion-box {
  background: linear-gradient(135deg, rgba(196, 164, 74, 0.04), rgba(205, 127, 50, 0.02));
  border: 1px solid rgba(196, 164, 74, 0.2);
  border-radius: 2px;
  padding: 20px 24px;
  margin: 32px 0;
}
.companion-box h4 {
  font-family: var(--font-data);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c4a44a;
  margin-bottom: 10px;
}
.companion-box p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}
.companion-box a {
  color: #c4a44a;
  border-bottom-color: rgba(196, 164, 74, 0.3);
}

/* --- Blockquote (general) --- */
blockquote {
  border-left: 3px solid var(--border-hard);
  padding: 16px 24px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: rgba(136, 153, 170, 0.03);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .article-body { padding: 32px 16px 60px; }
  .article-title { font-size: 28px; }
  .gauge-table { font-size: 13px; }
  .gauge-table td, .gauge-table th { padding: 10px 10px; }
  .data-panel { padding: 14px 16px; }
  .article-nav { flex-direction: column; gap: 12px; }
  .nav-next { text-align: left; margin-left: 0; }
  .article-card { padding: 20px 20px; }
  .card-status { position: static; margin-bottom: 8px; display: inline-block; }
  .pipe-diagram { padding: 16px 20px; }
  .pipe-diagram pre { font-size: 11px; }
  .honest-reckoning { padding: 16px 20px; }
  .index-hero { min-height: 60vh; }
}

@media (max-width: 640px) {
  .gauge-table {
    display: block;
    border: none;
    background: transparent;
  }
  .gauge-table thead {
    display: none;
  }
  .gauge-table tbody,
  .gauge-table tr,
  .gauge-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  .gauge-table tr {
    background: var(--bg-panel);
    border: 1px solid var(--border-hard);
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 16px;
  }
  .gauge-table tr:hover {
    background: var(--bg-panel);
  }
  .gauge-table td {
    padding: 0;
    border: none;
  }
  .gauge-table td.gauge-label {
    font-family: var(--font-data);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--steel);
    margin-bottom: 4px;
  }
  .gauge-table td.gauge-reading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  .gauge-table td:nth-child(3) {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-top: 10px;
    border-top: 1px dashed var(--border-steel);
  }
}
