/*
Theme Name: Hivicron
Theme URI: https://hivicron.com/
Author: Hivicron
Description: Live theme for hivicron.com, focused on Geert Vanden Bossche’s HIVICRON theory.
Version: 2.1.7
License: GNU General Public License v2 or later
Text Domain: hivicron
*/

:root {
  --ink: #e8edf5;
  --muted: #9aa6b8;
  --paper: #f4f1ea;
  --paper-ink: #171c26;
  --paper-muted: #4d5868;
  --navy: #070b12;
  --navy-2: #0e1624;
  --navy-3: #152033;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(23, 28, 38, 0.14);
  --amber: #f2b115;
  --amber-soft: #ffd36a;
  --alert: #e23a2f;
  --alert-deep: #b42318;
  --cta: #f2b115;
  --cta-ink: #161204;
  --max: 72rem;
  --prose: 42rem;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--cta-ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.preview-banner {
  background: var(--amber);
  color: #1a1403;
  text-align: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.preview-banner a { color: inherit; text-decoration: underline; }

.site-header {
  background: rgba(7, 11, 18, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.site-brand .mark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  color: #fff;
}
.site-brand .tag {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.primary-nav {
  margin-left: auto;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.95rem;
}
.primary-nav a {
  text-decoration: none;
  color: #d5dce8;
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: 500;
  padding-bottom: 0.12rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: #fff;
  border-bottom-color: var(--amber);
}

.site-main { min-height: 60vh; }

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ===== Home hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(226, 58, 47, 0.18), transparent 42%),
    radial-gradient(ellipse at 10% 90%, rgba(242, 177, 21, 0.12), transparent 46%),
    linear-gradient(180deg, #070b12 0%, #10192a 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero h1 .q {
  color: var(--amber);
  font-style: italic;
  font-weight: 650;
}

.hero-cite {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-cite a { color: var(--amber-soft); }

.hero-lead {
  margin: 1.35rem 0 0;
  font-size: 1.12rem;
  color: #d5dce8;
  max-width: 40rem;
}

.hero-support {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  color: var(--amber-soft);
  max-width: 40rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}
.hero-tertiary {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
}
.hero-tertiary a { color: var(--amber-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.82rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--amber);
  color: var(--cta-ink);
}
.btn-primary:hover { background: var(--amber-soft); color: var(--cta-ink); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-soft); }
.btn-block { width: 100%; }

.hero-art { position: relative; min-height: 18rem; }
.hero-art svg { width: 100%; height: auto; display: block; }

.pulse-ring {
  transform-origin: 180px 180px;
  animation: pulse 5.5s ease-in-out infinite;
}
.escape-dot {
  animation: escape 6.5s ease-in-out infinite;
}
.spin-slow {
  transform-origin: 180px 180px;
  animation: spin 36s linear infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 0.85; transform: scale(1.05); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes escape {
  0%, 12% { offset-distance: 0%; opacity: 0.2; }
  50% { opacity: 1; }
  88%, 100% { offset-distance: 100%; opacity: 0.15; }
}

@supports (offset-path: path("M 0 0")) {
  .escape-dot {
    offset-path: path("M 236 128 C 280 90, 330 70, 390 96");
    offset-rotate: 0deg;
  }
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}
.section-inner { max-width: var(--max); margin: 0 auto; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.section-lead {
  max-width: 42rem;
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}
.section-lead a { color: var(--amber-soft); }

.join-band {
  background: var(--paper);
  color: var(--paper-ink);
  border-bottom: 1px solid var(--line-dark);
}
.join-band h2 { color: var(--paper-ink); }
.join-band .section-lead {
  color: var(--paper-muted);
  margin-bottom: 1.25rem;
}
.join-band .kicker { color: #8a5a00; }
.join-band .section-lead a { color: #8a5a00; }

.why-now {
  background: var(--navy-2);
  border-top: 3px solid var(--alert);
}
.why-now h2 { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.why-now h2 .live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--alert);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(226, 58, 47, 0.7);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(226, 58, 47, 0.65); }
  100% { box-shadow: 0 0 0 10px rgba(226, 58, 47, 0); }
}

.warn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.warn-card {
  background: var(--navy-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.25rem 1.3rem;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.warn-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.warn-card time {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.55rem;
}
.warn-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.4;
  color: #fff;
  font-weight: 500;
}
.warn-card p.attr {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.warn-card.alert {
  border-left-color: var(--alert);
  grid-column: 1 / -1;
}
.warn-card.alert blockquote { font-size: clamp(1.15rem, 2vw, 1.45rem); }

.credit-bar {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px dashed rgba(242, 177, 21, 0.35);
  padding: 0.85rem 1rem;
  border-radius: 8px;
}

/* Story */
.story { background: #0a101b; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.story-card {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.2rem 1.4rem;
}
.story-num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--amber);
  line-height: 1;
  display: block;
  margin-bottom: 0.7rem;
}
.story-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: #fff;
}
.story-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.story-card a { color: var(--amber-soft); }

.diagram {
  margin-top: 2.4rem;
  background: var(--navy-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.2rem;
}
.diagram h3 { margin: 0 0 0.4rem; color: #fff; font-size: 1.1rem; }
.diagram .cap { color: var(--muted); margin: 0 0 1.2rem; font-size: 0.92rem; }
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  position: relative;
}
.flow-step {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 0.9rem;
  text-align: center;
}
.flow-step strong { display: block; color: #fff; margin-bottom: 0.3rem; font-size: 0.95rem; }
.flow-step span { color: var(--muted); font-size: 0.82rem; }
.flow-step:last-child {
  border-color: rgba(226, 58, 47, 0.55);
  background: linear-gradient(180deg, rgba(226,58,47,0.16), var(--navy));
}
.flow-step:last-child strong { color: #ffb4ae; }

/* Quotes */
.quotes { background: var(--navy-2); }
.quote-stack { display: grid; gap: 1rem; }
.pull-quote {
  margin: 0;
  background: var(--navy);
  border-left: 4px solid var(--amber);
  border-radius: 0 14px 14px 0;
  padding: 1.3rem 1.4rem;
}
.pull-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.4;
  color: #fff;
}
.pull-quote footer {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.pull-quote a { color: var(--amber-soft); }

/* Newsletter bands */
.signup-band {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(226, 58, 47, 0.16), transparent 50%),
    linear-gradient(90deg, #140b0a, #1a1408 55%, #120e06);
  border-top: 1px solid rgba(242, 177, 21, 0.25);
  border-bottom: 1px solid rgba(242, 177, 21, 0.25);
}
.signup-band .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: 2rem;
  align-items: start;
}
.signup-band h2 { color: #fff; }
.signup-band .section-lead { margin-bottom: 0; color: #d7c9a6; }
.signup-band .signup {
  background: #f4f1ea;
  color: #171c26;
  border: 1px solid rgba(242,177,21,0.45);
  border-radius: 16px;
  padding: 1.2rem;
}
.signup-band .signup label { color: #171c26; }
.signup-band .signup input[type="text"],
.signup-band .signup input[type="email"],
.signup-band .signup textarea {
  background: #fff;
  color: #171c26;
  border-color: #c9c3b7;
}
.signup-band .signup .source { color: #4d5868; }
.signup-band .signup .source a { color: #9a1d16; }
.signup.signup--compact .signup-intro,
.signup.signup--compact .signup-note { display: none; }
.signup.signup--compact form { margin: 0; }
.signup label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.55rem 0 0.25rem; color: #fff; }
.signup input[type="text"],
.signup input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #0b0d12;
  color: #fff;
}
.signup input:focus { outline: 2px solid var(--amber); border-color: transparent; }
.signup .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.signup form { position: relative; }
.signup button[type="submit"] {
  margin-top: 1rem;
  width: 100%;
  background: var(--amber);
  color: var(--cta-ink);
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font-weight: 700;
  cursor: pointer;
}
.signup button[type="submit"]:hover { background: var(--amber-soft); }
.signup .status {
  margin: 0 0 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid;
  font-weight: 600;
}
.signup .status.ok,
.signup-success,
.form-status.ok {
  background: #e8f6eb;
  border: 1px solid #9cc9a5;
  color: #14532d;
  padding: 0.9rem 1rem;
  border-radius: 10px;
}
.signup .status.err,
.signup-error,
.form-status.err {
  background: #fdecea;
  border: 1px solid #e7a8a3;
  color: #8b1a14;
  padding: 0.9rem 1rem;
  border-radius: 10px;
}
/* Dark homepage band is behind a cream .signup card; the rules above stay readable there.
   These apply only if a status is placed on the dark band itself, outside the card. */
.signup-band > .section-inner > .status.ok {
  background: rgba(47, 158, 68, 0.18);
  border: 1px solid rgba(80, 200, 100, 0.55);
  color: #d4f5d8;
}
.signup-band > .section-inner > .status.err {
  background: rgba(226, 58, 47, 0.16);
  border: 1px solid rgba(226, 58, 47, 0.5);
  color: #ffd2cf;
}

/* Timeline */
.timeline { background: #070b12; }
.tl {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.4rem;
  list-style: none;
  border-left: 2px solid rgba(242, 177, 21, 0.35);
}
.tl li {
  position: relative;
  padding: 0 0 1.8rem 1.4rem;
}
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: "";
  position: absolute;
  left: -1.72rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 177, 21, 0.15);
}
.tl .year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.25rem;
}
.tl h3 { margin: 0 0 0.35rem; color: #fff; font-size: 1.08rem; }
.tl p { margin: 0; color: var(--muted); }
.tl a { color: var(--amber-soft); }
.tl li.next {
  background: linear-gradient(90deg, rgba(226,58,47,0.14), transparent 70%);
  border: 1px solid rgba(226,58,47,0.35);
  border-radius: 12px;
  padding: 1.1rem 1.1rem 1.2rem 1.4rem;
  margin-left: -0.2rem;
}
.tl li.next::before { background: var(--alert); box-shadow: 0 0 0 4px rgba(226,58,47,0.2); }
.tl li.next h3 { color: #ffd0cc; }
.tl li.next p { color: #e8edf5; }
.tl li.next blockquote {
  margin: 0.7rem 0 0;
  font-family: var(--serif);
  color: #fff;
  font-size: 1.05rem;
}

/* Latest */
.latest { background: var(--navy-2); }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.article-card {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.15rem 1.3rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--amber); }
.article-card time {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
}
.article-card h3 {
  margin: 0.5rem 0 0.55rem;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.3;
}
.article-card p { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.article-card .more {
  margin-top: 0.9rem;
  color: var(--amber-soft);
  font-weight: 600;
  font-size: 0.88rem;
}

.more-row { margin-top: 1.6rem; }

/* Disclaimer band */
.disclaimer-band {
  background: #0a0d13;
  color: var(--muted);
  font-size: 0.92rem;
}
.disclaimer-band h2 { font-size: 1.2rem; }
.disclaimer-band a { color: var(--amber-soft); }

/* Inner pages */
.page-hero {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(226,58,47,0.14), transparent 50%),
    linear-gradient(180deg, #0b1220, #10192a);
  padding: 2.6rem 1.5rem 2.2rem;
  border-bottom: 1px solid var(--line);
}
.page-hero > * , .page-hero h1 {
  max-width: var(--prose);
  margin-left: auto;
  margin-right: auto;
}
.page-hero h1 {
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  color: #fff;
}

.paper-wrap {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 2.6rem 1.5rem 4rem;
}
.entry-body, .paper-wrap > p, .paper-wrap > h2 {
  max-width: var(--prose);
  margin-left: auto;
  margin-right: auto;
}
.entry-body h2, .entry-body h3,
.paper-wrap h2, .paper-wrap h3 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
  color: #12161e;
}
.entry-body a, .paper-wrap a { color: #9a1d16; }
.entry-body p, .paper-wrap p { color: var(--paper-ink); }
.entry-body ul, .entry-body ol { max-width: var(--prose); margin-left: auto; margin-right: auto; }
.entry-body li + li { margin-top: 0.3rem; }

/* Timeline page list lives in the paper article, not the dark homepage section.
   The bare .timeline class is the navy homepage band; override it here so dates
   and text stay readable, and replace default bullets with timeline markers. */
.entry-body ul.timeline {
  background: transparent;
  list-style: none;
  position: relative;
  margin: 1.8rem auto;
  padding: 0.15rem 0 0.15rem 1.4rem;
  border-left: 2px solid rgba(154, 29, 22, 0.28);
  max-width: var(--prose);
}
.entry-body ul.timeline li {
  position: relative;
  padding: 0 0 1.8rem 1.4rem;
  margin: 0;
}
.entry-body ul.timeline li + li { margin-top: 0; }
.entry-body ul.timeline li:last-child { padding-bottom: 0.15rem; }
.entry-body ul.timeline li::marker { content: none; }
.entry-body ul.timeline li::before {
  content: "";
  position: absolute;
  left: -1.72rem;
  top: 0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #9a1d16;
  box-shadow: 0 0 0 4px rgba(154, 29, 22, 0.12);
}
.entry-body ul.timeline .date-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a1d16;
  margin: 0 0 0.35rem;
}
.entry-body ul.timeline p {
  margin: 0;
  color: var(--paper-ink);
}
.entry-body ul.timeline a { color: #9a1d16; }


body.page:not(.home) .signup, body.page:not(.home) .form-wrap {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding: 1.3rem;
  color: var(--paper-ink);
  max-width: var(--prose);
  margin: 1.5rem auto 0;
}
body.page:not(.home) .signup label { color: var(--paper-ink); }
body.page:not(.home) .signup input[type="text"],
body.page:not(.home) .signup input[type="email"] {
  background: #fff;
  color: var(--paper-ink);
  border-color: #c9c3b7;
}

.site-footer {
  background: #05070c;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 2.4rem;
  font-size: 0.9rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-nav ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
}
.footer-nav a { color: #d5dce8; text-decoration: none; }
.footer-nav a:hover { color: var(--amber-soft); }
.site-footer a { color: var(--amber-soft); }
.foot-meta { margin-top: 1rem; font-size: 0.82rem; }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-ring, .escape-dot, .spin-slow, .why-now h2 .live-dot {
    animation: none !important;
  }
  .btn:hover, .warn-card:hover, .article-card:hover { transform: none; }
}

@media (max-width: 900px) {
  .hero-grid,
  .signup-band .section-inner,
  .story-grid,
  .flow,
  .article-grid,
  .warn-grid { grid-template-columns: 1fr; }
  .warn-card.alert { grid-column: auto; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    padding-top: 1.4rem;
    padding-bottom: 2.4rem;
  }
  .hero-art {
    order: -1;
    max-width: 13.5rem;
    min-height: 0;
    margin: 0 auto 0.4rem;
  }
  .hero h1 { font-size: clamp(1.7rem, 8.4vw, 2.25rem); }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; margin-left: auto; flex: 0 0 auto; white-space: nowrap; }
  .header-inner { flex-wrap: wrap; gap: 0.65rem; padding: 0.78rem 1rem; }
  .site-brand { flex: 1 1 auto; }
  .primary-nav { display: none; width: 100%; order: 3; margin-left: 0; }
  .site-header.is-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; padding: 0.4rem 0 0.6rem; gap: 0.55rem; }
  .section { padding: 2.8rem 1.15rem; }
}

.signup .hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.signup textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #0b0d12;
  color: #fff;
}
.signup .source { font-size: 0.8rem; color: var(--muted); margin: 0.75rem 0 0; }
.signup .source a { color: var(--amber-soft); }
body.page:not(.home) .signup textarea {
  background: #fff;
  color: var(--paper-ink);
  border-color: #c9c3b7;
}
.signup.signup--compact .source { margin-top: 0.65rem; }

/* Hide leftover CMS credits if a plugin injects them. */
#footer-upgrade, .wp-credits { display: none !important; }

/* ===== Homepage Watch strip ===== */
.watch-band {
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  padding: 2.8rem 1.5rem;
}
.watch-band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  margin-bottom: 1.15rem;
}
.watch-band-head h2 { margin: 0; }
.watch-band-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
/* Second toggle + Watch link, under the cards: mobile only, where the six
   cards no longer fit on one screen and the top controls scroll away. */
.watch-band-controls--after {
  display: none;
  margin: 1rem 0 0;
}
.watch-more-link {
  color: var(--amber-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 211, 106, 0.45);
  padding-bottom: 0.1rem;
  white-space: nowrap;
}
.watch-more-link:hover { color: #fff; border-bottom-color: #fff; }
.watch-band-foot {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.watch-band-foot a { color: var(--amber-soft); font-weight: 600; }

.seg-group {
  display: inline-flex;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.2rem;
}
.seg-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
}
.seg-btn:hover { color: #fff; }
.seg-btn[aria-pressed="true"] {
  background: var(--amber);
  color: var(--cta-ink);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.signal-tile {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: rgba(21, 32, 51, 0.88);
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 16px;
  padding: 0.95rem 1rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.signal-tile:hover, .signal-tile:focus-visible {
  background: rgba(21, 32, 51, 1);
  outline: none;
}
.signal-tile.is-green { border-left-color: #34d399; }
.signal-tile.is-amber { border-left-color: var(--amber); }
.signal-tile.is-red { border-left-color: var(--alert); }
.signal-tile.is-na { border-left-color: #64748b; }
.signal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem 0.5rem;
  flex-wrap: wrap;
}
.signal-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.3;
}

.signal-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}
.signal-geo {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 177, 21, 0.42);
  color: var(--amber-soft);
  background: rgba(242, 177, 21, 0.10);
  line-height: 1.2;
  white-space: nowrap;
}
.signal-level {
  flex: 0 1 auto;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  line-height: 1.25;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}
.is-green .signal-level { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.is-amber .signal-level { background: rgba(242, 177, 21, 0.16); color: var(--amber-soft); }
.is-red .signal-level { background: rgba(226, 58, 47, 0.16); color: #ff8a82; }
.is-na .signal-level { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; }
.signal-value {
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.2;
}
.signal-trend {
  font-size: 0.85rem;
  font-weight: 600;
  color: #d5dce8;
}
.signal-detail {
  font-size: 0.81rem;
  color: #c3cede;
  line-height: 1.45;
}
.signal-date {
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.signal-jump {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-soft);
}
@media (max-width: 1100px) {
  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .watch-band { padding: 2.2rem 1.15rem; }
  .signal-grid { gap: 0.65rem; }
  .signal-tile { padding: 0.8rem 0.8rem 0.85rem; border-radius: 14px; }
  .signal-value { font-size: 1.12rem; }
  .signal-level { font-size: 0.62rem; padding: 0.12rem 0.4rem; }
  .watch-band-controls--after { display: flex; }
}

.timeline a, .entry-body a { overflow-wrap: anywhere; }

/* Support / tips page (paper article) */
.entry-body .support-actions {
  margin: 1.55rem 0 0.85rem;
}
.entry-body .support-actions .btn {
  min-width: 12rem;
}
.entry-body .support-note {
  margin: 0 0 2rem;
  font-size: 0.92rem;
  color: var(--paper-muted);
}
.entry-body .help-list {
  margin: 0.5rem auto 0;
  padding-left: 1.25rem;
}
.entry-body .help-list li + li {
  margin-top: 0.35rem;
}

/* Giving Hope Back fund promo */
.fund-notice {
  background: #121b2c;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.fund-notice-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
}
.fund-notice p {
  margin: 0;
  flex: 1 1 16rem;
  color: #d5dce8;
  line-height: 1.45;
}
.fund-notice-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--amber);
  color: var(--cta-ink);
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  white-space: nowrap;
}
.fund-notice-cta:hover { background: var(--amber-soft); color: var(--cta-ink); }
.fund-notice-dismiss {
  margin-left: auto;
  background: transparent;
  color: var(--muted);
  border: 0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.fund-notice-dismiss:hover,
.fund-notice-dismiss:focus { color: #fff; }

.fund-band {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(242, 177, 21, 0.10), transparent 46%),
    linear-gradient(180deg, #0c1320 0%, #10192a 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fund-band-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.15fr);
  gap: 2.4rem;
  align-items: center;
}
.fund-band-photo { margin: 0; }
.fund-band-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 26rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.fund-band-copy .section-lead { margin-bottom: 1.4rem; }
.fund-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.fund-band .btn-ghost { border-color: rgba(255,255,255,0.28); color: #fff; }

.fund-page-photo {
  margin: 0 auto 1.8rem;
  max-width: var(--prose);
}
.page-giving-hope-back .page-hero > *,
.page-giving-hope-back .page-hero h1 {
  max-width: 46rem;
}
.fund-page-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 26rem;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 0.85rem;
}
.fund-page-actions {
  margin: 1.8rem auto 0;
  max-width: var(--prose);
}
.fund-closing {
  max-width: var(--prose);
  margin: 2.2rem auto 0;
  padding: 1.15rem 1.2rem;
  background: #efeae0;
  border-left: 3px solid #c49212;
  color: var(--paper-ink);
  font-size: 0.98rem;
}
.fund-signoff { margin-top: 1.6rem; }
.fund-signoff p { margin: 0; }
.fund-signoff .name { margin-top: 0.35rem; font-weight: 600; }

@media (max-width: 720px) {
  .fund-band-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .fund-notice-inner { padding: 0.7rem 1.15rem 0.8rem; }
}

.fund-organizer-label {
  max-width: var(--prose);
  margin: 0 auto 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a5a00;
}
