/* ============================================================
   ZER0 BILLIONAIRES — screen.css
   One file. Plain CSS. No magic.

   FONTS:
     Oswald      — headlines, nav, labels, data values
     Roboto Mono — body text, prose, meta, small text

   COLOURS:
     #111111  Black       — primary text, nav background
     #D10000  Red         — accent, active states, data highlights
     #f5f5f0  Off-white   — page background
     #ffffff  White       — content cards
     #cccccc  Border      — dividers, box borders
     #888888  Muted       — labels, meta, secondary text
     #333333  Body text   — readable paragraphs

   STRUCTURE:
     zb-site             — full page wrapper
     zb-header           — top nav bar
     zb-main             — page content area
     zb-footer           — bottom bar
     zb-page-content     — standard content pages (max-width, padded)
     zb-page-fullbleed   — full width pages (Math, Dashboard)
   ============================================================ */


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


/* --- BASE --- */
html {
  font-size: 16px;
}

body {
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  background: #f5f5f0;
}


/* ============================================================
   SITE WRAPPER
   ============================================================ */
.zb-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.zb-main {
  flex: 1;
}


/* ============================================================
   HEADER + NAV
   ============================================================ */
.zb-header {
  background: #111;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zb-header-logo {
  padding: .75rem 0 .4rem;
}

.zb-header-logo a {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

/* The 0 in ZER0 — Roboto Mono sized to optically match Oswald cap height */
.zb-zero {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.12em;
  letter-spacing: .15em;
}

.zb-nav {
  padding: .4rem 0 .6rem;
}

/* Ghost outputs nav as a <ul> */
.zb-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.5rem;
}

.zb-nav ul li a {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.zb-nav ul li a:hover {
  color: #fff;
}

/* Active nav item — Ghost adds .nav-current */
.zb-nav ul li.nav-current a,
.zb-nav ul li a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #D10000;
}


/* ============================================================
   FOOTER
   ============================================================ */
.zb-footer {
  background: #111;
  padding: 1.25rem 2rem;
}

.zb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.zb-footer span {
  font-family: 'Roboto Mono', monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.zb-footer a {
  font-family: 'Roboto Mono', monospace;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  text-decoration: none;
}

.zb-footer a:hover {
  color: #ffffff;
}

.zb-footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}


/* ============================================================
   STANDARD CONTENT PAGES
   Data Sources, Governance, About, News list, etc.
   ============================================================ */
.zb-page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}


/* ============================================================
   FULL BLEED PAGES
   The Math, Wealth Dashboard
   ============================================================ */
.zb-page-fullbleed {
  width: 100%;
  padding: 0;
  margin: 0;
}


/* ============================================================
   TYPOGRAPHY — content pages
   ============================================================ */

/* Headings */
.zb-page-content h1,
.zb-page-content h2,
.zb-page-content h3,
.zb-page-content h4,
.zb-page-content h5,
.zb-page-content h6,
.zb-post-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #111;
  line-height: 1.1;
}

.zb-page-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.25rem; margin-top: 0; }
.zb-page-content h2 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-top: 2.5rem; margin-bottom: .6rem; }
.zb-page-content h3 { font-size: clamp(.9rem, 2vw, 1.1rem); font-weight: 400; letter-spacing: .12em; color: #444; margin-top: 1.5rem; margin-bottom: .4rem; }
.zb-page-content h4 { font-size: .9rem; margin-top: 1.25rem; margin-bottom: .3rem; }

/* Body text */
.zb-page-content p {
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 1rem;
}

/* Lists */
.zb-page-content ul,
.zb-page-content ol {
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.zb-page-content ul li::marker {
  color: #D10000;
}

/* Links */
.zb-page-content a {
  color: #D10000;
  text-decoration: none;
}

.zb-page-content a:hover {
  text-decoration: underline;
}

/* Strong */
.zb-page-content strong,
.zb-page-content b {
  font-weight: 700;
  color: #111;
}

/* Blockquote */
.zb-page-content blockquote {
  border-left: 3px solid #D10000;
  padding: .75rem 1rem;
  background: #fff;
  margin: 1.5rem 0;
  font-size: .9rem;
  line-height: 1.7;
  color: #333;
}

/* HR */
.zb-page-content hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2.5rem 0;
}

/* Tables */
.zb-page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin-bottom: 1.5rem;
}

.zb-page-content th {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  border-bottom: 1px solid #ccc;
  padding: .5rem .75rem;
  color: #111;
  text-align: left;
}

.zb-page-content td {
  padding: .5rem .75rem;
  border-bottom: 1px solid #eee;
  color: #333;
  line-height: 1.6;
}

/* Code */
.zb-page-content code {
  font-family: 'Roboto Mono', monospace;
  font-size: .875rem;
  background: #eee;
  padding: .1em .3em;
  border-radius: 2px;
}

.zb-page-content pre {
  background: #111;
  color: #f5f5f0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  line-height: 1.6;
}

.zb-page-content pre code {
  background: none;
  padding: 0;
}


/* ============================================================
   POST CARDS (News / index page)
   ============================================================ */
.zb-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.zb-post-card {
  background: #fff;
  border: 1px solid #ccc;
}

.zb-post-card-image img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.zb-post-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.zb-post-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #111;
  margin-bottom: .5rem;
}

.zb-post-card-title a {
  color: #111;
  text-decoration: none;
}

.zb-post-card-title a:hover {
  color: #D10000;
}

.zb-post-card-excerpt {
  font-size: .875rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: .75rem;
}

.zb-post-card-date {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #888;
}


/* ============================================================
   INDIVIDUAL POST
   ============================================================ */
