/* CryptoIRAIndex (c9) — Private Wealth, Sovereign Gold Vault & SEC EDGAR Institutional Observatory */
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/sourceserif4-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/assets/fonts/dm-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/assets/fonts/dm-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f2eb;
  --bg-elev: #fcfaf5;
  --bg-subtle: #ede8df;
  --obsidian: #12100e;
  --obsidian-elev: #161310;
  --charcoal: #1c1917;
  --ivory: #faf8f5;
  --ivory-muted: #d6cfc2;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --border: #d6cfc2;
  --border-strong: #a89f91;
  --gold: #9a6b16;
  --gold-bright: #d4af37;
  --gold-amber: #ca8a04;
  --gold-soft: #fef9e7;
  --gold-border: #d4af37;
  --olive: #3f6212;
  --olive-soft: #f2f7ec;
  --olive-border: #9cb380;
  --red: #881337;
  --red-bright: #991b1b;
  --red-soft: #fdf2f4;
  --red-border: #dfaab7;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 0px;
  --radius-md: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 0 rgba(28, 25, 23, 0.08);
  --shadow-md: 0 6px 20px rgba(18, 16, 14, 0.09);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.62;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(154, 107, 22, 0.45);
  text-underline-offset: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover {
  color: var(--charcoal);
  text-decoration-color: var(--charcoal);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-top: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
h2 {
  font-size: clamp(1.32rem, 2.2vw, 1.78rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

code, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Luxury Dark Fiduciary Ticker Bar */
.telemetry-ribbon {
  background: var(--obsidian);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.45rem 0;
  color: var(--ivory-muted);
}
.telemetry-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
}
.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  white-space: nowrap;
}
.telemetry-label {
  color: #a89f91;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
.telemetry-val {
  font-weight: 500;
  color: var(--ivory);
  text-decoration: none;
}
a.telemetry-val:hover {
  color: var(--gold-bright);
}
.telemetry-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  display: inline-block;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.8);
}

/* Dark Luxury Masthead & Gold-Bordered Navigation */
.site-header {
  background: var(--obsidian-elev);
  border-bottom: 2px solid var(--gold-bright);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 0.85rem;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ivory);
}
.brand-link:hover {
  color: var(--gold-bright);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--obsidian);
  color: var(--gold-bright);
  border: 1px solid var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.15rem;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}
.main-nav a {
  text-decoration: none;
  color: #e7e2d8;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.62rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: rgba(255, 255, 255, 0.02);
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-bright);
  color: var(--ivory);
}
.nav-radar-btn {
  background: rgba(136, 19, 55, 0.45) !important;
  border-color: #e11d48 !important;
  color: #fecdd3 !important;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 0.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.15rem;
}
.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Full-Bleed Dark Espresso-Gold Hero Section on Every Page */
.dossier-hero, .hero, .page-hero {
  background: linear-gradient(135deg, #12100e 0%, #1c1917 100%);
  color: var(--ivory);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-top: 3px solid var(--gold-bright);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 0;
  box-shadow: var(--shadow-md);
  position: relative;
}
.dossier-hero.threat {
  border-top-color: #e11d48;
}
.dossier-hero.gold {
  border-top-color: var(--gold-bright);
}
.dossier-hero::before {
  content: "SEC EDGAR & FIDUCIARY DOSSIER // PRIVATE WEALTH OBSERVATORY";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}
.dossier-hero h1, .hero h1, .page-hero h1 {
  color: var(--ivory);
}
.dossier-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.52rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink);
}
.badge-olive {
  background: var(--olive-soft);
  border-color: var(--olive-border);
  color: var(--olive);
}
.badge-gold {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold);
}
.badge-red {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: var(--red);
}
.dossier-hero .badge {
  background: rgba(250, 248, 245, 0.06);
  border-color: rgba(212, 175, 55, 0.38);
  color: #f3ead8;
}
.dossier-hero .badge-olive, .dossier-hero .badge-gold {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold-bright);
  color: #fde047;
}
.dossier-hero .badge-red {
  background: rgba(153, 27, 27, 0.35);
  border-color: #f87171;
  color: #fecaca;
}

.lead {
  font-size: 1.04rem;
  color: var(--ink-muted);
  max-width: 86ch;
  margin: 0.5rem 0 1rem;
}
.dossier-hero .lead {
  color: #dfd9ce;
}
.dossier-hero a {
  color: #facc15;
  text-decoration-color: rgba(250, 204, 21, 0.45);
}
.dossier-hero code {
  background: rgba(212, 175, 55, 0.14);
  color: #fef08a;
  padding: 0.08rem 0.32rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
}

