/* Geopolitics.nl — Ghost theme stylesheet
   Gebaseerd op het v4-design. */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,700&family=Roboto+Slab:wght@400;600;700;800;900&display=swap');

:root {
  --red:   #cc0000;
  --black: #111111;
  --ink:   #1a1a1a;
  --mid:   #444444;
  --muted: #767676;
  --light: #999999;
  --rule:  #e8e8e8;
  --bg:    #ffffff;
  --serif-display: 'Roboto Slab', Georgia, serif;
  --serif-body:    'Roboto', system-ui, sans-serif;
  --sans:          'Roboto', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { background: #fff; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ── HEADER ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
.site-header__date {
  border-bottom: 1px solid var(--rule);
  padding: 7px 1.5rem;
  background: #fafafa;
}
.site-header__date-inner {
  max-width: 1160px; margin: 0 auto;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-header__top {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 1.5rem;
  position: relative;
}
.site-header__icons {
  position: absolute; left: 1.5rem;
  display: flex; gap: 0.5rem; align-items: center;
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); transition: border-color 0.15s;
}
.icon-btn:hover { border-color: #aaa; }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.site-logo {
  font-family: var(--serif-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.site-logo .nl { color: var(--red); }
.site-logo {
  align-items: baseline;
}
.site-logo .globe {
  display: inline-flex;
  margin: 0 0.04em;
}
.site-logo .globe svg {
  width: 0.52em;
  height: 0.52em;
  display: block;
  position: relative;
  top: 0.02em;
}

.site-header__right {
  position: absolute; right: 1.5rem;
  display: flex; gap: 0.5rem; align-items: center;
}

/* Nav */
.site-nav {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 0;
  border-top: 1px solid var(--rule);
}
.site-nav a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  display: flex; align-items: center;
  position: relative;
}
.site-nav a::after {
  content: '';
  display: inline-block;
  width: 1px; height: 12px;
  background: var(--rule);
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
}
.site-nav a:last-child::after { display: none; }
.site-nav a:hover { color: var(--red); }
.site-nav a.active { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }

/* ── PAGE ── */
.page { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HOOFDARTIKEL ── */
.lead { margin: 1.8rem 0 0; cursor: pointer; }
.lead:hover .lead__title { text-decoration: underline; text-decoration-color: rgba(0,0,0,0.3); }
.lead__img {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, #1c2d3e 0%, #0d1b28 50%, #1a1020 100%);
  position: relative;
}
.lead__img::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 65% 35%, rgba(180,30,30,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(20,50,80,0.4) 0%, transparent 60%);
}
.lead__img::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.lead__cat {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.lead__title {
  font-family: var(--serif-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 0.7rem;
}
.lead__deck {
  font-family: var(--serif-body);
  font-size: 1.15rem;
  color: var(--mid);
  line-height: 1.65;
  max-width: 760px;
  margin-bottom: 0.6rem;
  font-weight: 300;
}
.lead__meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--light);
}

/* ── HORIZONTALE SCHEIDINGSLIJN ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.8rem 0 0;
}
hr.divider-thick {
  border: none;
  border-top: 2px solid var(--black);
  margin: 1.8rem 0 1.2rem;
}

/* Sectielabel boven een groep */
.sec-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--black);
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.sec-label a {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
}
.sec-label a:hover { color: var(--red); }

/* ── ARCHIEF LINK ── */
.archive-link {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--rule);
}
.archive-link a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
}
.archive-link a:hover { text-decoration: underline; }

/* ── MACAW LIJSTWEERGAVE ── */
.list-section { margin-top: 0; }
.list-item {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  text-decoration: none;
}
.list-item:hover .list-item__title { text-decoration: underline; text-decoration-color: rgba(0,0,0,0.3); }
.list-item__cat { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.3rem; }
.list-item__title { font-family: var(--serif-display); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--black); margin-bottom: 0.3rem; }
.list-item__excerpt { font-family: var(--serif-body); font-size: 0.82rem; color: var(--mid); line-height: 1.5; margin-bottom: 0.35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item__meta { font-family: var(--sans); font-size: 0.67rem; color: var(--light); }
.list-item__img { aspect-ratio: 3/2; overflow: hidden; align-self: start; margin-top: 0.1rem; }
.list-item__img-inner { width: 100%; height: 100%; transition: transform 0.45s ease; }
.list-item:hover .list-item__img-inner { transform: scale(1.04); }

/* ── LAYOUT MET SIDEBAR ── */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0 3rem;
  margin-top: 0;
}

