/* ============================================================
   THE BASELINE WIRE — ARTICLE DOSSIER STYLESHEET
   Pre-1900 Broadsheet & Archival Gazette Aesthetics
   ============================================================ */

.article-wrapper {
  max-width: 860px;
  margin: 2.5rem auto 5rem;
  padding: 0 1.5rem;
  font-family: var(--font-main);
}

.back-home-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.back-home-link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.article-top-btn-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-top-btn-row .modal-action-rect-btn {
  flex: 1;
  max-width: 240px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.article-top-btn-row .modal-action-rect-btn.briefcase-btn {
  color: #00ffd2;
  border: 1px solid rgba(0, 255, 210, 0.45);
  background: rgba(0, 255, 210, 0.08);
}

.article-top-btn-row .modal-action-rect-btn.briefcase-btn:hover {
  background: rgba(0, 255, 210, 0.22);
  border-color: #00ffd2;
  box-shadow: 0 0 12px rgba(0, 255, 210, 0.35);
  color: #ffffff;
}

.article-top-btn-row .modal-action-rect-btn.briefcase-btn.in-briefcase {
  background: rgba(0, 255, 210, 0.25);
  border-color: #00ffd2;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 255, 210, 0.4);
}

.article-top-btn-row .modal-action-rect-btn.share-btn {
  color: #00ffd2;
  border: 1px solid rgba(0, 255, 210, 0.45);
  background: rgba(0, 255, 210, 0.08);
}

.article-top-btn-row .modal-action-rect-btn.share-btn:hover {
  background: rgba(0, 255, 210, 0.22);
  border-color: #00ffd2;
  box-shadow: 0 0 12px rgba(0, 255, 210, 0.35);
  color: #ffffff;
}

.article-top-btn-row .modal-action-rect-btn.open-btn {
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
}

.article-top-btn-row .modal-action-rect-btn.open-btn:hover {
  background: #D4AF37;
  color: #0a0c0e;
  border-color: #D4AF37;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
}

.article-meta-header {
  margin-bottom: 2.5rem;
  border-bottom: 3px double rgba(212, 175, 55, 0.35);
  padding-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-share-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.share-btn:hover {
  background: var(--gold);
  color: #0a0c0e;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.share-btn:active {
  transform: translateY(0);
}

.article-footer-nav .share-btn {
  padding: 0.75rem 1.4rem;
  font-size: 0.8rem;
}

.share-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #11141a;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-top: 3px double var(--gold);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.25);
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.share-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.article-tags {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.read-pill, .date-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(16, 20, 26, 0.7);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.06em;
}

.chrono-pill-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.chrono-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #00ffd2;
  background: rgba(0, 255, 210, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 255, 210, 0.4);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 255, 210, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: help;
  transition: all 0.2s ease;
}

.chrono-pill:hover,
.chrono-pill-wrapper:hover .chrono-pill {
  background: rgba(0, 255, 210, 0.16);
  border-color: #00ffd2;
  box-shadow: 0 0 12px rgba(0, 255, 210, 0.35);
}

.chrono-hover-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 300px;
  max-width: min(440px, calc(100vw - 2rem));
  width: max-content;
  background: #0d1117;
  border: 1px solid rgba(0, 255, 210, 0.5);
  border-top: 3px double #00ffd2;
  border-radius: var(--radius-sm, 3px);
  padding: 0.75rem 0.95rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 255, 210, 0.2);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.chrono-pill-wrapper:hover .chrono-hover-card,
.chrono-pill-wrapper:focus-within .chrono-hover-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chrono-card-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold, #d4af37);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 0.25rem;
}

.chrono-card-verbose {
  font-size: 0.78rem;
  color: #00ffd2;
  line-height: 1.45;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 255, 210, 0.25);
  margin-bottom: 0.35rem;
}

.chrono-card-block {
  font-size: 0.7rem;
  color: #8fa2b8;
  letter-spacing: 0.05em;
}

/* ============================================================
   ARTICLE PROSE — PRE-1900 BROADSHEET EDITORIAL TYPOGRAPHY
   ============================================================ */

.article-prose {
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.85;
}

.article-prose h1 {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.article-prose h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--copper);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-prose p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Classical 19th-Century Broadsheet Drop-Cap */
.article-prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.82;
  padding-top: 6px;
  padding-right: 10px;
  padding-bottom: 2px;
  color: var(--gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.article-prose blockquote {
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.05);
  padding: 1.35rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
  box-shadow: inset 2px 0 6px rgba(0, 0, 0, 0.3);
}

.article-prose blockquote p:last-child {
  margin-bottom: 0;
}

.article-prose hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
  margin: 2.5rem 0;
}

