/* ==========================================================================
   Honest Bulletin Media - site.css
   Overrides on top of Bulma 1.0.2 (CDN). Written mobile-first (360px base),
   layered with min-width queries at 480px, 768px and 1024px.
   The file is self-sufficient for layout: it does not depend on Bulma's
   column rules to render correctly.
   ========================================================================== */

:root {
  color-scheme: light;
  --ink: #0d0d0d;
  --text: #1c1c1c;
  --muted: #595959;
  --rule: #bdbdbd;
  --rule-soft: #d9d9d9;
  --paper: #ffffff;
  --bar: #1a1a1a;
  --beige: #f3eadf;
  --beige-deep: #ebddca;
  --gold: #94652a;
  --gold-dark: #6f4a1b;
  --navy: #0c0c2e;
  --blue: #0b3fa6;
  --mist: #f2f5fb;
  --mist-edge: #d9e0ee;
  --serif: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  --sans: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --gutter: 16px;
  --radius: 8px;
}

@media (min-width: 768px) {
  :root { --gutter: 30px; }
}

/* ---------- Reset (does not rely on Bulma being present) ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
strong { font-weight: 700; color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Masthead: thin black bar with tracked caps ---------- */
.mast {
  position: relative;
  background: var(--bar);
  color: #fff;
}

.mast__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.mast__brand,
.mast__label,
.mast__domain,
.mast__back {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.mast__label { letter-spacing: 0.22em; white-space: nowrap; }
.mast__domain { display: none; color: #c4c4c4; letter-spacing: 0.1em; text-transform: lowercase; }

.mast__brand a,
a.mast__brand,
.mast__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: opacity 0.2s ease;
}

a.mast__brand:hover,
.mast__back:hover { opacity: 0.75; }
.mast a:focus-visible { outline-color: #fff; outline-offset: 2px; }

.mast__back {
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #d3a566;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  pointer-events: none;
}

@media (min-width: 768px) {
  .mast__inner { min-height: 32px; }
  .mast__inner--ad {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .mast__inner--ad .mast__domain { display: block; text-align: right; }
  .mast__brand, .mast__label, .mast__domain { font-size: 0.75rem; }
}

/* ---------- Page frame ---------- */
.page { padding-top: 26px; padding-bottom: 56px; }

@media (min-width: 768px) {
  .page { padding-top: 50px; padding-bottom: 84px; }
}

.page-cols { display: block; }
.col-main { min-width: 0; padding: 0; }
.col-side { display: none; padding: 0; }

@media (min-width: 1024px) {
  .page-cols { display: flex; align-items: flex-start; }
  .col-main { flex: 1 1 0; }
  .col-side {
    display: block;
    flex: none;
    width: 28%;
    max-width: 340px;
    margin-left: clamp(32px, 4vw, 52px);
    padding-bottom: 12px;
  }
}

@media (min-width: 1024px) and (min-height: 760px) {
  .col-side { position: sticky; top: 20px; }
}

/* ---------- Article head ---------- */
.article__head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.hed {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: #000;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .article__head { padding-bottom: 26px; }
  .hed { line-height: 1.34; }
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.3;
  color: #111;
}

.byline__who { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }

.byline__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bar);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.byline__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.byline__sep {
  display: none;
  width: 1px;
  height: 1em;
  margin-inline: 10px;
  background: #555;
}

@media (min-width: 480px) {
  .byline__text { flex-direction: row; align-items: center; gap: 0; }
  .byline__sep { display: inline-block; }
}

.byline__meta { display: inline-flex; align-items: center; gap: 8px; color: #333; }
.byline__meta svg { width: 20px; height: 20px; flex: none; color: #444; }

/* Beige lead-in box with a hard drop shadow (primary reference component) */
.callout {
  margin: 18px 0 24px;
  padding: 14px 16px;
  background: var(--beige);
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.42);
  font-family: var(--sans);
  font-style: italic;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.75;
  color: #111;
}

@media (min-width: 768px) {
  .callout { padding: 14px 20px; margin: 20px 0 26px; line-height: 1.95; }
}

/* ---------- Prose ---------- */
.prose { font-size: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem); }

.prose > p,
.split__text > p {
  margin: 0 0 1.35em;
  line-height: 1.85;
  color: var(--text);
}

.prose h2 {
  margin: 2.1em 0 0.75em;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem);
  line-height: 1.25;
  color: #000;
  scroll-margin-top: 20px;
  overflow-wrap: break-word;
}

.prose h2 + p { margin-top: 0; }

/* Figures and loops */
.fig { margin: 26px 0 28px; }
.fig--hero { margin-top: 0; }
.fig img { width: 100%; }

.fig figcaption,
.fig-cap {
  padding-top: 8px;
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.loop {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #d8d0c4;
}

.loop--tall { aspect-ratio: 3 / 4; }
.loop--tall video { object-position: center 20%; }
.loop--wide { aspect-ratio: 40 / 21; }

.loop video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .loop--tall { aspect-ratio: 9 / 16; }
}

/* Media + text, alternating sides */
.split {
  display: grid;
  gap: 18px;
  margin: 28px 0 24px;
  align-items: start;
}

.split__text p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: center;
    margin: 34px 0 30px;
  }
  .split--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--rev .split__media { order: 2; }
}

/* Italic pull statement, same component family as the callout */
.pull {
  margin: 28px 0 30px;
  padding: 16px 18px;
  background: var(--beige);
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.42);
  font-family: var(--sans);
  font-style: italic;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.7;
  color: #111;
}

