/* ==========================================================
   ISDGPC — International Seedless Dried Grape Producing
   Countries Conference
   Design: continuous diagonal gold/cream glass facets, navy
   (#0c1f4d) + gold (#c9a35f), Outfit/Inter, pill buttons.
   Matched to the organizer's approved landing mockup.
   ========================================================== */

:root {
  --navy: #0c1f4d;
  --navy-deep: #081735;
  --navy-soft: #1b3268;
  --gold: #c9a35f;
  --gold-light: #e8cf97;
  --gold-brown: #a9823c;
  --cream: #fdfaf4;
  --cream-dark: #f6efe0;
  --cream-border: rgba(201, 163, 95, 0.28);
  --card-border: rgba(201, 163, 95, 0.22);
  --ink: #1d2433;
  --muted: #6b7280;
  --radius: 16px;
  --shadow: 0 14px 34px -14px rgba(12, 31, 77, 0.16);
  --shadow-sm: 0 10px 30px -12px rgba(12, 31, 77, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

/* Continuous diagonal gold/cream sheen running through the WHOLE page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg,
      transparent 52%,
      rgba(201,163,95,0.07) 52.15%,
      rgba(232,207,151,0.14) 66%,
      rgba(201,163,95,0.05) 80%,
      transparent 93%),
    linear-gradient(295deg,
      transparent 58%,
      rgba(232,207,151,0.10) 58.15%,
      rgba(201,163,95,0.05) 76%,
      transparent 90%),
    linear-gradient(115deg,
      transparent 8%,
      rgba(232,207,151,0.10) 8.15%,
      rgba(253,250,244,0) 22%),
    linear-gradient(to bottom, #fffdf9, var(--cream));
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--navy); }

a { color: var(--navy); }

img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------------- Header / nav (transparent, blends into hero) ---------------- */

.site-header {
  background: rgba(253, 250, 244, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }

.brand-mark {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}

.brand-text { line-height: 1.15; }

.brand-text .t1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  display: block;
}

.brand-text .t2 {
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-brown);
  font-weight: 600;
  display: block;
  max-width: 250px;
  line-height: 1.35;
  white-space: normal;
}

.main-nav { display: flex; align-items: center; gap: 0.2rem; }

.main-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover { background: rgba(201,163,95,0.12); }

.main-nav a.active { background: var(--navy); color: #fff; }

.main-nav a.nav-cta {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  margin-left: 0.4rem;
  box-shadow: 0 4px 14px -6px rgba(169,130,60,0.6);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------------- Buttons & pills ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  box-shadow: 0 6px 18px -8px rgba(169,130,60,0.7);
}

.btn-outline { background: #fff; border-color: var(--card-border); color: var(--navy); }
.btn-outline:hover { background: var(--cream-dark); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag.plain { background: #fff; border: 1px solid var(--cream-border); color: var(--navy); box-shadow: var(--shadow-sm); }
.tag.solid { background: var(--navy); color: #fff; }

a.tag { text-decoration: none; transition: transform 0.15s, box-shadow 0.2s; }
a.tag:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.tag.gold  { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); }

/* ---------------- Live hero: approved artwork as background,
     all text & pills are real editable HTML on top ---------------- */

.hero-live {
  position: relative;
  background: url('../images/hero-bg.jpg') center / cover no-repeat;
  background-color: var(--cream);
  /* keep the same proportions as the artwork (2144×1088 ≈ 1.97:1) */
  aspect-ratio: 1.97 / 1;
  max-height: 560px;
  min-height: 340px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-live-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-left: clamp(1.25rem, 6vw, 5rem);
  padding-right: 1rem;
}

.hero-live .eyebrow {
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  letter-spacing: 0.32em;
  margin-bottom: clamp(0.6rem, 1.6vw, 1.1rem);
}

.hero-live-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-size: clamp(1.45rem, 3.6vw, 2.9rem);
  color: var(--navy);
  margin: 0 0 clamp(0.6rem, 1.6vw, 1rem);
}

.hero-live-title .accent { color: var(--gold); }

.hero-live-desc {
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  line-height: 1.55;
  color: #5a6478;
  margin: 0 0 clamp(0.9rem, 2vw, 1.5rem);
  max-width: 430px;
}

/* Phones: artwork's right decoration would crowd the text — switch to cover-left */
@media (max-width: 640px) {
  .hero-live {
    aspect-ratio: auto;
    max-height: none;
    background-position: left center;
  }
  .hero-live::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(253,250,244,0.92) 55%, rgba(253,250,244,0.55));
  }
  .hero-live-content { padding: 2.4rem 1.25rem; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* legacy wedges (subpages) */
.hero .wedge-gold {
  position: absolute; top: 0; bottom: 0; left: 56%; width: 30%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0% 100%);
  z-index: 2;
}

.hero .wedge-navy-thin {
  position: absolute; top: 0; bottom: 0; left: 60%; width: 8%;
  background: var(--navy);
  clip-path: polygon(40% 0, 60% 0, 20% 100%, 0% 100%);
  z-index: 3;
}

.hero .wedge-navy-photo {
  position: absolute; top: 0; bottom: 0; left: 64%; right: 0;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0% 100%);
  background-size: cover;
  background-position: center;
  z-index: 4;
}

.hero .thin-gold-edge {
  position: absolute; top: 0; bottom: 0; right: 9%; width: 5px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-brown));
  z-index: 5;
  transform: skewX(-18deg);
}

