/* ═══════════════════════════════════════════════════════
   VANGUARD — Modern European Newspaper Theme
   Personality: El País / Le Monde digital edition.
   White background, strong blue accent, sans-serif
   headlines, generous spacing, color-coded sections.
   Clean, authoritative, international.
   ═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --cream:      #ffffff;
  --ink:        #0d0d0d;
  --ink-light:  #3a3a3a;
  --rule:       #0d0d0d;
  --rule-light: #e8e8e8;
  --muted:      #888888;
  --accent:     #005eb8;
  --accent-light: #e8f0fb;
  --max-w:      1200px;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { background: var(--cream); color: var(--ink); font-family: var(--font-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sn-container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* MASTHEAD */
.sn-masthead { border-top: none; padding-top: 0; border-bottom: 1px solid var(--rule-light); }
.sn-masthead-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px 0 12px; border-bottom: 3px solid var(--accent); margin-bottom: 0; }
.sn-masthead-nav { font-family: var(--font-ui); font-size: 11px; line-height: 2; }
.sn-masthead-nav ul { list-style: none; padding: 0; display: flex; gap: 16px; }
.sn-masthead-nav.right ul { justify-content: flex-end; }
.sn-masthead-nav a { text-decoration: none; color: var(--ink-light); font-weight: 500; font-size: 12px; }
.sn-masthead-nav a:hover { color: var(--accent); }
.sn-logo-wrap { text-align: center; }
.sn-logo { display: block; font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 58px); font-weight: 900; letter-spacing: -2px; line-height: 1; color: var(--ink); text-decoration: none; }
.sn-logo:hover { color: var(--accent); }
.sn-tagline { font-family: var(--font-ui); font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); text-align: center; padding: 5px 0 0; border: none; margin: 3px 0 0; letter-spacing: 0.3px; }
.sn-masthead-meta { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: 10px; color: var(--muted); padding: 5px 0; border-top: 1px solid var(--rule-light); text-transform: uppercase; letter-spacing: 0.5px; }
.sn-nav { border-top: none; border-bottom: 1px solid var(--rule-light); background: #fff; display: flex; align-items: center; }
.sn-nav-list { display: flex; list-style: none; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; flex: 1; }
.sn-search-pill { display: flex; align-items: center; gap: 6px; background: var(--accent-light); border: 1px solid var(--accent); border-radius: 20px; color: var(--accent); cursor: pointer; font-family: var(--font-ui); font-size: 12px; font-weight: 600; padding: 5px 14px 5px 10px; margin-right: 16px; flex-shrink: 0; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.sn-search-pill:hover { background: var(--accent); color: #fff; }
.sn-nav-list li { border-right: none; }
.sn-nav-list li:first-child { border-left: none; }
.sn-nav-list a { display: block; padding: 10px 16px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-light); text-decoration: none; border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s; }
.sn-nav-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* FRONT PAGE */
.sn-main { padding: 32px 0 48px; }
.sn-front-top { display: grid; grid-template-columns: 5fr 2fr; gap: 0; }
.sn-hero-col { padding: 0 36px 0 0; border-right: 1px solid var(--rule-light); }
.sn-hero-section { font-family: var(--font-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; color: var(--accent); }
.sn-hero-section a { text-decoration: none; color: var(--accent); }
.sn-hero-section a:hover { text-decoration: underline; }
.sn-hero-title { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 48px); font-weight: 800; line-height: 1.1; margin-bottom: 16px; letter-spacing: -1px; }
.sn-hero-title a { text-decoration: none; color: var(--ink); }
.sn-hero-title a:hover { color: var(--accent); }
.sn-hero-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 14px; }
.sn-hero-excerpt { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--ink-light); margin-bottom: 10px; }
.sn-hero-meta { font-family: var(--font-ui); font-size: 11px; color: var(--muted); }
.sn-sidebar { padding: 0 0 0 28px; }
.sn-sidebar-label { font-family: var(--font-ui); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px solid var(--accent); }
.sn-sidebar-item { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule-light); }
.sn-sidebar-item:last-child { border-bottom: none; }
.sn-sidebar-thumb-wrap { display: block; }
.sn-sidebar-thumb { width: 72px; height: 52px; object-fit: cover; }
.sn-thumb-placeholder { display: block; width: 72px; height: 52px; opacity: 0.6; }
.sn-sidebar-title { font-family: var(--font-ui); font-size: 13px; font-weight: 700; line-height: 1.35; }
.sn-sidebar-title a { text-decoration: none; color: var(--ink); }
.sn-sidebar-title a:hover { color: var(--accent); }
.sn-sidebar-meta { font-family: var(--font-ui); font-size: 10px; color: var(--muted); margin-top: 4px; }