.article-prose ul, .article-prose ol {
  margin: 1rem 0 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-prose li {
  line-height: 1.7;
}

.article-prose pre {
  background: #06080a;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  overflow-x: auto;
  font-family: 'Consolas', 'Courier New', 'Liberation Mono', 'DejaVu Sans Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: pre;
  word-wrap: normal;
  tab-size: 2;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  margin: 1.75rem 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.article-prose pre code {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0;
  white-space: pre;
  word-wrap: normal;
}

.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
}

.article-prose th, .article-prose td {
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.1rem;
  text-align: left;
}

.article-prose th {
  background: rgba(16, 20, 26, 0.9);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-prose td {
  background: rgba(10, 12, 14, 0.5);
}

/* External Clickable Source Links */
.external-source-link {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s, text-shadow 0.2s;
  font-weight: 600;
}

.external-source-link:hover {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.article-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 3px double rgba(212, 175, 55, 0.35);
  flex-wrap: wrap;
}

.back-btn, .library-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  line-height: 1;
}

.back-btn {
  background: rgba(16, 20, 26, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  order: 1;
}

.back-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.library-btn {
  background: var(--gold-glow);
  border: 1px solid var(--gold);
  color: var(--gold);
  order: 3;
}

.library-btn:hover {
  background: var(--gold);
  color: #0a0c0e;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.article-footer-nav .share-btn {
  order: 2;
}

/* ============================================================
   CRYPTID EXPEDITION FIELD PLATES & IN-ARTICLE LIGHTBOX
   ============================================================ */
.field-plate-container {
  max-width: 360px;
  margin: 1.75rem auto;
  background: #090c10;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.field-plate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.plate-badge {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #34d399;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.plate-expand-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plate-expand-btn:hover {
  background: var(--gold);
  color: #090c10;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.field-plate-viewport {
  position: relative;
  background: #040608;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease;
}

.field-plate-viewport:hover {
  border-color: var(--gold);
}

.field-plate-img {
  display: block;
  max-width: 100%;
  max-height: 195px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.field-plate-viewport:hover .field-plate-img {
  transform: scale(1.02);
}

.field-plate-zoom-cue {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  background: rgba(9, 12, 16, 0.88);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.field-plate-caption {
  margin-top: 0.65rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.71rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.field-plate-caption strong {
  display: block;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

/* Article Sketch Pop-up Dialog */
.article-sketch-dialog {
  max-width: 1050px;
  width: 95%;
  background: rgba(9, 12, 16, 0.98);
  border: 1px solid var(--gold);
  border-top: 3px double var(--gold);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.25);
}

.article-sketch-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-sketch-stage {
  width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020406;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: auto;
  border-radius: 2px;
  padding: 1rem;
}

.article-modal-full-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  border-radius: 2px;
}

.article-sketch-info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.vector-chart-wrapper {
  margin: 32px auto;
  max-width: 820px;
  width: 100%;
  background: #080b11;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 20px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  overflow-x: auto;
}

.vector-chart-wrapper svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 280px;
}

/* ============================================================
   DOSSIER GLANCE BLOCK (THREE-LINE WHAT-THIS-CHANGES)
   ============================================================ */
.dossier-glance {
  margin: 1.1rem 0 1.4rem;
  padding: 1rem 1.15rem 1.05rem;
  background: rgba(212, 175, 55, 0.055);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm, 3px) var(--radius-sm, 3px) 0;
}
.dossier-glance .glance-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.dossier-glance ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: square;
}
.dossier-glance li {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(228, 226, 218, 0.93);
  margin-bottom: 0.45rem;
}
.dossier-glance li:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .article-wrapper { padding: 0 1rem; margin: 1.25rem auto 5rem; overflow-x: hidden; }
  .article-tags { max-width: 100%; }
  .article-tags .desk-pill { white-space: normal; max-width: 100%; line-height: 1.4; box-sizing: border-box; }
  .article-top-btn-row { gap: 0.5rem; }
  .article-top-btn-row .modal-action-rect-btn { flex: 1 1 auto; min-width: 0; max-width: none; padding: 0 0.75rem; font-size: 0.72rem; }
  .article-footer-nav { flex-direction: column; align-items: stretch; }
  .article-footer-nav > a,
  .article-footer-nav > button { width: 100%; justify-content: center; box-sizing: border-box; }
  .dossier-glance { padding: 0.85rem 0.9rem; }
  .dossier-glance .glance-label { font-size: 0.7rem; }
  .dossier-glance li { font-size: 0.92rem; }
}

/* ============================================================
   DOSSIER EDITORIAL META CARD (UNIFORM PRE-1900 DISPATCH HEADER)
   ============================================================ */
.dossier-meta-card {
  margin: 1.5rem 0 2.5rem;
  background: rgba(10, 13, 18, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-top: 3px double var(--gold);
  border-radius: var(--radius-sm, 3px);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 175, 55, 0.15);
}