.hero .raisin-corner {
  position: absolute; top: 0; right: 0; width: 12%; height: 100%;
  background-size: cover; background-position: center;
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 3;
}

/* Homepage montage hero: the full right half of the approved artwork
   (glass panels + gold world map + navy corners) bleeds to the edge */
.hero.hero-montage .wedge-navy-photo {
  left: 46%; right: 0;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  background-size: 205% auto;
  background-position: right center;
}

.hero.hero-montage .wedge-navy-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cream), rgba(253,250,244,0.3) 14%, transparent 34%);
}

.hero.hero-montage .wedge-gold {
  left: 42%; width: 13%;
  background: linear-gradient(135deg, rgba(232,207,151,0.65), rgba(201,163,95,0.75));
  clip-path: polygon(55% 0, 100% 0, 45% 100%, 0% 100%);
}

.hero.hero-montage .wedge-navy-thin {
  left: 45.5%; width: 5.5%;
  background: linear-gradient(to bottom, var(--navy), var(--navy-soft));
  clip-path: polygon(50% 0, 72% 0, 22% 100%, 0% 100%);
}

/* extra translucent glass facet over the seam */
.hero.hero-montage::after {
  content: "";
  position: absolute; top: -10%; bottom: -10%; left: 50%; width: 10%;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(232,207,151,0.18));
  border-left: 1px solid rgba(201,163,95,0.5);
  transform: skewX(-14deg);
  z-index: 5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 6;
  max-width: 640px;
  padding: 3.2rem 0 3.2rem 1.25rem;
  margin-left: calc(max((100% - 1140px) / 2, 0px));
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-brown);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-size: clamp(2rem, 4.1vw, 3.15rem);
  color: var(--navy);
  margin: 0 0 1rem;
  max-width: 580px;
}

.hero-title .accent { color: var(--gold); }

.hero-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 430px;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Compact hero variant for subpages */
.hero.hero-compact { min-height: 250px; }
.hero.hero-compact .hero-content { padding: 2.2rem 0 2.2rem 1.25rem; }
.hero.hero-compact .hero-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

/* ---------------- Sections (compact, transparent so sheen flows) ---------------- */

.section { padding: 2.6rem 0; }

.section-alt { background: transparent; }

.section-head { margin-bottom: 1.6rem; }

.section-head .eyebrow { margin-bottom: 0.5rem; }

.section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.section-sub { color: var(--muted); font-size: 0.92rem; max-width: 560px; margin: 0; }

/* ---------------- Split landing sections ---------------- */

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.split-section .lead-col .eyebrow { margin-bottom: 0.7rem; }

