/* ─── FONTS ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,400;0,600;0,700;1,400&family=Oswald:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Inter:wght@400;500;600&family=Roboto:wght@400;500&display=swap');

/* ─── VARIABLES ──────────────────────────────────────────────────── */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --bg-base:    #F5F0EA;
  --bg-white:   #FFFFFF;
  --bg-quote:   #EDE8DF;
  --bg-dark:    #1A1A1A;

  --text-headline: #1A1A1A;
  --text-body:     #3D3530;
  --text-secondary:#6B6259;
  --text-muted:    #9E9189;

  --accent:      #C5542D;
  --accent-dark: #A8421F;

  --border:      #E5DDD5;
  --border-dark: #C8BFB5;

  /* backward-compat aliases used by auth pages */
  --red:         var(--accent);
  --red-dark:    var(--accent-dark);
  --red-dim:     rgba(197,84,45,0.08);
  --bg-card:     var(--bg-white);
  --bg-topbar:   var(--bg-dark);
  --bg-nav:      var(--bg-white);
  --bg-ad-slot:  #ebe5dd;

  --gutter: 1.1rem;
  --max-w:  700px;
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-base); color: var(--text-body); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; font-size: 0; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── MASTHEAD ───────────────────────────────────────────────────── */
.masthead {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-toggle {
  font-size: 1.3rem;
  color: var(--text-headline);
  line-height: 1;
  width: 2rem;
}
.masthead-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-headline);
  text-transform: uppercase;
}
.masthead-logo:hover { color: var(--accent); }
.masthead-logo img { display: block; flex-shrink: 0; transition: transform 0.25s ease; }
.masthead-logo:hover img { transform: scale(1.15) rotate(-8deg); }
.search-btn { font-size: 1.1rem; color: var(--text-headline); width: 2rem; text-align: right; }
.masthead-sub {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem var(--gutter) 0.45rem;
  border-top: 1px solid var(--border);
}
.masthead-sub::before {
  content: '●';
  color: var(--accent);
  font-size: 0.45rem;
  margin-right: 0.55em;
  vertical-align: middle;
  letter-spacing: 0;
}

/* ─── NAV DRAWER ─────────────────────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
}
.nav-overlay.open { display: block; }
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100%;
  background: var(--bg-white);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-drawer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-headline);
}
.nav-drawer-logo img { display: block; flex-shrink: 0; }
.nav-close { font-size: 1.5rem; color: var(--text-muted); line-height: 1; }
.nav-close:hover { color: var(--text-headline); }
.nav-drawer-links { padding: 0.5rem 0; flex: 1; }
.nav-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-drawer-links a:last-child { border-bottom: none; }
.nav-drawer-links a:hover, .nav-drawer-links a.active { color: var(--accent); }
.nav-drawer-links .arrow { font-size: 0.75rem; color: var(--border-dark); }
.nav-drawer-auth {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-drawer-auth a {
  display: block;
  text-align: center;
  padding: 0.65rem;
  background: var(--text-headline);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.nav-drawer-auth a:hover { background: var(--accent); }

/* ─── CATEGORY TABS ──────────────────────────────────────────────── */
.category-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav-inner {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.category-tab {
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-dark);
  color: var(--text-body);
  transition: all 0.15s;
  flex-shrink: 0;
}
.category-tab.active, .category-tab:hover {
  background: var(--text-headline);
  color: var(--bg-white);
  border-color: var(--text-headline);
}

