/* =========================================================================
   Türkiye–Africa Competition Authorities Istanbul Meeting
   ========================================================================= */
:root {
  --red-900: #3d0508;
  --red-800: #5c070d;
  --red-700: #8a0c14;
  --red-600: #b3121d;
  --red-500: #d81e2a;
  --charcoal: #1f1f1d;
  /* Accent theme — "pearl" (default). See [data-accent] blocks below. */
  --accent: #ffffff;
  --accent-soft: #ffd9d3;
  --accent-rgb: 255, 255, 255;
  --accent-text-grad: linear-gradient(100deg, #fff 0%, #ffe3de 45%, #ffb4aa 100%);
  --on-accent: var(--red-700);
  --btn-bg: #fff;
  --tile-bg: linear-gradient(140deg, #fff, #f6dcd7);
  --tag-bg: #fde4e1;
  --tag-fg: var(--red-700);
  --map-a: #ffffff;
  --map-b: #f6d3cd;
  --map-stroke: #fff;
  --map-hover: var(--charcoal);
  --hv-fill: rgba(255, 255, 255, .9);
  --hv-stroke: rgba(255, 220, 214, .9);
  --hv-pulse: rgba(255, 205, 198, 1);
  --dot-fill: #fff;
  --dot-stroke: var(--charcoal);
  --ink: #fff7f2;
  --ink-2: rgba(255, 247, 242, .78);
  --ink-3: rgba(255, 247, 242, .55);
  --glass: rgba(255, 255, 255, .07);
  --glass-2: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .14);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --radius: 22px;
  --wrap: 1240px;
  --ff-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 var(--ff-body);
  color: var(--ink);
  background: var(--red-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--red-900); }

/* ---------- Backdrop (the red stage backdrop from the meeting) ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -2;
  background:
    url("../photo/background.jpg") center / cover no-repeat,
    radial-gradient(ellipse 120% 80% at 50% 0%, var(--red-500) 0%, var(--red-600) 30%, var(--red-700) 60%, var(--red-900) 100%);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, transparent 0%, rgba(30, 0, 3, .45) 100%),
    linear-gradient(180deg, rgba(40, 2, 6, .15) 0%, rgba(40, 2, 6, .55) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
.nav.scrolled { background: rgba(60, 4, 9, .72); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--ff-head); font-weight: 600; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tile-bg); color: var(--on-accent); font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 20px -6px rgba(255, 255, 255, .6);
}
.brand small { display: block; font-family: var(--ff-body); font-weight: 400; font-size: 12px; color: var(--ink-3); line-height: 1.2; }
.brand span { line-height: 1.2; font-size: 15px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--glass-2); color: var(--ink); }
.nav-toggle { display: none; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 84px; left: 16px; right: 16px; flex-direction: column; padding: 10px;
    background: rgba(60, 4, 9, .96); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(14px);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .25s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; }
  .brand small { display: none; }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; position: relative; padding-block: 120px 80px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-soft);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 700; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; background: var(--accent-text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: 14px; backdrop-filter: blur(8px);
}
.chip svg { width: 16px; height: 16px; color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 0;
  font-weight: 600; text-decoration: none; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-light { background: var(--btn-bg); color: var(--on-accent); box-shadow: 0 12px 30px -10px rgba(var(--accent-rgb), .7); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(var(--accent-rgb), .8); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--glass-2); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.hero-visual svg { width: 100%; height: 100%; overflow: hidden; }
.hero-visual .hv-land { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .22); stroke-width: .8; }
.hero-visual .hv-on { fill: var(--hv-fill); stroke: var(--hv-stroke); stroke-width: .8; animation: pulseFill 4s ease-in-out infinite; }
@keyframes pulseFill { 50% { fill: var(--hv-pulse); } }
.hero-visual::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%); filter: blur(30px);
}
.orbit { position: absolute; inset: -4%; border: 1px dashed rgba(255, 255, 255, .15); border-radius: 50%; animation: spin 80s linear infinite; }
.orbit::after { content: ""; position: absolute; top: 12%; left: 12%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--ink-3); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.scroll-hint i { width: 22px; height: 36px; border: 2px solid var(--ink-3); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; order: -1; }
  .scroll-hint { display: none; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(70, 5, 10, .55); padding: 26px 22px; backdrop-filter: blur(10px); }
.stat b { display: block; font-family: var(--ff-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--accent); line-height: 1; }
.stat span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:last-child { grid-column: span 2; } }

/* ---------- Sections ---------- */
section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-top: 12px; }
.sec-head p { color: var(--ink-2); max-width: 520px; }

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(12px); box-shadow: var(--shadow);
}