.zb-post-header {
  margin-bottom: 2rem;
}

.zb-post-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: .5rem;
}

.zb-post-date {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #888;
}

.zb-post-feature-image {
  margin-bottom: 2rem;
}

.zb-post-feature-image img {
  width: 100%;
  display: block;
}

.zb-post-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #333;
}


/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
}

.pagination a {
  font-family: 'Oswald', sans-serif;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #D10000;
  padding-bottom: 1px;
}


/* ============================================================
   SOCIAL SECTION (Bluesky embed)
   ============================================================ */
/* ============================================================
   GHOST EDITOR — kg card width classes (required by Ghost)
   ============================================================ */
.kg-width-wide {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-image { max-width: 100%; height: auto; display: block; }
.kg-image-card { margin-bottom: 1.5rem; }
.kg-gallery-container { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.kg-gallery-image img { max-width: 100%; height: auto; display: block; }

.kg-bookmark-card {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: #fff;
}
.kg-bookmark-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .9rem;
  color: #111;
}
.kg-bookmark-description { font-size: .8rem; color: #666; line-height: 1.5; }
.kg-bookmark-url { font-size: .7rem; color: #888; display: block; word-break: break-all; }


/* ============================================================
   SOCIAL SECTION (Bluesky embed)
   ============================================================ */
.zb-social-section {
  background: #e2e2e2;
  padding: 3rem 2rem;
  border-radius: 24px;
  margin: 2rem 0;
}


/* ============================================================
   CITATION UI — source attribution + method panels
   ============================================================ */
.zb-citation {
  margin-top: .5rem;
  font-family: 'Roboto Mono', monospace;
  font-size: .7rem;
  line-height: 1.6;
  color: #888;
}

.zb-citation-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .5rem;
  margin-bottom: .2rem;
}

.zb-citation-type {
  font-family: 'Roboto Mono', monospace;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #888;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: .1rem .3rem;
  white-space: nowrap;
}

.zb-citation-details {
  margin-top: .35rem;
}

.zb-citation-details summary {
  cursor: pointer;
  font-family: 'Roboto Mono', monospace;
  font-size: .7rem;
  color: #888;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #ccc;
  list-style: none;
  display: inline;
  user-select: none;
}

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

.zb-citation-details summary:hover {
  color: #555;
  text-decoration-color: #888;
}

.zb-citation-details[open] summary {
  color: #555;
}

.zb-citation-panel {
  margin-top: .5rem;
  padding: .75rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  font-family: 'Roboto Mono', monospace;
  font-size: .7rem;
  line-height: 1.7;
  color: #555;
}

.zb-citation-panel p {
  font-family: 'Roboto Mono', monospace;
  font-size: .7rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: .4rem;
}

.zb-citation-panel p:last-child {
  margin-bottom: 0;
}

.zb-citation-panel strong {
  color: #333;
  font-weight: 700;
}

.zb-citation-panel a {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zb-citation-panel a:hover {
  color: #111;
}


/* ============================================================
   SOURCES & METHODS PAGE
   ============================================================ */

.zb-sm-intro {
  font-family: 'Roboto Mono', monospace;
  font-size: .9rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.zb-sm-section {
  margin-bottom: 3rem;
}

.zb-sm-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.25rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #e0e0e0;
}

.zb-sm-entry {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.zb-sm-entry:last-child {
  border-bottom: none;
}

.zb-sm-entry-header {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}

.zb-sm-entry-id {
  font-family: 'Roboto Mono', monospace;
  font-size: .65rem;
  color: #aaa;
  white-space: nowrap;
}

.zb-sm-entry-claim {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #111;
}

.zb-sm-entry-type {
  font-family: 'Roboto Mono', monospace;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #888;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: .1rem .3rem;
  white-space: nowrap;
}

.zb-sm-entry-body {
  font-family: 'Roboto Mono', monospace;
  font-size: .8rem;
  line-height: 1.8;
  color: #444;
}

.zb-sm-entry-body p {
  font-family: 'Roboto Mono', monospace;
  font-size: .8rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: .35rem;
}

.zb-sm-entry-body p:last-child {
  margin-bottom: 0;
}

.zb-sm-entry-body strong {
  color: #222;
  font-weight: 700;
}

.zb-sm-entry-body a {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zb-sm-entry-body a:hover {
  color: #111;
}

.zb-sm-entry-meta {
  margin-top: .6rem;
  font-family: 'Roboto Mono', monospace;
  font-size: .65rem;
  color: #aaa;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
}

/* ============================================================
   GLOSSARY PAGE
   ============================================================ */

.zb-glossary-intro {
  font-family: 'Roboto Mono', monospace;
  font-size: .9rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.zb-glossary-entry {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.zb-glossary-entry:last-child {
  border-bottom: none;
}

.zb-glossary-term {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #111;
  margin-bottom: .35rem;
}

.zb-glossary-def {
  font-family: 'Roboto Mono', monospace;
  font-size: .85rem;
  line-height: 1.8;
  color: #444;
}

.zb-glossary-def p {
  font-family: 'Roboto Mono', monospace;
  font-size: .85rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: .35rem;
}

.zb-glossary-def p:last-child {
  margin-bottom: 0;
}

.zb-glossary-note {
  margin-top: .5rem;
  font-family: 'Roboto Mono', monospace;
  font-size: .7rem;
  color: #888;
  font-style: italic;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .zb-header {
    padding: 0 1rem;
  }

  .zb-page-content {
    padding: 1.5rem 1rem 3rem;
  }

  .zb-nav ul {
    gap: .2rem 1rem;
  }

  .zb-nav ul li a {
    font-size: .7rem;
  }

  .zb-post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .zb-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
