/* Federal Reserve Coin — Institutional Design System
   Early-2010s research portal aesthetic */

:root {
  --sage: #748276;
  --forest: #40503F;
  --deep-olive: #344335;
  --muted-olive: #596858;
  --gold: #C0AE62;
  --off-white: #F4F4EE;
  --inst-gray: #E5E5DF;
  --text: #343832;
  --text-secondary: #666A62;
  --cream: #F5F5EF;
  --white: #FFFFFF;
  --border: #C8C8C0;
  --row-alt: #EFEFE8;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;

  --max: 1180px;
  --gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 13px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--off-white);
  color: var(--text);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.45;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 0;
}

a {
  color: var(--forest);
  text-decoration: underline;
}

a:hover {
  color: var(--deep-olive);
}

/* —— Utility —— */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 8px 0 14px;
}

.hr-gold {
  border: 0;
  border-top: 1px solid var(--gold);
  margin: 0;
}

.meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-olive);
  margin: 0 0 4px;
}

/* —— Top bar —— */
.topbar {
  background: var(--deep-olive);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 11px;
  padding: 5px 0;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--cream);
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
  color: var(--gold);
}

.topbar-links {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-links li {
  padding: 0 8px;
  border-left: 1px solid #5a6a59;
}

.topbar-links li:first-child {
  border-left: 0;
  padding-left: 0;
}

/* —— Header —— */
.site-header {
  background: var(--sage);
  color: var(--cream);
  padding: 14px 0 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-seal {
  width: 72px;
  height: 72px;
  border: 0;
  background: transparent;
  flex-shrink: 0;
  object-fit: contain;
}

.header-text {
  flex: 1;
  min-width: 0;
}

.header-text h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.header-text .subtitle {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 13px;
  color: #e8e8e0;
  max-width: 520px;
  line-height: 1.35;
}

.header-search {
  flex-shrink: 0;
  font-family: var(--sans);
}

.header-search label {
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
  color: #e0e0d8;
}

.header-search .search-row {
  display: flex;
  gap: 0;
}

.header-search input[type="search"] {
  width: 180px;
  border: 1px solid var(--deep-olive);
  border-right: 0;
  padding: 4px 6px;
  font-family: var(--sans);
  font-size: 12px;
  background: var(--off-white);
  color: var(--text);
  border-radius: 0;
}

.header-search button {
  border: 1px solid var(--deep-olive);
  background: var(--muted-olive);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 0;
}

.header-search button:hover {
  background: var(--forest);
}

/* —— Nav —— */
.main-nav {
  background: var(--forest);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--deep-olive);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 12px;
}

.main-nav li {
  border-right: 1px solid #5a6a59;
}

.main-nav a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  padding: 8px 14px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--deep-olive);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gold);
}

/* —— Breadcrumb / status —— */
.status-strip {
  background: var(--inst-gray);
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 11px;
  padding: 6px 0;
  color: var(--text-secondary);
}

.status-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.status-strip strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Layout —— */
.page {
  padding: 16px 0 32px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.main-col,
.side-col {
  min-width: 0;
}

/* —— Sections —— */
.section {
  margin-bottom: 22px;
  background: transparent;
}

.section-head {
  margin: 0 0 0;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.section-head .section-note {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-secondary);
  margin: 2px 0 0;
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 14px;
}

.panel + .panel {
  margin-top: 10px;
}

.panel-muted {
  background: var(--inst-gray);
}

/* —— Hero / intro —— */
.intro-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: start;
}

.intro-seal {
  width: 100px;
  height: 100px;
  border: 0;
  background: transparent;
  object-fit: contain;
}

.thesis {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--gold);
  background: var(--inst-gray);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--deep-olive);
}

.intro-lead {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}

.intro-lead strong {
  font-weight: 700;
}

.attribution-note {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

.dossier-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 10px 0 4px;
  border: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 11px;
}

.dossier-meta > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  border-bottom: 1px solid var(--inst-gray);
  border-right: 1px solid var(--inst-gray);
}

.dossier-meta > div:nth-child(2n) {
  border-right: 0;
}

