/* ============================================================
   7modes — Signals article reading layout (Moonbow)
   Paper-forward long-form reading column, bookended by a dark
   header band and the dark site footer. Link AFTER styles.css:
     <link rel="stylesheet" href="../css/moonbow/styles.css">
     <link rel="stylesheet" href="../css/moonbow/signals.css">
   Article body uses <nav id="nav"> + <footer> from components.css.
   ============================================================ */

/* ── Reading progress bar ── */
.read-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--moonbow), var(--gold));
  z-index: 300; transition: width 0.1s linear;
}

/* ── Dark header band (nav sits on this) ── */
.signals-header {
  background: var(--navy); position: relative; overflow: hidden;
  padding: 150px 60px 60px;
}
.signals-header::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 42%, rgba(140,164,224,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 12%, rgba(76,89,122,0.16) 0%, transparent 55%);
}
.signals-header > * { position: relative; z-index: 2; }
.signals-header-wrap { max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }

.signals-breadcrumb {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--d-dim);
  display: flex; align-items: center; gap: 10px; margin-bottom: 26px;
}
.signals-breadcrumb a { color: var(--d-dim); text-decoration: none; transition: color 0.2s; }
.signals-breadcrumb a:hover { color: var(--moonbow); }
.signals-breadcrumb span { color: var(--lavender); }
.signals-breadcrumb .sep { color: var(--steel); }

.signals-series-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--moonbow);
  border: 1px solid color-mix(in srgb, var(--moonbow) 40%, transparent);
  padding: 4px 12px; margin-bottom: 22px;
}
.signals-series-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: block; }

.signals-header-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; color: var(--d-fg);
  margin-bottom: 22px; max-width: 900px;
}
.signals-header-title em { font-style: italic; color: var(--lavender); }
.signals-header-sub {
  font-family: var(--font-body); font-weight: 300; font-size: 16px;
  color: var(--d-body); line-height: 1.8; max-width: 660px;
  border-left: 1px solid color-mix(in srgb, var(--moonbow) 28%, transparent);
  padding-left: 22px; margin-bottom: 34px;
}
.signals-header-meta { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.signals-meta-item { display: flex; flex-direction: column; gap: 5px; }
.signals-meta-label {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--d-dim);
}
.signals-meta-value { font-family: var(--font-body); font-size: 12px; color: var(--d-body); }

/* ── Reading column (paper) ── */
.article { max-width: 760px; margin: 0 auto; padding: 72px 32px 88px; }

.hero-figure { margin: 0 auto 76px; max-width: 1100px; padding: 0 32px; }

figure { margin: 52px 0; }
figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--paper-line); background: var(--paper-raised);
}
figcaption {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6;
  color: var(--ink-dim); text-align: center; margin-top: 16px; letter-spacing: 0.02em;
}

.lede {
  font-size: 19px !important; line-height: 1.8 !important;
  color: var(--ink) !important; font-weight: 300; margin-bottom: 26px !important;
}

/* override components.css bare `section { padding: 96px 60px }` */
.article .section { padding: 0; margin-bottom: 60px; }
.section { margin-bottom: 60px; }
.nav-links a.active { color: var(--moonbow); }
.section-index {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-index .axis-line { width: 24px; }
.section-index .axis-node { width: 4px; height: 4px; }
.section-title {
  font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 300; line-height: 1.18; color: var(--ink); margin-bottom: 26px;
}
.section-title em { font-style: italic; color: var(--accent-ink); }

.sub-title {
  font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 400; line-height: 1.25; color: var(--ink); margin: 38px 0 16px;
}
.sub-title em { font-style: italic; color: var(--accent-ink); }

.layer-heading {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--accent-ink); margin: 42px 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--paper-line);
}

.article p {
  font-size: 16.5px; line-height: 1.85; font-weight: 300;
  color: var(--ink-body); margin-bottom: 22px;
}
.article p em { font-style: italic; color: var(--ink); }
.article p strong { font-weight: 500; color: var(--ink); }
.article a.inline-link {
  color: var(--accent-ink); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-ink) 35%, transparent);
  transition: border-color 0.2s;
}
.article a.inline-link:hover { border-bottom-color: var(--accent-ink); }

/* Standalone punch lines */
.statement {
  font-family: var(--font-display) !important;
  font-size: clamp(22px, 2.8vw, 28px) !important;
  font-style: italic; font-weight: 300; color: var(--accent-ink) !important;
  line-height: 1.4 !important; margin: 8px 0 32px !important;
  padding-left: 22px; border-left: 1px solid color-mix(in srgb, var(--moonbow) 45%, transparent);
}

/* Bullet lists */
ul.prose-list { list-style: none; margin: 4px 0 26px; padding: 0; }
ul.prose-list li {
  font-size: 16px; line-height: 1.7; font-weight: 300; color: var(--ink-body);
  position: relative; padding-left: 24px; margin-bottom: 10px;
}
ul.prose-list li::before {
  content: ''; position: absolute; left: 3px; top: 10px;
  width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg);
}

/* Example-document callouts */
.example-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-dim); margin: 20px 0 10px;
}
ul.doc-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
ul.doc-list li {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-body);
  position: relative; padding-left: 18px;
}
ul.doc-list li::before { content: '›'; position: absolute; left: 0; color: var(--accent-ink); }

/* Weak vs strong test quotes */
.qa-quote {
  border-left: 2px solid color-mix(in srgb, var(--moonbow) 45%, transparent);
  padding-left: 18px; margin: 4px 0 22px;
  font-family: var(--font-display); font-style: italic; font-size: 21px;
  line-height: 1.4; color: var(--ink);
}

/* ── Closing CTA ── */
.article-end { max-width: 760px; margin: 0 auto; padding: 0 32px 88px; }
.article-end-inner {
  border-top: 1px solid var(--paper-line); padding-top: 40px;
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
}
.article-end-note { font-family: var(--font-body); font-size: 14px; font-weight: 300; color: var(--ink-mid); max-width: 440px; line-height: 1.7; }
.article-end-note strong { color: var(--ink); font-weight: 400; }
.article-end-cta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent-ink); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent-ink) 40%, transparent);
  padding: 12px 22px; transition: background 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap;
}
.article-end-cta:hover { background: var(--accent-ink); color: var(--paper); border-color: var(--accent-ink); }

/* End-of-article resource note */
.resource-note {
  margin-top: 40px; padding: 22px 24px;
  border: 1px solid var(--paper-line); border-left: 2px solid var(--gold);
  background: var(--paper-2);
}
.resource-note .resource-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: 10px;
}
.resource-note p { margin: 0 !important; font-size: 15px !important; color: var(--ink-mid) !important; }
.resource-note a {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-ink); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); transition: border-color 0.2s;
}
.resource-note a:hover { border-bottom-color: var(--accent-ink); }

@media (max-width: 768px) {
  .signals-header { padding: 120px 24px 48px; }
  .signals-header-meta { gap: 24px; }
  .article { padding: 48px 24px 64px; }
  .hero-figure { padding: 0 24px; margin-bottom: 52px; }
  .article-end { padding: 0 24px 64px; }
}