/* ─── FEATURED HERO ──────────────────────────────────────────────── */
.featured-hero { background: var(--bg-white); margin-bottom: 3px; }
.hero-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28em 0.75em;
}
.hero-content { padding: 1.1rem var(--gutter) 1.35rem; }
.article-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.article-tags {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.bookmark-btn { font-size: 1rem; color: var(--border-dark); transition: color 0.15s; }
.bookmark-btn:hover { color: var(--accent); }
.hero-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-headline);
  margin-bottom: 0.65rem;
}
.hero-excerpt {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.hero-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.author-info { display: flex; align-items: center; gap: 0.55rem; }
.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.author-name { font-size: 0.77rem; font-weight: 600; color: var(--text-body); }
.read-time { font-size: 0.68rem; color: var(--text-muted); }
.read-link { font-size: 0.77rem; font-weight: 600; color: var(--accent); }
.read-link:hover { text-decoration: underline; }

/* ─── PULL QUOTE ─────────────────────────────────────────────────── */
.pull-quote {
  background: var(--bg-quote);
  padding: 1.6rem var(--gutter);
  margin-bottom: 3px;
}
.pull-quote blockquote {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-headline);
  margin-bottom: 0.85rem;
}
.pull-quote cite {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

/* ─── SECTION HEADER ─────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.1rem var(--gutter) 0.6rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-headline);
}
.section-meta {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── ARTICLE CARDS ──────────────────────────────────────────────── */
.article-list { padding-bottom: 0.5rem; }
.article-card { background: var(--bg-white); margin-bottom: 3px; display: block; }
.card-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .card-img-wrap img { transform: scale(1.02); }
.card-category-tag {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  background: rgba(26,26,26,0.78);
  color: #fff;
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25em 0.65em;
}
.card-body { padding: 0.85rem var(--gutter) 1.1rem; }
.card-read-time { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text-headline);
  margin-bottom: 0.45rem;
  transition: color 0.15s;
}
.article-card:hover .card-title { color: var(--accent); }
.card-excerpt {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-byline { font-size: 0.73rem; color: var(--text-muted); }
.card-byline span { font-weight: 600; color: var(--text-secondary); }
.card-arrow { font-size: 0.85rem; color: var(--border-dark); }

/* ─── NEWSLETTER ─────────────────────────────────────────────────── */
.newsletter-section {
  background: var(--bg-quote);
  padding: 2rem var(--gutter);
  margin: 3px 0;
}
.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--text-headline);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.newsletter-badge::before { content: '●'; color: var(--accent); font-size: 0.5rem; }
.newsletter-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-headline);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.newsletter-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  line-height: 1.55;
}
.newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.newsletter-form input {
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border-dark);
  background: var(--bg-white);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  color: var(--text-body);
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form .btn {
  padding: 0.75rem;
  background: var(--text-headline);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s;
}
.newsletter-form .btn:hover { background: var(--accent); }
.newsletter-success { display: none; font-size: 0.83rem; color: var(--accent); margin-top: 0.5rem; font-weight: 600; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 2rem var(--gutter) 1.5rem;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.footer-logo img { display: block; flex-shrink: 0; }
.footer-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-tagline::before {
  content: '●';
  color: var(--accent);
  font-size: 0.45rem;
  margin-right: 0.55em;
  vertical-align: middle;
  letter-spacing: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  margin-bottom: 1.25rem;
}
.footer-links a { font-size: 0.75rem; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.35); line-height: 1.6; }

/* ─── ARTICLE PAGE ───────────────────────────────────────────────── */
.article-page { max-width: var(--max-w); margin: 0 auto; }
.article-hero-img { aspect-ratio: 16/9; overflow: hidden; margin-bottom: 3px; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-header { padding: 1.25rem var(--gutter) 0.85rem; background: var(--bg-white); margin-bottom: 3px; }
.article-tag {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.article-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-headline);
  margin-bottom: 0.75rem;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem var(--gutter);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  margin-bottom: 3px;
}
.byline-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.byline-name { font-size: 0.8rem; font-weight: 600; color: var(--text-body); }
.byline-meta { font-size: 0.7rem; color: var(--text-muted); }
.article-body-wrap { background: var(--bg-white); padding: 1.25rem var(--gutter) 1.75rem; margin-bottom: 3px; }
.article-body {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  line-height: 1.82;
  color: var(--text-body);
}
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text-headline); margin: 2rem 0 0.75rem; line-height: 1.3; }
.article-body h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text-headline); margin: 1.5rem 0 0.5rem; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 0.75rem 1rem; margin: 1.5rem 0; background: var(--bg-quote); font-style: italic; color: var(--text-headline); font-family: 'IBM Plex Serif', Georgia, serif; font-size: 1.05rem; line-height: 1.55; }
.article-body blockquote cite { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; font-style: normal; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body strong { color: var(--text-headline); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body sub, .article-body sup { font-size: 0.7em; }
.related-section { background: var(--bg-white); padding: 1.25rem var(--gutter) 1.5rem; margin-bottom: 3px; }
.related-title { font-family: var(--font-display); font-size: 1rem; font-weight: 400; color: var(--text-headline); margin-bottom: 0.85rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.related-link { display: flex; align-items: center; justify-content: space-between; font-size: 0.84rem; color: var(--text-body); padding: 0.65rem 0; border-bottom: 1px solid var(--border); transition: color 0.15s; }
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--accent); }
.related-link .arr { font-size: 0.8rem; color: var(--border-dark); flex-shrink: 0; margin-left: 0.5rem; }

/* ─── AD SLOTS ───────────────────────────────────────────────────── */
.ad-slot { background: var(--bg-ad-slot); border: 1px dashed var(--border-dark); display: flex; align-items: center; justify-content: center; min-height: 90px; margin: 3px 0; }
.ad-slot-wrap { margin: 1.5rem 0; }
.ad-label { font-size: 0.68rem; color: var(--text-muted); text-align: center; padding: 0.5rem; }

/* ─── STATIC PAGES ───────────────────────────────────────────────── */
.page-wrap { max-width: var(--max-w); margin: 3px auto 0; background: var(--bg-white); padding: 1.75rem var(--gutter) 2.5rem; }
.page-tag { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; display: block; margin-bottom: 0.6rem; }
.page-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; color: var(--text-headline); margin-bottom: 0.5rem; line-height: 1.2; }
.page-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.page-body { font-size: 0.92rem; line-height: 1.75; color: var(--text-body); }
.page-body h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; color: var(--text-headline); margin: 1.75rem 0 0.5rem; }
.page-body p { margin-bottom: 1rem; }
.page-body ul { padding-left: 1.25rem; margin-bottom: 1rem; list-style: disc; }
.page-body li { margin-bottom: 0.4rem; }
.page-body a { color: var(--accent); }
.page-body a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-form label { font-size: 0.78rem; font-weight: 600; color: var(--text-body); display: block; margin-bottom: 0.3rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.65rem 0.8rem; border: 1.5px solid var(--border-dark); background: var(--bg-white); font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-body); outline: none; transition: border-color 0.15s; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form .btn { padding: 0.7rem 1.5rem; background: var(--accent); color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border: none; cursor: pointer; transition: background 0.15s; align-self: flex-start; }
.contact-form .btn:hover { background: var(--accent-dark); }
.contact-success { display: none; font-size: 0.85rem; color: var(--accent); font-weight: 600; padding: 0.75rem 0; }

