/*
  Oceanside Tonight — The Broadsheet
  Custom theme for Ghost. Mobile-first. Small-town newspaper aesthetic with
  TV-broadcast chyron accents.

  Type:
    - Frank Ruhl Libre — display (newspaper nameplate, headlines)
    - Source Serif 4    — body (long-form reading)
    - JetBrains Mono   — chyrons / datelines / bylines (machine precision)

  Color:
    - White paper background
    - Deep ink charcoal text
    - Chyron orange used ONLY on broadcast/live elements
    - Navy reserved for the broadcast box
*/

/* =====================================================================
   1. ROOT TOKENS
   ===================================================================== */

:root {
  /* Color */
  --paper:        #FFFFFF;
  --paper-deep:   #F4F1EB;
  --ink:          #14110F;
  --ink-soft:     #2A241D;
  --ink-faded:    #6B6258;
  --rule:         #1c1815;
  --rule-soft:    #D8D3C8;
  --navy:         #0a1424;
  --chyron:       #EC8436;
  --chyron-deep:  #C46618;
  --live:         #E4322B;

  /* Type */
  --serif-display: 'Frank Ruhl Libre', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --serif-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono:          'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Type sizes — fluid, mobile-first. Hero significantly tightened from v1. */
  --text-mono-xs: 0.6875rem;   /* 11px */
  --text-mono-sm: 0.75rem;     /* 12px */
  --text-body:    1.0625rem;   /* 17px */
  --text-deck:    1.1875rem;   /* 19px */
  --text-h3:      clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --text-h2:      clamp(1.4rem, 1.15rem + 1.3vw, 1.95rem);
  --text-h1:      clamp(1.65rem, 1.25rem + 2vw, 2.5rem);
  --text-mast:    clamp(2rem, 1.4rem + 4vw, 4rem);
}

/* =====================================================================
   2. RESET / BASELINE
   ===================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  hanging-punctuation: first allow-end last;
}

body.ot-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: var(--text-body);
  line-height: 1.55;
  font-feature-settings: 'kern', 'liga', 'onum';
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

::selection { background: var(--chyron); color: #fff; }

.ot-skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4);
  font-family: var(--mono); font-size: var(--text-mono-sm);
}
.ot-skip:focus { left: var(--s-4); top: var(--s-4); z-index: 999; }

/* =====================================================================
   3. UTILITY ATOMS
   ===================================================================== */

.ot-mono {
  font-family: var(--mono);
  font-size: var(--text-mono-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums tabular-nums;
}
.ot-faded { color: var(--ink-faded); }
.ot-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color 120ms ease, color 120ms ease;
}
.ot-link:hover { text-decoration-color: var(--chyron); color: var(--chyron-deep); }

.ot-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--text-mono-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--chyron);
  padding: 0.35em 0.7em 0.3em;
  margin-bottom: var(--s-3);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.4em) 100%, 0 100%);
}
.ot-eyebrow.ot-faded {
  background: var(--paper-deep);
  color: var(--ink-faded);
}
.ot-eyebrow-link:hover { background: var(--chyron-deep); }

.ot-rule { width: 100%; border: 0; }
.ot-rule-thin   { height: 1px; background: var(--rule); }
.ot-rule-thick  { height: 3px; background: var(--rule); }
.ot-rule-double {
  height: 7px;
  background:
    linear-gradient(to bottom,
      var(--rule) 0, var(--rule) 1px,
      var(--paper) 1px, var(--paper) 6px,
      var(--rule) 6px, var(--rule) 7px);
}

/* =====================================================================
   4. MASTHEAD — slimmed, less giant
   ===================================================================== */

.ot-masthead {
  background: var(--paper);
  padding: var(--s-2) var(--gutter) 0;
  max-width: var(--maxw);
  margin: 0 auto;
}

.ot-mast-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  font-size: var(--text-mono-xs);
}
.ot-mast-strip-c { display: none; }
.ot-mast-strip-r { justify-self: end; }
.ot-mast-strip-l { justify-self: start; }

@media (min-width: 720px) {
  .ot-mast-strip-c { display: block; justify-self: center; }
}

.ot-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--live);
  font-weight: 700;
}
.ot-live-dot {
  width: 0.55em; height: 0.55em;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(228,50,43,0.6);
  animation: ot-pulse 1.6s ease-out infinite;
}
.ot-live-dot-static { animation: none; }
@keyframes ot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(228,50,43,0.55); }
  70%  { box-shadow: 0 0 0 0.55em rgba(228,50,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(228,50,43,0); }
}