/* Key Takeaway / Executive Briefing Box */
.aeo-takeaway {
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.aeo-takeaway.warn {
  background: var(--red-soft);
  border-color: var(--red-border);
  border-left-color: var(--red);
}
.aeo-takeaway.amber {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  border-left-color: var(--gold);
}
.aeo-takeaway-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.aeo-takeaway.warn .aeo-takeaway-title { color: var(--red); }
.aeo-takeaway.amber .aeo-takeaway-title { color: var(--gold); }
.dossier-hero .aeo-takeaway {
  background: rgba(250, 248, 245, 0.045);
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-left: 3px solid var(--gold-bright);
  color: var(--ivory);
  margin-bottom: 0.25rem;
}
.dossier-hero .aeo-takeaway-title {
  color: var(--gold-bright);
}
.dossier-hero .aeo-takeaway.warn {
  background: rgba(136, 19, 55, 0.28);
  border-color: rgba(244, 63, 94, 0.45);
  border-left-color: #f43f5e;
}
.dossier-hero .aeo-takeaway.warn .aeo-takeaway-title {
  color: #fda4af;
}

/* Swiss Architectural Spec Grid & Luxury Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--charcoal);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover {
  border-top-color: var(--gold);
  background: #ffffff;
}
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.metric-box {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 0.25rem;
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--ink);
}

/* Interactive Calculators & Fiduciary Simulators */
.calc-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--obsidian);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  margin-bottom: 1.65rem;
  box-shadow: var(--shadow-md);
}
.calc-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
  margin-bottom: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.calc-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field-group label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--ink);
}
.field-group input, .field-group select {
  width: 100%;
  font-size: 15px;
  font-family: var(--font-mono);
  padding: 0.52rem 0.68rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
}
.field-group input:focus, .field-group select:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  background: var(--bg-subtle);
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.52rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--obsidian);
  background: var(--obsidian);
  color: var(--ivory);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}
.btn-outline {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--obsidian);
  color: var(--gold-bright);
  border-color: var(--obsidian);
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

/* Swiss Architectural Tables */
.table-wrap {
  width: 100%;
  margin-bottom: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid #a89f91;
  border-top: 3px solid #1c1917;
  border-radius: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dossier-table, table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.dossier-table th, table thead th {
  background: #1c1917;
  color: #f5f2eb;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 0.78rem 0.9rem;
  border-bottom: 2px solid var(--gold-bright);
  border-right: 1px solid rgba(214, 207, 194, 0.16);
  white-space: nowrap;
}
.dossier-table th:last-child, table thead th:last-child {
  border-right: none;
}
.dossier-table td, table tbody td {
  padding: 0.74rem 0.9rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid #e7e1d5;
  vertical-align: top;
  color: var(--ink);
}
.dossier-table td:last-child, table tbody td:last-child {
  border-right: none;
}
.dossier-table tbody tr:nth-child(even) td, table tbody tr:nth-child(even) td {
  background: #f8f5ee;
}
.dossier-table tr:last-child td, table tbody tr:last-child td {
  border-bottom: none;
}
.dossier-table tbody tr:hover td, table tbody tr:hover td {
  background: #f3ebd9;
}

@media (max-width: 820px) {
  .dossier-table thead {
    display: none;
  }
  .dossier-table, .dossier-table tbody, .dossier-table tr, .dossier-table td {
    display: block;
    width: 100%;
  }
  .dossier-table tr {
    border-bottom: 2px solid var(--border-strong);
    padding: 0.65rem 0.85rem;
  }
  .dossier-table td {
    border-bottom: 1px dashed var(--border);
    border-right: none;
    padding: 0.45rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: right;
  }
  .dossier-table td:last-child {
    border-bottom: none;
  }
  .dossier-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    text-align: left;
    flex-shrink: 0;
    max-width: 46%;
  }
}

/* Section & FAQ Blocks */
.section-block {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--charcoal);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.65rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  background: #ffffff;
}
.faq-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.faq-a {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

/* SVG Bar Chart */
.svg-chart-wrap {
  width: 100%;
  margin: 1.15rem 0;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--obsidian);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
}
.svg-chart-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================================
   SWISS PRIVATE BANKING UNIQUE COMPONENTS (cii-*)
   ========================================================================= */

/* 1. Advisor Dossier Utility Toolbar (.cii-advisor-toolbar) */
.cii-advisor-toolbar {
  border: 1px solid #a89f91;
  border-top: 2px solid #1c1917;
  background: #ede8df;
  padding: 0.52rem 0.95rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.cii-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.cii-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1c1917;
  background: #fcfaf5;
  border: 1px solid #a89f91;
  padding: 0.28rem 0.58rem;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
}
.cii-tool-btn:hover, .cii-tool-btn.is-active {
  background: #12100e;
  color: var(--gold-bright);
  border-color: #12100e;
}
.cii-tool-count {
  background: #1c1917;
  color: var(--gold-bright);
  padding: 0.05rem 0.32rem;
  font-size: 0.67rem;
}

