/*
Theme Name: DI Broadsheet
Theme URI: https://design-interior.ro
Author: GitHub Copilot
Description: Newspaper broadsheet theme for a design interior publication. Ticker, centered masthead, 4-col grids, 3-col article layout with drop cap.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: di-broadsheet
*/

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;

  --white:       #ffffff;
  --off:         #faf9f7;
  --light:       #f2f0eb;
  --border:      #ddd9d2;
  --border-dark: #b5b0a5;
  --muted:       #8a8880;
  --body:        #2c2c28;
  --dark:        #111110;
  --accent:      #c0392b;
  --accent-dark: #9b2d22;

  --shell: min(1240px, 96vw);
  --sidebar-w: 260px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ── Shell ───────────────────────────────────────────────────────────────── */
.shell { width: var(--shell); margin-inline: auto; }

/* ── Breaking news ticker ────────────────────────────────────────────────── */
.breaking-bar {
  background: #1a1a18;
  color: #fff;
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.breaking-label {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  gap: 6px;
  z-index: 1;
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}
.ticker-item {
  padding: 0 0 0 32px;
  color: #d8d6d0;
  font-size: .73rem;
  font-family: var(--font-sans);
}
.ticker-item a { color: #d8d6d0; }
.ticker-item a:hover { color: #fff; text-decoration: underline; }
.ticker-sep { padding: 0 0 0 32px; color: #444; }

/* ── Site header ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  padding: 20px 0 14px;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.header-left  { display: flex; align-items: center; gap: 10px; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.hdr-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--dark);
  border-radius: 3px;
  line-height: 1;
  transition: background .12s;
}
.hdr-btn:hover { background: var(--light); }

.site-brand { display: block; text-align: center; }
.brand-eyebrow {
  font-family: var(--font-sans);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.03em;
  line-height: 1;
  display: block;
}
.brand-name em { font-style: normal; color: var(--accent); }
.brand-tagline {
  font-family: var(--font-sans);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
.header-rule {
  border: none;
  border-top: 3px double var(--dark);
  margin: 0;
}

/* ── Search in header ────────────────────────────────────────────────────── */
.header-search-wrap {
  padding: 8px 0 4px;
  display: none;
}
.header-search-wrap.open { display: block; }
.search-form {
  display: flex;
  border: 1px solid var(--border);
  max-width: 480px;
  margin: 0 auto;
}
.search-form label { flex: 1; display: block; }
.search-form .search-field {
  width: 100%;
  border: none;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: .85rem;
  background: var(--off);
  outline: none;
  color: var(--dark);
}
.search-form .search-field::placeholder { color: var(--muted); }
.search-form .search-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 18px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.search-form .search-submit:hover { background: var(--accent-dark); }

/* ── Primary navigation ──────────────────────────────────────────────────── */
.primary-nav-wrap {
  background: var(--white);
  border-top: 2px solid var(--dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.primary-nav {
  display: flex;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav li a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
  border-right: 1px solid var(--border);
  transition: background .1s, color .1s;
}
.primary-nav li:first-child > a,
.primary-nav li.current-menu-item > a { color: var(--accent); }
.primary-nav li a:hover { color: var(--accent); background: var(--off); }

/* ── Section headings ────────────────────────────────────────────────────── */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 2px solid var(--dark);
  padding-bottom: 5px;
  margin: 28px 0 0;
}
.sec-label {
  font-family: var(--font-sans);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.sec-subtitle {
  font-family: var(--font-sans);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Centered serif section heading */
.sec-head-centered {
  text-align: center;
  padding: 40px 8px 0;
}
.sec-title-serif {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1.2;
}
.sec-desc-sm {
  font-size: .74rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .04em;
}
.sec-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 20px;
}
.sec-rule::before,
.sec-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Text grid (4 col, no images) ────────────────────────────────────────── */
.text-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-bottom: 0;
}
.text-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.post-cat-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.post-cat-label a:hover { color: var(--accent); text-decoration: none; }
.text-cell h3 {
  font-family: var(--font-serif);
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.text-cell h3 a:hover { color: var(--accent); }
.text-cell p {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── 3-col hero layout ───────────────────────────────────────────────────── */
.hero-3col {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-w);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-bottom: 0;
}
.h3col-side {
  padding: 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.h3col-side-right {
  padding: 14px;
  border-left: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* side post list */
.side-list { list-style: none; margin-top: 8px; }
.side-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.side-list li:last-child { border-bottom: none; }
.side-list .sl-cat {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}
.side-list h4 {
  font-family: var(--font-serif);
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.3;
}
.side-list h4 a:hover { color: var(--accent); }
.side-list p {
  font-size: .7rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* center featured panel */
.h3col-feat {
  position: relative;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark);
  min-height: 320px;
}
.feat-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  opacity: .82;
}
.feat-no-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--border) 0%, var(--light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}
.feat-vert-cat {
  position: absolute;
  top: 16px;
  left: 0;
  background: var(--accent);
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-sans);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 12px 5px;
  line-height: 1;
}
.feat-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.feat-cat {
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.feat-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.feat-title a { color: #fff; }
.feat-title a:hover { color: #e8e8e4; text-decoration: underline; }
.feat-meta {
  font-size: .64rem;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
}
.feat-nav-btns {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 4px;
}
.feat-nav-btn {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.feat-nav-btn:hover { background: rgba(255,255,255,.35); }

/* opinion list */
.opinion-list { list-style: none; margin-top: 8px; }
.opinion-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.opinion-item:last-child { border-bottom: none; }
.opinion-thumb { width: 60px; height: 50px; object-fit: cover; }
.opinion-author-name {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}
.opinion-title {
  font-family: var(--font-serif);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.3;
}
.opinion-title a:hover { color: var(--accent); }

/* ── Image grid (4 col with thumbnails) ──────────────────────────────────── */
.img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--border);
  margin-bottom: 0;
}
.img-cell {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.img-cell .ic-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.img-no-thumb {
  width: 100%;
  height: 160px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-dark);
  font-size: 2rem;
}
.img-cell .ic-body { padding: 11px 14px 14px; }
.img-cell .ic-cat {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.img-cell h3 {
  font-family: var(--font-serif);
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.3;
}
.img-cell h3 a:hover { color: var(--accent); }
.img-cell p {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  margin: 32px 0 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  font-size: .78rem;
  font-family: var(--font-sans);
  color: var(--dark);
  transition: background .12s, color .12s;
}
.pagination a:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Single: full-width article hero ───────────────────────────────────── */
.article-hero {
  position: relative;
  border-top: 2px solid var(--dark);
  overflow: hidden;
  margin-bottom: 0;
}
.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,16,.80) 0%, rgba(17,17,16,.35) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
}
.article-hero-overlay .article-cat-badge {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  margin-bottom: 10px;
  display: inline-block;
}
.article-hero-overlay .article-title {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  margin-bottom: 10px;
  font-size: 2.8rem;
}
.article-hero-overlay .article-date { color: rgba(255,255,255,.7); }
.article-hero-overlay .article-byline {
  color: rgba(255,255,255,.75);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
/* Header without image */
.article-header-plain {
  border-top: 2px solid var(--dark);
  padding: 24px 0 16px;
}
/* Full-width standfirst below hero */
.article-lead-full {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--body);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin: 0 0 0;
  max-width: 820px;
}

/* ── SINGLE page layout ──────────────────────────────────────────────────── */
.single-wrap {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-w);
  border-top: 1px solid var(--border);
  padding-bottom: 60px;
  align-items: start;
}

.single-left {
  padding: 20px 16px 20px 0;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 48px;
}
.single-main  { padding: 20px 28px; }
.single-right {
  padding: 20px 0 20px 16px;
  border-left: 1px solid var(--border);
  position: sticky;
  top: 48px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: .68rem;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-dark); }

/* Article header */
.article-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.article-cat-badge {
  font-family: var(--font-sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.article-date {
  font-family: var(--font-sans);
  font-size: .62rem;
  color: var(--muted);
}
.article-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.12;
  color: var(--dark);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.article-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--body);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 2px;
  margin-bottom: 16px;
}
.article-byline {
  font-family: var(--font-sans);
  font-size: .7rem;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.article-byline strong { color: var(--dark); font-weight: 600; }

/* (article-feat-img unused — image moved to full-width hero above single-wrap) */
.article-feat-img { display: none; }

/* 2-column article body with drop cap */
.article-content {
  font-family: var(--font-sans);
  font-size: .93rem;
  line-height: 1.8;
  color: var(--body);
  columns: 2;
  column-gap: 28px;
  column-rule: 1px solid var(--border);
  margin-bottom: 28px;
}
.article-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.4rem;
  font-weight: 900;
  float: left;
  line-height: .83;
  margin: 2px 6px -2px 0;
  color: var(--dark);
}
.article-content p   { margin-bottom: 1em; }
.article-content h2  {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5em 0 .6em;
  column-span: all;
  border-top: 2px solid var(--dark);
  padding-top: 10px;
}
.article-content h3  {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.2em 0 .5em;
}
.article-content ul,
.article-content ol  { padding-left: 1.5em; margin-bottom: 1em; }
.article-content li  { margin-bottom: .4em; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  margin: 1.2em 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  column-span: all;
  background: var(--off);
}
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content a:hover { color: var(--accent-dark); }
.article-content img {
  column-span: all;
  margin: 1.2em 0;
  width: 100%;
  height: auto;
}
.article-content strong { font-weight: 700; color: var(--dark); }
.article-content figure { column-span: all; margin: 1em 0; }
.article-content figure img { width: 100%; }
.article-content figcaption {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
}
.article-content table { column-span: all; width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.article-content th,
.article-content td { border: 1px solid var(--border); padding: 6px 10px; font-size: .85rem; }
.article-content th { background: var(--light); font-weight: 700; }

/* ── Single sidebars ─────────────────────────────────────────────────────── */
.sidebar-section { margin-bottom: 24px; }
.sidebar-head {
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 5px;
  border-bottom: 2px solid var(--dark);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.sidebar-head-sub {
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .06em;
}

/* sidebar text posts */
.sidebar-post-list { list-style: none; }
.sidebar-post-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-post-list li:last-child { border-bottom: none; }
.sidebar-post-list .spl-meta {
  display: flex;
  gap: 6px;
  font-size: .58rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.sidebar-post-list .spl-cat { color: var(--body); font-weight: 600; }
.sidebar-post-list h5 {
  font-family: var(--font-serif);
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.3;
}
.sidebar-post-list h5 a:hover { color: var(--accent); }
.sidebar-post-list p {
  font-size: .68rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* mini card with thumb */
.mini-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mini-card:last-child { border-bottom: none; }
.mini-card-img { width: 68px; height: 52px; object-fit: cover; }
.mini-card-meta {
  font-size: .58rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.mini-card h5 {
  font-family: var(--font-serif);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
}
.mini-card h5 a:hover { color: var(--accent); }

/* timestamped list (right sidebar) */
.ts-list { list-style: none; margin-top: 8px; }
.ts-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.ts-list li:last-child { border-bottom: none; }
.ts-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}
.ts-time {
  font-size: .58rem;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}
.ts-title {
  font-family: var(--font-serif);
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.3;
}
.ts-title a:hover { color: var(--accent); }

/* ── Related posts section ───────────────────────────────────────────────── */
.related-section {
  border-top: 2px solid var(--dark);
  padding-top: 0;
  margin-top: 8px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--border);
  margin-top: 0;
}
.related-cell {
  padding: 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.related-cell img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 8px; }
.related-cell .rc-no-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-dark);
}
.related-cell .rc-cat {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.related-cell h4 {
  font-family: var(--font-serif);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
}
.related-cell h4 a:hover { color: var(--accent); }

/* ── Archive: featured first post ───────────────────────────────────────── */
.archive-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-top: 2px solid var(--dark);
  margin-bottom: 0;
}
.archive-feat-img {
  overflow: hidden;
  background: var(--light);
}
.archive-feat-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.archive-feat-img:hover img { transform: scale(1.03); }
.archive-feat-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.archive-feat-cat {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.archive-feat-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 12px;
}
.archive-feat-title a:hover { color: var(--accent); }
.archive-feat-excerpt {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.archive-feat-meta {
  font-size: .65rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.archive-feat-link {
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  align-self: flex-start;
  margin-bottom: 12px;
}
.archive-feat-link:hover { color: var(--dark); border-color: var(--dark); }
/* ── Archive page ────────────────────────────────────────────────────────── */
.archive-banner {
  border-bottom: 1px solid var(--border);
  padding: 20px 0 16px;
  margin-bottom: 16px;
}
.archive-banner .ab-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.archive-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}
.archive-desc {
  font-size: .83rem;
  color: var(--muted);
  margin-top: 6px;
  max-width: 600px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 3px double var(--dark);
  margin-top: 60px;
  padding: 40px 0 0;
  background: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.footer-brand-name em { font-style: normal; color: var(--accent); }
.footer-tagline {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--dark);
}
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 4px 0; border-bottom: 1px dotted var(--border); }
.footer-col ul li a { font-size: .78rem; color: var(--muted); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.footer-copy { font-size: .7rem; color: var(--muted); }

/* ── 404 page ────────────────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 80px 16px;
}
.error-page .err-code {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
}
.error-page h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.error-page p { color: var(--muted); margin-bottom: 24px; }
.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 2px solid var(--accent);
  transition: background .15s, color .15s;
}
.btn-accent:hover { background: transparent; color: var(--accent); }

/* ── Mobile nav overlay ──────────────────────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
}
.mobile-nav-overlay.is-open { display: block; }
.mobile-nav-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--white);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  align-self: flex-end;
  line-height: 1;
}
.mobile-nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 12px 0 16px;
}
.mobile-nav-list { list-style: none; margin-top: 4px; }
.mobile-nav-list li { border-bottom: 1px solid var(--border); }
.mobile-nav-list li a {
  display: block;
  padding: 12px 4px;
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
}
.mobile-nav-list li:first-child > a { color: var(--accent); }
.mobile-nav-list li a:hover { color: var(--accent); }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.page-wrap { min-height: 80vh; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --sidebar-w: 210px; }
  .brand-name  { font-size: 3.2rem; }
  .text-grid   { grid-template-columns: repeat(2, 1fr); }
  .img-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 800px) {
  :root { --sidebar-w: 180px; }
  .brand-name  { font-size: 2.6rem; }
  .brand-eyebrow, .brand-tagline { display: none; }
  .hero-3col   { grid-template-columns: 1fr; }
  .h3col-side, .h3col-side-right { display: none; }
  .img-grid    { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .brand-name  { font-size: 2rem; }
  .text-grid   { grid-template-columns: 1fr 1fr; }
  .primary-nav-wrap { display: none; }
  .single-wrap { grid-template-columns: 1fr; }
  .single-left  { display: none; }
  .single-right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 16px 0;
    position: static;
  }
  .article-hero-img { height: 240px; }
  .article-hero-overlay { padding: 20px; }
  .article-hero-overlay .article-title { font-size: 1.8rem; }
  .archive-feat { grid-template-columns: 1fr; }
  .archive-feat-img img { height: 200px; }
  .archive-feat-body { border-left: none; border-top: 1px solid var(--border); padding: 18px; }
  .single-main { padding: 16px 0; }
  .article-content { columns: 1; }
  .article-content > p:first-of-type::first-letter { font-size: 3.2rem; }
  .article-title { font-size: 1.85rem; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .single-left, .single-right { position: static; }
}

@media (max-width: 420px) {
  .text-grid { grid-template-columns: 1fr; }
  .img-grid  { grid-template-columns: 1fr; }
  .article-title { font-size: 1.55rem; }
}