.split-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.8rem;
}

.split-title .accent { color: var(--gold); }

.split-section .lead-col p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
  max-width: 380px;
}

/* ---------------- Stat / focus cards ---------------- */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.stat-card, .focus-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.7rem 1.1rem 1.3rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card .icon-circle,
.focus-card .icon-circle,
.agenda-card .icon-circle {
  width: 48px; height: 48px;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #faf4e4, #f2e6c9);
  border: 1px solid rgba(201,163,95,0.4);
  color: var(--gold-brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.stat-card .big {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  display: block;
  margin-bottom: 0.3rem;
}

.stat-card .small-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.stat-card::after, .focus-card::after, .agenda-card::after {
  content: "";
  display: block;
  width: 28px; height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(to right, var(--gold-light), var(--gold));
  border-radius: 2px;
}

.focus-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }

.focus-card p { margin: 0; font-size: 0.79rem; color: var(--muted); }

/* ---------------- Participating countries ---------------- */

.countries-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
}

.countries-panel .map-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

.country-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.country-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(250,244,228,0.9));
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  box-shadow: 0 6px 16px -10px rgba(12,31,77,0.2);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s, color 0.25s;
}

/* thin gold accent bar on the left edge */
.country-pill::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold), var(--gold-brown));
  transition: width 0.25s;
}

.country-pill i {
  font-size: 0.68rem;
  color: var(--gold-brown);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s, color 0.25s;
}

a.country-pill:hover {
  border-color: var(--gold);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(12,31,77,0.45);
  transform: translateY(-2px);
}

a.country-pill:hover::before { width: 6px; }

a.country-pill:hover i {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold-light);
}

/* ---------------- Agenda cards with connecting line ---------------- */

.agenda-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  padding-top: 1.1rem;
}

/* horizontal rule the numbered circles sit on */
.agenda-cards::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}

.agenda-card {
  position: relative;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.1rem 1.1rem 1.3rem;
  text-align: center;
  margin-top: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.agenda-card .num-circle {
  position: absolute;
  top: -17px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-brown));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px var(--cream), 0 6px 14px -6px rgba(169,130,60,0.8);
}

.agenda-card .icon-circle { width: 42px; height: 42px; font-size: 0.92rem; }

.agenda-card h3 { margin: 0 0 0.35rem; font-size: 0.97rem; }

.agenda-card p { margin: 0; font-size: 0.79rem; color: var(--muted); }

/* ---------------- CTA band (navy + gold light streaks) ---------------- */

.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: #fff;
  overflow: hidden;
}

/* diagonal gold light streaks */
.cta-band::before {
  content: "";
  position: absolute; inset: -20% -5%;
  background:
    linear-gradient(115deg, transparent 12%, rgba(232,207,151,0.28) 12.15%, transparent 13.4%),
    linear-gradient(115deg, transparent 22%, rgba(201,163,95,0.20) 22.15%, transparent 24.5%),
    linear-gradient(115deg, transparent 72%, rgba(232,207,151,0.30) 72.15%, transparent 73.3%),
    linear-gradient(115deg, transparent 82%, rgba(201,163,95,0.22) 82.15%, transparent 85%),
    radial-gradient(circle at 82% 25%, rgba(232,207,151,0.22), transparent 32%),
    radial-gradient(circle at 12% 80%, rgba(201,163,95,0.16), transparent 30%);
  pointer-events: none;
}

/* faceted translucent corners */
.cta-band::after {
  content: "";
  position: absolute; top: 0; bottom: 0; right: -4%; width: 24%;
  background: linear-gradient(315deg, rgba(232,207,151,0.18), transparent 70%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0% 100%);
  border-left: 1px solid rgba(232,207,151,0.35);
  transform: skewX(-2deg);
  pointer-events: none;
}

.cta-band .inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 2.9rem 1.25rem;
}

.cta-band .eyebrow { color: var(--gold-light); }

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
}

.cta-band h2 .accent { color: var(--gold); }