/* ─── AUTH PAGES ─────────────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 2rem var(--gutter); }

/* ─── BREAKING TICKER (hidden, kept for compat) ──────────────────── */
.breaking-bar { display: none; }
.top-bar { display: none; }

/* ─── SEARCH OVERLAY ─────────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.88);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh var(--gutter) 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box {
  background: var(--bg-white);
  width: 100%;
  max-width: 640px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.search-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.search-icon {
  font-size: 1.3rem;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
}
.search-input {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-headline);
  -webkit-appearance: none;
  min-width: 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-close {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.15s;
  padding: 0.1rem 0.2rem;
}
.search-close:hover { color: var(--text-headline); }
.search-meta {
  padding: 0.45rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  min-height: 2rem;
  display: flex;
  align-items: center;
}
.search-results {
  max-height: 52vh;
  overflow-y: auto;
  padding: 0 1.2rem;
}
.search-result-item {
  display: block;
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  border-radius: 3px;
  margin: 0 -0.6rem;
  transition: background 0.12s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.focused {
  background: var(--bg-base);
}
.search-result-item:hover .search-result-title,
.search-result-item.focused .search-result-title { color: var(--accent); }
.search-result-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.search-result-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.4;
  transition: color 0.15s;
}
.search-result-excerpt {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.5;
}
.search-highlight {
  background: rgba(197,84,45,0.15);
  color: var(--accent-dark);
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}
.search-empty {
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  text-align: center;
}

/* ─── INLINE CTA ──────────────────────────────────────────────────── */
.article-cta {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-quote);
  border-left: 3px solid var(--accent);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--text-body);
  border-radius: 0 4px 4px 0;
}
.article-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.article-cta a:hover { text-decoration: underline; }

/* ─── TABLET (768px+) ────────────────────────────────────────────── */
@media (min-width: 768px) {
  :root { --gutter: 1.75rem; }
  .hero-img-wrap { aspect-ratio: 16/9; }
  .hero-title { font-size: 2rem; }
  .article-title { font-size: 2.2rem; }
  .newsletter-form { flex-direction: row; }
  .newsletter-form input { flex: 1; }
  .newsletter-form .btn { white-space: nowrap; padding: 0.75rem 1.5rem; }
}