.ot-nameplate {
  display: block;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  padding: var(--s-3) 0 var(--s-2);
}
.ot-nameplate-title {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: var(--text-mast);
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin: 0;
  text-transform: uppercase;
  font-feature-settings: 'lnum', 'kern';
  font-variant-numeric: lining-nums;
}
.ot-nameplate-tagline {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(0.85rem, 0.78rem + 0.35vw, 1rem);
  color: var(--ink-soft);
  margin: var(--s-2) 0 0;
  letter-spacing: 0.01em;
}

.ot-mast-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-2) 0;
  font-size: var(--text-mono-xs);
  text-align: center;
}
.ot-mast-meta .ot-sep { display: none; }
@media (min-width: 720px) {
  .ot-mast-meta { flex-wrap: nowrap; }
  .ot-mast-meta .ot-sep { display: inline; }
}
.ot-goose-level { font-style: normal; color: var(--chyron-deep); font-weight: 700; }

.ot-section-bar {
  padding: var(--s-2) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ot-section-bar::-webkit-scrollbar { display: none; }

.ot-section-list {
  display: flex;
  gap: var(--s-5);
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: flex-start;
  white-space: nowrap;
}
@media (min-width: 720px) {
  .ot-section-list { justify-content: center; gap: var(--s-6); }
}
.ot-section-item a {
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25em 0;
  border-bottom: 2px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
.ot-section-item a:hover { color: var(--chyron-deep); border-bottom-color: var(--chyron); }

/* =====================================================================
   5. MAIN CONTENT WRAPPER
   ===================================================================== */

.ot-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-5) var(--gutter) var(--s-8);
}

/* =====================================================================
   6. LATEST BROADCAST — three videos, full-width hero row
   ===================================================================== */

.ot-latest {
  background: var(--navy);
  color: #fff;
  padding: var(--s-4);
  margin-bottom: var(--s-6);
  /* Top-right corner notch — chyron lower-third feel */
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
@media (min-width: 720px) { .ot-latest { padding: var(--s-5) var(--s-5) var(--s-5); } }

.ot-latest-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: var(--s-4);
}
.ot-latest-label {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--chyron);
  color: #fff;
  padding: 0.45em 0.85em 0.4em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.5em) 100%, 0 100%);
}
.ot-latest-label .ot-live-dot { background: #fff; }
.ot-latest-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--mono);
  font-size: var(--text-mono-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 120ms ease;
}
.ot-latest-link:hover { color: var(--chyron); }
.ot-latest-link svg { transition: transform 200ms ease; }
.ot-latest-link:hover svg { transform: translate(2px, -2px); }

/* The sting card sits in slot 1 of the 3-up grid — same shape as the
   YouTube cards beside it. The <video> fills the thumb area. */
.ot-vid-thumb-video {
  position: relative;
  background: #000;
  overflow: hidden;
}
.ot-vid-thumb-video .ot-sting-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ot-vid-sting .ot-vid-thumb::before,
.ot-vid-sting .ot-vid-thumb::after { display: none; } /* no gradient, no play overlay on the sting card */

.ot-vid-yt {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  align-self: flex-start;
  margin-top: var(--s-2);
  background: var(--chyron);
  color: #fff;
  text-decoration: none;
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6em 0.95em 0.55em;
  transition: background 150ms ease, transform 150ms ease;
}
.ot-vid-yt:hover { background: var(--chyron-deep); transform: translateY(-1px); }
.ot-vid-yt svg { display: block; }

/* Three-up video grid */
.ot-latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) {
  .ot-latest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
}

.ot-vid {
  display: flex; flex-direction: column;
  text-decoration: none; color: #fff;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.ot-vid:hover {
  transform: translateY(-2px);
  border-color: var(--chyron);
  background: rgba(236,132,54,0.06);
}

.ot-vid-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000 center/cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ot-vid-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.ot-vid-thumb::after {
  /* Play overlay button */
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  opacity: 0.85;
  transform: scale(0.9);
  transition: opacity 200ms ease, transform 200ms ease;
}
.ot-vid:hover .ot-vid-thumb::after { opacity: 1; transform: scale(1); color: var(--chyron); }
.ot-vid-duration {
  position: absolute;
  right: 8px; bottom: 8px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15em 0.45em;
  z-index: 1;
}