/* ---------- Map ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: stretch; }
.map-card { position: relative; padding: clamp(10px, 2vw, 24px); overflow: hidden; }
.map-card svg { width: 100%; height: auto; display: block; max-height: 82vh; }
.map-tools { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-2); background: rgba(50, 3, 7, .6); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px); pointer-events: auto; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.c-land { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .18); stroke-width: .7; vector-effect: non-scaling-stroke; }
.c-on {
  fill: url(#accentGrad); stroke: var(--map-stroke); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer;
  transition: fill .25s, filter .25s, opacity .25s; outline: none;
}
.c-on:hover, .c-on.hl, .c-on:focus-visible { fill: var(--map-hover); filter: url(#glow); }
.map-dim .c-on:not(.fl):not(.hl), .map-dim .island-dot:not(.fl) { opacity: .3; }
.c-on.active { fill: var(--map-hover); filter: url(#glow); }
.island-dot { fill: var(--dot-fill); stroke: var(--dot-stroke); stroke-width: 1.5; cursor: pointer; transition: r .2s; }
.island-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .7; pointer-events: none; animation: ring 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.map-label { font: 600 13px var(--ff-head); fill: #fff; paint-order: stroke; stroke: rgba(60, 4, 9, .85); stroke-width: 4px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.map-label.show { opacity: 1; }
.map-tip {
  position: absolute; pointer-events: none; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; background: rgba(255, 250, 244, .97); color: var(--red-900); border-radius: 12px;
  font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
  transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .15s; white-space: nowrap;
}
.map-tip.show { opacity: 1; }
.map-tip img { width: 30px; height: 22px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.map-tip small { display: block; font-weight: 400; font-size: 11.5px; color: #8a4b4f; }

.side { padding: 20px; display: flex; flex-direction: column; gap: 14px; contain: size; } /* contain:size → panel takes the map card's height, list scrolls */
.search { position: relative; }
.search input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .18); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border .2s, background .2s;
}
.search input:focus { border-color: var(--accent); background: rgba(0, 0, 0, .28); }
.search input::placeholder { color: var(--ink-3); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  border: 1px solid var(--line); background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); transition: .2s;
}
.filters button:hover { background: var(--glass); }
.filters button.on { background: var(--btn-bg); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.clist { list-style: none; margin: 0; padding: 0 4px 0 0; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.clist button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; background: transparent; border: 0; border-radius: 12px; text-align: left; transition: background .2s;
}
.clist button:hover, .clist button.hl { background: var(--glass-2); }
.clist img { width: 34px; height: 25px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); flex: none; }
.clist .nm { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.clist .au { font-size: 12px; color: var(--ink-3); line-height: 1.3; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.clist .arrow { margin-left: auto; opacity: 0; transition: .2s; color: var(--accent); }
.clist button:hover .arrow { opacity: 1; transform: translateX(2px); }
.empty-note { color: var(--ink-3); font-size: 14px; padding: 12px; text-align: center; }
@media (max-width: 1000px) {
  .map-layout { grid-template-columns: 1fr; }
  .side { contain: none; height: 520px; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(25, 0, 3, .7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal.open .modal-bg { opacity: 1; }
.modal-box {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 40px); overflow-y: auto;
  background: linear-gradient(170deg, #fffaf5 0%, #fff 60%); color: #2a0a0d; border-radius: 26px;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7); transform: translateY(24px) scale(.96); opacity: 0;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .25s;
}
.modal.open .modal-box { transform: none; opacity: 1; }
.modal-flag { position: relative; height: 190px; overflow: hidden; border-radius: 26px 26px 0 0; }
.modal-flag .bgflag { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(18px) saturate(1.3); opacity: .55; }
.modal-flag .fg { position: absolute; left: 28px; bottom: -1px; width: 150px; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 30px rgba(0, 0, 0, .25); border: 4px solid #fff; border-bottom: 0; }
.modal-flag .org-badge { position: absolute; left: 28px; bottom: -1px; width: 150px; height: 112px; border-radius: 14px 14px 0 0; background: linear-gradient(140deg, var(--red-600), var(--red-900)); color: var(--accent); display: grid; place-items: center; font: 800 30px var(--ff-head); border: 4px solid #fff; border-bottom: 0; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); display: grid; place-items: center; z-index: 2; transition: transform .2s, background .2s; color: #2a0a0d; }
.modal-close:hover { transform: rotate(90deg); background: #fff; }
.modal-body { padding: 24px 28px 28px; }
.modal-body .rg { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-600); }
.modal-body h3 { font-size: 2rem; margin: 6px 0 4px; color: #2a0a0d; }
.modal-body .auth { font-size: 14.5px; color: #7b4045; font-weight: 500; }
.modal-body .intro { margin: 16px 0 18px; color: #3c2224; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 22px; }
.fact { background: #fbefe9; border-radius: 12px; padding: 10px 12px; }
.fact dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #a0585d; font-weight: 600; }
.fact dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; color: #2a0a0d; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.modal .btn-red { background: linear-gradient(120deg, var(--red-500), var(--red-700)); color: #fff; box-shadow: 0 12px 30px -10px rgba(179, 18, 29, .7); }
.modal .btn-red:hover { transform: translateY(-2px); }
.modal .src { font-size: 12.5px; color: #9a6a6d; text-decoration: none; }
.modal .src:hover { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--tag-bg); color: var(--tag-fg); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin-top: 10px; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .modal-flag { height: 150px; } .modal-flag .fg, .modal-flag .org-badge { width: 120px; } .modal-flag .org-badge { height: 90px; font-size: 24px; } }

/* ---------- About / declaration ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-text { padding: clamp(24px, 4vw, 44px); }
.about-text p + p { margin-top: 16px; }
.about-text p { color: var(--ink-2); font-size: 1.05rem; }
.about-text strong { color: var(--ink); }
.quote { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: linear-gradient(150deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .05)); }
.quote blockquote { margin: 0; font-family: var(--ff-head); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35; font-weight: 500; }
.quote svg { width: 46px; height: 46px; color: var(--accent); }
.quote cite { font-style: normal; color: var(--ink-2); font-size: 14px; }
.decl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.decl .card { padding: 26px; transition: transform .3s, border-color .3s; }
.decl .card:hover { transform: translateY(-6px); border-color: rgba(var(--accent-rgb), .5); }
.decl .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .16); color: var(--accent); margin-bottom: 18px; }
.decl .ic svg { width: 26px; height: 26px; }
.decl h3 { font-size: 1.15rem; margin-bottom: 8px; }
.decl p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 1000px) { .decl { grid-template-columns: repeat(2, 1fr); } .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .decl { grid-template-columns: 1fr; } }

/* ---------- MoU ---------- */
.mou { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: clamp(24px, 4vw, 44px); overflow: hidden; position: relative; }
.mou-flags { display: flex; align-items: center; }
.mou-flags img { width: 92px; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 3px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow); }
.mou-flags img + img { margin-left: -18px; transform: rotate(6deg); }
.mou-flags img:first-child { transform: rotate(-6deg); }
.mou h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 8px 0 10px; }
.mou p { color: var(--ink-2); }
@media (max-width: 860px) { .mou { grid-template-columns: 1fr; } }

/* ---------- Participants grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; text-decoration: none; overflow: hidden;
  border-radius: 18px; background: var(--glass); border: 1px solid var(--line); transition: transform .3s, background .3s, border-color .3s;
}
.pcard::before { content: ""; position: absolute; inset: 0; background: var(--flag) center / cover; opacity: 0; filter: blur(24px) saturate(1.4); transition: opacity .4s; z-index: -1; }
.pcard:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); }
.pcard:hover::before { opacity: .35; }
.pcard img { width: 56px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.pcard .org { width: 56px; height: 42px; border-radius: 8px; background: var(--tile-bg); color: var(--on-accent); font: 800 12px var(--ff-head); display: grid; place-items: center; }
.pcard b { font-family: var(--ff-head); font-size: 1.08rem; font-weight: 600; }
.pcard span { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.pcard .go { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-2); opacity: 0; transform: translateX(-6px); transition: .3s; }
.pcard:hover .go { opacity: 1; transform: none; }
.sub-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); margin: 36px 0 14px; font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; border-radius: 16px; overflow: hidden; position: relative; cursor: zoom-in; background: rgba(0, 0, 0, .2); }
.gallery img { width: 100%; height: auto; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(30, 0, 3, .55)); opacity: 0; transition: .3s; }
.gallery figure:hover::after { opacity: 1; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.vcard { border-radius: 18px; overflow: hidden; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.vcard video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.vcard figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); }
.empty {
  border: 2px dashed rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--ink-3);
}
.empty svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink-2); font-size: 1.05rem; margin-bottom: 4px; }
.tabs { display: inline-flex; padding: 5px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); border-radius: 999px; gap: 4px; }
.tabs button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: .2s; }
.tabs button.on { background: var(--ink); color: var(--red-800); }
.tabs button .n { opacity: .6; font-weight: 500; margin-left: 4px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(15, 0, 2, .94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .3s; }
.lb.open { opacity: 1; visibility: visible; }
.lb img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.lb button:hover { background: rgba(255, 255, 255, .22); }
.lb .lb-x { top: 20px; right: 20px; }
.lb .lb-p { left: 20px; top: 50%; transform: translateY(-50%); }
.lb .lb-n { right: 20px; top: 50%; transform: translateY(-50%); }
.lb .lb-c { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--ink-2); font-size: 14px; }

/* ---------- Delegation page ---------- */
.d-hero { padding-block: 140px 60px; position: relative; overflow: hidden; }
.d-hero .flag-wash { position: absolute; inset: 0; z-index: -1; background: var(--flag) center / cover; filter: blur(60px) saturate(1.3); opacity: .28; transform: scale(1.2); }
.d-hero .flag-wash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--red-800)); }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
.d-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.d-flag { width: clamp(140px, 22vw, 240px); aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 4px rgba(255, 255, 255, .85); animation: wave 6s ease-in-out infinite; }
.d-org { width: clamp(140px, 22vw, 240px); aspect-ratio: 4/3; border-radius: 20px; display: grid; place-items: center; background: var(--tile-bg); color: var(--on-accent); font: 800 clamp(1.8rem, 4vw, 3rem) var(--ff-head); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 4px rgba(255, 255, 255, .85); }
@keyframes wave { 50% { transform: perspective(600px) rotateY(-8deg) rotateX(3deg); } }
.d-head h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 700; margin: 10px 0; }
.d-head .auth { font-size: clamp(1rem, 1.8vw, 1.25rem); color: var(--ink-2); }
@media (max-width: 640px) { .d-head { grid-template-columns: 1fr; } }

.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; }
.speaker { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.speaker .ph { aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02)); display: grid; place-items: center; position: relative; }
.speaker .ph img { width: 100%; height: 100%; object-fit: cover; }
.speaker .ph svg { width: 40%; color: rgba(255, 255, 255, .25); }
.speaker .ph .flagpin { position: absolute; bottom: 14px; left: 14px; width: 48px; aspect-ratio: 4/3; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 2px #fff; height: auto; }
.speaker h3 { font-size: 1.5rem; }
.speaker .ttl { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); font-weight: 600; }
.country-info { padding: clamp(24px, 4vw, 40px); }
.country-info .intro { font-size: 1.08rem; color: var(--ink-2); margin: 14px 0 26px; }
.country-info .facts { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.country-info .fact { background: rgba(0, 0, 0, .18); border: 1px solid var(--line); }
.country-info .fact dt { color: var(--accent-soft); }
.country-info .fact dd { color: var(--ink); }
.country-info a.wiki { display: inline-flex; gap: 8px; align-items: center; color: var(--accent-soft); font-size: 14px; text-decoration: none; }
.country-info a.wiki:hover { text-decoration: underline; }
@media (max-width: 900px) { .d-grid { grid-template-columns: 1fr; } .speaker { flex-direction: row; align-items: center; } .speaker .ph { width: 140px; flex: none; } }
@media (max-width: 480px) { .speaker { flex-direction: column; align-items: stretch; } .speaker .ph { width: 100%; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: flex; align-items: center; gap: 16px; padding: 20px 24px; text-decoration: none; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); transition: .3s; }
.pager a:hover { background: var(--glass-2); transform: translateY(-3px); }
.pager a.next { justify-content: flex-end; text-align: right; }
.pager img { width: 46px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.pager small { display: block; color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.pager b { font-family: var(--ff-head); font-size: 1.1rem; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer { padding-block: 48px; border-top: 1px solid var(--line); background: rgba(30, 1, 4, .45); backdrop-filter: blur(8px); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; color: var(--ink-3); font-size: 14px; }
footer a { color: var(--ink-2); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.pager .org { width: 46px; height: 35px; border-radius: 6px; background: var(--tile-bg); color: var(--on-accent); font: 800 10px var(--ff-head); display: grid; place-items: center; flex: none; }
@media (max-width: 600px) { .map-card { display: flex; flex-direction: column; } .map-tools { position: static; order: 2; margin-top: 10px; } .legend { border-radius: 14px; } }
.brand img { height: 58px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25)); transition: opacity .2s; }
.brand:hover img { opacity: .85; }
@media (max-width: 600px) { .brand img { height: 44px; } }

/* ---------- Accent themes ---------- */
:root[data-accent="gold"] {
  --accent: #f2c14e;
  --accent-soft: #ffe2a0;
  --accent-rgb: 242, 193, 78;
  --accent-text-grad: linear-gradient(100deg, #ffe2a0, #f2c14e 50%, #ffb347);
  --on-accent: var(--red-900);
  --btn-bg: linear-gradient(120deg, #ffe2a0, #f2c14e);
  --tile-bg: linear-gradient(140deg, #f2c14e, #e0902a);
  --tag-bg: #fff1cf;
  --tag-fg: #7a4b00;
  --map-a: #ffe2a0;
  --map-b: #f2b33d;
  --map-stroke: #fff3d6;
  --map-hover: #fff;
  --hv-fill: rgba(242, 193, 78, .85);
  --hv-stroke: rgba(255, 240, 210, .9);
  --hv-pulse: rgba(255, 214, 120, 1);
  --dot-fill: #f2c14e;
  --dot-stroke: #fff;
}
:root[data-accent="silver"] {
  --accent: #dfe3e8;
  --accent-soft: #c9cfd7;
  --accent-rgb: 223, 227, 232;
  --accent-text-grad: linear-gradient(100deg, #ffffff, #d6dbe1 50%, #9aa3ae);
  --on-accent: #2b2f36;
  --btn-bg: linear-gradient(120deg, #f7f8fa, #c8ced6);
  --tile-bg: linear-gradient(140deg, #f3f5f7, #b8c0ca);
  --tag-bg: #eceff3;
  --tag-fg: #3a3f47;
  --map-a: #f3f5f7;
  --map-b: #aeb6c0;
  --map-stroke: #ffffff;
  --map-hover: var(--charcoal);
  --hv-fill: rgba(226, 230, 235, .9);
  --hv-stroke: rgba(255, 255, 255, .9);
  --hv-pulse: rgba(186, 194, 204, 1);
  --dot-fill: #e5e8ec;
  --dot-stroke: var(--charcoal);
}

/* ---------- Opening address ---------- */
.opening { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(20px, 3vw, 36px); align-items: center; }
.op-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.op-photo > img:first-child { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.op-photo > svg { width: 42%; color: rgba(255, 255, 255, .25); }
.op-photo .op-flag { position: absolute; left: 14px; bottom: 14px; width: 52px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 2px #fff; cursor: default; }
.op-photo.playing { aspect-ratio: 16 / 9; background: #000; }
.op-photo video { width: 100%; height: 100%; object-fit: contain; }
.op-body h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px; }
.op-title { color: var(--ink-2); font-size: 1.05rem; margin-top: 6px; }
.op-text { position: relative; margin-top: 24px; padding-left: 56px; color: var(--ink-2); font-size: 1.06rem; }
.op-text p + p { margin-top: 14px; }
.op-q { position: absolute; left: 0; top: 0; color: var(--accent); }
.op-q svg { width: 40px; height: 40px; }
.op-text.clamped { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.op-soon { font-style: italic; color: var(--ink-3); }
@media (max-width: 760px) {
  .opening { grid-template-columns: 1fr; }
  .op-photo { max-width: 320px; }
  .op-text { padding-left: 0; padding-top: 48px; }
}
.opening.reverse { grid-template-columns: 1fr minmax(220px, 340px); }
.opening.reverse .op-photo { order: 2; }
.op-note { margin-top: 10px; font-size: 14.5px; color: var(--accent-soft); }
@media (max-width: 760px) { .opening.reverse { grid-template-columns: 1fr; } .opening.reverse .op-photo { order: 0; } }


/* ---------- Header: mark + two-line name (index_3) ---------- */
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { display: block; font: 600 10.5px/1.2 var(--ff-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.brand-text b { font: 600 18px/1.1 var(--ff-head); color: var(--ink); letter-spacing: -.005em; }
.brand:has(.brand-text) { gap: 12px; }
.brand:has(.brand-text) img { height: 44px; filter: none; }
@media (max-width: 600px) { .brand:has(.brand-text) img { height: 36px; } .brand-text b { font-size: 15px; } .brand-text small { font-size: 9px; } }

/* ---------- EN / TR language switch (added to the header by js/i18n.js) ---------- */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); margin-left: 10px; flex: none; }
.lang-switch a { text-decoration: none; font: 600 12px/1 var(--ff-body); letter-spacing: .08em; padding: 7px 10px; border-radius: 999px; color: var(--ink-2); transition: background .2s, color .2s; }
.lang-switch a:hover { color: var(--ink); background: var(--glass-2); }
.lang-switch a.on { background: #fff; color: var(--red-800); }
.nav .wrap > .nav-links { margin-left: auto; }
@media (max-width: 900px) { .lang-switch { margin-left: auto; margin-right: 8px; } }

/* ---------- Speech full-text page (speech.html) ---------- */
.sp-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.sp-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fff, #ffb4aa); box-shadow: 0 0 10px rgba(255, 255, 255, .6); transition: width .1s linear; }
.sp-hero { padding-block: 120px 28px; }
.sp-head .crumbs { margin-bottom: 18px; }
.sp-name { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; margin-top: 12px; }
.sp-highlight { position: relative; margin: 26px 0 0; padding-left: 56px; font: 500 clamp(1.15rem, 2.2vw, 1.5rem)/1.45 var(--ff-head); color: #fff; }
.sp-highlight .op-q { position: absolute; left: 0; top: 2px; }
.sp-main { padding-block: 0 clamp(64px, 9vw, 110px); }
.sp-article { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); }
.sp-article .lbl { display: block; margin-bottom: 26px; }
.sp-article p { font-size: 1.1rem; line-height: 1.85; color: var(--ink-2); margin: 0 0 1.15em; }
.sp-article p.sp-sal { font: 600 1.12rem/1.5 var(--ff-head); color: var(--ink); margin: 2.1em 0 .8em; padding-left: 14px; border-left: 3px solid rgba(255, 255, 255, .6); }
.sp-article p.sp-sal:first-of-type { margin-top: 0; }
.sp-article p.sp-sign { margin-top: 2em; font: 600 1.1rem/1.3 var(--ff-head); color: var(--ink); }
.sp-article p.sp-sign span { display: block; font: 400 .92rem/1.4 var(--ff-body); color: var(--ink-3); margin-top: 4px; }
.sp-article p.sp-note { font-size: .88rem; font-style: italic; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
@media (max-width: 760px) { .sp-highlight { padding-left: 0; padding-top: 46px; } .sp-hero { padding-top: 100px; } }
.about-grid.single { grid-template-columns: 1fr; }
.about-grid.single .about-text { max-width: 980px; }
.about-grid.single .about-text p { font-size: 1.1rem; }

/* ---------- Promo video (index_3 #film) ---------- */
.film-sec { padding-block: clamp(48px, 7vw, 96px) 0; }
.film { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px -30px rgba(10, 0, 2, .85); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
.film-cover { position: absolute; inset: 0; border: 0; padding: 0; background: #000; cursor: pointer; display: block; width: 100%; }
.film-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.film-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 0, 3, 0) 45%, rgba(20, 0, 3, .65)); }
.film-cover:hover img, .film-cover:focus-visible img { transform: scale(1.03); filter: brightness(.92); }
.film-play {
  position: absolute; left: 50%; top: 50%; width: clamp(68px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; z-index: 2;
  transform: translate(-50%, -50%); display: grid; place-items: center; color: var(--red-700);
  background: #fff; box-shadow: 0 18px 50px -10px rgba(0, 0, 0, .6); transition: transform .3s;
}
.film-play svg { width: 42%; margin-left: 8%; }
.film-play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: filmPulse 2.4s ease-out infinite; }
@keyframes filmPulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.film-cover:hover .film-play { transform: translate(-50%, -50%) scale(1.08); }
.film-meta { position: absolute; left: clamp(18px, 3vw, 34px); bottom: clamp(16px, 3vw, 30px); z-index: 2; display: flex; align-items: center; gap: 12px; color: #fff; text-align: left; }
.film-meta b { font: 600 clamp(1rem, 1.6vw, 1.2rem) var(--ff-head); }
.film-meta small { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .25); }
.film.playing .film-cover { display: none; }
@media (prefers-reduced-motion: reduce) { .film-play::before { animation: none; } }

/* ---------- Paged media gallery: 6 equal tiles per page (photos + videos) ---------- */
.pager-g { position: relative; }
.pg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; outline: none; }
.pg-track::-webkit-scrollbar { display: none; }
.pg-page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 14px; align-content: start; }
.g-tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: rgba(0, 0, 0, .3); }
.g-tile img, .g-tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.g-tile:hover img, .g-tile:hover video, .g-tile:focus-visible img { transform: scale(1.05); }
.g-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20, 0, 3, .55)); opacity: 0; transition: opacity .3s; }
.g-tile:hover::after, .g-tile:focus-visible::after { opacity: 1; }
.g-tile:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.g-video { cursor: pointer; }
.g-video::after { opacity: 1; }
.g-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 58px; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--red-700); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6); transition: transform .3s; }
.g-play svg { width: 42%; margin-left: 8%; }
.g-video:hover .g-play { transform: translate(-50%, -50%) scale(1.08); }
.g-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; font-size: 13.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-btn { position: absolute; top: calc(50% - 22px); transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(40, 2, 6, .7); backdrop-filter: blur(8px); display: grid; place-items: center; transition: background .2s, opacity .2s; }
.pg-btn:hover { background: rgba(255, 255, 255, .2); }
.pg-btn:disabled { opacity: .25; cursor: default; }
.pg-btn.prev { left: -18px; } .pg-btn.next { right: -18px; }
.pg-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.pg-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .3); transition: width .3s, background .3s; }
.pg-dots button.on { width: 26px; background: #fff; }
@media (max-width: 760px) {
  .pg-page { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pg-btn { width: 40px; height: 40px; } .pg-btn.prev { left: 4px; } .pg-btn.next { right: 4px; }
}
/* ---------- Presentation tab: slide viewer (--ar = slide aspect ratio, set per deck) ---------- */
.deck-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.deck-head b { display: block; font: 600 1.15rem/1.25 var(--ff-head); }
.deck-head span { display: block; font-size: 14px; color: var(--ink-2); }
.deck-act { display: flex; flex-wrap: wrap; gap: 10px; }
.deck-act .btn { padding: 10px 18px; font-size: 14px; }
.deck-act .btn:hover svg { transform: none; }
.deck-stage { position: relative; width: min(100%, calc(var(--dh, 420px) * var(--ar, 1.3333)), calc(50vh * var(--ar, 1.3333))); margin: 0 auto; outline: none; }
.deck-slide { display: block; width: 100%; aspect-ratio: var(--ar, 1.3333); padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.deck-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.deck-stage .pg-btn { top: 50%; }
.deck-n { position: absolute; right: 14px; bottom: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(40, 2, 6, .75); color: #fff; font-size: 12.5px; font-weight: 600; pointer-events: none; }
.deck-stage:focus-visible .deck-slide { outline: 3px solid #fff; outline-offset: 3px; }
.deck-strip { position: relative; display: flex; gap: 10px; overflow-x: auto; padding: 16px 2px 6px; margin-top: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.deck-strip button { position: relative; flex: 0 0 calc(78px * var(--ar, 1.3333)); aspect-ratio: var(--ar, 1.3333); padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; opacity: .6; transition: opacity .2s, border-color .2s, transform .2s; }
.deck-strip button:hover { opacity: .9; }
.deck-strip button.on { opacity: 1; border-color: #fff; transform: translateY(-3px); }
.deck-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-strip i { position: absolute; left: 5px; bottom: 4px; padding: 0 6px; border-radius: 6px; background: rgba(40, 2, 6, .8); color: #fff; font: 600 11px/1.6 var(--ff-body); font-style: normal; }
@media (max-width: 760px) {
  .deck-strip button { flex-basis: calc(63px * var(--ar, 1.3333)); }
  .deck-act { width: 100%; } .deck-act .btn { flex: 1; justify-content: center; }
}
/* lightbox video */
.lb video { max-width: 92vw; max-height: 84vh; border-radius: 10px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
/* website links inside fact boxes */
.fact dd a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; word-break: break-all; }
.fact dd a:hover { opacity: .75; }

/* hero: "Explore the map" sits in the chip row */
.hero-meta { align-items: center; }
.hero-meta .btn { padding: 10px 20px; font-size: 14px; }
/* MoU flags: Türkiye in front */
.mou-flags img:first-child { position: relative; z-index: 2; }
/* Declaration full text */
.sp-article h2.sp-title { font: 700 clamp(1.3rem, 2.4vw, 1.75rem)/1.3 var(--ff-head); color: var(--ink); margin: 0 0 6px; letter-spacing: .01em; }
.sp-article p.sp-sub { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.8em; }
.sp-article ol.sp-list { margin: 0 0 1.4em; padding-left: 1.6em; color: var(--ink-2); font-size: 1.08rem; line-height: 1.8; }
.sp-article ol.sp-list li { margin-bottom: .5em; padding-left: .3em; }
.sp-article ol.sp-list li::marker { color: #fff; font-weight: 700; }

/* ====================== Mobile fixes (audit 2026-10-06) ====================== */
.map-layout > * { min-width: 0; }
@media (max-width: 1000px) { .map-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  /* header: one-line brand, compact language switch */
  .nav .wrap { height: 64px; gap: 8px; }
  .brand:has(.brand-text) { gap: 8px; min-width: 0; }
  .brand:has(.brand-text) img { height: 32px; flex: none; }
  .brand-text { min-width: 0; }
  .brand-text small { font-size: 7.5px; letter-spacing: .12em; white-space: nowrap; margin-bottom: 2px; }
  .brand-text b { font-size: 13px; white-space: nowrap; }
  .lang-switch { margin-right: 4px; }
  .lang-switch a { padding: 6px 8px; font-size: 11px; }
  .nav-toggle { width: 40px; height: 40px; flex: none; }
  .nav-links { top: 64px; }
  section { padding-block: 56px; }
  .sec-head { margin-bottom: 26px; }
  .sec-head h2 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  /* speech / opening cards: smaller portrait */
  .opening { padding: 18px; gap: 20px; }
  .op-photo { width: min(220px, 70%); margin-inline: auto; }
  .op-text { font-size: 1rem; }
  /* participants: two cards per row */
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { padding: 14px; gap: 10px; }
  .pcard b { font-size: .98rem; }
  .pcard span { font-size: 11.5px; }
  .pcard .go { display: none; }
  /* delegation page: compact speaker row, smaller hero */
  .d-hero { padding-block: 100px 36px; }
  .d-flag, .d-org { width: 120px; }
  .speaker { flex-direction: row; align-items: center; padding: 18px; gap: 16px; }
  .speaker .ph { width: 96px; flex: none; }
  .speaker .ph .flagpin { width: 28px; bottom: 6px; left: 6px; }
  .speaker h3 { font-size: 1.2rem; }
  .country-info .btn { width: 100%; justify-content: center; font-size: 14px; }
  /* speech page */
  .sp-hero { padding-top: 84px; }
  .sp-article { padding: 22px 18px; }
  .sp-article p { font-size: 1.02rem; }
  /* modal */
  .modal { padding: 12px; }
  .modal-body { padding: 20px 18px 22px; }
  .modal-body h3 { font-size: 1.6rem; }
  .modal-actions .btn { width: 100%; justify-content: center; }
  .modal-actions .src { width: 100%; text-align: center; }
  /* lightbox arrows inside the image area */
  .lb button.lb-p { left: 8px; } .lb button.lb-n { right: 8px; } .lb .lb-x { top: 12px; right: 12px; }
  .lb button { width: 44px; height: 44px; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.lb button { z-index: 2; } /* arrows above the image/video */
/* host page: list of the authority's main tasks */
.host-tasks { margin: 10px 0 24px; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 8px; }
.host-tasks li::marker { color: #fff; }

/* ---------- Delegation pages: flag strip to all delegations (replaces prev/next) ---------- */
.deleg-nav { padding-block: 0 clamp(48px, 7vw, 80px); }
.deleg-nav .eyebrow { display: flex; max-width: var(--wrap); margin: 0 auto 16px; padding-inline: clamp(16px, 4vw, 40px); }
.deleg-strip { margin-top: 0; }
.deleg-strip a { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; text-decoration: none;
  background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, transform .2s, border-color .2s; }
.deleg-strip a img { width: 30px; height: 22px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.deleg-strip a:hover, .deleg-strip a:focus-visible { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }
.deleg-strip a.on { background: #fff; color: var(--red-800); border-color: #fff; }
.org-mini { display: grid; place-items: center; width: 30px; height: 22px; border-radius: 5px; font: 800 7.5px/1 var(--ff-head); font-style: normal; letter-spacing: .02em;
  color: #fff; background: url("../assets/ornament-tile.png") center / 90px, linear-gradient(140deg, #d81e2a, #5c070d); }
@media (max-width: 900px) {
  .deleg-strip a { padding: 0; border: 0; border-radius: 6px; background: none; aspect-ratio: 4 / 3; justify-content: center; }
  .deleg-strip a[aria-hidden="true"], .deleg-strip a span { display: none; }
  .deleg-strip a img, .deleg-strip .org-mini { width: 100%; height: 100%; }
  .deleg-strip .org-mini { font-size: 7px; }
  .deleg-strip a:hover, .deleg-strip a.on { transform: none; background: none; box-shadow: 0 0 0 2px #fff; }
}

/* ---------- Delegation pages: country map + emblem card (replaces the speaker placeholder) ---------- */
.map-card-d { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.cmap { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .08), rgba(0, 0, 0, .22)); border: 1px solid var(--line); }
.cmap svg { display: block; }
.cmap-main { width: 100%; height: 100%; }
.cm-land { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .22); stroke-width: .5; vector-effect: non-scaling-stroke; }
.cm-on { fill: #fff; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 12px rgba(255, 255, 255, .45)); }
.cm-ring { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .85; }
.cmap-inset { position: absolute; right: 10px; bottom: 10px; width: 26%; height: auto; padding: 6px; border-radius: 10px;
  background: rgba(40, 2, 6, .7); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.ci-land { fill: rgba(255, 255, 255, .25); }
.ci-on { fill: #fff; }
.ci-dot { fill: none; stroke: #fff; stroke-width: 6; }
.cmap-foot { display: flex; align-items: center; gap: 16px; }
.cmap-foot h3 { font-size: 1.3rem; }
.cmap-foot .ttl { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.flag-sm { width: 64px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }
.emblem-box { flex: none; width: 92px; height: 92px; border-radius: 16px; background: #fff; display: grid; place-items: center; padding: 10px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.emblem-box img, .org-emblem img.emblem { max-width: 100%; max-height: 100%; object-fit: contain; }
.org-emblem { aspect-ratio: 1; border-radius: 18px; background: #fff; display: grid; place-items: center; padding: 14%; }
.org-emblem .d-org { width: 100%; animation: none; }
@media (max-width: 900px) { .map-card-d { flex-direction: column; } .cmap { max-width: 420px; width: 100%; margin-inline: auto; } }
@media (max-width: 600px) { .map-card-d { padding: 16px; } .emblem-box { width: 72px; height: 72px; } .speaker.map-card-d { flex-direction: column; align-items: stretch; } }
.emblem-box { width: auto; min-width: 92px; max-width: 170px; height: 92px; }
.emblem-box img { max-height: 72px; }
.org-emblem:has(.d-org) { background: transparent; padding: 18%; }
@media (max-width: 600px) { .emblem-box { height: 72px; min-width: 72px; max-width: 130px; } .emblem-box img { max-height: 54px; } }

/* ---------- Delegation page — design B: one "ID card" (visual left, info right) ---------- */
.idcard { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; padding: 0; }
.id-visual { position: relative; min-height: 100%; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .1), rgba(0, 0, 0, .25)); border-right: 1px solid var(--line); }
.id-visual .cmap { border: 0; border-radius: 0; background: none; height: 100%; aspect-ratio: auto; min-height: 380px; }
.id-visual .cmap-inset { width: 24%; }
.id-visual .org-emblem { margin: 28px; border-radius: 20px; }
.id-portrait { margin: 0; position: relative; height: 100%; min-height: 420px; }
.id-portrait > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.id-portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 22px; display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(180deg, transparent, rgba(30, 2, 5, .92)); }
.id-portrait figcaption b { font: 700 1.45rem/1.2 var(--ff-head); }
.id-portrait figcaption small { font-size: 14px; color: var(--ink-2); }
.id-body { padding: clamp(24px, 3.5vw, 44px); }
.id-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.id-emb { height: 64px; min-width: 64px; max-width: 170px; padding: 8px 12px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .7); }
.id-emb img { max-height: 48px; max-width: 146px; object-fit: contain; }
.id-flag { width: 64px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); flex: none; }
.id-body .intro { margin: 16px 0 22px; }
.id-facts { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 0 0 22px; }
@media (max-width: 900px) {
  .idcard { grid-template-columns: minmax(0, 1fr); }
  .id-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .id-visual .cmap { min-height: 0; aspect-ratio: 1; max-width: 420px; margin-inline: auto; }
  .id-portrait { min-height: 0; aspect-ratio: 4 / 5; max-width: 360px; margin-inline: auto; }
  .id-visual .org-emblem { max-width: 300px; margin: 24px auto; }
}
@media (max-width: 600px) { .id-body .btn { width: 100%; justify-content: center; } .id-emb { height: 52px; } .id-emb img { max-height: 38px; max-width: 110px; } }
.id-facts .fact-wide { grid-column: 1 / -1; }
.id-facts .fact-wide dd a { word-break: normal; overflow-wrap: anywhere; }
/* map keeps a square shape, centred vertically when the text side is taller */
.id-visual { display: flex; align-items: center; }
.id-visual .cmap { width: 100%; height: auto; aspect-ratio: 1; min-height: 0; }
.id-visual .org-emblem { flex: 1; }
.id-visual .cmap-main { -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 74%); mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 74%); }
.id-visual { align-items: stretch; }
.id-visual .cmap { height: auto; aspect-ratio: auto; min-height: 400px; }
@media (max-width: 900px) { .id-visual .cmap { aspect-ratio: 1; min-height: 0; } }
.id-visual .org-emblem { flex: none; align-self: center; width: calc(100% - 56px); height: auto; aspect-ratio: 1; margin: 28px; }
.id-visual .org-emblem img.emblem { width: 100%; height: 100%; }
/* a single short quote on the home-page speech cards reads as a headline quote */
.op-text p:only-of-type { font: 500 clamp(1.25rem, 2.4vw, 1.7rem)/1.4 var(--ff-head); color: #fff; }
/* speech page: video of the address between the header card and the full text */
/* speech page: compact video card in the reading column (same width as the full text); opens the player in place */
.sp-video { padding-block: 0 22px; }
.spv { max-width: 860px; margin: 0 auto; }
.spv-card { width: 100%; display: flex; align-items: center; gap: 20px; padding: 14px; text-align: left; cursor: pointer;
  border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  backdrop-filter: blur(12px); transition: border-color .25s, background .25s; }
.spv-card:hover, .spv-card:focus-visible { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); }
.spv-thumb { position: relative; flex: none; width: 240px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.spv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.spv-card:hover .spv-thumb img { transform: scale(1.05); }
.spv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--red-700); display: grid; place-items: center; box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .6); }
.spv-play svg { width: 42%; margin-left: 8%; }
.spv-dur { position: absolute; right: 8px; bottom: 8px; font-size: 12px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; }
.spv-text { display: flex; flex-direction: column; gap: 4px; }
.spv-text b { font: 600 1.25rem/1.25 var(--ff-head); color: #fff; }
.spv-text small { color: var(--ink-3); font-size: 14px; }
.spv.open .film { border-radius: 20px; }
@media (max-width: 600px) { .spv-card { flex-direction: column; align-items: stretch; gap: 12px; } .spv-thumb { width: 100%; } }

/* delegation flag strip: JS-driven scrolling (drag / wheel / arrows) instead of the CSS marquee */
.deleg-strip { position: relative; }
.deleg-strip.js-scroll .track { animation: none; will-change: transform; cursor: grab; user-select: none; }
.deleg-strip.dragging .track { cursor: grabbing; }
.deleg-strip.dragging a { pointer-events: none; }
.deleg-strip a img { -webkit-user-drag: none; }
.deleg-strip .ds-btn { position: absolute; padding: 0; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(40, 2, 6, .82); backdrop-filter: blur(8px);
  display: grid; place-items: center; opacity: 0; transition: opacity .2s, background .2s; }
.deleg-strip .ds-btn svg { width: 22px; height: 22px; }
.deleg-strip .ds-btn.prev { left: 14px; } .deleg-strip .ds-btn.next { right: 14px; }
.deleg-strip:hover .ds-btn, .deleg-strip .ds-btn:focus-visible { opacity: 1; }
.deleg-strip .ds-btn:hover { background: rgba(255, 255, 255, .2); transform: translateY(-50%); }
@media (max-width: 900px) { .deleg-strip .ds-btn { display: none; } .deleg-strip.js-scroll .track { transform: none !important; cursor: default; } }
.lb [hidden] { display: none !important; } /* single item: no arrows, no counter */
