/* ============================================================================
   style.css — Additive Insight
   Design : Éditorial minimaliste, inspiré Newspack
   Polices : Syne (titres) + DM Sans (corps)
   Palette : #FFFFFF · #F8F9FA · #1A2E44 · #4A8DB5
   ============================================================================ */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --white:       #FFFFFF;
  --off-white:   #F8F9FA;
  --gray-100:    #F1F3F5;
  --gray-200:    #E9ECEF;
  --gray-300:    #DEE2E6;
  --gray-400:    #CED4DA;
  --gray-500:    #ADB5BD;
  --gray-600:    #6C757D;
  --gray-700:    #495057;
  --gray-800:    #343A40;
  --gray-900:    #212529;

  --navy:        #1A2E44;
  --navy-mid:    #2A4A6B;
  --navy-dark:   #0F1E2E;
  --blue:        #4A8DB5;
  --blue-light:  #6AADD5;
  --blue-pale:   #EBF4FA;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   14px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);

  --max-width:   1240px;
  --col-text:    700px;
  --transition:  200ms cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: #212529;
  background: #FFFFFF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ── Topbar ───────────────────────────────────────────────────────────────── */
.topbar {
  background: #1A2E44;
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem clamp(16px, 4vw, 40px);
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  background: #FFFFFF;
  border-bottom: 2px solid #1A2E44;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: opacity 200ms cubic-bezier(0.4,0,0.2,1);
}
.logo-link:hover { opacity: .8; }

.logo-icon { width: 48px; height: 48px; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1A2E44;
  letter-spacing: -.01em;
}
.logo-tagline {
  font-size: .68rem;
  font-weight: 400;
  color: #ADB5BD;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #495057;
  padding: .5rem .85rem;
  border-radius: 4px;
  transition: background 200ms cubic-bezier(0.4,0,0.2,1), color 200ms cubic-bezier(0.4,0,0.2,1);
}
.main-nav a:hover,
.main-nav a.active {
  background: #1A2E44;
  color: #FFFFFF;
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #1A2E44;
  border-radius: 2px;
  transition: transform 200ms cubic-bezier(0.4,0,0.2,1), opacity 200ms cubic-bezier(0.4,0,0.2,1);
}

/* Header rule */
.header-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 clamp(16px,4vw,40px);
  padding-bottom: 0;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #CED4DA;
}
.header-rule span:first-child,
.header-rule span:last-child {
  flex: 1;
  height: 1px;
  background: #E9ECEF;
}
.header-rule span:nth-child(2) { white-space: nowrap; }

/* ── Main ─────────────────────────────────────────────────────────────────── */
.site-main { padding: 40px 0 80px; }

/* ── Archive header ───────────────────────────────────────────────────────── */
.archive-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid #E9ECEF;
  margin-bottom: 48px;
}
.archive-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4A8DB5;
  margin-bottom: 8px;
}
.archive-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #1A2E44;
  line-height: 1.1;
}
.archive-count {
  margin-top: 10px;
  font-size: .85rem;
  color: #ADB5BD;
}

/* ── Category badge ───────────────────────────────────────────────────────── */
.category-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4A8DB5;
  border: 1px solid #4A8DB5;
  padding: .25rem .65rem;
  border-radius: 3px;
  transition: background 200ms cubic-bezier(0.4,0,0.2,1), color 200ms cubic-bezier(0.4,0,0.2,1);
}
.category-badge:hover {
  background: #4A8DB5;
  color: #FFFFFF;
}
.category-badge--large {
  font-size: .75rem;
  padding: .3rem .8rem;
}

/* ── Article meta ─────────────────────────────────────────────────────────── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.article-meta time {
  font-size: .78rem;
  color: #ADB5BD;
}

/* ── Featured article ─────────────────────────────────────────────────────── */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #E9ECEF;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 56px;
  background: #F8F9FA;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: box-shadow 200ms cubic-bezier(0.4,0,0.2,1);
}
.featured-article:hover { box-shadow: 0 16px 48px rgba(0,0,0,.10); }