.ot-vid-meta {
  padding: var(--s-3) var(--s-3) var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.ot-vid-title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  /* Limit to 3 lines so cards stay even */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ot-vid-date {
  font-family: var(--mono);
  font-size: var(--text-mono-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Skeleton state — shown until JS loads the feed */
.ot-vid-skeleton .ot-vid-thumb {
  background: linear-gradient(110deg, rgba(255,255,255,0.04) 8%, rgba(255,255,255,0.08) 18%, rgba(255,255,255,0.04) 33%);
  background-size: 200% 100%;
  animation: ot-shimmer 1.4s linear infinite;
}
.ot-vid-skeleton .ot-vid-thumb::after { content: ""; }
.ot-vid-title-skel {
  height: 0.9em;
  background: linear-gradient(110deg, rgba(255,255,255,0.04) 8%, rgba(255,255,255,0.1) 18%, rgba(255,255,255,0.04) 33%);
  background-size: 200% 100%;
  animation: ot-shimmer 1.4s linear infinite;
  margin: 0;
}
@keyframes ot-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =====================================================================
   7. SECTION BREAKS
   ===================================================================== */

.ot-section-break {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-6) 0 var(--s-5);
}
.ot-section-label {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* =====================================================================
   8. LEAD STORY
   ===================================================================== */

.ot-lead { display: flex; flex-direction: column; gap: var(--s-4); }
@media (min-width: 1024px) {
  .ot-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--s-6);
    align-items: start;
  }
}
.ot-lead-image {
  display: block;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.ot-lead-image img { width: 100%; height: auto; }
.ot-lead-text { display: flex; flex-direction: column; gap: var(--s-3); }

.ot-lead-title {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: var(--text-h1);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.ot-lead-title a {
  color: inherit; text-decoration: none;
  background-image: linear-gradient(var(--chyron), var(--chyron));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 220ms ease;
}
.ot-lead-title a:hover { background-size: 100% 2px; }

.ot-lead-deck {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: var(--text-deck);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}

.ot-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  font-size: var(--text-mono-xs);
}

.ot-read-on {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--chyron-deep);
  text-decoration: underline;
  text-decoration-color: var(--chyron);
  text-underline-offset: 0.3em;
}
.ot-read-on:hover { color: var(--ink); }

/* =====================================================================
   9. STORIES GRID
   ===================================================================== */

.ot-stories {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 720px) {
  .ot-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-6); }
}
@media (min-width: 1024px) {
  .ot-stories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ot-card { display: flex; flex-direction: column; gap: var(--s-3); }
.ot-card-image {
  display: block;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.ot-card-image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.ot-card-body { display: flex; flex-direction: column; gap: var(--s-2); }
.ot-card-title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: var(--text-h3);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
}
.ot-card-title a { color: inherit; text-decoration: none; }
.ot-card-title a:hover { text-decoration: underline; text-decoration-color: var(--chyron); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.ot-card-deck {
  font-family: var(--serif-body);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.ot-card-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  margin-top: var(--s-1);
  font-size: var(--text-mono-xs);
}

.ot-stories-empty .ot-empty-card {
  border: 1px dashed var(--rule-soft);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--paper-deep);
}

/* =====================================================================
   10. POST + PAGE
   ===================================================================== */

.ot-article, .ot-page { max-width: 720px; margin: 0 auto; }

.ot-article-head, .ot-page-head {
  text-align: left;
  padding: var(--s-5) 0 var(--s-5);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-5);
}
.ot-article-title, .ot-page-title {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: var(--text-h1);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: var(--s-3) 0 var(--s-3);
}
.ot-article-deck {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: var(--text-deck);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 var(--s-3);
  max-width: 56ch;
}
.ot-article-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  font-size: var(--text-mono-xs);
}

.ot-article-figure { margin: var(--s-5) 0 var(--s-5); border: 1px solid var(--rule); }
.ot-figcaption {
  padding: var(--s-3);
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}

.ot-article-body { font-size: var(--text-body); line-height: 1.62; }
.ot-article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 4.6em;
  line-height: 0.86;
  margin: 0.07em 0.08em -0.05em 0;
  color: var(--ink);
  text-transform: uppercase;
}
.ot-article-body p { margin: 0 0 var(--s-4); hyphens: auto; }
.ot-article-body h2 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.18;
  margin: var(--s-6) 0 var(--s-3);
}
.ot-article-body h3 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: var(--text-h3);
  margin: var(--s-5) 0 var(--s-3);
}
.ot-article-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--chyron); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.ot-article-body a:hover { color: var(--chyron-deep); }
.ot-article-body blockquote {
  margin: var(--s-5) 0;
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  border-left: 3px solid var(--chyron);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
}
.ot-article-body img { margin: var(--s-5) 0; border: 1px solid var(--rule); }
.ot-article-body hr { border: 0; height: 1px; background: var(--rule-soft); margin: var(--s-6) auto; width: 30%; }
.ot-article-body ul, .ot-article-body ol { padding-left: var(--s-5); margin: 0 0 var(--s-4); }
.ot-article-body li { margin-bottom: var(--s-2); }
.ot-article-body code { font-family: var(--mono); font-size: 0.92em; background: var(--paper-deep); padding: 0.15em 0.4em; }