/* ── SIDEBAR ── */
.sidebar { padding-top: 0; }
.sb-divider { border: none; border-top: 2px solid var(--black); margin: 0; }
.sb-about {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.sb-about p { font-family: var(--serif-body); font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.5rem; }
.sb-about a { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; color: var(--red); }



/* ── FOTO PLACEHOLDERS ── */
.ph-1 { background: linear-gradient(135deg, #1c2d3e 0%, #0d1b28 100%); }
.ph-2 { background: linear-gradient(135deg, #3d1c1c 0%, #200a0a 100%); }
.ph-3 { background: linear-gradient(135deg, #1c3d2a 0%, #0d1f15 100%); }
.ph-4 { background: linear-gradient(135deg, #2e1c3d 0%, #150d1a 100%); }
.ph-5 { background: linear-gradient(135deg, #3a2e10 0%, #1a1508 100%); }
.ph-6 { background: linear-gradient(135deg, #1c2e3d 0%, #0a1520 100%); }
.ph-7 { background: linear-gradient(135deg, #3d2218 0%, #1a0e08 100%); }
.ph-8 { background: linear-gradient(135deg, #1a1c3d 0%, #0a0b1a 100%); }
.ph-9 { background: linear-gradient(135deg, #1c3d38 0%, #0d1f1d 100%); }

/* ── ARTIKEL PAGINA ── */
.art-header {
  max-width: 1160px; margin: 0 auto; padding: 2rem 1.5rem 0;
}
.art-crumb {
  font-family: var(--sans); font-size: 0.72rem; color: var(--muted);
  margin-bottom: 1.2rem; cursor: pointer; display: flex; gap: 0.4rem; align-items: center;
}
.art-crumb a { color: var(--red); text-decoration: underline; }
.art-cat { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.5rem; }
.art-title { font-family: var(--serif-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--black); max-width: 820px; margin-bottom: 0.8rem; }
.art-deck { font-family: var(--serif-body); font-size: 1.05rem; color: var(--mid); line-height: 1.65; max-width: 680px; margin-bottom: 0.8rem; }
.art-meta { font-family: var(--sans); font-size: 0.72rem; color: var(--light); padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule); }
.art-body-wrap { max-width: 740px; margin: 1.5rem auto 0; padding: 0 1.5rem 2.5rem; }
.art-body p { font-family: var(--serif-body); font-size: 1.05rem; line-height: 1.85; color: var(--ink); margin-bottom: 1.5rem; }
.art-body h2 { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); margin: 2.5rem 0 0.8rem; padding-top: 1.5rem; border-top: 2px solid var(--black); }
.art-body blockquote { border-left: 3px solid var(--red); padding: 0.2rem 0 0.2rem 1.2rem; margin: 1.8rem 0; font-family: var(--serif-display); font-style: italic; font-size: 1.15rem; color: var(--mid); line-height: 1.65; }

/* Verwante analyses — onderaan, zelfde lijststijl als homepage */
.art-related { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.art-related__head { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--black); padding-bottom: 0.6rem; border-bottom: 2px solid var(--black); margin-bottom: 0; }



/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--rule); background: #fff; padding: 2rem 1.5rem 1.5rem; margin-top: 2.5rem; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); margin-bottom: 1rem; }
.footer-logo { font-family: var(--serif-display); font-size: 1.4rem; font-weight: 900; color: var(--black); margin-bottom: 0.6rem; display: inline-flex; align-items: baseline; letter-spacing: -0.02em; }
.footer-logo .nl { color: var(--red); }
.footer-logo .globe { display: inline-flex; margin: 0 0.04em; }
.footer-logo .globe svg { width: 0.52em; height: 0.52em; display: block; position: relative; top: 0.02em; }
.footer-desc { font-family: var(--serif-body); font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.fc h4 { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--black); margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule); }
.fc a { display: block; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; transition: color 0.15s; }
.fc a:hover { color: var(--red); }
.footer-bottom { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; font-family: var(--sans); font-size: 0.68rem; color: var(--light); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .with-sidebar, .art-body-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .lead__img { aspect-ratio: 16/7; }
}
@media (max-width: 600px) {
  .list-item { grid-template-columns: 1fr 90px; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-logo { font-size: 1.8rem; }
  .site-nav a { font-size: 0.72rem; padding-right: 0.8rem; margin-right: 0.8rem; }
}

/* ── FALLBACK voor artikelen zonder feature image ── */
.ph-fallback { background: linear-gradient(135deg, #1c2d3e 0%, #0d1b28 100%); width: 100%; height: 100%; }
.lead__img:empty { background: linear-gradient(160deg, #1c2d3e 0%, #0d1b28 50%, #1a1020 100%); }

/* ── KOENIG EDITOR / CONTENT CARDS ── */
/* Vereist door Ghost voor correcte weergave van afbeeldingen en cards in artikelen */
.kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin: 1.5rem 0; transform: translateX(calc(50% - 50vw)); max-width: 1040px; left: 50%; }
.kg-width-wide img { width: 100%; }
.kg-width-full { position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; margin-top: 1.5rem; margin-bottom: 1.5rem; }
.kg-width-full img { width: 100%; }

.art-body img { max-width: 100%; height: auto; display: block; margin: 1.5rem auto; }
.art-body figure { margin: 1.5rem 0; }
.art-body figcaption { font-family: var(--sans); font-size: 0.72rem; color: #999; text-align: center; margin-top: 0.5rem; }

.kg-card figcaption { font-family: var(--sans); font-size: 0.72rem; color: #999; text-align: center; margin-top: 0.5rem; }

/* Bookmark card */
.kg-bookmark-card { margin: 1.5rem 0; }
.kg-bookmark-container { display: flex; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.kg-bookmark-content { padding: 1rem 1.2rem; flex: 1; }
.kg-bookmark-title { font-family: var(--serif-display); font-weight: 700; color: var(--black); }
.kg-bookmark-description { font-family: var(--serif-body); font-size: 0.85rem; color: var(--mid); margin-top: 0.3rem; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery */
.kg-gallery-container { display: flex; flex-direction: column; margin: 1.5rem 0; }
.kg-gallery-row { display: flex; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

/* Callout, button, etc fallbacks */
.kg-callout-card { padding: 1rem 1.2rem; margin: 1.5rem 0; border-left: 3px solid var(--red); background: #fafafa; }

/* ── CUSTOM FONTS SUPPORT ── */
/* Ghost custom font setting hook */
:root {
  --gh-font-heading: var(--serif-display);
  --gh-font-body: var(--serif-body);
}