.featured-image-wrap { overflow: hidden; }
.featured-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 500ms ease;
}
.featured-article:hover .featured-image-wrap img {
  transform: scale(1.03);
}

.featured-content {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.featured-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #1A2E44;
  line-height: 1.2;
}
.featured-title a:hover { color: #4A8DB5; }

.featured-excerpt {
  color: #6C757D;
  font-size: .95rem;
  line-height: 1.65;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #1A2E44;
  text-transform: uppercase;
  border-bottom: 2px solid #4A8DB5;
  padding-bottom: 2px;
  width: fit-content;
  transition: color 200ms cubic-bezier(0.4,0,0.2,1), border-color 200ms cubic-bezier(0.4,0,0.2,1);
}
.read-more:hover { color: #4A8DB5; }

/* ── Section divider ──────────────────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  font-family: 'Syne', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1A2E44;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #1A2E44;
}

/* ── Articles layout ──────────────────────────────────────────────────────── */
.articles-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* ── Article grid ─────────────────────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card--wide {
  grid-column: span 2;
}

.article-card {
  background: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 200ms cubic-bezier(0.4,0,0.2,1), transform 200ms cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.card-image { overflow: hidden; aspect-ratio: 16/10; }
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.article-card:hover .card-image img { transform: scale(1.04); }

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A2E44;
  line-height: 1.3;
}
.article-card--wide .card-title {
  font-size: 1.35rem;
}
.card-title a:hover { color: #4A8DB5; }

.card-excerpt {
  font-size: .85rem;
  color: #6C757D;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding-top: 12px;
  border-top: 1px solid #F1F3F5;
}
.card-author {
  font-size: .75rem;
  color: #ADB5BD;
  font-weight: 400;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #CED4DA;
}
.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  stroke: #DEE2E6;
}
.empty-state p { font-size: 1rem; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  font-size: .85rem;
}
.pagination a, .page-current, .page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 4px;
  font-weight: 500;
}
.pagination a {
  border: 1px solid #DEE2E6;
  color: #495057;
  transition: background 200ms cubic-bezier(0.4,0,0.2,1), border-color 200ms cubic-bezier(0.4,0,0.2,1);
}
.pagination a:hover {
  background: #1A2E44;
  border-color: #1A2E44;
  color: #FFFFFF;
}
.page-current {
  background: #1A2E44;
  color: #FFFFFF;
}
.page-ellipsis { color: #CED4DA; }
.page-prev, .page-next { letter-spacing: .02em; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 100px;
}

.widget {
  background: #F8F9FA;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 20px;
}

.widget-title {
  font-family: 'Syne', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1A2E44;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1A2E44;
}

/* Search widget */
.widget-search { background: #FFFFFF; }
.search-row {
  display: flex;
  gap: 0;
  border: 1.5px solid #DEE2E6;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 200ms cubic-bezier(0.4,0,0.2,1);
}
.search-row:focus-within { border-color: #4A8DB5; }
.search-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: .65rem .9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  background: #FFFFFF;
}
.search-row button {
  background: #1A2E44;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  transition: background 200ms cubic-bezier(0.4,0,0.2,1);
}
.search-row button:hover { background: #4A8DB5; }
.search-row button svg { width: 16px; height: 16px; }

/* Category list */
.category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #E9ECEF;
}
.category-list li:last-child { border-bottom: none; }
.category-list a {
  font-size: .85rem;
  color: #495057;
  transition: color 200ms cubic-bezier(0.4,0,0.2,1);
}
.category-list a:hover, .category-list a.active { color: #4A8DB5; font-weight: 500; }
.cat-count {
  font-size: .72rem;
  color: #FFFFFF;
  background: #CED4DA;
  border-radius: 50px;
  padding: .1rem .5rem;
  min-width: 24px;
  text-align: center;
}

/* About widget */
.widget-about { background: #EBF4FA; border-color: #c3dff0; }
.about-icon svg { width: 40px; height: 40px; margin-bottom: 12px; }
.widget-about p { font-size: .82rem; color: #6C757D; line-height: 1.6; }

/* ── Article page ─────────────────────────────────────────────────────────── */
.article-main { padding: 32px 0 80px; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: #ADB5BD;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: #4A8DB5; }
.breadcrumb span[aria-current] { color: #495057; font-weight: 400; }

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) 280px;
  gap: 60px;
  align-items: start;
}

/* Article header */
.article-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #1A2E44;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.article-lead {
  font-size: 1.15rem;
  color: #6C757D;
  line-height: 1.65;
  font-weight: 300;
  border-left: 4px solid #4A8DB5;
  padding-left: 16px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #E9ECEF;
  border-bottom: 1px solid #E9ECEF;
}
.byline-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #1A2E44;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.byline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.byline-name { font-weight: 500; font-size: .9rem; color: #343A40; }
.byline-info time { font-size: .78rem; color: #ADB5BD; }

.share-btn {
  background: none;
  border: 1.5px solid #DEE2E6;
  border-radius: 4px;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 200ms cubic-bezier(0.4,0,0.2,1), background 200ms cubic-bezier(0.4,0,0.2,1);
}
.share-btn:hover { border-color: #1A2E44; background: #1A2E44; color: white; }
.share-btn svg { width: 16px; height: 16px; }

/* Featured image */
.article-featured-image {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.article-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* ── Prose (article content) ──────────────────────────────────────────────── */
.prose {
  font-size: 1.025rem;
  line-height: 1.78;
  color: #343A40;
}
.prose h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #1A2E44;
  margin: 2.2em 0 .7em;
  line-height: 1.2;
  border-bottom: 2px solid #4A8DB5;
  padding-bottom: .35em;
}
.prose h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2A4A6B;
  margin: 1.8em 0 .6em;
}
.prose p { margin-bottom: 1.4em; }
.prose strong { font-weight: 500; color: #212529; }
.prose em { font-style: italic; }
.prose a { color: #4A8DB5; border-bottom: 1px solid #6AADD5; transition: border-color 200ms cubic-bezier(0.4,0,0.2,1); }
.prose a:hover { border-color: #4A8DB5; }
.prose ul, .prose ol {
  padding-left: 1.6em;
  margin-bottom: 1.4em;
  list-style: revert;
}
.prose li { margin-bottom: .5em; }
.prose blockquote {
  border-left: 4px solid #4A8DB5;
  padding: 16px 20px;
  margin: 1.8em 0;
  background: #EBF4FA;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #495057;
}
.prose blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: .82rem;
  color: #ADB5BD;
  font-weight: 500;
}
.prose pre {
  background: #0F1E2E;
  color: #a8d8f0;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.8em 0;
  font-size: .85rem;
  line-height: 1.6;
  border-left: 4px solid #4A8DB5;
}
.prose code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: .87em;
  background: #F1F3F5;
  padding: .15em .4em;
  border-radius: 3px;
  color: #1A2E44;
}
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.prose figure {
  margin: 2em 0;
  text-align: center;
}
.prose figure img {
  border-radius: 8px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.prose figcaption {
  font-size: .78rem;
  color: #ADB5BD;
  margin-top: 10px;
  font-style: italic;
}
.prose img {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  margin: 1em 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: .9rem;
}
.prose th {
  background: #1A2E44;
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  letter-spacing: .02em;
}
.prose td {
  padding: 9px 14px;
  border-bottom: 1px solid #E9ECEF;
}
.prose tr:nth-child(even) td { background: #F8F9FA; }

/* Article footer */
.article-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 2px solid #1A2E44;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.article-tags { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #ADB5BD; }

/* Article sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 100px;
}

/* Related articles */
.related-list { display: flex; flex-direction: column; gap: 16px; }
.related-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
}
.related-img {
  width: 80px; height: 60px;
  border-radius: 4px;
  overflow: hidden;
}
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-text { display: flex; flex-direction: column; gap: 4px; }
.related-text h4 { font-family: 'Syne', sans-serif; font-size: .85rem; font-weight: 600; color: #1A2E44; line-height: 1.3; }
.related-text h4 a:hover { color: #4A8DB5; }
.related-text time { font-size: .72rem; color: #ADB5BD; }

/* TOC widget */
.widget-toc {}
#toc-nav ul { display: flex; flex-direction: column; gap: 4px; }
#toc-nav a {
  font-size: .82rem;
  color: #6C757D;
  display: block;
  padding: .3rem .5rem;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: all 200ms cubic-bezier(0.4,0,0.2,1);
}
#toc-nav a:hover { color: #4A8DB5; border-left-color: #4A8DB5; background: #EBF4FA; }
#toc-nav .toc-sub a { padding-left: 1rem; font-size: .78rem; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1A2E44;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  padding: .65rem 1.4rem;
  border-radius: 4px;
  border: 2px solid #1A2E44;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.4,0,0.2,1), color 200ms cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
}
.btn-primary:hover { background: transparent; color: #1A2E44; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #1A2E44;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  padding: .65rem 1.4rem;
  border-radius: 4px;
  border: 1.5px solid #1A2E44;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.4,0,0.2,1), color 200ms cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
}
.btn-outline:hover { background: #1A2E44; color: #FFFFFF; }

/* ── Not found ────────────────────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 80px 20px;
}
.not-found h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  color: #1A2E44;
  margin-bottom: 16px;
}
.not-found p { color: #6C757D; margin-bottom: 24px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: #F8F9FA;
  border-top: 2px solid #1A2E44;
  padding-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.logo-icon-sm { width: 36px; height: 36px; flex-shrink: 0; margin-top: 2px; }
.footer-brand strong {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A2E44;
  display: block;
  margin-bottom: 6px;
}
.footer-brand p { font-size: .82rem; color: #ADB5BD; line-height: 1.55; }

.footer-links { display: flex; gap: 40px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1A2E44;
  margin-bottom: 12px;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: .82rem; color: #6C757D; transition: color 200ms cubic-bezier(0.4,0,0.2,1); }
.footer-col a:hover { color: #4A8DB5; }

.footer-bottom {
  border-top: 1px solid #E9ECEF;
  padding: 16px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: .75rem; color: #ADB5BD; }

/* ── Favicon SVG ──────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .articles-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .widget { flex: 1 1 280px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 900px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-image-wrap { max-height: 300px; overflow: hidden; }
  .featured-image-wrap img { min-height: unset; height: 280px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card--wide { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { display: none; }

  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .logo-icon { width: 38px; height: 38px; }
  .logo-name { font-size: 1.1rem; }

  .nav-toggle { display: flex; }
  .main-nav ul {
    position: fixed;
    top: 0; left: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: #1A2E44;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 0 32px;
    transition: left 200ms cubic-bezier(0.4,0,0.2,1);
    z-index: 200;
    box-shadow: 0 16px 48px rgba(0,0,0,.10);
  }
  .main-nav ul.open { left: 0; }
  .main-nav a {
    color: rgba(255,255,255,.8);
    border-radius: 0;
    padding: .9rem 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: .88rem;
  }
  .main-nav a:hover, .main-nav a.active {
    background: rgba(255,255,255,.1);
    color: white;
  }

  .article-grid { grid-template-columns: 1fr; }
  .article-card--wide { grid-column: span 1; }

  .article-title { font-size: 1.7rem; }

  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .pagination { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .featured-content { padding: 20px; gap: 12px; }
  .article-byline { flex-wrap: wrap; }
  .article-footer { flex-direction: column; }
  .breadcrumb { font-size: .7rem; }
}