/* Design system lifted from easystore.in.th: yellow #ffdf02 on near-black,
   Poppins for headings, Inter for body. Yellow is only ever a BACKGROUND with
   #111 sitting on it. Yellow text on white fails contrast, so links use ink
   with a yellow underline instead. */

:root {
  --yellow: #ffdf02;
  --yellow-dark: #e6c800;
  --black: #111111;
  --text: #222222;
  --muted: #666666;
  --border: #e0e0e0;
  --card: #f8f8f8;
  --bg: #ffffff;
  --surface: #ffffff;
  --link: #111111;
  --shadow: 0 2px 10px rgba(0,0,0,.05);
  --shadow-lift: 0 10px 28px rgba(0,0,0,.10);
  --radius: 10px;
  --maxw: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --black: #ffffff;
    --text: #e8e6e1;
    --muted: #9d968b;
    --border: #2d2b27;
    --card: #1b1a17;
    --bg: #111110;
    --surface: #1b1a17;
    --link: #ffdf02;
    --shadow: 0 2px 10px rgba(0,0,0,.4);
    --shadow-lift: 0 10px 28px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --black: #ffffff; --text: #e8e6e1; --muted: #9d968b; --border: #2d2b27;
  --card: #1b1a17; --bg: #111110; --surface: #1b1a17; --link: #ffdf02;
  --shadow: 0 2px 10px rgba(0,0,0,.4); --shadow-lift: 0 10px 28px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, .brand, .btn, .count, .eyebrow {
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1 { font-size: clamp(32px, 5.4vw, 54px); font-weight: 900; letter-spacing: -1px;
     line-height: 1.08; color: var(--black); margin: 0 0 14px; }
h2 { font-size: clamp(25px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.5px;
     color: var(--black); margin: 0 0 18px; }
h3 { font-weight: 700; color: var(--black); }

a { color: var(--link); text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--yellow); color: var(--black);
  padding: 10px 16px; border-radius: var(--radius); z-index: 20; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; font-size: 18px; letter-spacing: -.4px;
  text-decoration: none; color: var(--black); }
.brand span { background: var(--yellow); color: #111; padding: 2px 8px; border-radius: 6px; }
.site-header nav { display: flex; gap: 22px; align-items: center; font-size: 15px; font-weight: 500; }
.dropdown { position: relative; }
.dropdown summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--black); }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: " \25BE"; color: var(--muted); }
.dropdown ul {
  position: absolute; top: 100%; left: 0; z-index: 10; margin: 10px 0 0; padding: 8px;
  min-width: 210px; list-style: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
.dropdown li a { display: block; padding: 9px 12px; text-decoration: none;
  border-radius: 7px; font-weight: 500; }
.dropdown li a:hover { background: var(--yellow); color: #111; }

main { max-width: var(--maxw); margin: 0 auto; padding: 0 16px 72px; }

/* ---------- Page head ---------- */
.page-head { padding: 52px 0 10px; max-width: 24ch; }
.page-head.wide { max-width: none; }
.standfirst { color: var(--muted); font-size: 18.5px; margin: 0; max-width: 62ch; }
.eyebrow {
  display: inline-block; background: var(--yellow); color: #111;
  border-radius: 50px; padding: 6px 16px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin: 0 0 18px;
}

.intro { max-width: 68ch; }
.intro p { margin: 0 0 17px; }
.intro h2 { margin-top: 42px; }

/* ---------- Jump nav ---------- */
.jump { margin: 34px 0; padding: 6px 0 0; border-top: 3px solid var(--yellow); }
.jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.jump li a {
  display: inline-block; padding: 8px 15px; background: var(--card);
  border: 1px solid var(--border); border-radius: 50px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.jump li a:hover { background: var(--yellow); color: #111; border-color: var(--yellow); }

/* ---------- Groups and listings ---------- */
.group { margin: 56px 0; }
.group h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.count {
  font-size: 13px; font-weight: 700; color: #111; background: var(--yellow);
  border-radius: 50px; padding: 4px 13px; letter-spacing: .3px;
}
.listings { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.listing {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.listing::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px;
  background: var(--yellow); border-radius: 0 4px 4px 0; opacity: 0;
  transition: opacity .15s ease;
}
.listing:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #cfcbc2; }
.listing:hover::before { opacity: 1; }
.listing h3 { margin: 0 0 9px; font-size: 18.5px; line-height: 1.3; }
.listing h3 a { text-decoration: none; }
.listing h3 a:hover { text-decoration: underline; text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px; }
.listing-desc { margin: 0 0 16px; color: var(--muted); font-size: 14.8px; line-height: 1.55; }

.listing-meta {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  margin: 0 0 14px; font-size: 13.8px; padding-top: 14px; border-top: 1px solid var(--border);
}
.listing-meta dt { color: var(--muted); font-weight: 500; }
.listing-meta dd { margin: 0; color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.tags li { font-size: 11.8px; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); border-radius: 50px; padding: 3px 10px; }
.listing-contact { margin: 0; font-size: 14px; font-weight: 600; }

/* ---------- FAQs ---------- */
.faqs { margin: 60px 0; max-width: 72ch; }
.faqs details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faqs details[open] summary { color: var(--black); }
.faqs summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; font-weight: 700; color: var(--muted); flex: none; }
.faqs details[open] summary::after { content: "\2212"; }
.faqs details > div { padding-top: 12px; color: var(--muted); }
.faqs details > div p { margin: 0 0 12px; }

/* ---------- Featured speaker ---------- */
.featured-speaker {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center;
  margin: 60px 0; padding: 34px;
  background: var(--yellow); border-radius: 16px; color: #111;
}
.featured-speaker img { border-radius: 12px; width: 180px; height: auto;
  background: #fff; }
.featured-speaker > div { flex: 1 1 320px; }
.featured-speaker h2 { margin: 6px 0 14px; color: #111; font-size: 30px; }
.featured-speaker p { margin: 0 0 14px; color: #1a1a1a; }
.featured-speaker .eyebrow { background: #111; color: var(--yellow); }
.featured-speaker .proof { font-size: 14.6px; color: #3a3a34; }
.btn {
  display: inline-block; background: #111; color: #fff;
  padding: 14px 32px; border-radius: var(--radius);
  text-decoration: none; font-weight: 700; font-size: 16px;
}
.btn:hover { background: #000; }

.updated { color: var(--muted); font-size: 14px; margin: 36px 0 0;
  padding-top: 18px; border-top: 1px solid var(--border); }

/* ---------- Home country grid ---------- */
.country-grid {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  margin: 34px 0 0; padding: 0; list-style: none;
}
.country-grid a {
  display: block; padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; font-weight: 700; font-size: 18px; color: var(--black);
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
  font-family: Poppins, sans-serif;
}
.country-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift);
  border-color: var(--yellow); }
.country-grid .soon { color: var(--muted); font-weight: 500; font-size: 13.8px;
  display: block; margin-top: 6px; font-family: Inter, sans-serif; }
.country-grid li.pending {
  padding: 24px; border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--muted); font-weight: 600; font-size: 18px; font-family: Poppins, sans-serif;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px solid var(--yellow); background: var(--card);
}
.site-footer .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 32px 16px 54px;
  color: var(--muted); font-size: 14.4px;
}
.site-footer p { margin: 0 0 8px; }

@media (max-width: 640px) {
  .listings { grid-template-columns: 1fr; }
  .featured-speaker { padding: 24px; gap: 20px; }
  .featured-speaker img { width: 120px; }
  .page-head { padding-top: 34px; max-width: none; }
}

/* Compact list, used on city pages for national bureaus already detailed on
   the country page. Keeps the city page's unique content prominent. */
.compact-list {
  display: grid; gap: 8px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 22px 0 0; padding: 0; list-style: none; font-size: 15px;
}
.compact-list li {
  padding: 9px 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px;
}
.compact-list li span { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }

/* A featured speaker without a photo should not leave a gap where one was. */
.featured-speaker.no-photo > div { flex: 1 1 100%; }
.featured-speaker + .featured-speaker { margin-top: -28px; }

/* ---------- Individual bureau pages ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.crumbs span { margin: 0 6px; }

.bureau .page-head { padding-top: 22px; }
.bureau .standfirst { font-size: 19px; color: var(--text); max-width: 68ch; }

.factbox {
  margin: 34px 0; padding: 26px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.factbox h2 { font-size: 21px; margin: 0 0 18px; }
.factbox dl {
  display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 10px 22px;
  margin: 0 0 22px; font-size: 15.5px;
}
.factbox dt { color: var(--muted); font-weight: 500; }
.factbox dd { margin: 0; }
.factbox-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn-ghost {
  display: inline-block; padding: 13px 24px; border-radius: var(--radius);
  border: 2px solid var(--black); color: var(--black);
  text-decoration: none; font-weight: 600; font-size: 15px;
  font-family: Poppins, sans-serif;
}
.btn-ghost:hover { background: var(--black); color: var(--bg); }

.tags.big { gap: 8px; }
.tags.big li { font-size: 13.5px; padding: 6px 14px; background: var(--surface); }

.bureau .group { margin: 40px 0; }
.bureau .group h2 { font-size: 24px; }
.bureau .group p { max-width: 68ch; }

.listing-contact { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 560px) {
  .factbox { padding: 20px; }
  .factbox dl { grid-template-columns: 1fr; gap: 2px 0; }
  .factbox dt { margin-top: 10px; }
}

/* Page summary: a self-contained restatement at the foot of every page, for
   readers skimming and for AI systems extracting a citable claim. */
.page-summary {
  margin: 48px 0 0; padding: 24px 26px;
  background: var(--card); border-left: 4px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.page-summary h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin: 0 0 10px; }
.page-summary p { margin: 0; font-size: 15.5px; max-width: 78ch; color: var(--text); }

.site-footer .machine { font-size: 13.5px; opacity: .85; }
