/* ==========================================================
   Celiac Care Providers Society — styles
   Brand: Pantone 2738 C (navy) + Pantone 347 C (green)
   Arabic display font: Boahmed AlHarf · English: Myriad Pro
   (Source Sans 3 is used as the free web stand-in for Myriad)
   ========================================================== */

@font-face {
  font-family: "Boahmed AlHarf";
  src: url("../fonts/boahmed-alharf-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #232a7c;
  --navy-900: #161a52;
  --navy-100: #e9eaf5;
  --green: #009a4c;
  --green-700: #007a3c;
  --green-100: #e3f4ea;
  --cream: #f7f6f0;
  --ink: #1c1d2b;
  --muted: #555a6e;
  --white: #fff;
  --line: #dfe1ea;

  --font-display: "Boahmed AlHarf", "Tajawal", sans-serif;
  --font-body: "Tajawal", system-ui, sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(22, 26, 82, .25);
  --container: 1200px;
}

html[lang="en"] {
  --font-display: "Source Sans 3", "Myriad Pro", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Myriad Pro", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-700); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-900); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--green-100); }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  font-weight: 700; color: var(--green-700); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4em;
}
.link::after { content: "←"; transition: transform .2s; }
html[dir="ltr"] .link::after { content: "→"; }
.link:hover::after { transform: translateX(-4px); }
html[dir="ltr"] .link:hover::after { transform: translateX(4px); }

.eyebrow {
  font-weight: 700; color: var(--green-700); font-size: .95rem;
  letter-spacing: .02em; margin-bottom: .4em;
}
.eyebrow--light { color: #7ee0a9; }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-900); color: #fff; font-size: .9rem; }
.utility__inner { display: flex; justify-content: flex-end; gap: 22px; padding-block: 6px; }
.utility__link {
  color: #fff; opacity: .85; text-decoration: none; background: none; border: 0;
  font: inherit; cursor: pointer; padding: 0;
}
.utility__link:hover { opacity: 1; text-decoration: underline; }
.lang-toggle { font-family: "Source Sans 3", sans-serif; font-weight: 700; opacity: 1; }
html[lang="en"] .lang-toggle { font-family: "Tajawal", sans-serif; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand__logo { height: 76px; width: auto; }
.nav { flex: 1; }
.nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.nav__list a {
  text-decoration: none; font-weight: 700; color: var(--navy); padding: 6px 0; white-space: nowrap;
  position: relative; font-size: 1.02rem;
}
.nav__list a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--green); transform: scaleX(0); transition: transform .25s;
}
.nav__list a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy-100);
  color: var(--navy); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--navy); color: #fff; }