.cta-band p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.cta-band .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ---------------- Conference cards (archive) ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}

.conf-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.25s;
}

.conf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Glassy gradient cover — no photos, just ordinal + host city */
.conf-card .cover {
  height: 110px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 1.3rem;
  background: linear-gradient(130deg,
    rgba(12,31,77,0.82) 0%,
    rgba(12,31,77,0.6) 45%,
    rgba(201,163,95,0.35) 100%);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-bottom: 1px solid rgba(201,163,95,0.4);
}

/* Soft glass highlight sweeping across the top */
.conf-card .cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.04) 35%,
    transparent 60%);
  pointer-events: none;
}

.conf-card .cover .cover-ord {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1;
  z-index: 1;
}

.conf-card .cover .cover-ord .cover-dot { color: var(--gold-light); font-weight: 600; }

.conf-card .cover .cover-city {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  z-index: 1;
}

.conf-card .cover .cover-city i { margin-right: 0.3rem; font-size: 0.7rem; }

.conf-card .body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }

.conf-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; line-height: 1.3; }

.conf-card .meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-bottom: 0.8rem;
}

.conf-card .meta i { color: var(--gold-brown); margin-right: 0.3rem; }

.conf-card .meta .status-badge {
  font-size: 0.66rem;
  padding: 0.22rem 0.6rem;
}

.conf-card .excerpt {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.conf-card .card-cta {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-brown);
}

.conf-card .card-cta i { margin-left: 0.3rem; transition: transform 0.2s; }

.conf-card:hover .card-cta i { transform: translateX(4px); }

/* ---------------- Stats band (about page) ---------------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-box {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-box .num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--navy);
  display: block;
}

.stat-box .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-brown);
  font-weight: 600;
}

/* ---------------- Detail page ---------------- */

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 2rem;
  align-items: start;
}

.content-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.content-card h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--cream-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.content-card h2 i { color: var(--gold-brown); font-size: 1rem; }

.press-text { font-size: 0.92rem; color: #3a4152; white-space: pre-line; }

.officials-list { list-style: none; margin: 0; padding: 0; }

.officials-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--cream-border);
  font-size: 0.88rem;
}

.officials-list li:last-child { border-bottom: none; }

.officials-list .role { color: var(--gold-brown); font-weight: 600; }

.download-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }

.download-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--cream-dark);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.2s;
}

.download-list a:hover { background: #fff; }

.download-list a i { color: var(--gold-brown); font-size: 1.1rem; width: 20px; text-align: center; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.gallery-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
}

.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-grid a:hover img { transform: scale(1.04); }

.info-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }

.info-table td { padding: 0.55rem 0; border-bottom: 1px dashed var(--cream-border); vertical-align: top; }

.info-table td:first-child { color: var(--gold-brown); font-weight: 600; width: 42%; padding-right: 0.8rem; }

.info-table tr:last-child td { border-bottom: none; }

/* ---------------- Highlights-report shared components ----------------
   Canonical styling for the per-conference highlights pages
   (conference-64.html, conference-65.html, future editions).
   Single source of truth — do NOT copy these into page <style> blocks. */

.report-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }

.report-table thead th {
  background: var(--navy); color: #fff;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.7rem 1rem; text-align: left;
}

.report-table thead th:first-child { border-radius: 10px 0 0 0; }
.report-table thead th:last-child { border-radius: 0 10px 0 0; }
.report-table tbody td { padding: 0.65rem 1rem; border-bottom: 1px solid rgba(201,163,95,0.18); }
.report-table tbody tr:nth-child(even) { background: rgba(246,239,224,0.5); }
.report-table tbody tr:hover { background: rgba(232,207,151,0.18); }
.report-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); white-space: nowrap; }

.report-table tfoot td {
  padding: 0.7rem 1rem; font-weight: 700; color: var(--navy);
  border-top: 2px solid var(--gold); background: rgba(232,207,151,0.22);
}

.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

.decision-card {
  background: rgba(255,255,255,0.9); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 1.6rem 1.3rem; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}