.dossier-meta-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.dossier-desk-tag {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dossier-id-tag {
  color: #38bdf8;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.dossier-status-tag {
  color: #34d399;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

.dossier-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem 1.5rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.meta-cell {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
}

.meta-cell .k {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  flex-shrink: 0;
}

.meta-cell .v {
  color: var(--text-primary);
  word-break: break-word;
}

.dossier-meta-docket {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.2);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.dossier-meta-docket .k {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-right: 0.4rem;
}

/* ============================================================
   DOSSIER FOOTER MANDATE SEAL & RELATED SECTION
   ============================================================ */
.dossier-related-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(12, 16, 22, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius-sm, 3px);
}

.dossier-related-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dossier-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dossier-related-list li a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.5;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.dossier-related-list li a strong {
  color: var(--copper);
}

.dossier-related-list li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.dossier-mandate-seal {
  margin: 3.5rem 0 2rem;
  padding: 1.5rem 1.2rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, rgba(7, 9, 12, 0.95) 75%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm, 3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.seal-header {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.seal-mandate {
  color: var(--text-primary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.seal-telemetry {
  color: #00ffd2;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* Mathematical Equations & KaTeX Display Formatting */
.math-display {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1.8rem 0;
  padding: 1.25rem 1rem;
  background: rgba(14, 18, 24, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm, 2px);
  text-align: center;
}

.math-display .katex-display {
  margin: 0;
}

.katex {
  font-size: 1.15em;
  color: #f6eedb;
}

.math-display .katex {
  color: #fff;
}




/* Briefcase Buttons on Article Pages */
.briefcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 255, 210, 0.08);
  border: 1px solid rgba(0, 255, 210, 0.35);
  color: #00ffd2;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.55rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.briefcase-btn:hover {
  background: rgba(0, 255, 210, 0.2);
  border-color: #00ffd2;
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 255, 210, 0.3);
}

.briefcase-nav-pill {
  cursor: pointer;
  background: rgba(0, 255, 210, 0.08);
  border: 1px solid rgba(0, 255, 210, 0.35);
  color: #00ffd2;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.briefcase-nav-pill:hover {
  background: rgba(0, 255, 210, 0.2);
  border-color: #00ffd2;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 255, 210, 0.25);
}

/* ============================================================
   A-D HYBRID GRAPHICS SYSTEM — ZERO HORIZONTAL SIDE-SCROLL
   ============================================================ */
.tbw-panel {
  background: #06080a;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-left: 3px solid var(--copper, #c87d4b);
  border-radius: var(--radius-sm, 3px);
  margin: 1.65rem 0 2rem;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.55);
}

.tbw-panel-header {
  background: rgba(200, 125, 75, 0.11);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  padding: 0.72rem 1.05rem;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  overflow-wrap: break-word;
}

.tbw-panel-body {
  padding: 0.9rem 1.05rem;
}

.tbw-vector-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  gap: 0.48rem;
}

.tbw-vector-list li {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.81rem;
  line-height: 1.48 !important;
  color: #cfd6de;
  padding-left: 1.15rem;
  position: relative;
  overflow-wrap: anywhere;
  margin: 0 !important;
}

.tbw-vector-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--copper, #c87d4b);
}

.tbw-kv-grid {
  display: grid;
  gap: 0.75rem;
}

.tbw-kv-row {
  display: grid;
  grid-template-columns: minmax(160px, 235px) 1fr;
  gap: 0.5rem 1.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tbw-kv-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tbw-kv-key {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--copper, #c87d4b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tbw-kv-val {
  font-size: 0.96rem;
  line-height: 1.5;
  color: #e4e8ed;
  overflow-wrap: break-word;
}

.tbw-table-wrap {
  margin: 1.65rem 0 2.1rem;
}

.tbw-table-caption {
  background: rgba(200, 125, 75, 0.12);
  border: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.25));
  border-left: 3px solid var(--copper, #c87d4b);
  border-bottom: none;
  padding: 0.72rem 1rem;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
}

.article-prose table.tbw-responsive-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
}

.article-prose table.tbw-responsive-table th,
.article-prose table.tbw-responsive-table td {
  overflow-wrap: break-word;
  word-break: normal;
  vertical-align: top;
  line-height: 1.52;
}

.tbw-svg-frame {
  background: #06080a;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-left: 3px solid var(--copper, #c87d4b);
  border-radius: var(--radius-sm, 3px);
  padding: 0.75rem;
  margin: 1.65rem 0 2.1rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.tbw-svg-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

pre.tbw-scaled-pre {
  font-size: clamp(0.46rem, 1.02vw, 0.78rem) !important;
  overflow-x: auto;
}

@media (max-width: 680px) {
  .tbw-kv-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .article-prose table.tbw-responsive-table thead {
    display: none;
  }

  .article-prose table.tbw-responsive-table,
  .article-prose table.tbw-responsive-table tbody,
  .article-prose table.tbw-responsive-table tr,
  .article-prose table.tbw-responsive-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .article-prose table.tbw-responsive-table tr {
    margin-bottom: 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-left: 3px solid var(--copper, #c87d4b);
    background: rgba(10, 12, 14, 0.6);
  }

  .article-prose table.tbw-responsive-table td {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.65rem 0.9rem;
  }

  .article-prose table.tbw-responsive-table td:last-child {
    border-bottom: none;
  }

  .article-prose table.tbw-responsive-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--copper, #c87d4b);
    margin-bottom: 0.25rem;
  }
}