.menu-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn span { display: block; width: 20px; height: 2.5px; background: currentColor; border-radius: 2px; transition: .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav__actions--mobile { display: none; }

.search { border-top: 1px solid var(--line); background: var(--cream); }
.search__inner { display: flex; gap: 10px; padding-block: 14px; }
.search input {
  flex: 1; padding: .7em 1.2em; border-radius: 999px; border: 2px solid var(--line);
  font: inherit; background: #fff;
}
.search input:focus { border-color: var(--navy); outline: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy); color: #fff; overflow: hidden; position: relative;
}
.hero::before { /* subtle wheat-grain texture */
  content: ""; position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(circle at 1px 1px, #fff 1.2px, transparent 0);
  background-size: 22px 22px;
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px;
  align-items: end; padding-top: 72px;
}
.hero__text { padding-bottom: 72px; }
.hero__title {
  font-family: var(--font-display); color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.2; margin-bottom: .35em;
}
html[lang="en"] .hero__title { font-weight: 900; letter-spacing: -.01em; }
.hero__lead { font-size: 1.2rem; opacity: .9; max-width: 34ch; margin-bottom: 1.6em; }

.pathways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.pathway {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 16px 20px; border-radius: 14px; background: #fff; color: var(--navy);
  font-weight: 700; text-decoration: none; transition: background .2s, transform .2s;
}
.pathway:hover { background: var(--green); color: #fff; transform: translateY(-3px); }
.pathway .arrow { flex-shrink: 0; transform: scaleX(-1); }
html[dir="ltr"] .pathway .arrow { transform: none; }

/* Arch motif (echoes the reference site's arches) */
.hero__art { position: relative; height: 460px; align-self: end; }
.arch { position: absolute; bottom: 0; border-radius: 999px 999px 0 0; }
.arch--back {
  inset-inline-start: 4%; width: 62%; height: 92%; background: var(--green);
}
.arch--front {
  inset-inline-end: 0; width: 64%; height: 78%; background: #fff; overflow: hidden;
  display: grid; place-items: center;
}
.arch__wheat {
  position: absolute; inset: 0; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22100%22%20viewBox%3D%22-30%20-30%20160%20160%22%3E%3Cg%20fill%3D%22%239aa0b4%22%3E%3Cpath%20d%3D%22M0%2C0%20C-5.5%2C-5%20-6%2C-13%200%2C-19%20C6%2C-13%205.5%2C-5%200%2C0Z%22%20transform%3D%22translate%2841%2C62%29%20rotate%28-12%29%22%2F%3E%3Cpath%20d%3D%22M0%2C0%20C-5.5%2C-5%20-6%2C-13%200%2C-19%20C6%2C-13%205.5%2C-5%200%2C0Z%22%20transform%3D%22translate%2842%2C63%29%20rotate%28102%29%22%2F%3E%3Cpath%20d%3D%22M0%2C0%20C-5.5%2C-5%20-6%2C-13%200%2C-19%20C6%2C-13%205.5%2C-5%200%2C0Z%22%20transform%3D%22translate%2849%2C54%29%20rotate%28-12%29%22%2F%3E%3Cpath%20d%3D%22M0%2C0%20C-5.5%2C-5%20-6%2C-13%200%2C-19%20C6%2C-13%205.5%2C-5%200%2C0Z%22%20transform%3D%22translate%2850%2C55%29%20rotate%28102%29%22%2F%3E%3Cpath%20d%3D%22M0%2C0%20C-5.5%2C-5%20-6%2C-13%200%2C-19%20C6%2C-13%205.5%2C-5%200%2C0Z%22%20transform%3D%22translate%2857%2C46%29%20rotate%28-12%29%22%2F%3E%3Cpath%20d%3D%22M0%2C0%20C-5.5%2C-5%20-6%2C-13%200%2C-19%20C6%2C-13%205.5%2C-5%200%2C0Z%22%20transform%3D%22translate%2858%2C47%29%20rotate%28102%29%22%2F%3E%3Cpath%20d%3D%22M0%2C0%20C-5.5%2C-5%20-6%2C-13%200%2C-19%20C6%2C-13%205.5%2C-5%200%2C0Z%22%20transform%3D%22translate%2863%2C39%29%20rotate%2845%29%20scale%281.05%29%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M30%2C74%20L36%2C68%22%20stroke%3D%22%239aa0b4%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2240%22%20fill%3D%22none%22%20stroke%3D%22%239aa0b4%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M22%2C22%20L78%2C78%22%20stroke%3D%22%23fff%22%20stroke-width%3D%2213%22%20stroke-linecap%3D%22butt%22%2F%3E%3Cpath%20d%3D%22M22%2C22%20L78%2C78%22%20stroke%3D%22%239aa0b4%22%20stroke-width%3D%228%22%2F%3E%3C%2Fsvg%3E");
  background-size: 76px 76px;
}
.arch__badge {
  position: relative; width: 62%; aspect-ratio: 1; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 10px var(--green-100), 0 0 0 14px var(--green);
  margin-top: 10%;
}
.arch__badge img { width: 72%; }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section--tint { background: var(--cream); }
.section__head { margin-bottom: 40px; max-width: 640px; }
.section__head--row {
  display: flex; justify-content: space-between; align-items: center; max-width: none; gap: 16px;
}
.section__title {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
html[lang="en"] .section__title { font-weight: 900; }
.section__title--light { color: #fff; }
.section__head--row .section__title { margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); flex: 1; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--green-100);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card--featured { background: var(--green); border-color: var(--green); color: #fff; }
.card--featured h3, .card--featured p, .card--featured .link { color: #fff; }
.card--featured .card__icon { background: rgba(255,255,255,.18); }
.card--featured .card__icon svg { stroke: #fff; }

/* Better future */
.future { background: var(--green-100); padding-block: 88px; }
.future__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.future p { font-size: 1.12rem; color: #2f3348; }
.future .btn { margin-top: .5em; }
.future__art { position: relative; height: 340px; }
.arch--outline {
  inset-inline-start: 0; width: 58%; height: 100%;
  border: 14px solid var(--navy); border-bottom: 0;
}
.arch--solid { inset-inline-end: 0; width: 52%; height: 70%; background: var(--green); }

/* Stats */
.stats { background: var(--navy); color: #fff; padding-block: 80px; text-align: center; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }
.stat {
  display: flex; flex-direction: column; gap: 8px; padding: 28px 16px;
  border-radius: var(--radius); background: rgba(255,255,255,.06);
  border-top: 5px solid var(--green);
}
.stat__num {
  font-family: "Source Sans 3", sans-serif; font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1; color: #fff; direction: ltr;
}
.stat__label { opacity: .85; }

/* Need to talk */
.talk {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  background: var(--cream); border-radius: 28px; padding: 56px;
}
.talk__info { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 12px; }
.talk__info li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); }
.talk__info a { text-decoration: none; }
.talk__info a:hover { color: var(--green-700); }
.talk__info svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.talk__art { position: relative; height: 280px; }
.bubble { position: absolute; border-radius: 28px; }
.bubble--1 { width: 62%; height: 40%; top: 6%; inset-inline-end: 0; background: var(--navy); border-end-end-radius: 6px; }
.bubble--2 { width: 54%; height: 34%; top: 40%; inset-inline-start: 4%; background: var(--green); border-end-start-radius: 6px; }
.bubble--3 { width: 34%; height: 22%; bottom: 0; inset-inline-end: 10%; background: var(--navy-100); border-end-end-radius: 6px; }

/* Join */
.join { background: var(--green); color: #fff; overflow: hidden; }
.join__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-block: 72px; }
.join p { font-size: 1.15rem; opacity: .95; max-width: 46ch; margin-bottom: 1.5em; }
.join__art {
  background: #fff; border-radius: 999px 999px 24px 24px; padding: 40px 28px 28px;
  max-width: 380px; justify-self: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}

/* News */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news__card {
  border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.news__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news__img { aspect-ratio: 16 / 9; position: relative; }
/* Placeholder artwork — swap for real photos */
.news__img--1 { background: radial-gradient(circle at 30% 120%, var(--green) 0 45%, transparent 46%), var(--navy); }
.news__img--2 { background: radial-gradient(circle at 75% -20%, var(--navy) 0 50%, transparent 51%), var(--green-100); }
.news__img--3 { background: linear-gradient(135deg, var(--green) 0 50%, var(--navy) 50%); }
.news__body { padding: 22px 24px 26px; }
.news__body time { color: var(--muted); font-size: .9rem; font-weight: 500; }
.news__body h3 { font-size: 1.2rem; margin-block: .4em .8em; }

/* Promos */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promo {
  border-radius: var(--radius); padding: 34px 30px; text-decoration: none; min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; transition: transform .25s;
}
.promo:hover { transform: translateY(-6px); }
.promo::before {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  top: -60px; inset-inline-end: -50px; opacity: .2; background: #fff;
}
.promo h3 { font-size: 1.4rem; }
.promo p { margin: 0; }
.promo__tag {
  align-self: flex-start; font-size: .82rem; font-weight: 700; padding: 4px 12px;
  border-radius: 999px; margin-bottom: auto; background: rgba(255,255,255,.2);
}
.promo--green { background: var(--green); color: #fff; }
.promo--navy { background: var(--navy); color: #fff; }
.promo--green h3, .promo--navy h3 { color: #fff; }
.promo--light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.promo--light .promo__tag { background: var(--green-100); color: var(--green-700); }
.promo--light::before { background: var(--green-100); opacity: 1; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  margin: 0; padding: 34px 30px; border-radius: var(--radius); background: var(--navy-100);
  display: flex; flex-direction: column; position: relative;
}
.quote::before {
  content: "”"; font-family: Georgia, serif; font-size: 5rem; line-height: .6;
  color: var(--green); margin-bottom: 10px;
}
.quote blockquote { margin: 0 0 1.2em; font-size: 1.15rem; font-weight: 500; color: var(--navy); flex: 1; }
.quote figcaption { font-weight: 700; color: var(--green-700); }
.quote--cta { background: var(--navy); color: #fff; justify-content: center; }
.quote--cta::before { display: none; }
.quote--cta h3 { color: #fff; font-family: var(--font-display); font-size: 1.7rem; }
.quote--cta .btn { align-self: flex-start; }

/* Footer */
.footer { background: var(--navy-900); color: rgba(255,255,255,.8); padding-top: 64px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 48px; }
.footer__logo { width: 170px; background: #fff; padding: 14px; border-radius: 20px; margin-bottom: 20px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: #fff; font-size: 1.1rem; margin-bottom: .3em; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: #7ee0a9; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; transition: background .2s;
}
.socials a:hover { background: var(--green); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .92rem;
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .menu-btn { display: flex; }
  .nav {
    position: fixed; inset: 0; top: var(--header-h, 128px); background: #fff;
    padding: 24px 16px; overflow-y: auto; transform: translateX(100%);
    transition: transform .3s ease; visibility: hidden;
  }
  html[dir="rtl"] .nav { transform: translateX(-100%); }
  .nav.is-open { transform: none !important; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 4px; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__actions--mobile { display: flex; gap: 12px; margin-top: 24px; }
  .header__actions { margin-inline-start: auto; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__text { padding-bottom: 0; }
  .hero__art { height: 300px; max-width: 460px; width: 100%; justify-self: center; }
  .cards, .news, .promos, .quotes { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .future__inner, .talk, .join__inner { grid-template-columns: 1fr; }
  .future__art { height: 220px; max-width: 420px; }
  .talk__art { display: none; }
  .talk { padding: 40px 28px; }
  .join__art { max-width: 280px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .brand__logo { height: 58px; }
  .section, .future { padding-block: 60px; }
  .pathways { grid-template-columns: 1fr; }
  .cards, .news, .promos, .quotes, .stats__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: start; }
  .hero__art { height: 240px; }
}

/* ==========================================================
   v2 — navigation polish, new sections, hero motion
   ========================================================== */

/* Anchor targets clear the sticky header */
section[id] { scroll-margin-top: 96px; }
.header { transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(22, 26, 82, .35); }
.nav__list a.is-active { color: var(--green-700); }
.nav__list a.is-active::after { transform: scaleX(1); }
.btn--sm { padding: .5em 1.05em; font-size: .92rem; }
.btn svg { flex-shrink: 0; }
img, svg { max-width: 100%; }

/* ---------- Hero motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes archUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); } 70% { transform: scale(1.04) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { background-position: 0 0; } to { background-position: 0 -76px; } }
@keyframes ring { 0% { box-shadow: 0 0 0 10px var(--green-100), 0 0 0 14px var(--green), 0 0 0 14px rgba(0,154,76,.35); }
                  100% { box-shadow: 0 0 0 10px var(--green-100), 0 0 0 14px var(--green), 0 0 0 40px rgba(0,154,76,0); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

.hero__text > * { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__text > :nth-child(1) { animation-delay: .1s; }
.hero__text > :nth-child(2) { animation-delay: .22s; }
.hero__text > :nth-child(3) { animation-delay: .36s; }
.hero__text > :nth-child(4) { animation-delay: .5s; }
.pathway { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.pathway:nth-child(1) { animation-delay: .6s; }
.pathway:nth-child(2) { animation-delay: .7s; }
.pathway:nth-child(3) { animation-delay: .8s; }
.pathway:nth-child(4) { animation-delay: .9s; }
.pathways { opacity: 1 !important; animation: none !important; }
.pathway .arrow { transition: transform .25s; }
.pathway:hover .arrow { transform: scaleX(-1) translateX(4px); }
html[dir="ltr"] .pathway:hover .arrow { transform: translateX(4px); }

.hero__art { overflow: hidden; }
.arch--back { animation: archUp 1s cubic-bezier(.2,.8,.2,1) .15s both; }
.arch--front { animation: archUp 1s cubic-bezier(.2,.8,.2,1) .35s both; }
.arch__wheat { animation: drift 24s linear infinite; }
.arch__badge { animation: pop .9s cubic-bezier(.2,.8,.2,1) 1s both, ring 2.8s ease-out 2s infinite; }
.arch__badge img { animation: float 5s ease-in-out 2s infinite; }
.hero__title .accent, .hero__title { background-clip: border-box; }

/* floating grains in the hero background */
.hero__grain {
  position: absolute; width: 10px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.12); pointer-events: none;
  animation: float 7s ease-in-out infinite;
}
.hero__grain:nth-of-type(1) { top: 18%; inset-inline-start: 46%; transform: rotate(30deg); animation-duration: 6s; }
.hero__grain:nth-of-type(2) { top: 70%; inset-inline-start: 52%; background: rgba(0,154,76,.35); animation-duration: 8s; animation-delay: -2s; }
.hero__grain:nth-of-type(3) { top: 30%; inset-inline-start: 6%; animation-duration: 9s; animation-delay: -4s; }
.hero__grain:nth-of-type(4) { top: 85%; inset-inline-start: 18%; background: rgba(0,154,76,.3); animation-duration: 7.5s; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.about__lead { font-size: 1.15rem; color: #2f3348; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.fact {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px;
  background: var(--cream); border: 1px solid var(--line);
}
.fact strong { display: block; color: var(--navy); line-height: 1.3; }
.fact__val { color: var(--muted); font-size: .95rem; }
.fact__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.fact__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillars { display: grid; gap: 18px; }
.pillar {
  position: relative; padding: 28px 30px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .3em; }
html[lang="en"] .pillar h3 { font-weight: 900; }
.pillar p { margin: 0; color: var(--muted); }
.pillar__num {
  position: absolute; inset-inline-end: 20px; top: 8px; font: 900 3.6rem/1 "Source Sans 3", sans-serif;
  color: var(--navy-100);
}
.pillar--green { background: var(--green); border-color: var(--green); }
.pillar--navy { background: var(--navy); border-color: var(--navy); }
.pillar--green h3, .pillar--green p, .pillar--navy h3, .pillar--navy p { color: #fff; }
.pillar--green .pillar__num, .pillar--navy .pillar__num { color: rgba(255,255,255,.14); }

/* ---------- Places ---------- */
.places__toolbar { display: grid; gap: 16px; margin-bottom: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; padding: .55em .7em .55em 1.2em; line-height: 1.2; border-radius: 999px;
  border: 2px solid var(--navy); background: #fff; color: var(--navy); font: 700 1rem var(--font-body); cursor: pointer;
  transition: background .2s, color .2s;
}
.tab__count {
  display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 24px; padding: 0 7px;
  border-radius: 999px; background: var(--navy-100); color: var(--navy);
  font: 700 .82rem/1 "Source Sans 3", system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
.tab:hover { background: var(--navy-100); }
.tab.is-active { background: var(--navy); color: #fff; }
.tab.is-active .tab__count { background: var(--green); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chip {
  flex-shrink: 0; padding: .42em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); font: 500 .92rem var(--font-body); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--green); color: var(--green-700); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.places__layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.map-wrap { position: sticky; top: 110px; }
.map {
  height: 600px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(90deg, #eef0f4 25%, #f6f7f9 50%, #eef0f4 75%); background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite; z-index: 0;
}
.map.leaflet-container { animation: none; background: #e8eef0; font-family: var(--font-body); }
.map__note { font-size: .9rem; color: var(--muted); margin: 10px 4px 0; }
.leaflet-container { direction: ltr; }
.leaflet-div-icon, .leaflet-marker-icon { background: none; border: 0; }

.stores {
  display: grid; gap: 14px; align-content: start; max-height: 600px; overflow-y: auto;
  padding-inline-end: 6px; scrollbar-width: thin; scrollbar-color: var(--navy-100) transparent;
  overscroll-behavior: contain;
}
.stores__count { position: sticky; top: 0; z-index: 1; background: var(--cream); padding-bottom: 4px; }
.stores__count { margin: 0; font-weight: 700; color: var(--navy); }
.stores__empty { padding: 40px; text-align: center; background: #fff; border-radius: var(--radius); color: var(--muted); }
.store {
  background: #fff; border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line);
  transition: box-shadow .25s, transform .25s; animation: rise .45s ease both;
}
.store:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.store__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.store h3 { font-size: 1.2rem; margin: 0 0 2px; }
.store__gov { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--green-700); background: var(--green-100); padding: 1px 10px; border-radius: 999px; }
.store__meta { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; color: #3a3e52; font-size: .97rem; }
.store__meta li { display: flex; gap: 8px; align-items: flex-start; }
.store__meta svg { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ptags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 8px; }
.ptag--yes { background: var(--green-100); color: var(--green-700); }
.ptag--no { background: #f4f4f6; color: #9a9db0; text-decoration: line-through; }
.store__soon { font-size: .92rem; color: var(--muted); background: var(--cream); padding: 8px 12px; border-radius: 10px; }
.store__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.places__disclaimer { margin-top: 24px; font-size: .92rem; color: #8a5a00; background: #fff6e0; border: 1px solid #f3dfae; padding: 12px 16px; border-radius: 12px; }

/* ---------- Travel cards ---------- */
.travel { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.travel::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.04); top: -200px; inset-inline-end: -160px;
}
.travel__head { max-width: 680px; margin-bottom: 36px; position: relative; }
.travel__head p { opacity: .9; font-size: 1.08rem; }
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 520px); width: 100%;
  max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(14, 16, 50, .82); backdrop-filter: blur(4px); }
.lightbox[open] { animation: pop .35s cubic-bezier(.2,.8,.2,1); }
.lightbox__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #fff; padding: 10px 12px 10px 16px; border-radius: 16px 16px 0 0;
}
.lightbox__bar strong { color: var(--navy); font-size: 1.05rem; }
.lightbox__actions { display: flex; gap: 8px; align-items: center; }

.lightbox__nav {
  position: absolute; top: 50%; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; color: var(--navy); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.lightbox__nav--prev { left: -64px; }
.lightbox__nav--next { right: -64px; }
html[dir="rtl"] .lightbox__nav--prev { left: auto; right: -64px; }
html[dir="rtl"] .lightbox__nav--next { right: auto; left: -64px; }
html[dir="rtl"] .lightbox__nav--prev { transform: scaleX(-1); }
html[dir="rtl"] .lightbox__nav--next { transform: scaleX(-1); }

/* ---------- Social ---------- */
.social__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.fb-card, .ig-card { border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.fb-card { background: #fff; border: 1px solid var(--line); }
.fb-card__head { display: flex; align-items: center; gap: 12px; }
.fb-card__head strong { display: block; color: var(--navy); }
.fb-card__head span { color: var(--muted); font-size: .9rem; }
.fb-embed { border-radius: 14px; overflow: hidden; background: #f0f2f5; min-height: 300px; display: flex; justify-content: center; }
.fb-embed iframe { width: 100%; max-width: 500px; height: 620px; }
.btn--fb { background: #1877f2; color: #fff; align-self: flex-start; }
.btn--fb:hover { background: #0f5fd0; }
.social-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.social-badge svg { width: 24px; height: 24px; fill: #fff; }
.social-badge--fb { background: #1877f2; }
.social-badge--ig { background: rgba(255,255,255,.2); width: 64px; height: 64px; border-radius: 20px; }
.social-badge--ig svg { width: 34px; height: 34px; fill: none; }
.ig-card {
  color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.ig-card h3 { color: #fff; font-size: 1.8rem; margin: 0; }
.ig-card__handle { font-weight: 700; font-size: 1.15rem; margin: -10px 0 0; opacity: .95; }
.ig-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; }
.ig-tiles span { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.18); }
.ig-tiles span:nth-child(2n) { background: rgba(255,255,255,.28); }
.ig-card .btn { align-self: flex-start; }

/* ---------- Responsive additions ---------- */
@media (max-width: 1100px) {
  .nav__list a.is-active { color: var(--green-700); }
}
@media (max-width: 960px) {
  .about__grid, .places__layout, .social__grid { grid-template-columns: 1fr; }
  .map-wrap { position: static; }
  .stores { max-height: none; overflow: visible; padding: 0; }
  .map { height: 380px; }
  .lightbox__nav { top: auto; bottom: -64px; }
  .lightbox__nav--prev, html[dir="rtl"] .lightbox__nav--next { left: calc(50% - 60px); right: auto; }
  .lightbox__nav--next, html[dir="rtl"] .lightbox__nav--prev { right: calc(50% - 60px); left: auto; }
  .lightbox { max-height: 84vh; }

}
@media (max-width: 640px) {
  section[id] { scroll-margin-top: 84px; }
  .map { height: 320px; }
  .store { padding: 18px; }
  .fb-card, .ig-card { padding: 18px; }
  .fb-embed iframe { height: 520px; }
  .pillar { padding: 22px; }
  .hero__grain { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__text > *, .pathway, .arch--back, .arch--front, .arch__badge, .store { animation: none !important; opacity: 1 !important; }
  .arch__wheat, .arch__badge img { animation: none !important; }
}

/* ---------- Phone compaction ---------- */
@media (max-width: 640px) {
  .cards {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 10px;
    margin-inline: -16px; padding-inline: 16px; scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; }
  .card:hover { transform: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 10px; }
  .stat__num { font-size: 2rem; }
  .stat__label { font-size: .88rem; line-height: 1.4; }
  .future__art { display: none; }
  .promos, .quotes { gap: 14px; }
  .promo { min-height: 180px; }
}

/* ---------- v3: map pins ---------- */
html[dir="rtl"] .tab { padding: .55em 1.2em .55em .7em; }
.map.leaflet-container { background: #f7f6f0; }
.pin { position: absolute; transform: translate(-50%, -100%); cursor: pointer; }
.pin__body {
  position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--navy); color: #fff;
  font: 700 .95rem/1 var(--font-body); box-shadow: 0 8px 18px -6px rgba(22,26,82,.55);
  transition: transform .2s, background .2s;
}
.pin__body::after { /* little pointer */
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px;
  background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.pin__n {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 999px; background: #fff; color: var(--navy); font: 800 .9rem/1 "Source Sans 3", sans-serif;
}
.pin:hover .pin__body { transform: translateY(-3px); }
.pin.is-active .pin__body { background: var(--green); }
.pin.is-active .pin__n { color: var(--green-700); }
.pin.is-empty { opacity: .45; }
.pin__pulse {
  position: absolute; left: 50%; bottom: -10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: rgba(35,42,124,.35); animation: pinPulse 2s ease-out infinite;
}
.pin.is-active .pin__pulse { background: rgba(0,154,76,.4); }
@keyframes pinPulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
.leaflet-control-zoom a { color: var(--navy) !important; }
.leaflet-bar { border: 0 !important; box-shadow: 0 4px 14px -4px rgba(22,26,82,.3) !important; border-radius: 12px !important; overflow: hidden; }

/* ---------- v3: travel cards ---------- */
.travel__layout { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; position: relative; }
.phone { display: grid; justify-items: center; gap: 18px; }
.phone__frame {
  position: relative; width: 300px; aspect-ratio: 9 / 18.5; padding: 12px; border-radius: 46px;
  background: linear-gradient(145deg, #0f1240, #2a2f78); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.08);
  transform: rotate(-3deg); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
html[dir="ltr"] .phone__frame { transform: rotate(3deg); }
.phone:hover .phone__frame { transform: rotate(0); }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: #0b0d30; border-radius: 999px; z-index: 2; }
.phone__screen { width: 100%; height: 100%; border-radius: 36px; overflow-y: auto; background: #fff; scrollbar-width: none; font-size: 12.5px; }
.phone__screen::-webkit-scrollbar { display: none; }
.phone.is-swapping .phone__screen .ccard { animation: swapIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.phone__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.langs__label { font-weight: 700; color: #7ee0a9; margin-bottom: 12px; }
.langs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.lang {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; text-align: start;
  border-radius: 16px; border: 2px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff;
  font: inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
html[dir="rtl"] .lang { padding: 10px 10px 10px 14px; }
.lang:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.lang.is-active { background: #fff; border-color: #fff; color: var(--navy); }
.lang__flag {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; background-size: cover;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 4px 10px rgba(0,0,0,.25); transition: transform .3s;
}
.lang:hover .lang__flag { transform: rotate(-8deg) scale(1.06); }
.lang.is-active .lang__flag { box-shadow: 0 0 0 3px var(--green), 0 4px 10px rgba(0,0,0,.15); }
.lang__text { display: grid; line-height: 1.25; min-width: 0; }
.lang__text strong { font-size: 1.02rem; }
.lang__hello { font-size: .88rem; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang.is-active .lang__hello { color: var(--green-700); opacity: 1; }

.howto { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.howto li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); }
.howto span {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  background: var(--green); color: #fff; font: 800 .95rem/1 "Source Sans 3", sans-serif;
}
.howto p { margin: 0; font-size: .93rem; line-height: 1.5; opacity: .9; }
.lightbox__bar strong { display: inline-flex; align-items: center; gap: 8px; }
.lightbox__bar strong .fi { width: 26px; height: 26px; border-radius: 50%; }

/* ---------- v3: social ---------- */
.social__grid--even { grid-template-columns: 1fr 1fr; }
.social-badge--ig { width: 48px; height: 48px; border-radius: 14px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-badge--ig svg { width: 24px; height: 24px; color: #fff; }
.ig-embed { background: #fff; border: 1px solid var(--line); }
.btn--ig { background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; align-self: flex-start; }
.btn--ig:hover { filter: brightness(1.08); }

@media (max-width: 960px) {
  .travel__layout { grid-template-columns: 1fr; gap: 28px; }
  .phone { display: none; }
  .social__grid--even { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .langs__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lang { padding: 8px; gap: 10px; }
  .lang__flag { width: 38px; height: 38px; }
  .lang__text strong { font-size: .95rem; }
  .howto { grid-template-columns: 1fr; }
}

/* ---------- v4: HTML travel card ---------- */
.ccard {
  --c-red: #d64545; --c-amber: #d98a00; --c-green: var(--green-700); --c-blue: #2f6fd6;
  background: #fff; color: var(--ink); font-size: 1em; line-height: 1.55; min-height: 100%;
  display: flex; flex-direction: column; text-align: start;
}
.ccard[lang="ar"] { font-family: "Tajawal", sans-serif; }
.ccard:not([lang="ar"]) { font-family: "Source Sans 3", "Noto Sans", "Segoe UI", system-ui, sans-serif; }
.ccard[lang="zh"] { font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.ccard[lang="ka"] { font-family: "Noto Sans Georgian", "Helvetica Neue", sans-serif; }
.ccard__top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 2.6em 1.4em .9em; background: #fff;
}
.ccard__logo { width: 5.2em; height: auto; }
.ccard__tag {
  display: inline-flex; align-items: center; gap: .5em; padding: .35em .85em .35em .4em; border-radius: 999px;
  background: var(--navy-100); color: var(--navy); font-weight: 700; font-size: .95em;
}
.ccard[dir="rtl"] .ccard__tag { padding: .35em .4em .35em .85em; }
.ccard__flag { width: 1.7em !important; height: 1.7em; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.ccard__hero {
  position: relative; margin: 0 .9em; padding: 1.3em 1.3em 1.4em; border-radius: 1.4em; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #2f3a9e 100%); color: #fff;
}
.ccard__hero::after { /* soft wheat arch */
  content: ""; position: absolute; width: 9em; height: 9em; border-radius: 50%;
  border: 1.4em solid rgba(0,154,76,.35); inset-inline-end: -4.5em; top: -4.5em; z-index: 0;
}
.ccard__greet, .ccard__intro { z-index: 1; }
.ccard__greet { position: relative; color: #fff; font-size: 2em; line-height: 1.15; margin: 0 0 .35em; font-weight: 800; }
.ccard[lang="ar"] .ccard__greet { font-family: "Boahmed AlHarf", "Tajawal", sans-serif; font-weight: 700; }
.ccard__intro { position: relative; margin: 0; font-size: 1.12em; font-weight: 600; line-height: 1.5; }
.ccard__rows { list-style: none; margin: 0; padding: 1.1em 1.1em .4em; display: grid; gap: .85em; }
.ccard__row { display: grid; grid-template-columns: 2.4em 1fr; gap: .8em; align-items: start; }
.ccard__row p { margin: 0; font-size: .98em; color: #2c2f45; }
.ccard__ico {
  width: 2.4em; height: 2.4em; border-radius: .8em; display: grid; place-items: center;
}
.ccard__ico svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ccard__row--gluten .ccard__ico { background: #fde8e8; color: var(--c-red); }
.ccard__row--ask .ccard__ico { background: #fff3d6; color: var(--c-amber); }
.ccard__row--eat .ccard__ico { background: var(--green-100); color: var(--c-green); }
.ccard__row--clean .ccard__ico { background: #e3edfc; color: var(--c-blue); }
.ccard__row--gluten p { font-weight: 600; }
.ccard__thanks {
  margin: .6em 1.1em 0; padding: .8em; text-align: center; font-size: 1.3em; font-weight: 800; color: var(--green-700);
  border-top: 2px dashed var(--line);
}
.ccard[lang="ar"] .ccard__thanks { font-family: "Boahmed AlHarf", "Tajawal", sans-serif; font-weight: 700; font-size: 1.5em; }
.ccard__foot {
  margin-top: auto; display: flex; justify-content: center; gap: 1.2em; flex-wrap: wrap;
  padding: .9em 1em 1.6em; background: var(--green-100); color: var(--navy); font: 700 .9em "Source Sans 3", sans-serif;
}

/* lightbox hosts the card at a readable size */
.lightbox { max-width: min(94vw, 480px); }
.lightbox__card {
  max-height: calc(92vh - 64px); overflow-y: auto; background: #fff; border-radius: 0 0 16px 16px;
  font-size: 15px; overscroll-behavior: contain;
}
.lightbox__card .ccard__top { padding-top: 1.2em; }
/* off-screen node used for PNG export */
.ccard-export { position: fixed; left: -10000px; top: 0; width: 540px; font-size: 19px; background: #fff; }
.ccard-export .ccard__top { padding-top: 1.4em; }
.lang__flag.fi { width: 46px !important; line-height: 46px; display: inline-block; }
@media (max-width: 640px) { .lang__flag.fi { width: 38px !important; height: 38px; } }
@media (max-width: 960px) { .lightbox__card { max-height: calc(80vh - 64px); } }

/* ---------- v4: membership form page ---------- */
.reg-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.reg-hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  border: 56px solid rgba(0,154,76,.25); inset-inline-start: -140px; bottom: -260px;
}
.reg-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-block: 64px 72px; }
.reg-hero__title { font-family: var(--font-display); color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .3em; animation: rise .7s ease both; }
html[lang="en"] .reg-hero__title { font-weight: 900; }
.reg-hero__lead { opacity: .9; font-size: 1.1rem; max-width: 52ch; margin: 0; animation: rise .7s ease .12s both; }
.reg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reg-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.08); animation: rise .6s ease both; }
.reg-steps li:nth-child(2) { animation-delay: .1s; } .reg-steps li:nth-child(3) { animation-delay: .2s; } .reg-steps li:nth-child(4) { animation-delay: .3s; }
.reg-steps span, .reg-card__num {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  background: var(--green); color: #fff; font: 800 .95rem/1 "Source Sans 3", sans-serif;
}
.reg-steps b { font-weight: 700; }

.reg { background: var(--cream); padding-top: 48px; }
.reg-form { max-width: 920px; margin-inline: auto; display: grid; gap: 22px; }
.reg-card {
  border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 28px 30px 30px; margin: 0; min-width: 0;
  box-shadow: 0 10px 30px -24px rgba(22,26,82,.35);
}
.reg-card legend {
  display: flex; align-items: center; gap: 10px; float: inline-start; width: 100%; margin-bottom: 20px; padding: 0;
  font: 700 1.25rem var(--font-body); color: var(--navy);
}
.reg-card legend + * { clear: both; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; font-weight: 700; color: var(--navy); font-size: .97rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > i, .drop > i { color: #d64545; font-style: normal; display: inline; }
.field > span:first-child { display: inline; }
.field input, .field select {
  width: 100%; padding: .78em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfbfd;
  font: 500 1rem var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
  min-height: 50px;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23232a7c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center;
}
html[dir="rtl"] .field select { background-position: left 1em center; }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(35,42,124,.12); }
.field.is-invalid input, .field.is-invalid select { border-color: #d64545; background: #fff7f7; }
.field input[type="date"] { direction: ltr; text-align: end; }
html[dir="ltr"] .field input[type="date"] { text-align: start; }
.seg { display: inline-flex; gap: 8px; margin-top: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: inline-block; padding: .6em 1.6em; border-radius: 999px; border: 1.5px solid var(--line); background: #fbfbfd;
  font-weight: 700; cursor: pointer; transition: all .2s;
}
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(35,42,124,.2); }
.field.is-invalid .seg span { border-color: #d64545; }

.drop {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 20px;
  border: 2px dashed #c5c9dc; border-radius: 18px; background: #fbfbfd; cursor: pointer; color: var(--navy);
  transition: border-color .2s, background .2s;
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-drag { border-color: var(--navy); background: var(--navy-100); }
.drop.has-file { border-style: solid; border-color: var(--green); background: var(--green-100); }
.drop.is-invalid { border-color: #d64545; background: #fff7f7; }
.drop__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--navy); display: grid; place-items: center; margin-bottom: 6px; }
.drop__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.drop.has-file .drop__icon { background: var(--green); }
.drop__hint { color: var(--muted); font-size: .92rem; font-weight: 500; }
.drop__file { margin-top: 6px; font-weight: 700; color: var(--green-700); direction: ltr; word-break: break-all; }
.drop.is-invalid .drop__file { color: #d64545; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px; border-radius: 14px; background: var(--cream); cursor: pointer; font-size: .97rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.check.is-invalid { outline: 2px solid #d64545; }
.reg-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reg-error { margin: 0; color: #b42318; font-weight: 700; background: #fff1f0; border: 1px solid #f3c4bf; padding: 10px 14px; border-radius: 12px; flex: 1; }
.reg-error a { color: var(--navy); }
.reg-submit { padding: .9em 2.2em; font-size: 1.08rem; margin-inline-start: auto; }
html[dir="rtl"] .reg-submit svg { transform: scaleX(-1); }
.reg-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.reg-done { max-width: 560px; margin: 20px auto; text-align: center; background: #fff; border-radius: 24px; padding: 48px 32px; border: 1px solid var(--line); animation: pop .5s ease; }
.reg-done__icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--green); margin-bottom: 16px; }
.reg-done__icon svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 860px) {
  .reg-hero__inner { grid-template-columns: 1fr; padding-block: 44px 52px; }
  .reg-grid { grid-template-columns: 1fr; }
  .reg-card { padding: 22px 18px 24px; }
  .reg-submit { width: 100%; }
}
/* keep the required * on the same line as its label */
.field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 4px; }
.field > input, .field > select, .field > .seg { flex: 1 1 100%; }
.field > .seg { display: flex; flex: 0 1 100%; }
.drop { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 4px; }
.drop > .drop__icon, .drop > .drop__hint, .drop > .drop__file { flex-basis: 100%; }
.drop > .drop__icon { flex: 0 0 52px; margin-inline: calc(50% - 26px); }

/* ==========================================================
   v5: celiac guide page
   ========================================================== */
.g-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.g-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  border: 70px solid rgba(0,154,76,.22); inset-inline-start: -180px; top: -260px;
}
.g-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1.2px, transparent 0); background-size: 22px 22px;
}
.g-hero__inner { position: relative; z-index: 1; padding-block: 44px 56px; }
.crumbs { display: flex; gap: 8px; font-size: .92rem; opacity: .85; margin-bottom: 18px; }
.crumbs a { color: #7ee0a9; text-decoration: none; font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.g-hero__title { font-family: var(--font-display); color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .25em; animation: rise .7s ease both; }
html[lang="en"] .g-hero__title { font-weight: 900; }
.g-hero__lead { font-size: 1.15rem; opacity: .9; max-width: 60ch; animation: rise .7s ease .1s both; }
.g-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 24px; animation: rise .7s ease .2s both; }
.g-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-weight: 700; font-size: .92rem;
}
.g-badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.g-badge--green { background: var(--green); border-color: var(--green); }
.g-pdf { animation: rise .7s ease .3s both; }

.g-progress { position: sticky; top: var(--hdr, 96px); z-index: 40; height: 4px; background: transparent; }
.g-progress span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .1s linear; }
html[dir="ltr"] .g-progress span { transform-origin: left; }

.g-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding-block: 48px 80px; }
.g-toc { position: sticky; top: 120px; }
.g-toc__title { font-weight: 800; color: var(--muted); font-size: .85rem; letter-spacing: .04em; margin-bottom: 10px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-inline-start: 2px solid var(--line); }
.toc a {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin-inline-start: -2px; text-decoration: none;
  color: var(--muted); font-weight: 600; border-inline-start: 2px solid transparent; transition: color .2s, border-color .2s, background .2s;
  border-start-end-radius: 10px; border-end-end-radius: 10px;
}
.toc a:hover { color: var(--navy); background: var(--navy-100); }
.toc a.is-active { color: var(--navy); border-inline-start-color: var(--green); background: var(--green-100); font-weight: 800; }
.toc__ico svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.g-body { min-width: 0; }
.g-sec { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.g-sec__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.g-sec__ico { width: 56px; height: 56px; border-radius: 18px; background: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.g-sec__ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-sec__num { display: block; font: 800 .85rem/1 "Source Sans 3", sans-serif; color: var(--green-700); margin-bottom: 4px; }
.g-sec__title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
html[lang="en"] .g-sec__title { font-weight: 900; }
.g-lead { font-size: 1.12rem; color: #2f3348; line-height: 1.85; }
.g-muted { color: var(--muted); }
.g-def { display: inline-block; background: var(--green-100); border-radius: 14px; padding: 12px 18px; margin-bottom: 16px; }
.g-def__term { margin: 0; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.g-def__aka { margin: 0; color: var(--green-700); font-weight: 600; font-size: .95rem; }
.g-footnote { font-size: .88rem; color: var(--muted); border-inline-start: 3px solid var(--line); padding-inline-start: 12px; margin-top: 18px; }

.g-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.g-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; }
.g-panel h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.g-panel p:last-child { margin-bottom: 0; }
.g-panel--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.g-panel--navy h3 { color: #7ee0a9; }
.g-panel--navy p { font-size: 1.2rem; font-weight: 700; line-height: 1.6; }
.g-panel--green { background: var(--green-100); border-color: #bfe5cf; font-size: 1.1rem; }
.g-panel--soft { background: var(--cream); }
.g-chip { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; font: 800 .9rem "Source Sans 3", sans-serif; }
.g-chip--amber { background: #d98a00; } .g-chip--blue { background: #2f6fd6; }
.g-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-list--dots li { position: relative; padding-inline-start: 22px; }
.g-list--dots li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.g-cta {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 16px; background: #fff6e0; border: 1px solid #f3dfae;
  color: #7a4f00; font-weight: 700; text-decoration: none;
}
.g-cta::before { content: "!"; display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #d98a00; color: #fff; font-weight: 900; }

/* comparison table */
.g-table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.g-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .97rem; }
.g-table th, .g-table td { padding: 16px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.g-table thead th { background: var(--cream); color: var(--navy); font-size: 1.02rem; }
.g-table thead small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.g-table tbody th { color: var(--navy); width: 17%; background: #fbfbfd; }
.g-table tr:last-child > * { border-bottom: 0; }
.g-table .is-celiac { background: var(--green-100); }
.g-table thead .is-celiac { background: var(--green); color: #fff; }
.pill { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--navy-100); color: var(--navy); font-weight: 800; }
.pill--red { background: #fde8e8; color: #c03030; }

/* causes */
.g-steps-mini { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.g-steps-mini li { counter-increment: s; position: relative; padding-inline-start: 44px; }
.g-steps-mini li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 .9rem "Source Sans 3", sans-serif;
}
.g-steps-mini strong { display: block; color: var(--navy); margin-bottom: 2px; }
.g-steps-mini p { margin: 0; color: #3a3e52; }
.g-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.g-tags li { padding: 6px 14px; border-radius: 999px; background: var(--navy-100); color: var(--navy); font-weight: 700; font-size: .93rem; }

/* diagnosis timeline */
.g-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.g-timeline::before { content: ""; position: absolute; inset-inline-start: 23px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(var(--navy), var(--green)); border-radius: 3px; }
.g-timeline li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding-bottom: 22px; }
.g-timeline__n {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid var(--navy);
  display: grid; place-items: center; color: var(--navy); font: 900 1.2rem "Source Sans 3", sans-serif;
}
.g-timeline li:last-child .g-timeline__n { border-color: var(--green); background: var(--green); color: #fff; }
.g-timeline li > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.g-timeline h3 { font-size: 1.15rem; margin-bottom: .3em; }
.g-timeline p:last-child { margin-bottom: 0; }
.g-code { display: inline-block; font: 600 .9rem ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--navy-100); color: var(--navy); padding: 6px 12px; border-radius: 8px; }
.g-alert { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: 16px; background: #fde8e8; color: #9b1c1c; font-weight: 700; }
.g-alert p { margin: 0; }
.g-alert svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* complications */
.g-grid-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.g-grid-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.g-grid-list li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #d64545; transform: rotate(45deg); flex-shrink: 0; }

/* diet */
.food-search {
  position: relative; display: flex; align-items: center; gap: 10px; margin: 18px 0 20px; padding: 6px 8px 6px 18px;
  background: #fff; border: 2px solid var(--navy); border-radius: 999px; box-shadow: var(--shadow);
}
html[dir="rtl"] .food-search { padding: 6px 18px 6px 8px; }
.food-search > svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; }
.food-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 0; font: 500 1.05rem var(--font-body); background: transparent; }
.food-search__result { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .95rem; }
.food-search__result:empty { display: none; }
.food-search__result.is-red { background: #fde8e8; color: #c03030; }
.food-search__result.is-amber { background: #fff3d6; color: #a86a00; }
.food-search__result.is-green { background: var(--green-100); color: var(--green-700); }
.foods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.food { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: opacity .25s; }
.food.is-dim { opacity: .4; }
.food__head { display: flex; gap: 12px; align-items: center; padding: 18px 18px 16px; color: #fff; }
.food__head h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.food__head p { margin: 0; opacity: .9; font-size: .9rem; }
.food__ico svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.food--red .food__head { background: #c94040; }
.food--amber .food__head { background: #d98a00; }
.food--green .food__head { background: var(--green); }
.food__list { list-style: none; margin: 0; padding: 8px 10px 12px; }
.food__list li { padding: 9px 10px; border-radius: 10px; font-size: .97rem; transition: background .2s, opacity .2s; }
.food__list li + li { border-top: 1px dashed var(--line); }
.food__list li.is-dim { opacity: .3; }
.food--red li.is-hit { background: #fde8e8; font-weight: 800; }
.food--amber li.is-hit { background: #fff3d6; font-weight: 800; }
.food--green li.is-hit { background: var(--green-100); font-weight: 800; }
.food-empty { margin: 14px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--navy-100); color: var(--navy); font-weight: 700; }
.g-nonfood { margin-top: 18px; }
.g-tags--icons li { background: #fff; border: 1px solid var(--line); }
.g-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.g-link-card {
  display: grid; gap: 4px; padding: 18px 22px; border-radius: 18px; text-decoration: none; background: var(--navy); color: #fff;
  position: relative; transition: transform .2s, background .2s;
}
.g-link-card:hover { transform: translateY(-3px); background: var(--navy-900); }
.g-link-card strong { font-size: 1.05rem; }
.g-link-card span { opacity: .8; font-size: .92rem; }
.g-link-card::after { content: "←"; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: #7ee0a9; }
html[dir="ltr"] .g-link-card::after { content: "→"; }

/* history */
.g-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.g-history li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; }
.g-history__when {
  display: block; text-align: center; padding: 12px; border-radius: 14px; background: var(--navy); color: #fff;
  font-weight: 800; font-size: 1.05rem;
}
.g-history li > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.g-history p { margin: 0; line-height: 1.85; }

/* credits */
.g-credits { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-bottom: 24px; }
.g-reviewer { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 20px; background: var(--green-100); border: 1px solid #bfe5cf; }
.g-reviewer__avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.g-reviewer__avatar svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-reviewer__label { margin: 0; font-size: .85rem; font-weight: 800; color: var(--green-700); }
.g-reviewer h3 { margin: 2px 0 6px; font-size: 1.25rem; }
.g-reviewer p { margin: 0 0 4px; }
.g-refs { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.g-refs ol { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 4px; font-size: .9rem; }
.g-refs a { color: var(--navy); word-break: break-all; }
.g-sign { margin: 0; color: var(--muted); }
.g-sign b { color: var(--navy); }
.g-disclaimer { font-size: .9rem; color: var(--muted); text-align: center; margin: 8px 0 0; }

@media (max-width: 1100px) {
  .g-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 0; }
  .g-toc { position: sticky; top: var(--hdr, 84px); z-index: 30; margin-inline: -16px; padding: 10px 16px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
  .g-toc__title { display: none; }
  .toc { display: flex; gap: 8px; overflow-x: auto; border: 0; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; border: 1.5px solid var(--line); border-radius: 999px; margin: 0; padding: 7px 14px; font-size: .92rem; }
  .toc a.is-active { border-color: var(--green); }
  .g-progress { display: none; }
  .g-sec { scroll-margin-top: 150px; }
}
@media (max-width: 860px) {
  .g-split, .foods, .g-links, .g-credits, .g-grid-list { grid-template-columns: 1fr; }
  .g-history li { grid-template-columns: 1fr; gap: 8px; }
  .g-history__when { justify-self: start; padding: 6px 16px; }
  .g-sec { padding-bottom: 40px; margin-bottom: 40px; }
  .g-sec__ico { width: 46px; height: 46px; border-radius: 14px; }
  .g-panel { padding: 20px; }
  .food-search__result { position: absolute; inset-inline-end: 8px; }
}
.g-layout > * { min-width: 0; }

/* ==========================================================
   v6: guide polish
   ========================================================== */
/* hero: text + key facts side by side */
.g-hero__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.g-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; animation: rise .7s ease .3s both; }
.g-pdf { animation: none; }
.g-start { color: #fff; font-weight: 700; text-decoration: none; opacity: .85; display: inline-flex; gap: 6px; align-items: center; }
.g-start:hover { opacity: 1; }
.g-start span { display: inline-block; animation: float 2.4s ease-in-out infinite; }
.g-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-fact {
  display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: 18px; line-height: 1.45; font-size: .95rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px);
  animation: rise .7s cubic-bezier(.2,.7,.2,1) both;
}
.g-fact:nth-child(1) { animation-delay: .25s; } .g-fact:nth-child(2) { animation-delay: .35s; }
.g-fact:nth-child(3) { animation-delay: .45s; } .g-fact:nth-child(4) { animation-delay: .55s; }
.g-fact b { font: 900 2.4rem/1 "Source Sans 3", sans-serif; color: #7ee0a9; }
.g-fact--green { background: var(--green); border-color: var(--green); }
.g-fact--green b { color: #fff; }

/* comfortable reading width */
.g-body { max-width: 860px; }
.g-lead { max-width: 72ch; }

/* at a glance */
.g-tldr {
  position: relative; margin-bottom: 48px; padding: 26px 28px 22px; border-radius: 22px;
  background: linear-gradient(135deg, var(--green-100), #f2fbf6); border: 1px solid #bfe5cf; overflow: hidden;
}
.g-tldr::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 22px solid rgba(0,154,76,.10); inset-inline-end: -50px; top: -60px; }
.g-tldr h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 12px; color: var(--green-700); }
html[lang="en"] .g-tldr h2 { font-weight: 900; }
.g-tldr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: t; position: relative; z-index: 1; }
.g-tldr li { counter-increment: t; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-weight: 600; color: #22263d; }
.g-tldr li::before {
  content: counter(t); width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font: 800 .9rem/1 "Source Sans 3", sans-serif; margin-top: 1px;
}

/* body diagram */
.g-body-fig { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; margin: 20px 0 16px; }
.g-body-fig__text p { margin: 0; }
.villi { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.villi__panel { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 10px 12px; border-radius: 16px; background: #fbfbfd; border: 1px solid var(--line); }
.villi__svg { width: 100%; height: auto; margin-bottom: 6px; }
.villi__tissue path { fill: #f6b9b0; stroke: #d9776a; stroke-width: 2; stroke-linejoin: round; }
.villi__svg--bad .villi__tissue path { fill: #f3a093; stroke: #c4554a; }
.villi__tissue .vl { fill: none; stroke: #e7978b; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 5; }
.villi__wall { fill: #e98d80; }
.villi__svg--bad .villi__wall { fill: #d76a5e; }
.villi__dots circle { fill: var(--green); opacity: .75; }
.villi__svg--bad .villi__dots circle { fill: #9aa0b8; opacity: .55; }
.villi__svg--ok .villi__dots circle { animation: absorb 3s ease-in-out infinite; }
.villi__svg--ok .villi__dots circle:nth-child(2n) { animation-delay: -1.5s; }
@keyframes absorb { 0%, 100% { transform: translateY(0); opacity: .8; } 60% { transform: translateY(26px); opacity: 0; } }
.villi__cap { font-weight: 800; font-size: .95rem; }
.villi__cap--ok { color: var(--green-700); }
.villi__cap--bad { color: #c03030; }
.villi__sub { font-size: .82rem; color: var(--muted); }

.g-keyfact {
  display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: 20px; background: var(--navy); color: #fff; margin-bottom: 14px;
}
.g-keyfact strong { color: #7ee0a9; display: block; margin-bottom: 2px; }
.g-keyfact p { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.55; }
.g-keyfact__ico { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex-shrink: 0; }
.g-keyfact__ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* food guide: full-width bands of chips */
.foods { grid-template-columns: 1fr; gap: 14px; }
.food { display: grid; grid-template-columns: 220px 1fr; }
.food__head { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; position: relative; padding: 22px; }
.food__count {
  position: absolute; top: 16px; inset-inline-end: 16px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.22); font: 800 .95rem/1 "Source Sans 3", sans-serif;
}
.food__list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 18px; }
.food__list li { padding: 7px 14px; border-radius: 12px; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.food__list li + li { border-top: 0; }
.food--red .food__list li { background: #fdf1f1; color: #8a2121; }
.food--amber .food__list li { background: #fff8e6; color: #7a4f00; }
.food--green .food__list li { background: #effaf4; color: #0b5f33; }
.food__list li small { display: block; font-size: .8rem; font-weight: 500; opacity: .8; margin-top: 1px; }
.food--red li.is-hit, .food--amber li.is-hit, .food--green li.is-hit { box-shadow: 0 0 0 2px currentColor; transform: scale(1.03); }
.food__list li { transition: opacity .2s, transform .2s, box-shadow .2s; }

/* history: vertical timeline */
.g-history { position: relative; gap: 22px; padding-inline-start: 4px; }
.g-history::before { content: ""; position: absolute; inset-inline-start: 74px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--navy), var(--green)); }
.g-history li { grid-template-columns: 150px 1fr; gap: 26px; position: relative; }
.g-history__when { position: relative; z-index: 1; padding: 10px 12px; border-radius: 14px; font-size: .95rem; line-height: 1.35; box-shadow: 0 0 0 6px #fff; }
.g-history li:last-child .g-history__when { background: var(--green); }

/* closing call to action */
.g-next {
  position: relative; overflow: hidden; margin: 8px 0 24px; padding: 34px 32px; border-radius: 24px;
  background: var(--navy); color: #fff;
}
.g-next::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(0,154,76,.25); inset-inline-end: -90px; bottom: -150px; }
.g-next h2 { color: #fff; font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 6px; position: relative; }
html[lang="en"] .g-next h2 { font-weight: 900; }
.g-next p { opacity: .9; max-width: 56ch; position: relative; }
.g-next__actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }

/* swipe hint for the comparison table on small screens */
.g-swipe { display: none; font-size: .88rem; color: var(--muted); margin: -4px 0 8px; }
.g-swipe::before { content: "↔ "; }

/* back to top */
.to-top {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 45; width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(22,26,82,.6);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* sections fade in */
.g-sec.reveal-g { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.g-sec.reveal-g.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .g-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .g-body { max-width: none; }
}
@media (max-width: 860px) {
  .g-body-fig { grid-template-columns: 1fr; }
  .food { grid-template-columns: 1fr; }
  .food__head { flex-direction: row; align-items: center; padding: 16px 18px; }
  .food__count { top: 50%; transform: translateY(-50%); }
  .g-swipe { display: block; }
  .g-history::before { display: none; }
  .g-history li { grid-template-columns: 1fr; gap: 8px; }
  .g-fact b { font-size: 2rem; }
  .g-next { padding: 26px 20px; }
  .g-tldr { padding: 22px 18px 18px; }
  .g-keyfact { align-items: flex-start; }
}
@media (max-width: 480px) {
  .g-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .g-fact { padding: 14px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .g-sec.reveal-g { opacity: 1; transform: none; }
  .villi__dots circle, .g-start span { animation: none !important; }
}

/* print: a clean handout */
@media print {
  .utility, .header, .g-toc, .g-progress, .to-top, .footer, .g-next, .g-pdf, .g-start, .food-search, .g-links, .skip-link { display: none !important; }
  .g-hero { background: none; color: #000; }
  .g-hero::before, .g-hero::after { display: none; }
  .g-hero__title, .g-fact b { color: #000 !important; }
  .g-fact, .g-badge { border: 1px solid #ccc; background: none !important; color: #000; }
  .g-layout { display: block; padding: 0; }
  .g-sec { break-inside: avoid-page; opacity: 1 !important; transform: none !important; }
  .food__head, .g-keyfact, .g-panel--navy { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.g-refs a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.g-credits { align-items: start; }

/* v7: comparison table — even columns, aligned bilingual headings */
.g-table { table-layout: fixed; }
.g-table col.g-col-label { width: 19%; }
.g-table thead th { vertical-align: bottom; padding-top: 0; padding-bottom: 16px; background: #fff; }
.g-table thead th.g-th-blank { background: #fff; }
.g-th { display: grid; gap: 4px; padding-top: 18px; border-top: 5px solid var(--navy-100); line-height: 1.35; }
.g-th > span { font-size: 1.05rem; font-weight: 800; }
.g-th__en { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-align: start; }
html[lang="en"] .g-th__en { display: none; }
.g-table thead .is-celiac { background: var(--green-100); color: var(--navy); }
.g-table thead .is-celiac .g-th { border-top-color: var(--green); }
.g-table thead .is-celiac .g-th__en { color: var(--green-700); }
.g-table thead .is-wheat .g-th { border-top-color: #d98a00; }
.g-table thead .is-ncgs .g-th { border-top-color: #2f6fd6; }
.g-table thead tr { border-bottom: 2px solid var(--line); }
.g-table tbody th { font-size: .95rem; background: #fbfbfd; }
.g-table td { line-height: 1.7; }
.g-table tbody tr:hover > * { background-color: #fafbff; }
.g-table tbody tr:hover > .is-celiac { background-color: #d8f0e2; }

/* reviewer & references boxes share the same height */
.g-credits { align-items: stretch; }
.g-reviewer, .g-refs { height: 100%; }
/* v7.1: aligned header bars — bar on the cell's top edge, names get equal 2-line space */
.g-table thead th { vertical-align: top; padding-top: 22px; box-shadow: inset 0 5px 0 var(--navy-100); }
.g-table thead th.g-th-blank { box-shadow: none; }
.g-table thead th.is-celiac { box-shadow: inset 0 5px 0 var(--green); }
.g-table thead th.is-wheat { box-shadow: inset 0 5px 0 #d98a00; }
.g-table thead th.is-ncgs { box-shadow: inset 0 5px 0 #2f6fd6; }
.g-th, .g-table thead .is-celiac .g-th, .g-table thead .is-wheat .g-th, .g-table thead .is-ncgs .g-th { border-top: 0; padding-top: 0; }
.g-th > span { min-height: 2.7em; display: flex; align-items: flex-end; }

/* places page: related links */
.places-more { padding-block: 56px 72px; }
.places-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.places-more .g-link-card { min-height: 112px; align-content: center; padding: 22px 26px; padding-inline-end: 56px; }
.g-link-card--green { background: var(--green); }
.g-link-card--green:hover { background: var(--green-700); }
.g-link-card--green::after { color: #fff; }
@media (max-width: 860px) { .places-more__grid { grid-template-columns: 1fr; gap: 12px; } }

/* places page */
.p-hero .g-hero__inner { padding-block: 44px 52px; }
.p-hero .g-fact { font-size: .92rem; }
.places--page { padding-top: 40px; }

/* homepage shop teaser */
.shop-teaser {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px 44px; transition: box-shadow .25s, transform .25s;
}
.shop-teaser:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.shop-teaser__text p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.shop-teaser__stats { list-style: none; padding: 0; margin: 4px 0 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.shop-teaser__stats li { display: grid; padding: 12px 18px; border-radius: 16px; background: var(--cream); min-width: 96px; }
.shop-teaser__stats b { font: 900 1.8rem/1 "Source Sans 3", sans-serif; color: var(--navy); }
.shop-teaser__stats span { font-size: .9rem; color: var(--muted); font-weight: 600; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.shop-teaser__map { display: grid; place-items: center; background: var(--green-100); border-radius: 22px; padding: 22px; }
.mini-map { width: 100%; max-width: 300px; height: auto; overflow: visible; }
.mini-map__land { fill: #fff; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.mini-pin circle { fill: var(--navy); stroke: #fff; stroke-width: 2.5; }
.mini-pin--irbid circle { fill: var(--green); }
.mini-pin text { fill: #fff; font: 800 10px "Source Sans 3", sans-serif; }
.mini-pin .mini-pin__pulse { fill: rgba(35,42,124,.25); stroke: none; transform-origin: center; animation: pinPulse 2s ease-out infinite; transform-box: fill-box; }
.mini-pin--irbid .mini-pin__pulse { fill: rgba(0,154,76,.3); }
@media (max-width: 860px) { .shop-teaser { grid-template-columns: 1fr; padding: 26px 22px; gap: 24px; } }

/* instagram carousel */
.ig-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.ig-head__who { display: flex; gap: 12px; align-items: center; }
.ig-head__who strong { display: block; color: var(--navy); }
.ig-head__who a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.ig-head__ctrl { display: flex; gap: 8px; }
.ig-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.ig-arrow:hover { background: var(--navy); border-color: var(--navy); }
.ig-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ig-arrow:hover svg { stroke: #fff; }
html[dir="rtl"] .ig-arrow svg { transform: scaleX(-1); }
.ig-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 340px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 14px; scrollbar-width: none; overscroll-behavior-x: contain; outline: none;
}
.ig-track::-webkit-scrollbar { display: none; }
.ig-slide { scroll-snap-align: start; }
.ig-frame {
  position: relative; height: 560px; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 30px -22px rgba(22,26,82,.5);
}
.ig-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s; }
.ig-frame.is-loaded iframe { opacity: 1; }
.ig-frame__ph {
  position: absolute; inset: 0; background:
    linear-gradient(#fff 0 0) 14px 14px / 40px 40px no-repeat,
    linear-gradient(90deg, #eef0f4 25%, #f6f7f9 50%, #eef0f4 75%); background-size: auto, 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.ig-frame.is-loaded .ig-frame__ph { display: none; }
.ig-more {
  display: grid; place-content: center; justify-items: center; gap: 10px; height: 560px; border-radius: 20px; text-align: center; padding: 24px;
  text-decoration: none; color: #fff; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.ig-more__icon svg { width: 54px; height: 54px; fill: none; stroke: #fff; stroke-width: 1.8; }
.ig-more strong { font-size: 1.2rem; max-width: 18ch; }
.ig-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 36px; }
.ig-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: all .25s; }
.ig-dots span.is-on { width: 24px; background: var(--navy); }

.social__grid--fb { align-items: stretch; }
.follow-card { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 24px; background: var(--navy); color: #fff; }
.follow-card h3 { color: #fff; font-family: var(--font-display); font-size: 1.8rem; margin: 0; }
html[lang="en"] .follow-card h3 { font-weight: 900; }
.follow-card p { opacity: .9; margin: 0; }
.follow-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 auto; }
.follow-card__stats div { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.08); }
.follow-card__stats b { font: 900 1.6rem/1 "Source Sans 3", sans-serif; color: #7ee0a9; }
.follow-card__stats span { font-size: .85rem; opacity: .85; }
.follow-card .btn { align-self: stretch; }
@media (max-width: 640px) {
  .ig-track { grid-auto-columns: 86%; }
  .ig-frame, .ig-more { height: 520px; }
  .ig-head__ctrl { display: none; }
  .follow-card { padding: 22px; }
}
.places--page .stores__count { background: #fff; }
.follow-card__stats { margin: 8px 0 0; }
.follow-card { justify-content: center; }
.follow-card .btn:first-of-type { margin-top: 12px; }
.ig-frame.is-failed iframe, .ig-frame.is-failed .ig-frame__ph { display: none; }
.ig-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px;
  color: #fff; text-decoration: none; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* travel cards: own page + homepage teaser */
.travel--page { padding-top: 56px; }
.travel--teaser { padding-block: 64px; }
.cards-teaser {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; text-decoration: none; color: #fff;
  position: relative; z-index: 1;
}
.cards-teaser p:not(.eyebrow) { opacity: .9; max-width: 50ch; margin-bottom: 22px; font-size: 1.08rem; }
.cards-teaser__flags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; justify-items: center; }
.cards-teaser__flags .fi {
  width: 64px !important; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 8px 18px rgba(0,0,0,.3);
  transition: transform .3s;
}
.cards-teaser__flags .fi:nth-child(odd) { transform: translateY(10px); }
.cards-teaser:hover .cards-teaser__flags .fi { transform: translateY(-4px) rotate(-6deg); }
.cards-teaser:hover .btn { background: var(--green-100); }
@media (max-width: 860px) {
  .cards-teaser { grid-template-columns: 1fr; gap: 28px; }
  .cards-teaser__flags .fi { width: 48px !important; height: 48px; }
}
.travel--page { padding-top: 8px; }
.travel--page::before { display: none; }
.p-hero:has(+ .travel--page) .g-hero__inner { padding-bottom: 36px; }
.p-hero:has(+ .travel--page) { border-bottom: 1px solid rgba(255,255,255,.08); }

/* lightbox arrows: always point outward, toward the side they sit on */
html[dir="rtl"] .lightbox__nav--prev, html[dir="rtl"] .lightbox__nav--next { transform: none; }
.lightbox__nav { display: grid; place-items: center; font-size: 0; }
.lightbox__nav::before {
  content: ""; width: 12px; height: 12px; border: solid var(--navy); border-width: 0 3px 3px 0;
}
/* LTR: prev = left (points left), next = right (points right); RTL is the mirror */
.lightbox__nav--prev::before { transform: translateX(2px) rotate(135deg); }
.lightbox__nav--next::before { transform: translateX(-2px) rotate(-45deg); }
html[dir="rtl"] .lightbox__nav--prev::before { transform: translateX(-2px) rotate(-45deg); }
html[dir="rtl"] .lightbox__nav--next::before { transform: translateX(2px) rotate(135deg); }
@media (max-width: 960px) {
  /* on phones the buttons sit under the card: left one points left, right one points right */
  .lightbox__nav--prev::before { transform: translateX(2px) rotate(135deg); }
  .lightbox__nav--next::before { transform: translateX(-2px) rotate(-45deg); }
  html[dir="rtl"] .lightbox__nav--next::before { transform: translateX(2px) rotate(135deg); }
  html[dir="rtl"] .lightbox__nav--prev::before { transform: translateX(-2px) rotate(-45deg); }
}

/* ==========================================================
   Instagram stories
   ========================================================== */
.stories { position: relative; z-index: 2; padding-top: 22px; }
.stories__label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; font-size: .92rem; color: #7ee0a9; }
.stories__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 0 rgba(255,77,109,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,77,109,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,77,109,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,109,0); } }
.stories__row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.stories__row::-webkit-scrollbar { display: none; }
.story {
  flex: 0 0 92px; display: grid; justify-items: center; gap: 4px; text-align: center; background: none; border: 0; padding: 0;
  cursor: pointer; color: #fff; font: inherit; text-decoration: none; scroll-snap-align: start;
  opacity: 0; animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards;
}
.story:nth-child(1) { animation-delay: .1s; } .story:nth-child(2) { animation-delay: .17s; } .story:nth-child(3) { animation-delay: .24s; }
.story:nth-child(4) { animation-delay: .31s; } .story:nth-child(5) { animation-delay: .38s; } .story:nth-child(6) { animation-delay: .45s; }
.story:nth-child(7) { animation-delay: .52s; }
.story__ring {
  position: relative; width: 72px; height: 72px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
  transition: transform .25s;
}
.story:hover .story__ring { transform: scale(1.07) rotate(-4deg); }
.story.is-seen .story__ring { background: rgba(255,255,255,.3); }
.story__face {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--navy);
  background: #fff;
}
.story__face svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story__face--tip { background: #fff3d6; } .story__face--tip svg { stroke: #b06f00; }
.story__face--awareness { background: var(--green-100); } .story__face--awareness svg { stroke: var(--green-700); }
.story__face--news { background: #e3edfc; } .story__face--news svg { stroke: #2f6fd6; }
.story__face--community { background: #fde8ef; } .story__face--community svg { stroke: #c2185b; }
.story--all .story__face { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.story--all .story__face svg { stroke: #fff; }
.story__new {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px;
  background: #ff4d6d; color: #fff; font: 800 .66rem/1.5 var(--font-body); border: 2px solid var(--navy); white-space: nowrap;
}
.story__tag { font-size: .7rem; font-weight: 800; color: #7ee0a9; margin-top: 4px; }
.story__label { font-size: .78rem; line-height: 1.3; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero__inner { padding-top: 36px; }

/* top-bar button */
.ig-pill { display: inline-flex; align-items: center; gap: 6px; opacity: 1; font-weight: 700; margin-inline-end: auto; }
.ig-pill svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.ig-pill__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff4d6d; color: #fff; font: 800 .72rem/18px "Source Sans 3", sans-serif; text-align: center; animation: livePulse 1.8s infinite; }

/* story viewer */
.story-viewer {
  width: min(94vw, 440px); max-height: 94vh; padding: 14px 14px 16px; border: 0; border-radius: 22px; overflow: visible;
  background: #111327; color: #fff;
}
.story-viewer::backdrop { background: rgba(10,11,30,.88); backdrop-filter: blur(6px); }
.story-viewer[open] { animation: pop .35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; gap: 10px; }
.story-viewer__bars { display: flex; gap: 4px; }
.story-viewer__bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.story-viewer__bars span.is-done, .story-viewer__bars span.is-on { background: #fff; }
.story-viewer__top { display: flex; justify-content: space-between; align-items: center; }
.story-viewer__who { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.story-viewer__who img { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.story-viewer__who span { opacity: .7; }
.story-viewer__x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); cursor: pointer; display: grid; place-items: center; }
.story-viewer__x svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.story-viewer__title { color: #fff; margin: 0; font-size: 1.15rem; }
.story-viewer__frame { position: relative; height: min(62vh, 560px); border-radius: 14px; overflow: hidden; background: #fff; }
.story-viewer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .3s; }
.story-viewer__frame.is-loaded iframe { opacity: 1; }
.story-viewer__frame.is-loaded .ig-frame__ph { display: none; }
.story-viewer__open { align-self: stretch; }
.story-viewer__nav {
  position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; background: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.story-viewer__nav svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.story-viewer__nav--prev { left: -62px; } .story-viewer__nav--next { right: -62px; }
@media (max-width: 640px) {
  .story-viewer__nav { top: auto; bottom: -60px; margin: 0; }
  .story-viewer__nav--prev { left: calc(50% - 56px); } .story-viewer__nav--next { right: calc(50% - 56px); }
  .story-viewer { max-height: 86vh; }
  .story-viewer__frame { height: 56vh; }
  .ig-pill span { display: none; }
  .story { flex-basis: 80px; } .story__ring { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .story { animation: none; opacity: 1; } .stories__dot, .ig-pill__n { animation: none; } }
.story-viewer__nav svg { display: none; }
.story-viewer__nav::before { content: ""; width: 11px; height: 11px; border: solid var(--navy); border-width: 0 3px 3px 0; }
.story-viewer__nav--prev::before { transform: translateX(2px) rotate(135deg); }
.story-viewer__nav--next::before { transform: translateX(-2px) rotate(-45deg); }

/* ==========================================================
   v10: Instagram strip overlapping the hero (replaces story circles)
   ========================================================== */
.hero__grain, .stories { display: none !important; }
.hero__inner { padding-top: 72px; }
.hero { padding-bottom: 70px; }
.ig-strip { position: relative; z-index: 3; margin-top: -70px; }
.ig-strip__card {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center;
  background: #fff; border-radius: 26px; padding: 22px 24px; box-shadow: 0 24px 50px -28px rgba(22,26,82,.45); border: 1px solid var(--line);
}
.ig-strip__head { display: grid; gap: 12px; align-content: center; }
.ig-strip__head h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 0 0 2px; line-height: 1.25; }
html[lang="en"] .ig-strip__head h2 { font-weight: 900; }
.ig-strip__head a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.ig-strip__head a:hover { color: #d6249f; }
.ig-strip__badge { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.ig-strip__badge svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; }
.ig-strip__row { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 14px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.ig-strip__row::-webkit-scrollbar { display: none; }
.post { display: grid; gap: 6px; align-content: start; text-align: start; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; color: var(--ink); text-decoration: none; scroll-snap-align: start; }
.post__img {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--cream);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e1306c; transition: transform .25s, box-shadow .25s;
}
.post.is-seen .post__img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .post__img { transform: translateY(-3px); }
.post:hover .post__img img { transform: scale(1.06); }
.post__play {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17,19,39,.35); opacity: 0; transition: opacity .25s;
}
.post__play svg { width: 34px; height: 34px; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.post:hover .post__play, .post:focus-visible .post__play { opacity: 1; }
.post__new { position: absolute; top: 8px; inset-inline-start: 8px; padding: 2px 9px; border-radius: 999px; background: #e1306c; color: #fff; font: 800 .7rem/1.6 var(--font-body); }
.post__tag { justify-self: start; font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.post__tag--tip { background: #fff3d6; color: #a86a00; }
.post__tag--awareness { background: var(--green-100); color: var(--green-700); }
.post__tag--news { background: #e3edfc; color: #2f6fd6; }
.post__tag--community { background: #fde8ef; color: #c2185b; }
.post__label { font-size: .84rem; font-weight: 700; line-height: 1.35; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post--all .post__img {
  display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff; box-shadow: none;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.post--all svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 1.8; }
.post--all b { font-size: .9rem; text-align: center; padding: 0 8px; }
.ig-strip + .section { padding-top: 64px; }
@media (max-width: 860px) {
  .ig-strip__card { grid-template-columns: 1fr; gap: 14px; padding: 18px 16px; border-radius: 22px; }
  .ig-strip__head { grid-template-columns: auto 1fr; align-items: center; }
  .ig-strip__head h2 { font-size: 1.2rem; }
  .ig-strip__row { grid-auto-columns: 112px; margin-inline: -16px; padding-inline: 16px; }
  .hero { padding-bottom: 60px; }
  .ig-strip { margin-top: -48px; }
}
.ig-strip__row { grid-auto-columns: 116px; gap: 14px; padding: 8px 6px 6px; }
@media (max-width: 860px) { .ig-strip__row { grid-auto-columns: 108px; } }

/* v11: instagram strip spacing */
.ig-strip__card { grid-template-columns: 168px 1fr; gap: 0; padding: 26px 28px; }
.ig-strip__head {
  justify-items: start; gap: 14px; padding-inline-end: 24px; margin-inline-end: 24px; align-self: stretch; align-content: center;
  border-inline-end: 1px solid var(--line);
}
.ig-strip__head h2 { font-size: 1.35rem; }
/* tiles share the full width evenly; scroll only when they can't fit */
.ig-strip__row {
  --gap: 16px; gap: var(--gap); padding: 6px 4px 4px;
  grid-auto-columns: max(108px, calc((100% - 6 * var(--gap)) / 7));
}
.post { gap: 8px; }
.post__img, .post--all .post__img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e1306c; }
.post--all .post__img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d6249f; }
.post.is-seen .post__img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #dfe1ea; }
.post__tag { margin-top: 4px; }
.post__label { font-size: .86rem; min-height: 2.7em; }
.post--all { align-content: start; }
@media (max-width: 860px) {
  .ig-strip__card { grid-template-columns: 1fr; padding: 18px 16px 14px; gap: 14px; }
  .ig-strip__head { border: 0; padding: 0; margin: 0; grid-template-columns: auto 1fr; gap: 12px; }
  .ig-strip__row { grid-auto-columns: 108px; --gap: 12px; }
}
.ig-strip__card { grid-template-columns: 200px 1fr; } .ig-strip__head h2 { font-size: 1.25rem; white-space: nowrap; } @media (max-width: 860px) { .ig-strip__card { grid-template-columns: 1fr; } }

/* v12: Instagram as a normal section after the hero */
.ig-strip { display: none; }
.hero { padding-bottom: 0; }
.hero__inner { padding-top: 64px; }
.ig-bar { padding-block: 56px 48px; background: var(--cream); border-bottom: 1px solid var(--line); }
.ig-bar__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.ig-bar__title { display: flex; align-items: center; gap: 14px; }
.ig-bar__title .eyebrow { margin: 0; }
.ig-bar__title .section__title { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ig-bar__row {
  --gap: 20px; display: grid; grid-auto-flow: column; gap: var(--gap); overflow-x: auto; padding: 6px 4px 8px;
  grid-auto-columns: max(150px, calc((100% - 5 * var(--gap)) / 6));
  scrollbar-width: none; scroll-snap-type: x mandatory;
}
.ig-bar__row::-webkit-scrollbar { display: none; }
.ig-bar .post__img { border-radius: 18px; }
.ig-bar .post__label { font-size: .95rem; }
.ig-bar + .section { padding-top: 88px; }
@media (max-width: 860px) {
  .ig-bar { padding-block: 40px 36px; }
  .ig-bar__head { align-items: center; }
  .ig-bar__title .ig-strip__badge { display: none; }
  .ig-bar__row { --gap: 12px; grid-auto-columns: 128px; margin-inline: -16px; padding-inline: 16px; }
  .ig-bar + .section { padding-top: 60px; }
}

/* nav: same-page links, divider, then separate pages */
.nav__sep { width: 1px; height: 22px; background: var(--line); align-self: center; margin-inline: 4px; }
@media (max-width: 1100px) { .nav__sep { width: 100%; height: 1px; margin: 10px 0; background: var(--navy-100); } }

/* gradient buttons: paint the gradient under the border too, so rounded corners stay clean */
.btn--ig { background-origin: border-box; background-repeat: no-repeat; border-color: transparent; }

/* homepage shop teaser on phones: 3 stats in one row, full-width button */
@media (max-width: 640px) {
  .shop-teaser__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .shop-teaser__stats li { min-width: 0; padding: 12px 10px; text-align: center; justify-items: center; }
  .shop-teaser__stats b { font-size: 1.5rem; }
  .shop-teaser__stats span { font-size: .8rem; }
  .shop-teaser .btn { width: 100%; }
  .shop-teaser__map { padding: 16px; }
  .shop-teaser__map .mini-map { max-width: 200px; }
}

/* ==========================================================
   v20: landing page from the society profile
   ========================================================== */
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* hero: badge, photo arch, floating chip */
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .9rem; font-weight: 600;
}
.hero__badge svg { width: 18px; height: 18px; fill: none; stroke: #7ee0a9; stroke-width: 2; }
.hero__badge b { color: #7ee0a9; letter-spacing: .04em; }
.hero__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.hero__lead { max-width: 46ch; }
.arch--photo { background: #fff; padding: 10px 10px 0; }
.arch--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; border-radius: 999px 999px 0 0; }
.hero__seal {
  position: absolute; z-index: 2; bottom: 34%; inset-inline-start: 52%; width: 92px; height: 92px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--green), 0 16px 30px -10px rgba(0,0,0,.4);
  animation: pop .9s cubic-bezier(.2,.8,.2,1) 1s both;
}
.hero__seal img { width: 70%; animation: float 5s ease-in-out 2s infinite; }
.hero__chip {
  position: absolute; z-index: 2; bottom: 26px; inset-inline-end: -8px; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 16px; background: #fff; color: var(--navy); box-shadow: 0 18px 40px -16px rgba(0,0,0,.45);
  animation: rise .8s cubic-bezier(.2,.7,.2,1) 1.2s both;
}
.hero__chip svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--green-100); fill: none; stroke: var(--green-700); stroke-width: 2; }
.hero__chip b { display: block; font: 900 1.3rem/1 "Source Sans 3", sans-serif; }
.hero__chip span span { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* about */
.about__p { color: #3a3e52; }
.about__side { display: grid; gap: 18px; }
.about__photo { position: relative; margin: 0; border-radius: 24px; overflow: hidden; height: 260px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.about__photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 22px 18px; color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.6;
  background: linear-gradient(transparent, rgba(16,20,60,.85));
}

/* principles */
.principles { background: var(--cream); }
.principles__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.principle {
  position: relative; padding: 26px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.principle:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.principle__ico { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); }
.principle:nth-child(even) .principle__ico { background: var(--navy-100); }
.principle__ico svg { width: 28px; height: 28px; fill: none; stroke: var(--green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.principle:nth-child(even) .principle__ico svg { stroke: var(--navy); }
.principle h3 { font-size: 1.12rem; }
.principle p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* ecosystem */
.eco__layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eco__text > p:not(.eyebrow) { color: #3a3e52; font-size: 1.08rem; }
.eco__support { margin-top: 22px; }
.eco__support strong, .eco__result strong { display: block; color: var(--navy); margin-bottom: 10px; }
.eco__support ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eco__support li { padding: 6px 14px; border-radius: 999px; background: var(--navy-100); color: var(--navy); font-weight: 700; font-size: .9rem; }
.eco__result { margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: var(--green-100); border-inline-start: 4px solid var(--green); }
.eco__result p { margin: 0; }
.eco__map { position: relative; aspect-ratio: 1; max-width: 600px; width: 100%; justify-self: center; }
.eco__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco__lines line { stroke: #c9cde0; stroke-width: .35; stroke-dasharray: 1.2 1.2; }
.eco__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 14px;
  background: var(--navy); color: #fff; box-shadow: 0 0 0 10px var(--navy-100), 0 20px 40px -16px rgba(22,26,82,.6); z-index: 1;
}
.eco__core-ico svg { width: 30px; height: 30px; fill: none; stroke: #7ee0a9; stroke-width: 2; }
.eco__core strong { font-size: 1.1rem; }
.eco__core span:last-child { font-size: .74rem; opacity: .8; line-height: 1.4; }
.eco__nodes { list-style: none; margin: 0; padding: 0; }
.eco__node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 26%; z-index: 2;
  display: grid; justify-items: center; gap: 4px; text-align: center; padding: 10px 8px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(22,26,82,.5); cursor: default;
  transition: box-shadow .25s, border-color .25s, transform .25s;
  opacity: 0; animation: rise .6s ease var(--d) forwards;
}
.eco__node:hover, .eco__node:focus-within { z-index: 3; border-color: var(--green); box-shadow: var(--shadow); transform: translate(-50%, -50%) scale(1.06); }
.eco__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-100); }
.eco__ico svg { width: 18px; height: 18px; fill: none; stroke: var(--green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eco__node strong { font-size: .8rem; line-height: 1.35; color: var(--navy); }
.eco__desc {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 190px; padding: 10px 12px; border-radius: 12px;
  background: var(--navy); color: #fff; font-size: .78rem; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.eco__node:hover .eco__desc { opacity: 1; }
.eco__goal {
  margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; padding: 18px 22px;
  border-radius: 18px; background: var(--navy); color: #fff;
}
.eco__goal strong { color: #7ee0a9; }
.eco__goal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eco__goal li { padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 700; font-size: .92rem; }

/* achievements */
.ach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; counter-reset: a; }
.ach__item {
  counter-increment: a; position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 22px 22px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s;
}
.ach__item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ach__item::after {
  content: counter(a, decimal-leading-zero); position: absolute; top: 14px; inset-inline-end: 18px;
  font: 900 1.6rem/1 "Source Sans 3", sans-serif; color: var(--navy-100);
}
.ach__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); }
.ach__item:nth-child(4n+2) .ach__ico, .ach__item:nth-child(4n+3) .ach__ico { background: var(--green); }
.ach__ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ach__item h3 { font-size: 1.12rem; margin-bottom: .3em; padding-inline-end: 40px; }
.ach__item p { margin: 0; color: var(--muted); font-size: .97rem; }

/* partners */
.partners__grid { columns: 3 300px; column-gap: 18px; }
.pgroup { break-inside: avoid; margin-bottom: 18px; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.pgroup header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pgroup h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.pgroup__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-100); flex-shrink: 0; }
.pgroup__ico svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pgroup__n { min-width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-700); font: 800 .85rem/1 "Source Sans 3", sans-serif; }
.pgroup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pgroup li { position: relative; padding: 8px 12px; padding-inline-start: 26px; border-radius: 10px; background: var(--cream); font-weight: 600; font-size: .93rem; color: #2c2f45; }
.pgroup li::before { content: ""; position: absolute; inset-inline-start: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--green); }
.partners__quote {
  margin: 18px 0 0; text-align: center; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--navy);
}
html[lang="en"] .partners__quote { font-weight: 900; }

/* president */
.president { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding-block: 80px; }
.president::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(0,154,76,.18); inset-inline-end: -200px; top: -240px; }
.president__inner { position: relative; max-width: 900px; text-align: center; }
.president__mark { display: block; font: 900 7rem/0.6 Georgia, serif; color: var(--green); margin-bottom: 10px; }
.president blockquote { margin: 0; }
.president blockquote p { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.95; opacity: .92; margin-bottom: 1em; }
.president__strong { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.8rem) !important; color: #fff; opacity: 1 !important; line-height: 1.7 !important; }
html[lang="en"] .president__strong { font-weight: 800; }
.president__sign { display: inline-flex; align-items: center; gap: 14px; margin-top: 10px; padding: 10px 20px 10px 12px; border-radius: 999px; background: rgba(255,255,255,.08); text-align: start; }
html[dir="rtl"] .president__sign { padding: 10px 12px 10px 20px; }
.president__sign img { width: 48px; height: 48px; border-radius: 50%; background: #fff; padding: 4px; }
.president__sign strong { display: block; font-size: 1.1rem; }
.president__sign span { font-size: .88rem; color: #7ee0a9; font-weight: 700; }

/* contact: two numbers */
.talk__sep { opacity: .4; margin-inline: 2px; }

/* CliQ donation card */
.cliq { justify-self: center; width: 100%; max-width: 400px; padding: 24px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -24px rgba(0,0,0,.4); }
.cliq__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--navy); font-size: 1.15rem; }
.cliq__head svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--green-100); fill: none; stroke: var(--green-700); stroke-width: 2; }
.cliq__row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--cream); margin-bottom: 8px; }
.cliq__row > span:first-child { color: var(--muted); font-size: .9rem; font-weight: 600; }
.cliq__row b { color: var(--navy); font-size: 1.05rem; margin-inline-start: auto; }
#cliqAlias { font: 900 1.4rem/1 "Source Sans 3", sans-serif; letter-spacing: .06em; }
.cliq__copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--navy); color: #fff; font: 700 .85rem var(--font-body); transition: background .2s;
}
.cliq__copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.cliq__copy.is-done { background: var(--green); }
.cliq__note { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }

@media (max-width: 1100px) {
  .principles__grid { grid-template-columns: repeat(3, 1fr); }
  .eco__layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .principles__grid { grid-template-columns: 1fr 1fr; }
  .ach { grid-template-columns: 1fr; }
  .hero__chip { inset-inline-end: 8px; bottom: 14px; }
  .hero__seal { width: 70px; height: 70px; }
  /* ecosystem becomes a list on small screens */
  .eco__map { aspect-ratio: auto; max-width: none; display: grid; gap: 12px; }
  .eco__lines { display: none; }
  .eco__core { position: static; transform: none; width: auto; aspect-ratio: auto; border-radius: 20px; padding: 18px; box-shadow: none; }
  .eco__nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .eco__node { position: static; transform: none; width: auto; animation: none; opacity: 1; justify-items: start; text-align: start; padding: 14px; }
  .eco__node:hover { transform: none; }
  .eco__desc { position: static; transform: none; width: auto; opacity: 1; background: none; color: var(--muted); padding: 0; font-size: .82rem; }
}
@media (max-width: 560px) {
  .principles__grid, .eco__nodes { grid-template-columns: 1fr; }
  .principle { text-align: start; display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 18px; }
  .principle__ico { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .principle__ico svg { width: 22px; height: 22px; }
  .principle h3 { margin: 0; }
  .ach__item { grid-template-columns: 44px 1fr; padding: 18px; }
  .ach__ico { width: 44px; height: 44px; }
  .president { padding-block: 56px; }
  .president__mark { font-size: 5rem; }
}
/* hero seal sits on the seam between the photo arch and the green arch, clear of faces */
.hero__seal { bottom: auto; top: 30%; inset-inline-start: auto; inset-inline-end: calc(64% - 46px); }
.hero__chip { bottom: 30px; inset-inline-end: auto; inset-inline-start: 4%; }
.eco { padding-top: 40px; }
.eco__node { width: 28%; padding: 12px 10px; }
.eco__node strong { font-size: .84rem; }
@media (max-width: 860px) {
  .hero__seal { top: 18%; inset-inline-end: calc(64% - 35px); }
  .hero__chip { inset-inline-start: 2%; bottom: 14px; }
}

/* v21: hero photo as the main visual */
.hero__art { height: 540px; overflow: visible; }
.hero__art .arch--back { inset-inline-start: auto; right: -2%; left: auto; width: 46%; height: 84%; }
.hero__art .arch--photo {
  left: 0; right: auto; inset-inline-start: auto; inset-inline-end: auto; width: 88%; height: 96%;
  padding: 0; border: 10px solid #fff; border-bottom: 0; border-radius: 260px 260px 0 0; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.hero__art .arch--photo img { border-radius: 0; object-position: 52% 32%; transform: scale(1.04); animation: heroZoom 14s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1.5%); } }
/* badge and chip sit over the soft background on the photo's left, away from faces */
.hero__seal { top: 16%; bottom: auto; left: -18px; right: auto; inset-inline-start: auto; inset-inline-end: auto; width: 96px; height: 96px; }
.hero__chip { bottom: 34px; top: auto; left: 22px; right: auto; inset-inline-start: auto; inset-inline-end: auto; }
@media (max-width: 960px) {
  .hero__art { height: 380px; max-width: 520px; }
  .hero__seal { width: 74px; height: 74px; left: -6px; }
}
@media (max-width: 640px) {
  .hero__art { height: 320px; }
  .hero__art .arch--photo { border-radius: 180px 180px 0 0; width: 92%; }
  .hero__chip { left: 12px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hero__art .arch--photo img { animation: none; } }
/* v21.1: physical positions win (logical resets first, then left/right) */
.hero__art .arch--photo { inset-inline-start: auto; inset-inline-end: auto; }
.hero__art .arch--photo { left: 0; right: auto; }
.hero__seal { inset-inline-start: auto; inset-inline-end: auto; }
.hero__seal { left: -14px; right: auto; top: 12%; }
.hero__chip { inset-inline-start: auto; inset-inline-end: auto; }
.hero__chip { left: 26px; right: auto; bottom: 30px; }
.hero__art .arch--back { inset-inline-start: auto; inset-inline-end: auto; }
.hero__art .arch--back { right: 0; left: auto; width: 50%; }
@media (max-width: 640px) {
  .hero__art .arch--photo { width: 90%; }
  .hero__seal { left: 0; top: 8%; }
  .hero__chip { left: 14px; bottom: 16px; }
}
/* boy photo: face sits upper-middle */
.hero__art .arch--photo img { object-position: 45% 20%; }
@media (max-width: 640px) {
  .hero__art { height: 400px; }
  .hero__chip { bottom: 10px; padding: 7px 12px 7px 9px; gap: 8px; }
  .hero__chip svg { width: 28px; height: 28px; padding: 5px; }
  .hero__chip b { font-size: 1.05rem; }
  .hero__chip span span { font-size: .72rem; }
}

/* ==========================================================
   v23: partners slider
   ========================================================== */
.partners__grid { display: none; }
.pfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.pchip {
  display: inline-flex; align-items: center; gap: 8px; padding: .5em 1.1em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 700 .92rem var(--font-body); transition: all .2s;
}
.pchip span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-100); font: 800 .78rem/1 "Source Sans 3", sans-serif; }
.pchip:hover { border-color: var(--navy); }
.pchip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pchip.is-active span { background: var(--green); color: #fff; }

.pmarquee { display: grid; gap: 16px; margin-inline: calc(50% - 50vw); padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pmarquee__row { overflow: hidden; direction: ltr; }
.pmarquee__track { display: flex; gap: 16px; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.pmarquee__row--rev .pmarquee__track { animation-direction: reverse; }
.pmarquee:hover .pmarquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }

.ptile {
  direction: rtl; flex: 0 0 auto; width: 270px; min-height: 92px; display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -22px rgba(22,26,82,.6);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
html[dir="ltr"] .ptile { direction: ltr; }
.ptile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ptile__logo { width: 64px; height: 56px; object-fit: contain; flex-shrink: 0; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.ptile:hover .ptile__logo { filter: none; opacity: 1; }
.ptile__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: var(--navy-100); }
.ptile__ico svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ptile--health .ptile__ico, .ptile--academic .ptile__ico { background: var(--green-100); }
.ptile--health .ptile__ico svg, .ptile--academic .ptile__ico svg { stroke: var(--green-700); }
.ptile--intl .ptile__ico { background: #e3edfc; } .ptile--intl .ptile__ico svg { stroke: #2f6fd6; }
.ptile--military .ptile__ico { background: #ecefe3; } .ptile--military .ptile__ico svg { stroke: #556b2f; }
.ptile--unions .ptile__ico, .ptile--tourism .ptile__ico { background: #fff3d6; }
.ptile--unions .ptile__ico svg, .ptile--tourism .ptile__ico svg { stroke: #a86a00; }
.ptile__text { display: grid; gap: 3px; min-width: 0; }
.ptile__text strong { color: var(--navy); font-size: .98rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptile__text small { color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pgrid .ptile { width: auto; animation: rise .4s ease both; }
.pgrid[hidden], .pmarquee[hidden] { display: none; }

@media (max-width: 640px) {
  .ptile { width: 230px; min-height: 80px; padding: 12px 14px; gap: 10px; }
  .ptile__ico { width: 44px; height: 44px; }
  .pfilter { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .pchip { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pmarquee__track { animation: none; }
  .pmarquee__row { overflow-x: auto; }
}

/* ==========================================================
   v24: partners logo wall, compact achievements, ecosystem polish, 3 help cards
   ========================================================== */
.pfilter, .pmarquee, .pgrid { display: none !important; }
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-card {
  position: relative; margin: 0; height: 132px; display: grid; place-items: center; padding: 22px 22px 34px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s; opacity: 0; animation: rise .5s ease var(--d) forwards;
}
.logo-card img { max-width: 100%; max-height: 64px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .3s, opacity .3s, transform .3s; }
.logo-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 7px 10px; font-size: .74rem; font-weight: 700; color: var(--muted); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line); background: #fbfbfd; transition: color .25s, background .25s;
}
.logo-card:hover, .logo-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.logo-card:hover img, .logo-card:focus-visible img { filter: none; opacity: 1; transform: scale(1.04); }
.logo-card:hover figcaption { color: var(--navy); background: var(--green-100); }
.partners-more { margin-top: 26px; padding: 20px 22px; border-radius: 20px; background: #fff; border: 1px dashed #cfd3e3; }
.partners-more__t { margin: 0 0 12px; font-weight: 800; color: var(--navy); }
.partners-more__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.partners-more__list li { padding: 6px 14px; border-radius: 999px; background: var(--cream); color: #2c2f45; font-weight: 600; font-size: .88rem; }

/* achievements: one compact sliding row */
.achievements .section__head { margin-bottom: 18px; }
.ach-ctrl { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
html[dir="rtl"] .ach-ctrl { justify-content: flex-start; }
.ach {
  display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 300px; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; scrollbar-width: none;
}
.ach::-webkit-scrollbar { display: none; }
.ach__item { scroll-snap-align: start; grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; align-content: start; }
.ach__ico { width: 46px; height: 46px; border-radius: 14px; }
.ach__ico svg { width: 22px; height: 22px; }
.ach__item h3 { font-size: 1.05rem; padding-inline-end: 34px; }
.ach__item p { font-size: .9rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ach__item::after { font-size: 1.4rem; top: 22px; }

/* help: three equal cards */
#help .cards { grid-template-columns: repeat(3, 1fr); }

/* ecosystem: nodes stay inside their circle and never cover the core or text */
.eco__layout { gap: 64px; }
.eco__map { max-width: 560px; }
.eco__core { width: 30%; }
.eco__node { width: 25%; padding: 10px 8px; }
.eco__node strong { font-size: .78rem; }
.eco__ico { width: 30px; height: 30px; }
.eco__lines line { stroke-width: .3; }

@media (max-width: 1100px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .logo-card { height: 110px; padding: 16px 14px 30px; }
  .logo-card img { max-height: 50px; filter: none; opacity: 1; }
  #help .cards { grid-template-columns: 1fr; }
  .eco__node { width: auto; }
}
@media (max-width: 640px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .ach { grid-auto-columns: 82%; }
  #help .cards { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; }
}

/* hero: three clear calls to action instead of four empty boxes */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .7s cubic-bezier(.2,.7,.2,1) .55s both; }
.btn--lg { padding: .95em 1.7em; font-size: 1.05rem; }
.hero-cta .btn--green { box-shadow: 0 12px 26px -12px rgba(0,154,76,.8); }
.hero-note { margin: 22px 0 0; color: rgba(255,255,255,.75); font-size: .98rem; animation: rise .7s ease .7s both; }
.hero-note a { color: #7ee0a9; font-weight: 700; text-underline-offset: 4px; }
.hero-note a:hover { color: #fff; }
@media (max-width: 640px) {
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-cta .btn--green { grid-column: 1 / -1; }
  .btn--lg { padding: .85em 1.1em; font-size: 1rem; }
}
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; }
.logo-card { flex: 0 0 calc((100% - 4 * 16px) / 5); }
.logo-card img { max-height: 78px; }
@media (max-width: 1100px) { .logo-card { flex-basis: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 860px) { .logo-card { flex-basis: calc((100% - 2 * 10px) / 3); } .logo-card img { max-height: 56px; } }
@media (max-width: 640px) { .logo-card { flex-basis: calc((100% - 10px) / 2); } }
.eco__core { width: 27%; padding: 10px; }
.eco__core strong { font-size: 1rem; }
.eco__core span:last-child { font-size: .68rem; }
.eco__node { width: 23%; }
@media (max-width: 860px) { .eco__core { width: auto; } .eco__node { width: auto; } }

/* v26: partners slider (home) + partners page */
.logo-slider { overflow: hidden; direction: ltr; margin-inline: calc(50% - 50vw); padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-slider__track { display: flex; gap: 18px; width: max-content; animation: marquee var(--dur, 50s) linear infinite; }
.logo-slider:hover .logo-slider__track { animation-play-state: paused; }
.logo-slider .logo-card { flex: 0 0 230px; direction: rtl; animation: none; opacity: 1; }
html[dir="ltr"] .logo-slider .logo-card { direction: ltr; }
.partners__cta { display: flex; justify-content: center; margin-top: 28px; }
.logo-card--text { gap: 8px; }
.logo-card__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--navy-100); }
.logo-card__ico svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.logo-card--text figcaption { color: var(--navy); white-space: normal; line-height: 1.35; padding: 8px 10px; }
.logo-card--text { height: 150px; padding-bottom: 54px; }

.partners-page { padding-top: 48px; }
.pfilter2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.psec { margin-bottom: 36px; }
.psec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.psec__head h2 { margin: 0; font-size: 1.3rem; flex: 1; }
.psec__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); }
.psec__ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.psec__n { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-700); font: 800 .95rem/1 "Source Sans 3", sans-serif; }
.psec__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.psec__grid .logo-card { flex: none; height: 150px; animation: rise .4s ease both; }
.psec__grid .logo-card img { filter: none; opacity: 1; max-height: 70px; }
@media (max-width: 640px) {
  .logo-slider .logo-card { flex-basis: 170px; height: 110px; }
  .pfilter2 { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .psec__grid { grid-template-columns: 1fr 1fr; }
  .psec__grid .logo-card { height: 130px; }
}
@media (prefers-reduced-motion: reduce) { .logo-slider__track { animation: none; } .logo-slider { overflow-x: auto; } }
/* logos always in full colour */
.logo-card img, .logo-card:hover img, .ptile__logo { filter: none !important; opacity: 1 !important; }

/* ==========================================================
   v27: ecosystem as a clean orbit diagram
   ========================================================== */
.eco__map { max-width: 560px; aspect-ratio: 1; }
/* orbit ring instead of dashed spokes */
.eco__map::before, .eco__map::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.eco__map::before { width: 74%; height: 74%; border: 2px dashed #c9cde0; animation: orbit 60s linear infinite; }
.eco__map::after { width: 46%; height: 46%; background: radial-gradient(circle, rgba(0,154,76,.12), transparent 70%); }
@keyframes orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
.eco__lines { display: none; }
.eco__core {
  width: 34%; padding: 18px; gap: 6px;
  background: radial-gradient(circle at 30% 25%, #3a43a8, var(--navy) 70%);
  box-shadow: 0 0 0 10px #fff, 0 0 0 12px var(--green), 0 24px 50px -18px rgba(22,26,82,.6);
}
.eco__core-ico svg { width: 34px; height: 34px; }
.eco__core strong { font-size: 1.12rem; line-height: 1.3; }
.eco__core span:last-child { font-size: .72rem; line-height: 1.5; opacity: .85; }
/* nodes: round icon badge + label, no boxes */
.eco__node {
  width: 22%; padding: 0; background: none; border: 0; box-shadow: none; gap: 8px;
}
.eco__node:hover, .eco__node:focus-within { box-shadow: none; transform: translate(-50%, -50%); }
.eco__ico {
  width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 2px solid var(--green-100);
  box-shadow: 0 10px 22px -12px rgba(22,26,82,.45); transition: transform .25s, background .25s, border-color .25s;
}
.eco__ico svg { width: 26px; height: 26px; }
.eco__node:nth-child(even) .eco__ico svg { stroke: var(--navy); }
.eco__node:hover .eco__ico { transform: scale(1.1); background: var(--green); border-color: var(--green); }
.eco__node:hover .eco__ico svg { stroke: #fff; }
.eco__node strong { font-size: .8rem; line-height: 1.35; background: rgba(255,255,255,.92); padding: 2px 6px; border-radius: 8px; }
.eco__desc { top: calc(100% + 4px); }
@media (max-width: 860px) {
  .eco__map { aspect-ratio: auto; }
  .eco__map::before, .eco__map::after { display: none; }
  .eco__core { box-shadow: none; }
  .eco__node { background: #fff; border: 1px solid var(--line); padding: 14px; flex-direction: row; }
  .eco__ico { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .eco__map::before { animation: none; } }
/* put each icon's centre exactly on the orbit ring (labels hang below) */
@media (min-width: 861px) {
  .eco__node, .eco__node:hover, .eco__node:focus-within { transform: translate(-50%, -31px); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 861px) { .eco__node { animation: fadeIn .6s ease var(--d) forwards; } }

/* achievements: photo cards in a slider */
.ach { grid-auto-columns: 320px; }
.ach__item { padding: 0; overflow: hidden; gap: 0; grid-template-columns: 1fr; }
.ach__img { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); position: relative; }
.ach__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ach__item:hover .ach__img img { transform: scale(1.06); }
.ach__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(22,26,82,.35)); }
.ach__item > .ach__ico { position: relative; z-index: 1; margin: -26px 18px 0; width: 50px; height: 50px; box-shadow: 0 0 0 4px #fff; }
.ach__item > div { padding: 12px 20px 22px; }
.ach__item::after { top: auto; bottom: auto; top: 12px; inset-inline-end: 14px; z-index: 2; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35); font-size: 1.5rem; }
@media (max-width: 640px) { .ach { grid-auto-columns: 84%; } }

/* achievements without photos: compact text cards in the slider */
.ach__item { padding: 22px 20px; gap: 12px; }
.ach__item > .ach__ico { margin: 0; box-shadow: none; }
.ach__item > div { padding: 0; }
.ach__item::after { color: var(--navy-100); text-shadow: none; top: 18px; }

/* ==========================================================
   v29: hero animation
   ========================================================== */
.hero { isolation: isolate; }
.hero__fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__inner { position: relative; z-index: 1; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: orbDrift 18s ease-in-out infinite alternate; }
.orb--1 { width: 420px; height: 420px; background: #2f3aa8; top: -140px; inset-inline-end: 8%; }
.orb--2 { width: 340px; height: 340px; background: rgba(0,154,76,.45); bottom: -160px; inset-inline-start: 30%; animation-duration: 22s; animation-delay: -6s; }
.orb--3 { width: 260px; height: 260px; background: rgba(126,224,169,.25); top: 30%; inset-inline-start: -80px; animation-duration: 26s; animation-delay: -12s; }
@keyframes orbDrift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.12); } 100% { transform: translate(-30px,25px) scale(.95); } }
.floaty { position: absolute; width: 34px; height: 34px; opacity: .14; animation: floaty 12s ease-in-out infinite; }
.floaty svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.floaty--1 { top: 18%; inset-inline-end: 46%; }
.floaty--2 { top: 70%; inset-inline-end: 40%; width: 44px; height: 44px; animation-delay: -3s; animation-duration: 15s; }
.floaty--3 { top: 12%; inset-inline-start: 6%; width: 26px; height: 26px; animation-delay: -6s; }
.floaty--4 { bottom: 10%; inset-inline-start: 44%; width: 30px; height: 30px; animation-delay: -9s; animation-duration: 14s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-22px) rotate(12deg); } }

/* headline words reveal */
.hero__text > .hero__title { opacity: 1; animation: none; }
.hw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.hw > span { display: inline-block; transform: translateY(110%); animation: wordUp .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.25s + var(--i) * .09s); }
@keyframes wordUp { to { transform: none; } }

/* photo side: parallax + breathing arch */
.hero__art { --mx: 0; --my: 0; }
.hero__art .arch--photo { translate: calc(var(--mx) * -14px) calc(var(--my) * -10px); transition: translate .4s ease-out; }
.hero__art .arch--back { translate: calc(var(--mx) * 22px) calc(var(--my) * 16px); transition: translate .5s ease-out; animation: archUp 1s cubic-bezier(.2,.8,.2,1) .15s both, breathe 7s ease-in-out 1.4s infinite; transform-origin: bottom center; }
@keyframes breathe { 0%,100% { scale: 1; } 50% { scale: 1.025 1.04; } }
.hero__chip { animation: rise .8s cubic-bezier(.2,.7,.2,1) 1.2s both, chipFloat 5s ease-in-out 2.2s infinite; translate: calc(var(--mx) * 10px) calc(var(--my) * 8px); transition: translate .3s ease-out; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero__seal { translate: calc(var(--mx) * 18px) calc(var(--my) * 14px); transition: translate .3s ease-out; }
.hero__seal::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px dashed rgba(126,224,169,.8);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* donate button shine */
.hero-cta .btn--green { position: relative; overflow: hidden; }
.hero-cta .btn--green::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out 2.4s infinite;
}
@keyframes shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.hero-cta .btn { transition: transform .2s, box-shadow .2s, background .2s; }
.hero-cta .btn:hover { transform: translateY(-3px); }

@media (max-width: 640px) { .floaty { display: none; } .orb { filter: blur(40px); } }
@media (prefers-reduced-motion: reduce) {
  .orb, .floaty, .hero__seal::before, .hero-cta .btn--green::after, .hero__chip, .hero__art .arch--back { animation: none !important; }
  .hw > span { transform: none; animation: none; }
}
/* word reveal without clipping (Arabic display glyphs overflow their box) */
.hw { overflow: visible; padding: 0; vertical-align: baseline; }
.hw > span { transform: translateY(.45em); opacity: 0; filter: blur(6px); animation: wordIn .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.25s + var(--i) * .1s); }
@keyframes wordIn { to { transform: none; opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .hw > span { opacity: 1; filter: none; } }

/* v30: stronger, clearer hero motion */
.orb { opacity: .9; filter: blur(50px); }
.orb--1 { background: #3d48c4; width: 480px; height: 480px; }
.orb--2 { background: rgba(0,170,85,.6); width: 400px; height: 400px; }
.orb--3 { background: rgba(126,224,169,.45); width: 320px; height: 320px; }
@keyframes orbDrift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(110px,-70px) scale(1.25); } 100% { transform: translate(-90px,60px) scale(.9); } }
.orb--1 { animation-duration: 11s; } .orb--2 { animation-duration: 13s; } .orb--3 { animation-duration: 15s; }

.floaty { opacity: .32; width: 40px; height: 40px; animation: floaty 7s ease-in-out infinite; }
.floaty svg { stroke-width: 1.8; }
.floaty:nth-child(odd) svg { stroke: #7ee0a9; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0deg) scale(1); } 50% { transform: translateY(-45px) rotate(18deg) scale(1.15); } }
.floaty--5 { top: 40%; inset-inline-end: 52%; animation-delay: -2s; }
.floaty--6 { top: 85%; inset-inline-end: 12%; width: 30px; height: 30px; animation-delay: -4s; }
.floaty--7 { top: 6%; inset-inline-end: 28%; width: 28px; height: 28px; animation-delay: -1s; animation-duration: 9s; }
.floaty--8 { top: 55%; inset-inline-start: 2%; width: 36px; height: 36px; animation-delay: -5s; }

/* photo pops in */
.hero__art .arch--photo { animation: photoIn 1.2s cubic-bezier(.2,.8,.2,1) .2s both; }
@keyframes photoIn { from { opacity: 0; transform: translateY(60px) scale(.88); } to { opacity: 1; transform: none; } }
.hero__art .arch--photo img { animation: heroZoom 9s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.16) translateX(-2%); } }

/* stronger parallax */
.hero__art .arch--photo { translate: calc(var(--mx) * -30px) calc(var(--my) * -22px); }
.hero__art .arch--back { translate: calc(var(--mx) * 45px) calc(var(--my) * 32px); }
.hero__chip { translate: calc(var(--mx) * 26px) calc(var(--my) * 20px); }
.hero__seal { translate: calc(var(--mx) * 38px) calc(var(--my) * 28px); }
@keyframes breathe { 0%,100% { scale: 1; } 50% { scale: 1.05 1.08; } }

/* seal ring + pulse */
.hero__seal::before { inset: -14px; border: 3px dashed #7ee0a9; animation: spin 8s linear infinite; }
.hero__seal::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(126,224,169,.7); animation: sealPulse 2.4s ease-out infinite; }
@keyframes sealPulse { 0% { box-shadow: 0 0 0 0 rgba(126,224,169,.7); } 100% { box-shadow: 0 0 0 28px rgba(126,224,169,0); } }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* clearer shine + glow on donate */
.hero-cta .btn--green::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); animation-duration: 2.8s; animation-delay: 1.6s; }
.hero-cta .btn--green { animation: rise .7s ease .55s both, glow 2.8s ease-in-out 1.6s infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 12px 26px -12px rgba(0,154,76,.8); } 50% { box-shadow: 0 0 0 6px rgba(0,154,76,.25), 0 16px 34px -10px rgba(0,154,76,.9); } }

/* badge slides in */
.hero__badge { animation: badgeIn .8s cubic-bezier(.2,.8,.2,1) .1s both; }
@keyframes badgeIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.hw > span { animation-duration: .9s; transform: translateY(.8em) scale(.9); }

@media (prefers-reduced-motion: reduce) {
  .hero__art .arch--photo, .hero__art .arch--photo img, .hero__seal::after, .hero-cta .btn--green, .hero__badge { animation: none !important; }
}
.hero__seal, .hero__chip { z-index: 5; }
.hero__seal { animation: pop .9s cubic-bezier(.2,.8,.2,1) 1s both; }

/* v31: small-phone fixes (≤ 420px) */
.hero__inner > *, .g-credits > *, .g-layout > *, .about__grid > *, .eco__layout > * { min-width: 0; }
.hero__title, .hero__lead, .g-refs a, .g-reviewer p { overflow-wrap: anywhere; }
@media (max-width: 960px) { .hero__inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .g-credits { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .hero__badge { font-size: .78rem; flex-wrap: wrap; }
  .hero__title { font-size: 1.9rem; }
  .hero-cta { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .g-reviewer { flex-direction: column; padding: 18px; }
  .g-refs { padding: 18px; }
  .section__title { font-size: 1.6rem; }
  .g-facts { grid-template-columns: 1fr 1fr; }
  .g-fact b { font-size: 1.7rem; }
  .cliq { padding: 18px; }
  .cliq__row { flex-wrap: wrap; }
  .president__sign { flex-wrap: wrap; justify-content: center; }
  .footer__bottom { flex-direction: column; }
}
.g-refs ol { padding-inline-start: 1.4em; margin-inline: 0; min-width: 0; }
.g-refs li { min-width: 0; max-width: 100%; }
.g-refs ol[dir="ltr"] { padding-left: 1.4em; padding-right: 0; }

/* v32: phone fixes — ecosystem list, IG header */
@media (max-width: 860px) {
  .eco__map { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: none; aspect-ratio: auto; }
  .eco__core { position: static; transform: none; width: 100%; aspect-ratio: auto; border-radius: 20px; }
  .eco__nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .eco__node, .eco__node:hover, .eco__node:focus-within {
    position: static; transform: none !important; translate: none; width: auto; opacity: 1; animation: none;
    display: grid; grid-template-columns: 44px 1fr; align-items: center; justify-items: start; text-align: start;
    gap: 4px 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  }
  .eco__node .eco__ico { grid-row: span 2; width: 44px; height: 44px; }
  .eco__node strong { background: none; padding: 0; font-size: .85rem; }
  .eco__desc { position: static; transform: none; width: auto; opacity: 1; background: none; color: var(--muted); padding: 0; font-size: .78rem; line-height: 1.5; }
}
@media (max-width: 480px) {
  .eco__nodes { grid-template-columns: 1fr; }
  .ig-bar__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ig-bar__title .section__title { font-size: 1.45rem; }
}

/* v33: travel cards page — light, less blue */
.p-hero:has(+ .travel--light) { padding-bottom: 0; }
.p-hero:has(+ .travel--light) .g-hero__inner { padding-bottom: 44px; }
.travel--light { background: var(--cream); color: var(--ink); padding-top: 48px; }
.travel--light::before { display: none; }
.travel--light .langs__label { color: var(--green-700); }
.travel--light .lang { background: #fff; border-color: var(--line); color: var(--navy); }
.travel--light .lang:hover { background: var(--navy-100); }
.travel--light .lang.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.travel--light .lang.is-active .lang__hello { color: #7ee0a9; }
.travel--light .lang__flag { box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,.15); }
.travel--light .howto li { background: #fff; border: 1px solid var(--line); }
.travel--light .howto p { color: #3a3e52; opacity: 1; }
.travel--light .phone__frame { background: linear-gradient(145deg, #2a2f78, #161a52); }
.travel--light .phone__actions .btn--white { background: var(--navy); color: #fff; }
.travel--light .phone__actions .btn--white:hover { background: var(--navy-900); }
/* slim page headers without stat cards */
.p-hero--slim .g-hero__inner { grid-template-columns: 1fr; padding-block: 40px 44px; }
.p-hero--slim .g-hero__lead { max-width: 70ch; }
.footer__col .footer__h { color: #fff; font-size: 1.1rem; margin-bottom: .3em; font-family: var(--font-body); }
/* footer logo keeps its proportions */
.footer__logo { width: 170px; height: auto; aspect-ratio: 1200 / 1020; object-fit: contain; display: block; }
.footer__bottom { justify-content: center; text-align: center; }
html[dir="rtl"] .footer__col a[dir="ltr"] { text-align: right; }
