/*
Theme Name:  Iqal Analysis
Theme URI:   https://iqalanalysis.com
Description: Strategic Analysis of the Middle East — clean, fast, mobile-first WordPress theme.
Version:     2.0.0
Author:      Iqal Analysis
Text Domain: iqal-analysis
*/

/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
  --navy:       #0a1628;
  --navy-mid:   #1a2d4a;
  --gold:       #c9a84c;
  --gold-light: #d4b56a;
  --bg:         #f5f4f0;
  --bg-alt:     #eceae4;
  --bg-card:    #ffffff;
  --text:       #1a1a1a;
  --text-2:     #4a4a4a;
  --text-3:     #6b6b6b;
  --border:     #d4d0c8;
  --border-lt:  #e8e6df;
  --serif:      'Lora', Georgia, serif;
  --body:       'Source Serif 4', Georgia, serif;
  --ui:         'Inter', system-ui, sans-serif;
  --radius:     3px;
  --shadow:     0 2px 8px rgba(10,22,40,.10);
  --shadow-lg:  0 4px 20px rgba(10,22,40,.14);
  --hh:         64px; /* header height */
}

[data-theme="dark"] {
  --bg:       #0d1b2e;
  --bg-alt:   #0a1628;
  --bg-card:  #111f35;
  --text:     #e8e6df;
  --text-2:   #b0aaa0;
  --text-3:   #6a7a8a;
  --border:   #1e3050;
  --border-lt:#172640;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::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: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-2);
}