/* SECTION ROWS */
.sn-rule { border: none; border-top: 1px solid var(--rule-light); margin: 32px 0; }
.sn-section-row { margin-bottom: 8px; }
.sn-section-label { font-family: var(--font-ui); font-size: 13px; font-weight: 800; text-transform: none; letter-spacing: -0.3px; color: var(--accent); padding-bottom: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--accent); display: flex; align-items: center; justify-content: space-between; }
.sn-section-label a { text-decoration: none; color: inherit; }
.sn-section-label a:hover { opacity: 0.8; }
.sn-section-see-all { font-size: 11px !important; font-weight: 500 !important; color: var(--muted) !important; letter-spacing: 0 !important; }
.sn-section-see-all:hover { color: var(--accent) !important; opacity: 1 !important; }
.sn-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* STORY CARD */
.sn-card-thumb-wrap { display: block; margin-bottom: 12px; }
.sn-card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: opacity 0.2s; }
.sn-card-thumb:hover { opacity: 0.9; }
.sn-card-thumb.sn-thumb-placeholder { height: 0; padding-top: 56.25%; background: var(--accent-light); opacity: 1; }
.sn-card-section { display: inline-block; font-family: var(--font-ui); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; text-decoration: none; margin-bottom: 6px; color: var(--accent); }
.sn-card-section:hover { text-decoration: underline; }
.sn-card-title { font-family: var(--font-display); font-size: 17px; font-weight: 800; line-height: 1.25; margin-bottom: 7px; letter-spacing: -0.3px; }
.sn-card-title a { text-decoration: none; color: var(--ink); }
.sn-card-title a:hover { color: var(--accent); }
.sn-card-excerpt { font-family: var(--font-body); font-size: 13px; line-height: 1.6; color: var(--ink-light); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sn-card-meta { font-family: var(--font-ui); font-size: 11px; color: var(--muted); }

/* POST PAGE */
.sn-post { max-width: 780px; margin: 0 auto; padding: 40px 0 56px; }
.sn-post-section { display: inline-block; font-family: var(--font-ui); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; margin-bottom: 14px; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.sn-post-section:hover { opacity: 0.8; text-decoration: none; }
.sn-post-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 50px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px; }
.sn-post-meta { font-family: var(--font-ui); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--rule-light); padding-bottom: 14px; margin-bottom: 28px; }
.sn-post-feature-image { margin-bottom: 32px; }
.sn-post-feature-image img { width: 100%; }
.sn-post-feature-image figcaption { font-family: var(--font-ui); font-size: 12px; color: var(--muted); margin-top: 8px; font-style: italic; }
.sn-post-content { font-family: var(--font-body); font-size: 18px; line-height: 1.8; }
.sn-post-content p, .sn-post-content li, .sn-post-content em, .sn-post-content strong, .sn-post-content span { font-family: var(--font-body); }
.sn-post-content h1, .sn-post-content h2, .sn-post-content h3 { font-family: var(--font-display); margin: 36px 0 14px; line-height: 1.15; letter-spacing: -0.5px; }
.sn-post-content h2 { font-size: 26px; font-weight: 800; border-bottom: none; padding-bottom: 0; color: var(--ink); }
.sn-post-content h3 { font-size: 20px; font-weight: 700; }
.sn-post-content p { margin-bottom: 22px; }
.sn-post-content ul, .sn-post-content ol { margin: 0 0 22px 28px; }
.sn-post-content li { margin-bottom: 7px; }
.sn-post-content blockquote { border-left: none; border-top: 2px solid var(--accent); margin: 28px 0; padding: 16px 0 16px 0; font-family: var(--font-display); font-style: normal; font-size: 22px; font-weight: 800; line-height: 1.3; color: var(--accent); letter-spacing: -0.5px; }
.sn-post-content a { color: var(--accent); text-decoration: underline; }
.sn-post-content a:hover { opacity: 0.8; }
.sn-post-content iframe { width: 100%; aspect-ratio: 16/9; border: none; margin: 18px 0 26px; }
.sn-post-tags { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule-light); display: flex; flex-wrap: wrap; gap: 8px; }
.sn-post-tag { font-family: var(--font-ui); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 12px; background: var(--accent-light); color: var(--accent); border: none; text-decoration: none; }
.sn-post-tag:hover { background: var(--accent); color: #fff; }
/* Share button */
.sn-post-share { margin-top: 20px; }
.sn-share-btn {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border: none;
  text-decoration: none;
  display: inline-block;
}
.sn-share-btn:hover { background: var(--accent); color: #fff; }

/* CHANNEL */
.sn-channel { padding: 32px 0 48px; }
.sn-channel-header { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 3px solid var(--accent); }
.sn-channel-name { font-family: var(--font-display); font-size: 40px; font-weight: 900; letter-spacing: -1px; color: var(--ink); }
.sn-channel-description { font-family: var(--font-body); font-size: 15px; color: var(--muted); margin-top: 6px; }
.sn-channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }

/* PAGINATION */
.sn-pagination { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; border-top: 1px solid var(--rule-light); font-family: var(--font-ui); font-size: 13px; }
.sn-page-link { text-decoration: none; font-weight: 700; color: var(--accent); padding: 8px 18px; border: 2px solid var(--accent); transition: background 0.15s, color 0.15s; }
.sn-page-link:hover { background: var(--accent); color: #fff; }
.sn-page-info { color: var(--muted); font-size: 12px; }

/* FOOTER */
.sn-footer { border-top: 3px solid var(--accent); padding: 28px 0 32px; margin-top: 48px; }
.sn-footer-nav { display: flex; justify-content: center; gap: 28px; margin-bottom: 16px; flex-wrap: wrap; }
.sn-footer-nav a { font-family: var(--font-ui); font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; text-decoration: none; color: var(--ink-light); }
.sn-footer-nav a:hover { color: var(--accent); }
.sn-footer-nav-secondary { margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sn-footer-nav-secondary a { font-weight: 600; color: var(--accent); }
.sn-footer-nav-secondary a:hover { opacity: 0.75; }
.sn-footer-copy { text-align: center; font-family: var(--font-ui); font-size: 12px; color: var(--muted); line-height: 1.8; }

/* ERROR */
.sn-error { text-align: center; padding: 80px 0; }
.sn-error-code { font-family: var(--font-display); font-size: 120px; font-weight: 900; line-height: 1; color: var(--accent-light); }
.sn-error-msg { font-size: 18px; color: var(--ink-light); margin: 16px 0 28px; }
.sn-error-home { font-family: var(--font-ui); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.sn-empty { color: var(--muted); font-style: italic; padding: 24px 0; font-size: 15px; }

/* KOENIG CARDS */
.kg-width-wide { position: relative; width: 85vw; max-width: 1200px; left: 50%; margin-left: -42.5vw; margin-right: -42.5vw; }
.kg-width-full { position: relative; width: 100vw; left: 50%; margin-left: -50vw; margin-right: -50vw; }
.kg-image-card { margin: 28px 0; }
.kg-image-card img { width: 100%; }
.kg-image-card figcaption { font-family: var(--font-ui); font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }
.kg-embed-card { margin: 28px 0; }
.kg-embed-card iframe { aspect-ratio: 16/9; width: 100%; border: none; }
.kg-callout-card { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; margin: 28px 0; border-left: none; border-left: 4px solid var(--accent); background: var(--accent-light); }
.kg-callout-emoji { font-size: 20px; line-height: 1.4; flex-shrink: 0; }
.kg-callout-text { font-family: var(--font-body); font-size: 16px; line-height: 1.65; }
.kg-btn { display: inline-block; padding: 12px 28px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; text-decoration: none; background: var(--accent); color: #fff; border: none; transition: background 0.15s; }
.kg-btn:hover { background: #004a93; }
.kg-divider-card { margin: 36px 0; border: none; border-top: 1px solid var(--rule-light); }
.kg-code-card pre { background: #0d0d0d; color: #f0ece4; padding: 20px 24px; overflow-x: auto; font-size: 14px; line-height: 1.6; border-radius: 4px; }

@media (max-width: 960px) {
  .sn-masthead-top { grid-template-columns: 1fr; text-align: center; }
  .sn-masthead-nav { display: none; }
  .sn-front-top { grid-template-columns: 1fr; }
  .sn-hero-col { border-right: none; padding-right: 0; border-bottom: 1px solid var(--rule-light); padding-bottom: 24px; margin-bottom: 24px; }
  .sn-sidebar { padding-left: 0; }
  .sn-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .sn-channel-grid { grid-template-columns: repeat(2, 1fr); }
  .sn-nav-list { overflow-x: auto; }
}
@media (max-width: 600px) {
  .sn-logo { font-size: 34px; letter-spacing: -1px; }
  .sn-cards-grid { grid-template-columns: 1fr; }
  .sn-channel-grid { grid-template-columns: 1fr; }
  .sn-masthead-meta { flex-direction: column; gap: 2px; text-align: center; }
  .sn-nav-list a { padding: 8px 10px; font-size: 11px; }
}

/* Pricing CTA — pushed to far right, always reversed */
.sn-nav-cta-item {
  margin-left: auto;
  border-left: none !important;
  border-right: none !important;
}
.sn-nav-cta {
  background: var(--ink) !important;
  color: var(--cream) !important;
  letter-spacing: 1px;
  padding: 7px 14px !important;
}
.sn-nav-cta:hover {
  opacity: 0.8;
}