/* ═══════════════════════════════════════════════════
   YAC — yacnews.com — Ghost Theme v1.0
   New Yorker-style editorial design
   White · EB Garamond · Cormorant SC masthead
   ═══════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --ink:      #111111;
  --ink-2:    #222222;
  --mid:      #444444;
  --muted:    #767676;
  --faint:    #999999;
  --rule:     #e0e0e0;
  --rule-hi:  #bbbbbb;
  --bg:       #ffffff;
  --nav-bg:   #1a1a1a;

  /* Property colours — dark/muted for white background */
  --p-news:    #1a1a2e;
  --p-defend:  #7c4a00;
  --p-protect: #900000;
  --p-think:   #3d1878;
  --p-live:    #7c3400;   /* orange — swapped */
  --p-create:  #1a5c2e;   /* green  — swapped */

  /* Typography */
  --ff: 'EB Garamond', Georgia, serif;
  --fm: 'Cormorant SC', Georgia, serif;
  --fi: 'Cormorant', Georgia, serif;
  --fu: 'JetBrains Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--ff); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── TAG COLOR SYSTEM ── */
/* Applied via data-tag attribute */
[data-tag="news"]    { color: var(--p-news); }
[data-tag="defend"]  { color: var(--p-defend); }
[data-tag="protect"] { color: var(--p-protect); }
[data-tag="think"]   { color: var(--p-think); }
[data-tag="live"]    { color: var(--p-live); }
[data-tag="create"]  { color: var(--p-create); }

/* Dot colors */
.ns-dot[data-tag="news"],
.nwi-dot[data-tag="news"],
.fc-dot[data-tag="news"]     { background: var(--p-news); }
.ns-dot[data-tag="defend"],
.nwi-dot[data-tag="defend"],
.fc-dot[data-tag="defend"]   { background: var(--p-defend); }
.ns-dot[data-tag="protect"],
.nwi-dot[data-tag="protect"],
.fc-dot[data-tag="protect"]  { background: var(--p-protect); }
.ns-dot[data-tag="think"],
.nwi-dot[data-tag="think"],
.fc-dot[data-tag="think"]    { background: var(--p-think); }
.ns-dot[data-tag="live"],
.nwi-dot[data-tag="live"],
.fc-dot[data-tag="live"]     { background: var(--p-live); }
.ns-dot[data-tag="create"],
.nwi-dot[data-tag="create"],
.fc-dot[data-tag="create"]   { background: var(--p-create); }

/* Section name border colors */
.sec-name[data-tag="news"]    { color: var(--p-news);    border-color: var(--p-news); }
.sec-name[data-tag="defend"]  { color: var(--p-defend);  border-color: var(--p-defend); }
.sec-name[data-tag="protect"] { color: var(--p-protect); border-color: var(--p-protect); }
.sec-name[data-tag="think"]   { color: var(--p-think);   border-color: var(--p-think); }
.sec-name[data-tag="live"]    { color: var(--p-live);    border-color: var(--p-live); }
.sec-name[data-tag="create"]  { color: var(--p-create);  border-color: var(--p-create); }

/* ── TOP UTILITY BAR ── */
.util {
  height: 36px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 28px;
}
.util-left { display: flex; align-items: center; gap: 20px; flex: 1; }
.util-date, .util-link {
  font-family: var(--fu);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  transition: color .12s;
}
.util-link:hover { color: var(--ink); }
.util-right { display: flex; align-items: center; gap: 10px; }
.u-btn {
  font-family: var(--fu);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  transition: all .12s;
}
.u-btn-ghost { border: 1px solid var(--rule-hi); color: var(--mid); }
.u-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.u-btn-solid { background: var(--ink); color: #fff; }
.u-btn-solid:hover { background: #333; }

/* ── MASTHEAD ── */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  transition: padding .3s ease;
  overflow: hidden;
}
.mast-logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.mast-logo { width: 48px; height: 48px; object-fit: contain; transition: all .3s ease; }
.mast-wordmark {
  font-family: var(--fm);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  display: block;
  transition: font-size .3s ease, letter-spacing .3s ease;
}
.mast-tagline {
  font-family: var(--fi);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .5px;
  margin-bottom: 20px;
  transition: opacity .3s ease, margin .3s ease;
}

/* ── STICKY NAV ── */
.main-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 200;
}

/* nav-inner: left sections + right actions only.
   The brand is absolutely centred so it doesn't push flex items. */
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  position: relative;
}