/* Label / category tag */
.label {
  display: inline-block;
  font-family: var(--ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  border-left: 2px solid var(--gold);
  padding: 1px 6px;
}
[data-theme="dark"] .label { color: var(--gold-light); }

.meta {
  font-family: var(--ui);
  font-size: .75rem;
  color: var(--text-3);
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }

/* ─── ACCESSIBILITY ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: .5rem 1rem;
  font-family: var(--ui);
  font-size: .875rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ─── TOP BAR ────────────────────────────────────────────── */
.top-bar {
  display: none;
  background: var(--navy);
  padding: .35rem 0;
  border-bottom: 1px solid rgba(201,168,76,.15);
}
.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar span {
  font-family: var(--ui);
  font-size: .7rem;
  color: rgba(245,244,240,.5);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.top-bar .tagline { color: rgba(201,168,76,.7); }

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,.2);
  height: var(--hh);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo svg { height: 44px; width: auto; }

/* Desktop nav */
.nav-primary { display: none; }
.nav-primary ul { display: flex; gap: .25rem; align-items: center; }
.nav-primary a {
  display: block;
  font-family: var(--ui);
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(245,244,240,.82);
  padding: .4rem .65rem;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nav-primary a:hover,
.nav-primary .current-menu-item > a,
.nav-primary .current-menu-ancestor > a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Header buttons */
.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.hbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: rgba(245,244,240,.7);
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.hbtn:hover { color: var(--gold); background: rgba(201,168,76,.1); }
.hbtn svg { width: 18px; height: 18px; }

/* Hamburger */
.btn-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 8px 6px;
  border-radius: var(--radius);
  color: rgba(245,244,240,.82);
  transition: color .15s, background .15s;
}
.btn-menu:hover { color: var(--gold); background: rgba(201,168,76,.1); }
.btn-menu span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s, opacity .25s;
}
.btn-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.btn-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.btn-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE MENU ────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: var(--hh) 0 0 0;
  background: var(--navy);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow-y: auto;
  padding: 1.5rem 1rem 2rem;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(245,244,240,.85);
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .15s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ─── SEARCH OVERLAY ─────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,.95);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  padding-top: 5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__inner { width: 100%; max-width: 680px; margin-inline: auto; padding-inline: 1rem; }
.search-overlay__input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid var(--gold);
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  padding-bottom: 1rem;
  outline: none;
}
.search-overlay__input::placeholder { color: rgba(245,244,240,.3); }
.search-overlay__close {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  color: rgba(245,244,240,.6);
  font-size: 1.5rem;
  line-height: 1;
  transition: color .15s;
}
.search-overlay__close:hover { color: var(--gold); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.hero__grid { display: grid; gap: 1.5rem; }

.hero__primary {}
.hero__primary-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-alt);
  display: block;
}
.hero__primary-body { padding-top: 1rem; }
.hero__primary-label { margin-bottom: .5rem; }
.hero__primary-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: .75rem;
}
.hero__primary-title a { color: inherit; transition: color .15s; }
.hero__primary-title a:hover { color: var(--gold); }
.hero__primary-excerpt {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__secondary { display: grid; gap: 1.25rem; }
.secondary-card { display: flex; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--border-lt); }
.secondary-card:first-child { border-top: none; padding-top: 0; }
.secondary-card__img { width: 90px; height: 72px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.secondary-card__body {}
.secondary-card__label { margin-bottom: .25rem; }
.secondary-card__title { font-size: .9375rem; line-height: 1.3; margin-bottom: .25rem; }
.secondary-card__title a { color: inherit; transition: color .15s; }
.secondary-card__title a:hover { color: var(--gold); }

/* ─── SECTION STRIP ──────────────────────────────────────── */
.section { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--navy);
}
[data-theme="dark"] .section__head { border-bottom-color: var(--gold); }
.section__title {
  font-family: var(--ui);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
[data-theme="dark"] .section__title { color: var(--text); }
.section__more {
  font-family: var(--ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color .15s;
}
.section__more:hover { color: var(--gold-light); }

/* ─── ARTICLE CARD ───────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--border); }
.card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-alt); display: block; }
.card__body { padding: 1rem; }
.card__label { margin-bottom: .5rem; }
.card__title { font-size: 1.0625rem; line-height: 1.3; margin-bottom: .5rem; }
.card__title a { color: inherit; transition: color .15s; }
.card__title a:hover { color: var(--gold); }
.card__excerpt {
  font-size: .875rem;
  color: var(--text-2);
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Compact card (no image, text only) */
.card--compact {
  background: none;
  border: none;
  border-top: 1px solid var(--border-lt);
  border-radius: 0;
  padding: 1rem 0 0;
}
.card--compact:hover { box-shadow: none; border-color: var(--border-lt); }
.card--compact .card__body { padding: 0; }

/* ─── SINGLE ARTICLE ─────────────────────────────────────── */
.single-wrap { padding: 2.5rem 0; }
.single-layout { display: grid; gap: 2rem; }

.article__header { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article__label { margin-bottom: .75rem; }
.article__title { font-size: clamp(1.6rem, 4vw, 2.75rem); line-height: 1.15; margin-bottom: 1rem; }
.article__standfirst { font-size: 1.125rem; font-style: italic; color: var(--text-2); line-height: 1.55; margin-bottom: 1.25rem; }
.article__byline { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.byline__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-alt); }
.byline__name { font-family: var(--ui); font-size: .875rem; font-weight: 600; }
.byline__name a { transition: color .15s; }
.byline__name a:hover { color: var(--gold); }
.byline__date { font-family: var(--ui); font-size: .75rem; color: var(--text-3); }

.article__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: .5rem; background: var(--bg-alt); }
.article__caption { font-family: var(--ui); font-size: .7rem; color: var(--text-3); margin-bottom: 1.5rem; }

/* Article body content */
.article__body { font-size: 1.0625rem; line-height: 1.78; }
.article__body p { margin-bottom: 1.25rem; }
.article__body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.article__body h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.article__body a { color: var(--navy-mid); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
[data-theme="dark"] .article__body a { color: var(--gold-light); }
.article__body ul, .article__body ol { margin: 0 0 1.25rem 1.5rem; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li { margin-bottom: .5rem; }
.article__body figure { margin: 2rem 0; }
.article__body figure img { width: 100%; }
.article__body figcaption { font-family: var(--ui); font-size: .7rem; color: var(--text-3); margin-top: .5rem; }
.article__body blockquote { margin: 2rem 0; }
.article__body table { width: 100%; border: 1px solid var(--border); font-size: .875rem; margin: 1.5rem 0; }
.article__body th { background: var(--bg-alt); padding: .5rem .75rem; font-family: var(--ui); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--border); text-align: left; }
.article__body td { padding: .5rem .75rem; border-bottom: 1px solid var(--border-lt); }

/* Tags */
.article__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.tag-pill {
  font-family: var(--ui);
  font-size: .7rem;
  color: var(--text-2);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3px 10px;
  transition: background .15s, color .15s;
}
.tag-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Share bar */
.share-bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.share-bar__label { font-family: var(--ui); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-family: var(--ui);
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 10px;
  transition: background .15s, color .15s;
}
.share-btn:hover { background: var(--bg-alt); color: var(--text); }
.share-btn svg { width: 12px; height: 12px; }

/* ─── SIDEBAR ────────────────────────────────────────────── */
.sidebar { display: none; }
.widget { margin-bottom: 2rem; }
.widget__title {
  font-family: var(--ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
[data-theme="dark"] .widget__title { color: var(--gold); border-bottom-color: var(--gold); }

/* ─── ARCHIVE ────────────────────────────────────────────── */
.archive-wrap { padding: 2.5rem 0; }
.archive__head { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--navy); }
[data-theme="dark"] .archive__head { border-bottom-color: var(--gold); }
.archive__label { font-family: var(--ui); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.archive__title { font-size: clamp(1.5rem, 4vw, 2.25rem); }
.archive__desc { font-size: .9375rem; color: var(--text-2); max-width: 560px; margin-top: .5rem; }
.archive-layout { display: grid; gap: 2rem; }

/* ─── STATIC PAGE ────────────────────────────────────────── */
.page-wrap { padding: 3rem 0; }
.page__head { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.page__title { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: .5rem; }
.page__body { font-size: 1.0625rem; line-height: 1.78; max-width: 720px; }
.page__body h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.page__body h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.page__body p { margin-bottom: 1.25rem; }
.page__body ul, .page__body ol { margin: 0 0 1.25rem 1.5rem; }
.page__body ul { list-style: disc; }
.page__body ol { list-style: decimal; }
.page__body li { margin-bottom: .4rem; }
.page__body a { color: var(--navy-mid); text-decoration: underline; text-decoration-color: var(--gold); }
[data-theme="dark"] .page__body a { color: var(--gold-light); }

/* ─── SEARCH ─────────────────────────────────────────────── */
.search-wrap { padding: 2.5rem 0; }
.search-form-bar { display: flex; gap: .5rem; max-width: 560px; margin-bottom: 2rem; }
.search-form-bar input {
  flex: 1;
  padding: .6rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: .9375rem;
  transition: border-color .15s;
}
.search-form-bar input:focus { outline: none; border-color: var(--gold); }
.search-form-bar button {
  padding: .6rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--ui);
  font-size: .875rem;
  font-weight: 600;
  transition: background .15s;
}
.search-form-bar button:hover { background: var(--navy-mid); }

/* ─── BREADCRUMBS ────────────────────────────────────────── */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--border-lt); padding: .5rem 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.breadcrumbs li { font-family: var(--ui); font-size: .7rem; color: var(--text-3); display: flex; align-items: center; gap: .25rem; }
.breadcrumbs a { color: var(--text-3); transition: color .15s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { color: var(--border); }

/* ─── PAGINATION ─────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: .5rem; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--border); }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: .5rem;
  font-family: var(--ui);
  font-size: .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.pagination a:hover { background: var(--bg-alt); color: var(--text); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .pagination .current { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ─── 404 ────────────────────────────────────────────────── */
.page-404 { padding: 5rem 0; text-align: center; }
.page-404__num { font-family: var(--serif); font-size: 6rem; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.page-404__title { font-size: 1.875rem; margin-bottom: 1rem; }
.page-404__text { color: var(--text-2); margin-bottom: 2rem; }

/* ─── BUTTON ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .6rem 1.5rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--ui);
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  transition: background .15s;
}
.btn:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(245,244,240,.7);
  padding-top: 3rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { margin-bottom: 1rem; }
.footer-logo svg { height: 44px; width: auto; }
.footer-desc { font-family: var(--ui); font-size: .8125rem; color: rgba(245,244,240,.5); line-height: 1.65; max-width: 280px; margin-bottom: 1.25rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--ui);
  font-size: .75rem;
  font-weight: 600;
  color: rgba(245,244,240,.5);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: .35rem .75rem;
  transition: color .15s, border-color .15s, background .15s;
}
.footer-social a:hover { color: var(--gold); border-color: rgba(201,168,76,.4); background: rgba(201,168,76,.05); }
.footer-social svg { width: 13px; height: 13px; fill: currentColor; }
.footer-nav__title { font-family: var(--ui); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { font-family: var(--ui); font-size: .8125rem; color: rgba(245,244,240,.5); transition: color .15s; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 0; }
.footer-copy { font-family: var(--ui); font-size: .7rem; color: rgba(245,244,240,.3); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal a { font-family: var(--ui); font-size: .7rem; color: rgba(245,244,240,.3); transition: color .15s; }
.footer-legal a:hover { color: var(--gold-light); }

/* ─── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 1rem 0;
  z-index: 500;
  transform: translateY(100%);
  transition: transform .25s;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-inner { display: flex; flex-direction: column; gap: 1rem; }
.cookie-text { font-family: var(--ui); font-size: .8125rem; color: rgba(245,244,240,.75); line-height: 1.6; }
.cookie-text a { color: var(--gold-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.cookie-btn {
  font-family: var(--ui);
  font-size: .75rem;
  font-weight: 600;
  padding: .35rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .15s, color .15s;
}
.cookie-btn--accept { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cookie-btn--accept:hover { background: var(--gold-light); }
.cookie-btn--decline { color: rgba(245,244,240,.55); border-color: rgba(255,255,255,.15); }
.cookie-btn--decline:hover { color: rgba(245,244,240,.9); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
  .grid-2 { grid-template-columns: repeat(2,1fr); }
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .top-bar { display: block; }
}

@media (min-width: 768px) {
  .container { padding-inline: 2rem; }
  .hero__grid { grid-template-columns: 3fr 2fr; align-items: start; }
  .hero__secondary { border-left: 1px solid var(--border); padding-left: 1.5rem; }
  .section .grid-2 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}

@media (min-width: 1024px) {
  .nav-primary { display: flex; }
  .btn-menu    { display: none; }
  .mobile-menu { display: none !important; }
  .sidebar { display: block; }
  .single-layout { grid-template-columns: 1fr 280px; align-items: start; }
  .archive-layout { grid-template-columns: 1fr 260px; align-items: start; }
  .grid-3 { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

/* ─── NAV DROPDOWNS ──────────────────────────────────────── */

/* Arrow indicator on parent links */
.nav-has-dropdown {
  display: inline-flex !important;
  align-items: center;
  gap: .3rem;
}
.nav-has-dropdown::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  flex-shrink: 0;
  transition: transform .15s;
}
.nav-primary .has-dropdown:hover .nav-has-dropdown::after,
.nav-primary .has-dropdown.is-open .nav-has-dropdown::after { transform: rotate(180deg); }

/* Desktop dropdown panel */
.nav-primary .has-dropdown { position: relative; }
.nav-primary .nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--navy);
  border: 1px solid rgba(201,168,76,.22);
  border-top: 2px solid var(--gold);
  min-width: 190px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  box-shadow: 0 8px 28px rgba(0,0,0,.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, visibility .15s, transform .15s;
  z-index: 200;
  list-style: none;
}
.nav-primary .has-dropdown:hover .nav-dropdown,
.nav-primary .has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-primary .nav-dropdown li { border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-primary .nav-dropdown li:last-child { border-bottom: none; }
.nav-primary .nav-dropdown a {
  display: block !important;
  padding: .45rem 1rem !important;
  font-size: .8125rem !important;
  font-weight: 400 !important;
  color: rgba(245,244,240,.75) !important;
  border-bottom: none !important;
  white-space: nowrap;
  transition: color .12s, background .12s !important;
}
.nav-primary .nav-dropdown a:hover {
  color: var(--gold) !important;
  background: rgba(201,168,76,.07);
  border-bottom-color: transparent !important;
}

/* Mobile menu dropdown accordion */
.mobile-menu .has-dropdown > .nav-has-dropdown {
  display: flex !important;
  justify-content: space-between;
}
.mobile-menu .nav-dropdown {
  display: none;
  list-style: none;
  padding: .25rem 0 .5rem 1rem;
}
.mobile-menu .has-dropdown.is-open > .nav-has-dropdown::after { transform: rotate(180deg); }
.mobile-menu .has-dropdown.is-open .nav-dropdown { display: block; }
.mobile-menu .nav-dropdown a {
  font-size: .9rem !important;
  padding: .55rem 0 !important;
  color: rgba(245,244,240,.62) !important;
  border-bottom: 1px solid rgba(255,255,255,.04) !important;
}
.mobile-menu .nav-dropdown a:hover { color: var(--gold) !important; }

/* ─── FOOTER BOTTOM LOGO ─────────────────────────────────── */
.footer-bottom-logo svg { height: 36px; width: auto; }
.footer-bottom { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 0; align-items: flex-start; }
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
}

/* ─── TOPICS SECTION ─────────────────────────────────────── */
.topics-grid { display: grid; gap: 2rem; }

.topic-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--navy);
  margin-bottom: .25rem;
}
[data-theme="dark"] .topic-block__head { border-bottom-color: var(--gold); }
.topic-block__title {
  font-family: var(--ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
[data-theme="dark"] .topic-block__title { color: var(--text); }

.topic-block__list { list-style: none; }
.topic-block__item article {
  display: flex;
  gap: .75rem;
  padding: .8rem 0;
  border-top: 1px solid var(--border-lt);
}
.topic-block__item:first-child article { border-top: none; padding-top: .5rem; }
.topic-block__img-link { flex-shrink: 0; }
.topic-block__img-link img {
  width: 80px; height: 64px;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.topic-block__item-body { min-width: 0; }
.topic-block__item-title {
  font-size: .9375rem;
  line-height: 1.3;
  margin-bottom: .25rem;
}
.topic-block__item-title a { color: inherit; transition: color .15s; }
.topic-block__item-title a:hover { color: var(--gold); }

/* ─── COUNTRIES SECTION ──────────────────────────────────── */
.country-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.country-block:first-child { border-top: none; padding-top: 0; }
.country-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}
.country-block__title {
  font-family: var(--ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.country-block__grid { margin-top: 0; }

/* ─── OPINION SECTION ────────────────────────────────────── */
.opinion-section .section__head { border-bottom-color: var(--gold); }
.opinion-section .section__title { color: var(--gold); }
[data-theme="dark"] .opinion-section .section__title { color: var(--gold-light); }
.opinion-card { border-top: 3px solid var(--gold); }

/* ─── RESPONSIVE — NEW COMPONENTS ───────────────────────── */
@media (min-width: 640px) {
  .country-block__grid { grid-template-columns: repeat(2,1fr); }
}

@media (min-width: 768px) {
  .topics-grid { grid-template-columns: repeat(3,1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3,1fr); }
}

/* ─── PRINT ──────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .cookie-banner, .sidebar,
  .share-bar, .breadcrumbs, .pagination, .btn-menu { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