.decision-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, var(--gold-light), var(--gold), var(--gold-brown));
}

.decision-card .d-num {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 0.72rem;
  letter-spacing: 0.2em; color: var(--gold-brown); display: block; margin-bottom: 0.6rem;
}

.decision-card h3 { margin: 0 0 0.5rem; font-size: 1.02rem; }
.decision-card p { margin: 0; font-size: 0.84rem; color: var(--muted); }

.note-strip {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: rgba(232,207,151,0.18); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 0.9rem 1.1rem; font-size: 0.8rem; color: #5a6478;
}

.note-strip i { color: var(--gold-brown); margin-top: 0.15rem; }

.chart-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }

@media (max-width: 900px) {
  .decision-grid { grid-template-columns: 1fr; }
  .chart-split { grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 23, 53, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img { max-width: 92%; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

.lightbox .close-btn {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 999px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------------- Filters bar (archive) ---------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
  align-items: center;
}

.filter-bar .search-wrap { position: relative; flex: 1; min-width: 220px; }

.filter-bar .search-wrap i {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--gold-brown);
  font-size: 0.85rem;
}

.filter-bar input[type="search"] {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
}

.filter-bar input[type="search"]:focus { border-color: var(--gold); }

.filter-bar select {
  padding: 0.6rem 2.2rem 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a9823c' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  appearance: none;
  cursor: pointer;
  outline: none;
}

/* ---------------- Statistics dashboard (KPI band) ---------------- */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.kpi-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kpi-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-brown));
}

.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 10px 28px rgba(12,31,77,0.1)); }

.kpi-icon {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #faf4e4, #f2e6c9);
  border: 1px solid rgba(201,163,95,0.4);
  color: var(--gold-brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-brown);
}

.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.kpi-delta {
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.kpi-up { color: #1d7a46; }
.kpi-down { color: #a8353a; }

.kpi-note {
  font-size: 0.74rem;
  color: var(--muted);
}

.chart-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  height: 420px;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.chart-source {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-brown);
  margin: 0.7rem 0 0;
}

.chart-source i { margin-right: 0.35rem; }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .kpi-card { padding: 1.05rem 1.05rem 0.95rem; }
  .chart-card { height: 360px; padding: 1.1rem; }
}

@media (max-width: 480px) {
  .chart-card { height: 320px; }
}

/* ---------------- About page ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.about-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.about-card .icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #faf4e4, #f2e6c9);
  border: 1px solid rgba(201,163,95,0.4);
  color: var(--gold-brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.about-card h3 { margin: 0 0 0.4rem; font-size: 1rem; }

.about-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* ---------------- Footer (slim) ---------------- */

.site-footer {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: rgba(255,255,255,0.72);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--gold-light), var(--gold), var(--gold-brown));
}

.site-footer .inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  padding: 2rem 0 1.4rem;
}

.site-footer h4 { color: #fff; font-size: 0.9rem; margin: 0 0 0.6rem; }

.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }

.site-footer a:hover { color: var(--gold-light); }

.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.82rem; }

.site-footer p { font-size: 0.82rem; margin: 0 0 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 0.85rem 0;
  font-size: 0.73rem;
  text-align: center;
  color: rgba(255,255,255,0.45);
}