.nav-sections {
  display: flex;
  align-items: stretch;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}
.nav-sections::-webkit-scrollbar { display: none; }

.ns {
  font-family: var(--fu);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: 0 13px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color .12s;
  height: 44px;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
  text-decoration: none;
}
.ns:hover { color: rgba(255,255,255,.9); }
.ns.active { color: #fff; border-bottom-color: #fff; }

/* Brand absolutely centred — does NOT affect flex layout */
.nav-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fm);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  text-decoration: none;
}
.nav-brand.visible { opacity: 1; pointer-events: auto; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-btn {
  font-family: var(--fu);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  white-space: nowrap;
  transition: all .12s;
}
.nav-btn-ghost { border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.6); }
.nav-btn-ghost:hover { border-color: rgba(255,255,255,.7); color: #fff; }
.nav-btn-solid { background: #fff; color: var(--nav-bg); font-weight: 600; }
.nav-btn-solid:hover { background: #e8e8e8; }

.nav-search {
  color: rgba(255,255,255,.45);
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .12s;
  border-left: 1px solid rgba(255,255,255,.1);
  margin-left: 2px;
  height: 44px;
  cursor: pointer;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  flex-shrink: 0;
}
.nav-search:hover { color: #fff; }

/* ── LAYOUT ── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ── SECTION LABELS ── */
.sec { padding: 28px 0 0; margin-bottom: 22px; }
.sec-name {
  font-family: var(--fu);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 18px;
  color: var(--ink);
}
.sec-rule { height: 1px; background: var(--rule); margin-bottom: 22px; }

/* ── CATEGORY LABELS (above headlines) ── */
.cat {
  font-family: var(--fu);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
}

/* ── IMAGE PLACEHOLDER ── */
.ph {
  background: #f2f2f2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
}
.ph-l { font-family: var(--fu); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #ccc; }

/* ── HERO ── */
.hero { padding: 32px 0 0; border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1px 320px;
  gap: 0;
  margin-bottom: 28px;
}
.hdiv { background: var(--rule); margin: 0 32px; }
.hero-main { }
.hero-img { aspect-ratio: 3/2; margin-bottom: 12px; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.hero-img:hover img { transform: scale(1.02); }
.hero-img-link { display: block; }
.hero-caption { font-family: var(--fi); font-style: italic; font-size: 12.5px; color: var(--faint); margin-bottom: 18px; line-height: 1.45; padding-left: 10px; border-left: 2px solid var(--rule); }
h1.hero-hed { font-family: var(--ff); font-weight: 400; font-size: clamp(28px, 3.8vw, 50px); line-height: 1.1; color: var(--ink); margin-bottom: 14px; letter-spacing: -.3px; transition: color .12s; }
h1.hero-hed:hover { color: var(--muted); }
.hero-deck { font-family: var(--fi); font-style: italic; font-size: 19px; color: var(--mid); line-height: 1.6; margin-bottom: 14px; }
.byline { font-family: var(--fi); font-style: italic; font-size: 14px; color: var(--muted); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.byline strong { font-style: normal; font-weight: 400; color: var(--ink-2); }
.byline .sep { color: var(--rule-hi); padding: 0 4px; font-style: normal; }

/* Sidebar stories */
.ss { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ss:first-child { padding-top: 0; }
.ss:last-child { border-bottom: none; }
.ss-img { aspect-ratio: 3/2; margin-bottom: 10px; overflow: hidden; }
.ss-img img { width: 100%; height: 100%; object-fit: cover; }
.ss-img-link { display: block; }
.ss-hed { font-family: var(--ff); font-size: 18px; line-height: 1.22; color: var(--ink); margin-bottom: 5px; transition: color .12s; }
.ss:hover .ss-hed { color: var(--muted); }
.ss-deck { font-family: var(--fi); font-style: italic; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.ss-meta { font-family: var(--fu); font-size: 9px; color: var(--faint); margin-top: 6px; text-transform: uppercase; letter-spacing: .4px; }

/* Below fold */
.bf4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.bfc { padding: 0 22px; border-right: 1px solid var(--rule); }
.bfc:first-child { padding-left: 0; }
.bfc:last-child { border-right: none; padding-right: 0; }
.bfc:hover .bfc-hed { color: var(--muted); }
.bfc-hed { font-family: var(--ff); font-size: 17px; line-height: 1.25; color: var(--ink); margin-bottom: 6px; transition: color .12s; }
.bfc-deck { font-family: var(--fi); font-style: italic; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── MAIN + SIDEBAR LAYOUT ── */
.main-layout { display: grid; grid-template-columns: 1fr 1px 288px; gap: 0; padding: 0 0 60px; }
.mdiv { background: var(--rule); margin: 0 40px; }

/* ── STORY GRIDS ── */
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 32px; }
.story-col { padding: 0 24px 24px 0; border-right: 1px solid var(--rule); }
.story-col:last-child { border-right: none; padding-right: 0; }
.story-col:not(:first-child) { padding-left: 24px; }
.story-col:hover .shed { color: var(--muted); }

.g2 { display: grid; grid-template-columns: 2fr 1px 1.2fr; gap: 0; }
.g2d { background: var(--rule); margin: 0 28px; }

.simg { aspect-ratio: 4/3; margin-bottom: 12px; overflow: hidden; }
.simg img { width: 100%; height: 100%; object-fit: cover; }
.simg-wide { aspect-ratio: 3/2; margin-bottom: 12px; overflow: hidden; }
.simg-wide img { width: 100%; height: 100%; object-fit: cover; }
.simg-link { display: block; }

.shed { font-family: var(--ff); font-size: 20px; line-height: 1.2; color: var(--ink); margin-bottom: 7px; transition: color .12s; }
.sdeck { font-family: var(--fi); font-style: italic; font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 7px; }
.smeta { font-family: var(--fu); font-size: 9px; color: var(--faint); text-transform: uppercase; letter-spacing: .4px; }

.lead-hed { font-family: var(--ff); font-size: 25px; line-height: 1.18; color: var(--ink); margin-bottom: 9px; transition: color .12s; }
.lead-hed:hover { color: var(--muted); }
.lead-deck { font-family: var(--fi); font-style: italic; font-size: 16px; color: var(--mid); line-height: 1.65; margin-bottom: 9px; }

.mini-stack { }
.mi { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.mi:last-child { border-bottom: none; }
.mi:hover .mi-hed { color: var(--muted); }
.mi-hed { font-family: var(--ff); font-size: 17px; line-height: 1.28; color: var(--ink); margin-bottom: 4px; transition: color .12s; }
.mi-meta { font-family: var(--fu); font-size: 9px; color: var(--faint); text-transform: uppercase; letter-spacing: .4px; }

/* ── PULL QUOTE ── */
.pq { text-align: center; padding: 32px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 28px 0; }
.pq-text { font-family: var(--ff); font-style: italic; font-size: clamp(20px, 2.8vw, 30px); line-height: 1.35; color: var(--ink); max-width: 640px; margin: 0 auto 10px; }
.pq-attr { font-family: var(--fu); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* ── PROTECT FEATURE ── */
.pf { margin-bottom: 32px; border-top: 3px solid var(--p-protect); padding-top: 20px; }
.pf-grid { display: grid; grid-template-columns: 3fr 1px 1.5fr; gap: 0; }
.pfd { background: var(--rule); margin: 0 28px; }
.pf-hed { font-family: var(--ff); font-size: 25px; line-height: 1.18; color: var(--ink); margin-bottom: 11px; transition: color .12s; }
.pf-hed:hover { color: var(--p-protect); }
.pf-deck { font-family: var(--fi); font-style: italic; font-size: 16px; color: var(--mid); line-height: 1.7; margin-bottom: 10px; }
.pf-meta { font-family: var(--fu); font-size: 9px; color: var(--faint); text-transform: uppercase; letter-spacing: .4px; }
.pf-rh { font-family: var(--fu); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--p-protect); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.pf-ri { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.pf-ri:last-child { border-bottom: none; }
.pf-ri:hover .pf-ri-hed { color: var(--p-protect); }
.pf-ri-hed { font-family: var(--ff); font-size: 15px; line-height: 1.3; color: var(--ink); transition: color .12s; }

/* ── THINK PANEL ── */
.think-panel { border-top: 3px solid var(--p-think); padding-top: 20px; margin-bottom: 32px; }
.think-hrow { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.think-tit { font-family: var(--fm); font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--p-think); }
.think-sub-text { font-family: var(--fi); font-style: italic; font-size: 14px; color: var(--muted); }
.think-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.tc { padding: 0 24px 0 0; border-right: 1px solid var(--rule); }
.tc:last-child { border-right: none; padding-right: 0; }
.tc:not(:first-child) { padding-left: 24px; }
.tc:hover .tc-hed { color: var(--p-think); }
.tc-hed { font-family: var(--ff); font-style: italic; font-size: 18px; line-height: 1.28; color: var(--ink); margin-bottom: 7px; transition: color .12s; }
.tc-body { font-family: var(--fi); font-style: italic; font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 7px; }
.tc-lock { font-family: var(--fu); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }

/* ── LIVE + CREATE ── */
.lc-row { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0; margin-bottom: 32px; }
.lcd { background: var(--rule); margin: 0 32px; }
.lc-head { padding-bottom: 11px; border-bottom: 2px solid var(--rule); margin-bottom: 16px; }
.lc-live .lc-head   { border-color: var(--p-live); }
.lc-create .lc-head { border-color: var(--p-create); }
.lc-tit { font-family: var(--fm); font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.lc-live   .lc-tit { color: var(--p-live); }
.lc-create .lc-tit { color: var(--p-create); }
.lc-sub-t { font-family: var(--fi); font-style: italic; font-size: 13px; color: var(--muted); margin-top: 3px; }
.lci { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.lci:last-child { border-bottom: none; }
.lci:hover .lci-hed { color: var(--muted); }
.lci-hed { font-family: var(--ff); font-size: 17px; line-height: 1.28; color: var(--ink); margin-bottom: 4px; transition: color .12s; }
.lci-deck { font-family: var(--fi); font-style: italic; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── SECTION PAGE BANNER ── */
.sec-banner {
  padding: 36px 0 24px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 32px;
}
.sec-banner[data-tag="defend"]  { border-color: var(--p-defend); }
.sec-banner[data-tag="protect"] { border-color: var(--p-protect); }
.sec-banner[data-tag="think"]   { border-color: var(--p-think); }
.sec-banner[data-tag="live"]    { border-color: var(--p-live); }
.sec-banner[data-tag="create"]  { border-color: var(--p-create); }
.sec-banner[data-tag="news"]    { border-color: var(--p-news); }

.sec-banner-inner { display: flex; align-items: baseline; gap: 18px; margin-bottom: 8px; }
.sec-banner-name { font-family: var(--fm); font-weight: 600; font-size: clamp(32px, 5vw, 64px); letter-spacing: 3px; text-transform: uppercase; color: var(--ink); line-height: 1; }
.sec-banner-desc { font-family: var(--fi); font-style: italic; font-size: 17px; color: var(--muted); }
.sec-banner-meta {
  font-family: var(--fu);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.sec-meta-item { color: var(--muted); }

/* ── SIDEBAR ── */
.sb-sub { border-top: 2px solid var(--ink); padding-top: 18px; margin-bottom: 28px; }
.sb-ey { font-family: var(--fu); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sb-hed { font-family: var(--ff); font-size: 22px; line-height: 1.2; color: var(--ink); margin-bottom: 8px; }
.sb-hed em { font-style: italic; }
.sb-body { font-family: var(--fi); font-style: italic; font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.sb-btn { font-family: var(--fu); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; padding: 11px 16px; text-align: center; display: block; margin-bottom: 8px; transition: all .12s; }
.sb-btn-p { background: var(--ink); color: #fff; }
.sb-btn-p:hover { background: #333; }
.sb-btn-s { border: 1px solid var(--rule-hi); color: var(--mid); }
.sb-btn-s:hover { border-color: var(--ink); color: var(--ink); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 14px; }
.tier { background: var(--bg); padding: 10px 6px; text-align: center; transition: background .12s; }
.tier:hover { background: #f8f8f8; }
.tier-n { font-family: var(--fm); font-weight: 500; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
.tier-p { font-family: var(--fu); font-size: 13px; color: #0A7A90; }
.tier-per { font-family: var(--fu); font-size: 8px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }
.sb-net { border-top: 2px solid var(--ink); padding-top: 16px; margin-bottom: 28px; }
.sb-hd { font-family: var(--fm); font-weight: 600; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.nwi { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); transition: all .12s; }
.nwi:last-child { border-bottom: none; }
.nwi:hover .nwi-n { color: #0A7A90; }
.nwi-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--rule-hi); }
.nwi-n { font-family: var(--fu); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--mid); flex: 1; transition: color .12s; }
.nwi-sub { font-family: var(--fu); font-size: 9px; color: var(--faint); }
.sb-mr { border-top: 2px solid var(--ink); padding-top: 16px; margin-bottom: 28px; }
.mr-list { list-style: none; }
.mri { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.mri:last-child { border-bottom: none; }
.mri:hover .mri-hed { color: #0A7A90; }
.mri-n { font-family: var(--fu); font-size: 13px; color: var(--rule-hi); font-weight: 500; margin-top: 2px; }
.mri-hed { font-family: var(--ff); font-size: 14px; line-height: 1.3; color: var(--ink); transition: color .12s; }
.mri-tag { font-family: var(--fu); font-size: 9px; color: var(--faint); text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }
.sb-nl { border-top: 1px solid var(--rule); padding-top: 18px; }
.nl-hd { font-family: var(--fm); font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.nl-body { font-family: var(--fi); font-style: italic; font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.nl-form { display: flex; }
.nl-in { flex: 1; border: 1px solid var(--rule-hi); border-right: none; padding: 9px 11px; font-family: var(--fu); font-size: 11px; color: var(--ink); background: var(--bg); outline: none; }
.nl-in::placeholder { color: var(--faint); }
.nl-in:focus { border-color: var(--ink); }
.nl-go { background: var(--ink); border: 1px solid var(--ink); color: #fff; font-family: var(--fu); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; padding: 0 14px; cursor: pointer; }
.nl-success, .nl-error { font-family: var(--fu); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }
.nl-success { color: var(--p-create); }
.nl-error { color: var(--p-protect); }

/* ── POST / ARTICLE PAGE ── */
.post-layout { display: grid; grid-template-columns: 1fr 1px 288px; gap: 0; padding: 0 0 60px; }
.page-layout { padding: 48px 0 60px; max-width: 760px; margin: 0 auto; }
.post-main { padding: 40px 0; }
.post-hdr { margin-bottom: 32px; }
.post-title { font-family: var(--ff); font-weight: 400; font-size: clamp(28px, 4vw, 52px); line-height: 1.08; color: var(--ink); margin-bottom: 16px; letter-spacing: -.3px; }
.post-deck { font-family: var(--fi); font-style: italic; font-size: 21px; color: var(--mid); line-height: 1.55; margin-bottom: 20px; }
.post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.post-authors { font-family: var(--fi); font-style: italic; font-size: 14px; color: var(--mid); }
.author-name { color: var(--ink-2); font-weight: 500; }
.post-date-read { font-family: var(--fu); font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .5px; }
.post-feature-img { margin: 28px 0; }
.post-feature-img img { width: 100%; }
.post-feature-img figcaption { font-family: var(--fi); font-style: italic; font-size: 13px; color: var(--faint); margin-top: 8px; line-height: 1.5; }

/* Ghost content styles */
.post-content.gh-content { font-family: var(--ff); font-size: 19px; line-height: 1.85; color: var(--ink); }
.post-content.gh-content p { margin-bottom: 1.4em; }
.post-content.gh-content h2 { font-family: var(--ff); font-size: 28px; line-height: 1.2; font-weight: 400; margin: 1.6em 0 .6em; letter-spacing: -.2px; }
.post-content.gh-content h3 { font-family: var(--fm); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin: 1.4em 0 .5em; color: var(--mid); }
.post-content.gh-content blockquote { border-left: 2px solid var(--ink); padding-left: 24px; margin: 1.6em 0; font-style: italic; color: var(--mid); font-size: 21px; line-height: 1.55; }
.post-content.gh-content img { max-width: 100%; margin: 1.6em 0; }
.post-content.gh-content a { border-bottom: 1px solid var(--rule-hi); transition: border-color .12s; }
.post-content.gh-content a:hover { border-color: var(--ink); }
.post-content.gh-content ul, .post-content.gh-content ol { padding-left: 1.5em; margin: 1em 0; }
.post-content.gh-content li { margin-bottom: .5em; }
.post-content.gh-content hr { border: none; border-top: 2px solid var(--ink); margin: 2.5em 0; width: 80px; }
.post-content.gh-content figure { margin: 2em 0; }
.post-content.gh-content figcaption { font-family: var(--fi); font-style: italic; font-size: 13px; color: var(--faint); margin-top: 8px; text-align: center; }
.post-content.gh-content .kg-callout-card { border-left: 3px solid var(--ink); padding: 16px 20px; background: #f8f8f6; margin: 1.6em 0; }

.post-content--preview { -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%); mask-image: linear-gradient(to bottom, black 60%, transparent 100%); }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.post-tag { font-family: var(--fu); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid var(--rule); padding: 4px 10px; color: var(--mid); transition: all .12s; }
.post-tag:hover { border-color: var(--ink); color: var(--ink); }

.author-box { display: flex; gap: 16px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--rule); margin-top: 40px; }
.author-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name-large { font-family: var(--ff); font-size: 18px; color: var(--ink); margin-bottom: 4px; font-weight: 500; }
.author-bio { font-family: var(--fi); font-style: italic; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Paywall */
.paywall { background: #f8f8f6; border: 1px solid var(--rule); border-top: 3px solid var(--p-think); padding: 40px; text-align: center; margin: 32px 0; }
.paywall-label { font-family: var(--fu); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--p-think); margin-bottom: 12px; }
.paywall-hed { font-family: var(--ff); font-size: 26px; line-height: 1.2; margin-bottom: 12px; }
.paywall-deck { font-family: var(--fi); font-style: italic; font-size: 16px; color: var(--muted); max-width: 480px; margin: 0 auto 24px; line-height: 1.6; }
.paywall-btn { font-family: var(--fu); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; background: var(--ink); color: #fff; padding: 13px 24px; display: inline-block; margin-bottom: 12px; transition: background .12s; }
.paywall-btn:hover { background: #333; }
.paywall-signin { display: block; font-family: var(--fu); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); transition: color .12s; }
.paywall-signin:hover { color: var(--ink); }

/* Related posts */
.related-posts { padding: 40px 0 60px; border-top: 2px solid var(--ink); }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 32px 0; border-top: 1px solid var(--rule); }
.pagination a { font-family: var(--fu); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid); transition: color .12s; }
.pagination a:hover { color: var(--ink); }
.pagination .page-number { font-family: var(--fu); font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }

/* ── MEMBERSHIP STRIP ── */
.mem-section { background: #111; padding: 60px 0; border-top: 2px solid var(--ink); }
.mem-wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.mem-hdr { text-align: center; margin-bottom: 44px; }
.mem-ey { font-family: var(--fu); font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: #8CCDE0; margin-bottom: 10px; }
.mem-title { font-family: var(--fm); font-weight: 500; font-size: clamp(32px, 4vw, 52px); letter-spacing: 6px; text-transform: uppercase; color: #fff; margin-bottom: 12px; line-height: 1; }
.mem-sub { font-family: var(--fi); font-style: italic; font-size: 17px; color: #8CCDE0; max-width: 480px; margin: 0 auto; line-height: 1.5; }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #2a2a2a; border: 1px solid #2a2a2a; }
.mt { background: #111; padding: 30px 22px; transition: background .15s; }
.mt:hover { background: #1a1a1a; }
.mt-feat { background: #0d0d0d; border-top: 2px solid #22D3EE; }
.mt-badge { font-family: var(--fu); font-size: 8px; letter-spacing: 3px; text-transform: uppercase; background: #22D3EE; color: #000; padding: 2px 8px; display: inline-block; margin-bottom: 12px; font-weight: 600; }
.mt-name { font-family: var(--fm); font-weight: 500; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 5px; }
.mt-price { font-family: var(--fu); font-size: 26px; color: #22D3EE; margin-bottom: 3px; }
.mt-period { font-family: var(--fu); font-size: 9px; color: #4A8BA8; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.mt-feats { list-style: none; margin-bottom: 22px; }
.mt-feats li { font-family: var(--fi); font-style: italic; font-size: 13.5px; color: #8CCDE0; padding: 6px 0; border-bottom: 1px solid #1f1f1f; display: flex; gap: 8px; line-height: 1.4; }
.mt-feats li::before { content: "—"; font-family: var(--fu); font-size: 10px; color: #22D3EE; flex-shrink: 0; font-style: normal; }
.mt-cta { font-family: var(--fu); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; padding: 11px; display: block; text-align: center; border: 1px solid #2a2a2a; color: #8CCDE0; transition: all .15s; }
.mt-cta:hover { border-color: #22D3EE; color: #22D3EE; }
.mt-cta-feat { background: #22D3EE; color: #000; border-color: #22D3EE; font-weight: 600; }
.mt-cta-feat:hover { background: #0D9AB5; }

/* ── FOOTER ── */
.footer { background: var(--bg); border-top: 2px solid var(--ink); padding: 44px 28px 24px; }
.ft { max-width: 1280px; margin: 0 auto; }
.ft-top { display: grid; grid-template-columns: 200px 1px 1fr; gap: 0; padding-bottom: 32px; border-bottom: 1px solid var(--rule); margin-bottom: 22px; }
.ftd { background: var(--rule); margin: 0 36px; }
.ft-bn { font-family: var(--fm); font-weight: 600; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink); margin-bottom: 11px; display: flex; align-items: center; gap: 10px; }
.ft-logo { width: 28px; height: 28px; object-fit: contain; }
.ft-tag { font-family: var(--fi); font-style: italic; font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.ft-motto { font-family: var(--fu); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); line-height: 2; }
.ft-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ft-col-head { font-family: var(--fu); font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.ft-col ul { list-style: none; }
.ft-col li { font-family: var(--ff); font-size: 14px; color: var(--muted); padding: 4px 0; display: flex; align-items: center; gap: 6px; transition: color .12s; }
.ft-col li:hover { color: var(--ink); }
.fc-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; background: var(--rule-hi); }
.ft-bot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ft-copy { font-family: var(--fu); font-size: 9px; color: var(--faint); }
.ft-soc { display: flex; gap: 18px; }
.ft-s { font-family: var(--fu); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); transition: color .12s; }
.ft-s:hover { color: var(--ink); }

/* ── GHOST SEARCH ── */
.gh-search-modal { z-index: 9999 !important; }

/* ── RESPONSIVE ── */
@media(max-width: 1100px) {
  .hero-grid, .main-layout, .ft-top, .g2, .lc-row, .post-layout { grid-template-columns: 1fr; }
  .hdiv, .mdiv, .ftd, .g2d, .lcd { display: none; }
  .side { display: none; }
  .sidebar { display: none; }
  .g3, .think-grid, .bf4, .mem-grid { grid-template-columns: 1fr 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
  .pfd { display: none; }
  .ft-links { grid-template-columns: 1fr 1fr; }
  .page-layout { padding: 40px 0; }
}

@media(max-width: 768px) {
  .util { display: none; }
  .mast-wordmark { font-size: 36px; letter-spacing: 6px; }
  .mast-tagline { font-size: 12px; }
  .nav-sections { display: none; }
  .nav-inner { justify-content: center; }
  .nav-brand { opacity: 1 !important; }
  .nav-right { flex: 0 0 auto; }
  .wrap { padding: 0 16px; }
  .g3, .bf4, .think-grid, .mem-grid { grid-template-columns: 1fr; }
  .ft-links { grid-template-columns: 1fr; }
  .story-col { border-right: none; padding: 0 0 24px 0; padding-left: 0 !important; border-bottom: 1px solid var(--rule); }
  .tc { border-right: none; padding: 0 0 24px 0; padding-left: 0 !important; }
  .bfc { border-right: none; padding: 0 0 16px 0; padding-left: 0 !important; border-bottom: 1px solid var(--rule); }
  .mem-section { padding: 40px 0; }
  .mem-wrap { padding: 0 16px; }
  .footer { padding: 36px 16px 20px; }
  .post-content.gh-content { font-size: 17px; }
}

/* ── GHOST KOENIG EDITOR — REQUIRED CARD CLASSES ── */

/* Wide + full width images */
.kg-width-wide {
  position: relative;
  width: 85vw;
  max-width: 1200px;
  margin: 2em auto;
  left: 50%;
  transform: translateX(-50%);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  margin: 2em 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Gallery card */
.kg-gallery-container { display: flex; flex-direction: column; margin: 1.5em 0; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }
.kg-gallery-row:not(:first-of-type) { margin-top: 0.75em; }
.kg-gallery-image:not(:first-of-type) { margin-left: 0.75em; }

/* Bookmark card */
.kg-bookmark-card { width: 100%; margin: 1.5em 0; }
.kg-bookmark-container { display: flex; border: 1px solid var(--rule); border-radius: 2px; transition: border-color .15s; }
.kg-bookmark-container:hover { border-color: var(--rule-hi); }
.kg-bookmark-content { display: flex; flex-direction: column; padding: 20px; flex-grow: 1; }
.kg-bookmark-title { font-family: var(--ff); font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.kg-bookmark-description { font-family: var(--fi); font-style: italic; font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; max-height: 3em; overflow: hidden; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; font-family: var(--fu); font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 1px; }
.kg-bookmark-icon { width: 16px; height: 16px; }
.kg-bookmark-thumbnail { min-width: 160px; max-width: 160px; overflow: hidden; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Callout card */
.kg-callout-card { display: flex; gap: 16px; padding: 20px 24px; background: #f8f8f6; border-left: 3px solid var(--ink); margin: 1.5em 0; }
.kg-callout-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
.kg-callout-text { font-family: var(--fi); font-style: italic; font-size: 17px; line-height: 1.65; color: var(--mid); }

/* Toggle card */
.kg-toggle-card { border: 1px solid var(--rule); padding: 0; margin: 1.5em 0; }
.kg-toggle-heading { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; cursor: pointer; }
.kg-toggle-heading-text { font-family: var(--ff); font-size: 18px; font-weight: 500; color: var(--ink); }
.kg-toggle-content { padding: 0 20px 16px; font-family: var(--fi); font-style: italic; color: var(--mid); }

/* Video card */
.kg-video-card { margin: 1.5em 0; }
.kg-video-card video { width: 100%; max-width: 100%; }

/* Audio card */
.kg-audio-card { border: 1px solid var(--rule); padding: 20px; margin: 1.5em 0; display: flex; align-items: center; gap: 16px; }
.kg-audio-thumbnail { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
.kg-audio-title { font-family: var(--ff); font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.kg-audio-player { flex: 1; }

/* Product card */
.kg-product-card { border: 1px solid var(--rule); padding: 24px; margin: 1.5em 0; }
.kg-product-card-image { width: 100%; margin-bottom: 16px; }
.kg-product-card-title { font-family: var(--ff); font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.kg-product-card-description { font-family: var(--fi); font-style: italic; font-size: 15px; color: var(--mid); line-height: 1.6; margin-bottom: 16px; }
.kg-product-card-btn { display: inline-block; font-family: var(--fu); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; background: var(--ink); color: #fff; padding: 10px 20px; }

/* File card */
.kg-file-card { border: 1px solid var(--rule); padding: 16px 20px; margin: 1.5em 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kg-file-card-contents { flex: 1; }
.kg-file-card-title { font-family: var(--ff); font-size: 16px; color: var(--ink); }
.kg-file-card-caption { font-family: var(--fi); font-style: italic; font-size: 13px; color: var(--muted); }
.kg-file-card-metadata { font-family: var(--fu); font-size: 9px; color: var(--faint); text-transform: uppercase; margin-top: 4px; }
.kg-file-card-link { font-family: var(--fu); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; background: var(--ink); color: #fff; padding: 8px 14px; white-space: nowrap; }

/* Embed card */
.kg-embed-card { margin: 1.5em 0; }
.kg-embed-card iframe { width: 100%; }

/* Header card */
.kg-header-card { padding: 56px 0; text-align: center; margin: 1.5em 0; }
.kg-header-card h2 { font-family: var(--fm); font-size: clamp(28px, 5vw, 60px); letter-spacing: 4px; text-transform: uppercase; color: var(--ink); }
.kg-header-card p { font-family: var(--fi); font-style: italic; font-size: 18px; color: var(--muted); margin-top: 12px; }
.kg-header-card a { display: inline-block; font-family: var(--fu); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; background: var(--ink); color: #fff; padding: 12px 24px; margin-top: 20px; }

/* Code card */
.kg-code-card { margin: 1.5em 0; }
.kg-code-card pre { background: #1a1a1a; color: #e8e8e8; padding: 24px; overflow-x: auto; font-family: var(--fu); font-size: 14px; line-height: 1.6; }

/* Button */
.kg-button-card { text-align: center; margin: 1.5em 0; }
.kg-btn { display: inline-block; font-family: var(--fu); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; background: var(--ink); color: #fff; padding: 12px 24px; transition: background .12s; }
.kg-btn:hover { background: #333; }
.kg-btn.kg-btn-accent { background: #0A7A90; }
.kg-btn.kg-btn-accent:hover { background: #0D9AB5; }

/* ── DATA-PORTAL ELEMENTS ── */
/* Ghost Portal binds to elements with data-portal attribute */
[data-portal] { cursor: pointer; }

/* ── GHOST SEARCH MODAL ── */
/* sodo-search overlay z-index */
.gh-search-modal,
#sodo-search-root { z-index: 9000 !important; }

/* ── NAV MOBILE: show brand always on small screens ── */
@media(max-width: 768px) {
  .nav-brand {
    position: static;
    transform: none;
    opacity: 1 !important;
    pointer-events: auto;
    font-size: 16px;
    letter-spacing: 4px;
    flex: 1;
    text-align: center;
  }
  .nav-sections { display: none; }
  .nav-right .nav-btn-ghost { display: none; }
}