.dossier-meta > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.dossier-meta .dm-label {
  padding: 6px 8px;
  background: var(--inst-gray);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dossier-meta .dm-val {
  padding: 6px 8px;
  color: var(--text);
  background: var(--white);
}

.dossier-meta a {
  color: var(--forest);
  text-decoration: none;
}

.dossier-meta a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .dossier-meta {
    grid-template-columns: 1fr;
  }

  .dossier-meta > div {
    border-right: 0;
  }

  .dossier-meta > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--inst-gray);
  }

  .dossier-meta > div:last-child {
    border-bottom: 0;
  }
}

.contract-box {
  font-family: var(--sans);
  font-size: 12px;
  background: var(--inst-gray);
  border: 1px solid var(--border);
  padding: 8px 10px;
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.contract-box .label {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.contract-box code {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.2;
  padding: 5px 10px;
  background: var(--muted-olive);
  color: var(--cream);
  border: 1px solid #3F4D3F;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  vertical-align: middle;
}

.btn:hover {
  background: var(--forest);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--off-white);
  color: var(--forest);
  border: 1px solid var(--muted-olive);
}

.btn-ghost:hover {
  background: var(--inst-gray);
  color: var(--deep-olive);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  font-family: var(--sans);
}

.pill-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--sans);
  font-size: 11px;
}

.pill-list li {
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: var(--off-white);
  margin-right: -1px;
  margin-bottom: -1px;
  color: var(--text);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--border);
  font-family: var(--sans);
}

.stat-row .stat {
  padding: 8px 8px;
  border-right: 1px solid var(--border);
  background: var(--white);
  text-align: left;
}

.stat-row .stat:last-child {
  border-right: 0;
}

.stat-row .stat .n {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
}

.stat-row .stat .l {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dedicate {
  margin-top: 12px;
  padding: 8px 10px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* —— Timeline / lore —— */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--inst-gray);
}

.timeline li:last-child {
  border-bottom: 0;
}

.timeline .when {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.timeline h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.timeline p {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

.source-links {
  margin: 10px 0 0;
  padding: 8px 10px;
  background: var(--inst-gray);
  border: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 11px;
}

.source-links ol {
  margin: 4px 0 0;
  padding-left: 18px;
}

.source-links a {
  color: var(--forest);
}

/* —— Receipts —— */
.receipt {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--inst-gray);
}

.receipt:last-child {
  border-bottom: 0;
}

.receipt .num {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  background: var(--deep-olive);
  color: var(--gold);
  text-align: center;
  padding: 6px 0;
  height: fit-content;
}

.receipt h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.receipt p {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--text);
}

.receipt .src {
  font-family: var(--sans);
  font-size: 11px;
  word-break: break-all;
}

.disclaimer {
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: #f8f8f2;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* —— Spec / tables —— */
.spec-quote {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0 0 10px;
  padding: 6px 8px;
  background: var(--inst-gray);
  border-left: 3px solid var(--gold);
}

.spec-list {
  margin: 0 0 12px;
  padding-left: 18px;
}

.spec-list li {
  margin-bottom: 6px;
  font-size: 12px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 12px;
  margin: 0;
}

table.data th {
  background: var(--forest);
  color: var(--cream);
  text-align: left;
  padding: 6px 8px;
  font-weight: 600;
  border: 1px solid var(--deep-olive);
}

table.data td {
  padding: 5px 8px;
  border: 1px solid var(--border);
  vertical-align: top;
}

table.data tr:nth-child(even) td {
  background: var(--row-alt);
}

table.data tr:nth-child(odd) td {
  background: var(--white);
}

/* —— Tokenomics —— */
.supply-callout {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 8px;
}

.supply-callout span {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.alloc-table td:first-child {
  width: 56px;
  font-weight: 700;
  color: var(--forest);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 11px;
}

.badge-row span {
  border: 1px solid var(--border);
  background: var(--off-white);
  padding: 3px 8px;
  margin-right: -1px;
  margin-bottom: -1px;
  color: var(--text);
}

/* —— How to buy —— */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--inst-gray);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps .step-n {
  width: 28px;
  height: 28px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.steps p {
  margin: 0;
  font-size: 12px;
  color: var(--text);
}

/* —— Roadmap —— */
.phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phase {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 10px 12px;
}

.phase .phase-label {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-olive);
  margin: 0 0 2px;
}

.phase h3 {
  margin: 0 0 6px;
  font-size: 15px;
  border-bottom: 1px solid var(--inst-gray);
  padding-bottom: 4px;
}

.phase ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
}