/* ---------------- Utilities ---------------- */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.loading-note { color: var(--muted); font-size: 0.9rem; padding: 2rem 0; text-align: center; }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero .wedge-gold,
  .hero .wedge-navy-thin,
  .hero .wedge-navy-photo,
  .hero .thin-gold-edge,
  .hero .raisin-corner,
  .hero.hero-montage::after { display: none; }

  .hero { min-height: 0; }

  .hero-content { max-width: 100%; margin-left: 0; padding: 2.2rem 1.25rem; }

  .split-section { grid-template-columns: 1fr; gap: 1.6rem; }

  .split-section .lead-col p { max-width: 100%; }

  .agenda-cards { grid-template-columns: 1fr; }

  /* Stat cards stay side-by-side on mobile (compact) */
  .stat-cards { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }

  .stat-card { padding: 1.1rem 0.5rem 0.9rem; }

  .stat-card .icon-circle { width: 38px; height: 38px; margin-bottom: 0.6rem; font-size: 0.85rem; }

  .stat-card .big { font-size: 1.15rem; }

  .stat-card .small-label { font-size: 0.54rem; letter-spacing: 0.1em; }

  .stat-card::after { width: 22px; margin-top: 0.7rem; }

  .agenda-cards::before { display: none; }

  .countries-panel { grid-template-columns: 1fr; }

  .detail-layout { grid-template-columns: 1fr; }

  /* --- Mobile header: glassy cream bar, logo kept left but inset --- */
  .site-header {
    background: rgba(253, 250, 244, 0.68);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(201,163,95,0.35);
    box-shadow: 0 10px 30px -18px rgba(12,31,77,0.25);
    overflow-x: clip;
    overflow-y: visible;
  }

  /* Soft travelling shine across the glassy bar */
  .site-header::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -40%;
    width: 38%;
    background: linear-gradient(105deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.14) 40%,
      rgba(232,207,151,0.18) 50%,
      rgba(255,255,255,0.14) 60%,
      rgba(255,255,255,0) 100%);
    transform: skewX(-12deg);
    animation: header-shine 16s linear infinite;
    pointer-events: none;
  }

  @keyframes header-shine {
    0%   { left: -45%; }
    60%  { left: 115%; }
    100% { left: 115%; }
  }

  /* Keep both edges safely inside the screen */
  .site-header .inner { padding: 0.6rem 0.35rem; gap: 0.45rem; }

  .brand { gap: 0.65rem; }

  .brand-mark {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.55);
    border: 1.5px solid var(--gold);
    color: var(--gold-brown);
    font-size: 1.02rem;
    box-shadow: 0 4px 12px -6px rgba(169,130,60,0.5);
  }

  .brand-text .t2 {
    font-size: 0.5rem;
    letter-spacing: 0.07em;
    max-width: 200px;
  }

  /* Mobile nav: HOME pill stays visible, hamburger sits right next to it;
     tapping the icon drops the remaining tabs below the header */
  .main-nav {
    display: flex;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    flex-direction: row;
    align-items: center;
  }

  /* Closed state: hide everything except Home */
  .main-nav a { display: none; }

  .main-nav a[href="index.html"] {
    display: inline-flex;
    align-items: center;
    background: var(--navy);
    color: #fff;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px -8px rgba(12,31,77,0.45);
  }

  /* Hamburger: compact glassy icon button next to the HOME pill */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.55);
    border: 1.5px solid rgba(201,163,95,0.55);
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    font-size: 1.05rem;
    color: var(--navy);
    margin-right: 0.3rem;
    box-shadow: 0 4px 12px -6px rgba(12,31,77,0.2);
  }

  /* Open state: the full tab list drops below the header (right-anchored) */
  .main-nav.open {
    position: absolute;
    top: calc(100% + 6px);
    right: 0.75rem;
    left: auto;
    min-width: 190px;
    background: #fdfaf4;
    border: 1px solid rgba(201,163,95,0.4);
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.45rem;
    gap: 0.1rem;
    box-shadow: 0 16px 34px -14px rgba(12,31,77,0.4);
  }

  .main-nav.open a {
    display: flex;
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
    border-radius: 9px;
  }

  /* Inside the dropdown, Home looks like a normal item (navy only when active) */
  .main-nav.open a[href="index.html"] {
    background: none;
    color: var(--navy);
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.84rem;
    border-radius: 9px;
    box-shadow: none;
  }

  .main-nav.open a.active,
  .main-nav.open a[href="index.html"].active {
    background: var(--navy);
    color: #fff;
  }

  .main-nav.open a.nav-cta {
    margin-left: 0;
    margin-top: 0.25rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--navy);
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .stat-cards, .agenda-cards { gap: 0.8rem; }
}