/* 2. Fiduciary & SEC Filing Ledger (.cii-fiduciary-ledger) */
.cii-fiduciary-ledger {
  border: 1px solid #a89f91;
  border-top: 3px solid #12100e;
  background: #fcfaf5;
  margin-bottom: 1.65rem;
  box-shadow: var(--shadow-sm);
}
.cii-ledger-bar {
  background: #161310;
  color: var(--ivory);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--gold-bright);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1rem;
}
.cii-ledger-stamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cii-ledger-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ivory);
  margin: 0;
}
.cii-ledger-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 !important;
  padding: 0 !important;
  border-collapse: collapse;
}
@media (max-width: 820px) {
  .cii-ledger-dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cii-ledger-row {
  display: grid;
  grid-template-columns: 43% 57%;
  align-items: baseline;
  margin: 0 !important;
  padding: 0.72rem 1.05rem;
  border-bottom: 1px solid #d6cfc2;
  border-right: 1px solid #d6cfc2;
  background: #fcfaf5;
}
.cii-ledger-row:nth-child(even) {
  border-right: none;
}
.cii-ledger-row:hover {
  background: #f5efe1;
}
@media (max-width: 580px) {
  .cii-ledger-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
    border-right: none;
  }
}
.cii-ledger-row dt {
  margin: 0 !important;
  padding: 0 0.65rem 0 0 !important;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7c5410;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 0.48rem;
  line-height: 1.35;
}
.cii-ledger-num {
  color: var(--gold-bright);
  background: #1c1917;
  padding: 0.06rem 0.34rem;
  font-size: 0.66rem;
  font-weight: 500;
  flex-shrink: 0;
}
.cii-ledger-row dd {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1c1917;
  line-height: 1.42;
  word-break: break-word;
}
.cii-plaque-preview {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 0.58rem 1.15rem;
  background: #181512;
  color: #e7e2d8;
  border-top: 1px solid rgba(212, 175, 55, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.cii-plaque-thumb {
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid var(--gold-bright);
  line-height: 0;
}
.cii-plaque-thumb img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  display: block;
}
.cii-plaque-preview figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex: 1 1 320px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.cii-plaque-kicker {
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cii-plaque-caption {
  color: #d6cfc2;
}
.cii-plaque-link {
  color: var(--gold-bright);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 0.18rem 0.5rem;
  background: rgba(212, 175, 55, 0.1);
}
.cii-plaque-link:hover {
  background: var(--gold-bright);
  color: #12100e;
}

/* 3. Fiduciary Protocol & SEC EDGAR Wire (.cii-fiduciary-protocol) */
.cii-fiduciary-protocol {
  border: 1px solid #a89f91;
  border-top: 3px solid #12100e;
  background: #fcfaf5;
  margin: 2rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
@media (max-width: 900px) {
  .cii-fiduciary-protocol {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cii-custody-audit {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid #d6cfc2;
}
@media (max-width: 900px) {
  .cii-custody-audit {
    border-right: none;
    border-bottom: 1px solid #d6cfc2;
  }
}
.cii-edgar-wire {
  padding: 1.35rem 1.5rem;
  background: #f5f0e6;
}
.cii-protocol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d6cfc2;
}
.cii-protocol-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  font-weight: 500;
}
.cii-progress-track {
  height: 5px;
  background: #d6cfc2;
  margin-bottom: 0.85rem;
}
.cii-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.2s ease;
}
.cii-audit-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cii-audit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.52rem 0.65rem;
  background: #ffffff;
  border: 1px solid #d6cfc2;
  font-size: 0.85rem;
  cursor: pointer;
}
.cii-audit-item:hover {
  border-color: var(--gold);
}
.cii-roman {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 24px;
}
.cii-wire-topics {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.65rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.cii-wire-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.65rem 0;
}
.cii-wire-input {
  flex: 1 1 200px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.5rem 0.68rem;
  border: 1px solid #a89f91;
  background: #ffffff;
  color: var(--ink);
}
.cii-table-util-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: #ede8df;
  border-bottom: 1px solid #a89f91;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.cii-table-filter-inp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid #a89f91;
  background: #ffffff;
  min-width: 210px;
}
.cii-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 16, 14, 0.76);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 1rem;
}
.cii-modal-backdrop.is-open {
  display: flex;
}
.cii-modal {
  background: #fcfaf5;
  border: 2px solid #12100e;
  border-top: 4px solid var(--gold-bright);
  max-width: 640px;
  width: 100%;
  padding: 1.4rem 1.6rem;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.cii-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: #12100e;
  color: var(--gold-bright);
  border: 1px solid var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}
.cii-cite-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #a89f91;
  background: #ffffff;
  margin: 0.25rem 0 0.45rem;
}

/* Dark Luxury Obsidian-Gold Footer */
.site-footer {
  background: var(--obsidian);
  border-top: 3px solid var(--gold-bright);
  padding: 2.6rem 0 2.2rem;
  margin-top: 2.5rem;
  font-size: 0.86rem;
  color: var(--ivory-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.7rem;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 0.35rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.footer-col a {
  color: #d6cfc2;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}
.footer-disclaimer {
  border-top: 1px solid rgba(212, 175, 55, 0.24);
  padding-top: 1.25rem;
  font-size: 0.79rem;
  line-height: 1.55;
  color: #a89f91;
}
.footer-disclaimer a {
  color: var(--gold-bright);
}
.footer-disclaimer code {
  color: var(--ivory);
}