.ot-article-foot { margin-top: var(--s-6); }
.ot-article-trailer { padding: var(--s-4) 0; margin: 0; }

.ot-page-body p:first-of-type::first-letter { float: none; font-size: inherit; margin: 0; }

/* =====================================================================
   11. SECTION (TAG / AUTHOR) HEADERS
   ===================================================================== */

.ot-section-head { padding: var(--s-5) 0 var(--s-4); }
.ot-section-title {
  font-family: var(--serif-display); font-weight: 900;
  font-size: var(--text-h1); line-height: 1.05;
  margin: var(--s-3) 0 var(--s-3);
  letter-spacing: -0.01em;
}
.ot-section-deck {
  font-family: var(--serif-body); font-style: italic;
  font-size: var(--text-deck); color: var(--ink-soft);
  margin: 0 0 var(--s-3); max-width: 56ch;
}
.ot-section-count { margin: 0; }

/* =====================================================================
   12. PAGINATION
   ===================================================================== */

nav.pagination {
  display: flex; justify-content: space-between; align-items: center;
  margin: var(--s-7) 0 0; padding-top: var(--s-5);
  border-top: 1px solid var(--rule-soft);
}
.pagination .nav-previous a, .pagination .nav-next a {
  font-family: var(--mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2em;
}
.pagination a:hover { border-bottom-color: var(--chyron); color: var(--chyron-deep); }
.pagination .page-number { font-family: var(--mono); font-size: var(--text-mono-xs); color: var(--ink-faded); letter-spacing: 0.16em; text-transform: uppercase; }

/* =====================================================================
   13. FOOTER
   ===================================================================== */

.ot-footer { max-width: var(--maxw); margin: 0 auto; padding: var(--s-6) var(--gutter) var(--s-5); }

.ot-colophon {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  padding: var(--s-5) 0;
}
@media (min-width: 720px) { .ot-colophon { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .ot-colophon { grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-6); } }

.ot-colophon-block { display: flex; flex-direction: column; gap: var(--s-3); }
.ot-colophon-text { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }
.ot-foot-links { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.ot-disclaimer-mini { font-style: italic; }

.ot-foot-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-4) 0 var(--s-5);
  font-size: var(--text-mono-xs);
}
@media (min-width: 720px) { .ot-foot-bar { justify-content: space-between; } }

/* =====================================================================
   14. KOENIG EDITOR — wide / full-bleed images & cards
   ===================================================================== */

.kg-width-wide {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 1024px) { .kg-width-wide { width: min(1100px, 100vw); } }
.kg-width-wide img { width: 100%; height: auto; }

.kg-width-full {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.kg-width-full img { width: 100%; height: auto; }

.kg-image-card { margin: var(--s-5) 0; }
.kg-image-card figcaption {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-faded);
  text-align: center;
  margin-top: var(--s-2);
}

.kg-gallery-container { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin: var(--s-5) 0; }
@media (min-width: 720px) { .kg-gallery-container { grid-template-columns: repeat(2, 1fr); } }

.kg-bookmark-card {
  margin: var(--s-5) 0;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.kg-bookmark-card a { display: block; text-decoration: none; color: var(--ink); }
.kg-bookmark-content { padding: var(--s-4); }
.kg-bookmark-title { font-family: var(--serif-display); font-weight: 700; font-size: 1.15rem; margin: 0 0 var(--s-2); }
.kg-bookmark-description { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 var(--s-2); }
.kg-bookmark-metadata { font-family: var(--mono); font-size: var(--text-mono-xs); color: var(--ink-faded); letter-spacing: 0.1em; text-transform: uppercase; }
.kg-bookmark-thumbnail img { width: 100%; height: auto; }

.kg-callout-card {
  margin: var(--s-5) 0;
  padding: var(--s-4);
  border-left: 3px solid var(--chyron);
  background: rgba(236, 132, 54, 0.06);
}

/* =====================================================================
   15. GHOST OVERRIDES — defang default member subscribe forms
   ===================================================================== */

.gh-subscribe, .gh-portal-triggerbtn { display: none !important; }