/* ─── DESKTOP (1024px+) ──────────────────────────────────────────── */
@media (min-width: 1024px) {
  :root { --gutter: 2rem; --max-w: 1200px; }

  /* ── MASTHEAD — warm dark top bar matching site palette ── */
  .nav-toggle { display: none; }
  .masthead { background: var(--bg-dark); border-bottom: none; }
  .masthead-inner { padding: 0.7rem 2.5rem; max-width: 1200px; }
  .masthead-logo { font-size: 2rem; letter-spacing: 0.16em; color: #fff; font-weight: 400; }
  .masthead-logo:hover { color: var(--accent); }
  .masthead-sub { display: none; }
  .search-btn { color: rgba(255,255,255,0.75); font-size: 1.2rem; }
  .search-btn:hover { color: #fff; }

  /* ── CATEGORY NAV → slightly deeper warm dark strip ── */
  .category-nav { background: #111; border-bottom: none; }
  .category-nav-inner { max-width: 1200px; padding: 0 2.5rem; gap: 0; }
  .category-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.65rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    transition: all 0.15s;
  }
  .category-tab:hover { color: #fff; background: rgba(255,255,255,0.07); border-color: transparent; }
  .category-tab.active { color: #fff; background: transparent; border-bottom-color: var(--accent); }

  /* ── HOMEPAGE — Featured hero (image left, text right) ── */
  .featured-hero {
    max-width: 1200px;
    margin: 0 auto 3px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    min-height: 500px;
  }
  .hero-img-wrap { aspect-ratio: unset; height: 100%; min-height: 500px; }
  .hero-content {
    padding: 2.5rem 2.5rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-title { font-size: 2.4rem; line-height: 1.18; }
  .hero-excerpt { font-size: 0.95rem; line-height: 1.65; }

  /* ── HOMEPAGE — Pull quote ── */
  .pull-quote { max-width: 1200px; margin: 0 auto 3px; padding: 2.5rem 2.5rem; }
  .pull-quote blockquote { font-size: 1.45rem; }

  /* ── HOMEPAGE — Section header ── */
  .section-header { max-width: 1200px; padding: 1.5rem 2.5rem 0.85rem; }
  .section-title { font-size: 1.2rem; }

  /* ── HOMEPAGE — 3-column article grid ── */
  .article-list { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .article-card { margin-bottom: 0; }
  .article-list > .ad-slot { display: none; }
  .card-title { font-size: 1.25rem; }

  /* ── HOMEPAGE — Newsletter ── */
  .newsletter-section { max-width: 1200px; margin: 3px auto; padding: 3rem 2.5rem; }
  .newsletter-title { font-size: 2rem; }
  .newsletter-form { max-width: 560px; }

  /* ── ARTICLE PAGE — Two-column grid ── */
  .article-page {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: auto auto auto auto auto auto auto;
    column-gap: 0;
    align-items: start;
  }
  /* Explicit row assignments — main column */
  .article-hero-img  { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 21/9; }
  .article-header    { grid-column: 1; grid-row: 2; padding: 1.75rem 2.5rem 1rem; }
  .article-byline    { grid-column: 1; grid-row: 3; padding: 1rem 2.5rem; }
  .article-body-wrap { grid-column: 1; grid-row: 4; padding: 1.5rem 2.5rem 2.5rem; }
  .related-section   { grid-column: 1; grid-row: 5; padding: 1.5rem 2.5rem 2rem; }

  /* Sidebar — top ad sticky, spans rows 2-6 */
  .article-page > :nth-child(4) {
    grid-column: 2;
    grid-row: 2 / 7;
    margin: 0;
    min-height: 600px;
    border-left: 1px solid var(--border);
    position: sticky;
    top: 72px;
    align-self: start;
  }
  /* Bottom ad — back in main column below related section */
  .article-page > :nth-child(7) {
    grid-column: 1;
    grid-row: 6;
    margin: 0 0 0 0;
  }
  /* Newsletter — full width, explicit row, no margin override */
  .article-page > .newsletter-section {
    grid-column: 1 / -1;
    grid-row: 7;
    margin: 0;
    max-width: none;
    padding: 3rem 2.5rem;
  }

  /* ── ARTICLE — Typography ── */
  .article-title { font-size: 2.8rem; line-height: 1.12; font-weight: 700; }
  .article-body { font-size: 1.15rem; line-height: 1.88; }
  .article-body h2 { font-size: 1.65rem; margin-top: 2.5rem; font-weight: 700; }
  .article-body h3 { font-size: 1.25rem; font-weight: 600; }

  /* ── STATIC PAGES (about, contact, etc.) ── */
  .page-wrap { max-width: 860px; padding: 2.5rem 3rem 3.5rem; }

  /* ── FOOTER ── */
  .site-footer {
    padding: 2.5rem 2.5rem 1.75rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0 3rem;
    text-align: left;
    align-items: center;
  }
  .footer-logo { font-size: 1.4rem; margin-bottom: 0.2rem; }
  .footer-tagline { margin-bottom: 0; }
  .footer-links { margin-bottom: 0; justify-content: flex-end; }
  .footer-copy { grid-column: 1 / -1; text-align: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
}