.phase li {
  margin-bottom: 3px;
}

/* —— FAQ —— */
.faq details {
  border-bottom: 1px solid var(--inst-gray);
  padding: 8px 0;
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+ ";
  font-family: var(--sans);
  color: var(--muted-olive);
  font-weight: 700;
}

.faq details[open] summary::before {
  content: "− ";
}

.faq details p {
  margin: 6px 0 2px;
  font-size: 12px;
  padding-left: 14px;
}

/* —— Sidebar —— */
.side-block {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: var(--white);
}

.side-block h3 {
  margin: 0;
  padding: 7px 10px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.side-block .body {
  padding: 10px;
  font-size: 12px;
}

.side-block ul {
  margin: 0;
  padding-left: 16px;
}

.side-block li {
  margin-bottom: 4px;
}

.side-block .body p {
  margin: 0 0 8px;
}

.side-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 12px;
}

.side-nav-list a {
  display: block;
  padding: 6px 10px;
  border-bottom: 1px solid var(--inst-gray);
  text-decoration: none;
  color: var(--forest);
}

.side-nav-list a:hover {
  background: var(--inst-gray);
}

.side-nav-list li:last-child a {
  border-bottom: 0;
}

.quick-facts {
  width: 100%;
  font-family: var(--sans);
  font-size: 11px;
  border-collapse: collapse;
}

.quick-facts th,
.quick-facts td {
  text-align: left;
  padding: 4px 0;
  border-bottom: 1px solid var(--inst-gray);
  vertical-align: top;
}

.quick-facts th {
  color: var(--text-secondary);
  font-weight: 600;
  width: 42%;
  padding-right: 8px;
}

.quick-facts tr:last-child th,
.quick-facts tr:last-child td {
  border-bottom: 0;
}

/* —— Footer —— */
.site-footer {
  background: var(--deep-olive);
  color: #c8cec4;
  font-family: var(--sans);
  font-size: 11px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--gold);
  margin-top: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
}

.site-footer h4 {
  margin: 0 0 6px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--serif);
}

.site-footer p {
  margin: 0 0 6px;
  line-height: 1.4;
}

.site-footer a {
  color: #d8ddd4;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 3px;
}

.footer-bottom {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #4a5a49;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #9aa498;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-search {
    width: 100%;
  }

  .header-search input[type="search"] {
    flex: 1;
    width: auto;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat-row .stat {
    border-bottom: 1px solid var(--border);
  }

  .phases {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro-grid {
    grid-template-columns: 72px 1fr;
  }

  .intro-seal {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 560px) {
  .header-text h1 {
    font-size: 20px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav a {
    padding: 7px 10px;
    font-size: 11px;
  }
}

/* —— Contract (CA) bar in the masthead —— */
.ca-wrap {
  margin-top: 12px;
}

.ca-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--deep-olive);
  border-left: 4px solid var(--gold);
  padding: 7px 10px;
  font-family: var(--sans);
  font-size: 12px;
}

.ca-label {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.ca-value {
  flex: 1 1 220px;
  min-width: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12.5px;
  color: var(--text);
  word-break: break-all;
}

.ca-bar.is-live .ca-value {
  color: var(--deep-olive);
  font-weight: 700;
}

.ca-bar .btn {
  padding: 4px 10px;
}

.ca-note {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .ca-note { display: none; }
  .ca-value { flex-basis: 100%; }
}

/* —— Masthead attribution stamp —— */
.header-stamp {
  margin: 0 8px 0 auto;
  padding: 7px 14px;
  flex-shrink: 0;
  border: 1px solid var(--gold);
  background: rgba(52, 67, 53, 0.32);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  transform: rotate(-3deg);
}

.header-stamp span {
  font-weight: 400;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .header-stamp {
    font-size: 14px;
    padding: 5px 10px;
    transform: none;
  }
}

/* —— Per-entry source links (timeline) —— */
.entry-src {
  margin: 7px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.entry-src > span {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  background: var(--inst-gray);
  border: 1px solid var(--border);
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.07em;
  color: var(--muted-olive);
  vertical-align: 1px;
}

.entry-src a {
  color: var(--forest);
  text-decoration: underline;
}

.entry-src a + a {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.entry-src a::before {
  content: "\2192\00a0";
  text-decoration: none;
}