.prose > .pull { margin: 28px 0 30px; line-height: 1.7; color: #111; }

/* Plain bullet list inside the prose */
.plain-list {
  margin: 0 0 1.6em;
  padding-left: 1.25em;
  list-style: disc;
}

.plain-list li {
  margin-bottom: 0.75em;
  padding-left: 0.3em;
  line-height: 1.75;
}

.plain-list li::marker { color: var(--gold); }

/* ---------- Requirement banners (icon rows) ---------- */
.needs {
  display: grid;
  gap: 12px;
  margin: 22px 0 28px;
}

.need {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(100deg, #f8f1e8 0%, var(--beige-deep) 100%);
  border-radius: var(--radius);
}

.need__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--gold);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.need__icon svg { width: 26px; height: 26px; }

.need__body { min-width: 0; }

.need__title {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.2;
  color: #111;
}

.need__sub {
  margin: 3px 0 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #4a4a4a;
}

/* ---------- Figure band (accent reference: clean sans numerals, mist panel) ---------- */
.stats {
  margin: 30px 0;
  background: var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--sans);
}

.stats__title {
  padding: 16px 20px 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.stats__list { display: grid; margin-top: 4px; }

.stat {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--mist-edge);
}

.stat:first-child { border-top: 0; }

.stat__num {
  font-size: clamp(1.6rem, 1rem + 1.3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.stat__num small {
  margin-left: 0.25em;
  font-size: 0.48em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.stat__label {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #373a50;
}

@media (min-width: 768px) {
  .stats__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 18px 18px 22px 22px; border-top: 0; border-left: 1px solid var(--mist-edge); }
  .stat:first-child { border-left: 0; }
}

/* ---------- Calls to action (primary reference: warm brown rounded button) ---------- */
.cta {
  margin: 34px 0 32px;
  text-align: center;
}

.cta__lead {
  max-width: 30em;
  margin: 0 auto 14px;
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: #000;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  background: var(--gold);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--gold-dark), 0 8px 18px rgba(111, 74, 27, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn::after {
  content: "\00bb";
  content: "\00bb" / "";
  font-size: 1.35em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

.cta-btn:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #523714, 0 10px 20px rgba(111, 74, 27, 0.28);
}

.cta-btn:hover::after { transform: translate(3px, -1px); }
.cta-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--gold-dark); }
.cta-btn:focus-visible { outline: 3px solid #111; outline-offset: 3px; color: #fff; }

@media (min-width: 480px) {
  .cta-btn { width: auto; min-width: 320px; padding-inline: 32px; }
}

/* ---------- Sidebar (desktop only) ---------- */
.side-h {
  margin-bottom: 12px;
  font-size: 1.375rem;
  line-height: 1.2;
  color: #000;
}

.toc { border-top: 1px solid var(--rule); }
.toc li { border-bottom: 1px solid var(--rule-soft); }

.toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 2px;
  font-size: 1rem;
  line-height: 1.35;
  color: #1c1c1c;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.toc a:hover { color: var(--gold-dark); padding-left: 6px; }
.toc a:focus-visible { outline-offset: 0; }

.toc__n {
  flex: none;
  min-width: 1.5em;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

.side-card {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.side-card__title {
  margin-bottom: 14px;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #000;
}

.side-card__art {
  display: grid;
  place-items: center;
  height: 84px;
  margin-bottom: 14px;
  background: var(--beige);
  color: var(--gold);
}

.side-card__art svg { width: 44px; height: 44px; }

.side-card__text {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.55;
  color: #2b2b2b;
}

.side-card .cta-btn { width: 100%; min-width: 0; padding-inline: 16px; font-size: 1.15rem; }

/* ---------- Footer: publisher imprint (no panel, no border) ---------- */
.base {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
  background: transparent;
  border: 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #595959;
}

.base .contact_info { margin: 0 0 6px; overflow-wrap: anywhere; }
.base .contact_info p { margin: 0; }
.base .contact_info .contact_name { font-weight: 700; color: #3d3d3d; }

.base .legal_links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 10px 0 8px;
}

.base .legal_links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #3d3d3d;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #9a9a9a;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.base .legal_links a:hover,
.base .legal_links a[aria-current="page"] { color: var(--gold-dark); text-decoration-color: currentColor; }

.base .credit_line {
  max-width: 62ch;
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #595959;
}

/* ---------- Document pages (about + legal) ---------- */
.doc-page { padding-top: 32px; padding-bottom: 32px; }

.doc {
  max-width: 760px;
  margin-inline: 0;
}

.doc__kicker {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.doc h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem);
  line-height: 1.25;
  color: #000;
}

.doc__updated {
  margin: 12px 0 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}

.doc h2 {
  margin: 2em 0 0.55em;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.3;
  color: #000;
}

.doc p,
.doc li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.doc p { margin: 0 0 1.1em; }
.doc ul { margin: 0 0 1.2em; padding-left: 1.25em; list-style: disc; }
.doc li { margin-bottom: 0.45em; padding-left: 0.2em; }
.doc li::marker { color: var(--gold); }
.doc strong { color: #000; }

.doc a.inline-link {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.doc a.inline-link:hover { color: #000; }

.doc address {
  margin: 0 0 1.2em;
  padding-left: 14px;
  border-left: 3px solid var(--beige-deep);
  font-style: normal;
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .doc-page { padding-top: 56px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
