/* =============================================================================
   VEO Markets — Public Safety Notice
   Minimalist theme (DESIGN ONLY). Content lives in data/content.json.
   Works in dark and light via [data-bs-theme]. One typeface: Inter.
   ========================================================================== */

/* ---- Theme tokens -------------------------------------------------------- */
[data-bs-theme="dark"] {
  --bg:        #0b0f14;
  --surface:   #111720;
  --surface-2: #161e29;
  --border:    #232e3b;
  --text:      #e6edf3;
  --muted:     #8b9bac;
  --accent:    #38bdf8;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.22);
  --red: #f1705a; --orange: #e89a4a; --yellow: #ecc049; --green: #4cd08a; --blue: #38bdf8; --purple: #b07fe0;
}
[data-bs-theme="light"] {
  --bg:        #f7f9fb;
  --surface:   #ffffff;
  --surface-2: #f0f3f7;
  --border:    #e3e8ee;
  --text:      #14222f;
  --muted:     #5d6b7a;
  --accent:    #0284c7;
  --shadow:    0 1px 2px rgba(20,40,60,.06), 0 10px 28px rgba(20,40,60,.07);
  --red: #d83a22; --orange: #c0741b; --yellow: #b8901a; --green: #178a52; --blue: #0284c7; --purple: #7c4dbd;
}

/* ---- Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
section[id], header[id] { scroll-margin-top: 78px; }
.container { max-width: 1120px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; }

/* color helpers */
.txt-red {color:var(--red);} .txt-orange {color:var(--orange);} .txt-yellow {color:var(--yellow);}
.txt-green {color:var(--green);} .txt-blue {color:var(--accent);} .txt-purple {color:var(--purple);}

/* ---- Badge pills (subtle, tinted) --------------------------------------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .02em;
  padding: 4px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-pill--danger,.badge-pill--red { color: var(--red);   background: color-mix(in srgb, var(--red) 12%, transparent);    border-color: color-mix(in srgb, var(--red) 28%, transparent); }
.badge-pill--orange { color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); border-color: color-mix(in srgb, var(--orange) 28%, transparent); }
.badge-pill--yellow { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 14%, transparent); border-color: color-mix(in srgb, var(--yellow) 30%, transparent); }
.badge-pill--green  { color: var(--green);  background: color-mix(in srgb, var(--green) 12%, transparent);  border-color: color-mix(in srgb, var(--green) 28%, transparent); }
.badge-pill--blue   { color: var(--blue);   background: color-mix(in srgb, var(--blue) 12%, transparent);   border-color: color-mix(in srgb, var(--blue) 28%, transparent); }
.badge-pill--purple { color: var(--purple); background: color-mix(in srgb, var(--purple) 12%, transparent); border-color: color-mix(in srgb, var(--purple) 28%, transparent); }

/* ---- Navbar (fixed) ------------------------------------------------------ */
.site-nav {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: .55rem; padding-bottom: .55rem;
}
.site-nav__brand { font-weight: 700; font-size: 16px; color: var(--text); display: flex; align-items: center; gap: 9px; }
.site-nav__brand:hover { color: var(--accent); text-decoration: none; }
.site-nav__brand i { color: var(--accent); }
.site-nav .nav-link {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: .35rem .68rem; border-radius: 7px; transition: color .15s, background-color .15s;
}
.site-nav .nav-link:hover { color: var(--text); }
.site-nav .nav-link.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.navbar-toggler { border: 1px solid var(--border); color: var(--text); padding: .3rem .55rem; }
.navbar-toggler:focus { box-shadow: none; }

/* theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle__sun { display: none; }
[data-bs-theme="light"] .theme-toggle__moon { display: none; }
[data-bs-theme="light"] .theme-toggle__sun { display: inline; }
@media (max-width: 991.98px) { .theme-toggle { margin-top: .6rem; } }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -30%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 62%);
}
.hero__inner { position: relative; padding: clamp(110px, 13vw, 160px) 16px clamp(56px, 7vw, 88px); text-align: center; }
.hero__title {
  font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; line-height: 1.08;
  margin: 20px auto 0; max-width: 18ch;
}
.hero__title .accent { color: var(--accent); }
.hero__subhead { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 64ch; margin: 22px auto 0; }
.hero__stats { max-width: 900px; margin: 46px auto 0; }
.hero__scroll {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 42px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 11px 24px; border-radius: 9px; transition: background-color .2s;
}
.hero__scroll:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); text-decoration: none; }
.hero__scroll i { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(4px);} }

/* ---- Stat cards ---------------------------------------------------------- */
.stat {
  height: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 16px; text-align: center;
}
.stat__val { font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.stat__label { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 60px) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 56px); text-align: center; }
.section-head__title { font-size: clamp(27px, 3.4vw, 38px); margin: 0; }
.section-head__intro { color: var(--muted); font-size: 16.5px; margin-top: 14px; }

/* ---- Callout ------------------------------------------------------------- */
.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: color-mix(in srgb, var(--red) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--red) 24%, transparent);
  border-radius: 14px; padding: 24px 26px;
}
.callout__icon { color: var(--red); font-size: 24px; margin-top: 4px; flex-shrink: 0; }
.callout__title { font-size: 20px; margin: 0 0 6px; }
.callout__body { margin: 0; color: var(--text); }
.callout--warn {
  background: color-mix(in srgb, var(--orange) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--orange) 28%, transparent);
}
.callout--warn .callout__icon { color: var(--orange); }

/* ---- Step cards (how it works) ------------------------------------------- */
.step-card {
  height: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 24px; transition: box-shadow .2s, transform .2s;
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.step-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-card__num {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.step-card__icon { color: var(--muted); font-size: 19px; }
.step-card__title { font-size: 18px; margin: 0 0 8px; }
.step-card__text { color: var(--muted); font-size: 15px; margin: 0; }

/* ---- Generic minimal card ----------------------------------------------- */
.flag-card, .entity-card, .person-card {
  height: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 24px; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.flag-card:hover, .entity-card:hover, .person-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.flag-card__icon {
  width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); margin-bottom: 16px;
}
.flag-card__title { font-size: 18px; margin: 0 0 8px; }
.flag-card__text { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---- Evidence cards ------------------------------------------------------ */
.evidence-card {
  height: 100%; margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.evidence-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.evidence-card__media { position: relative; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.evidence-card__media img { width: 100%; height: 300px; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.evidence-card__media:hover img { transform: scale(1.03); }
.evidence-card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(4px); }
.evidence-card__zoom {
  position: absolute; bottom: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-size: 14px; backdrop-filter: blur(4px);
}
.evidence-card__body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.evidence-card__title { font-size: 19px; margin: 0 0 10px; }
.evidence-card__desc { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }
.evidence-card__source { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.evidence-card__source i { color: var(--accent); margin-right: 5px; }

/* ---- Report (PDF) cards -------------------------------------------------- */
.report-card {
  height: 100%; display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 22px; color: var(--text); transition: box-shadow .2s, border-color .2s, transform .2s;
}
.report-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.report-card__icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent);
}
.report-card__icon--accent { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.report-card__body { display: flex; flex-direction: column; min-width: 0; }
.report-card__kicker { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--accent); margin-bottom: 4px; }
.report-card__title { font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.report-card__desc { color: var(--muted); font-size: 14.5px; margin: 6px 0 14px; }
.report-card__meta { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.report-card__download { color: var(--accent); font-weight: 600; font-size: 14px; }
.report-card__size { color: var(--muted); font-size: 13px; }

/* ---- Review cards -------------------------------------------------------- */
.review-card {
  height: 100%; margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 28px; display: flex; flex-direction: column;
}
.review-card__stars { color: var(--yellow); font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; }
.review-card__stars .fa-regular { color: var(--border); }
.review-card__quote {
  margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: var(--text);
  font-style: italic;
}
.review-card__foot { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.review-card__author { font-weight: 700; font-size: 15px; }
.review-card__meta { font-size: 13px; color: var(--muted); }
.review-card__source { color: var(--accent); font-weight: 600; }

/* ---- Entity & person cards ----------------------------------------------- */
.entity-card__head, .person-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.entity-card__name, .person-card__name { font-size: 20px; margin: 0; }
.entity-card__role, .person-card__role { font-size: 13px; color: var(--accent); font-weight: 600; margin: 0 0 12px; }
.entity-card__desc, .person-card__desc { color: var(--muted); font-size: 15px; margin: 0; }
.person-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag { font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); padding: 3px 10px; border-radius: 999px; }

/* ---- Timeline ------------------------------------------------------------ */
.timeline { list-style: none; position: relative; max-width: 720px; margin: 0 auto; padding: 0 0 0 32px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -32px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.timeline__dot--red{background:var(--red);} .timeline__dot--orange{background:var(--orange);} .timeline__dot--yellow{background:var(--yellow);}
.timeline__dot--green{background:var(--green);} .timeline__dot--blue{background:var(--accent);}
.timeline__date { font-size: 13px; color: var(--accent); font-weight: 600; }
.timeline__title { font-size: 18px; margin: 3px 0 6px; }
.timeline__body { color: var(--muted); font-size: 15px; margin: 0; }

/* ---- Sources ------------------------------------------------------------- */
.source-list { list-style: none; padding: 0; max-width: 820px; margin: 0 auto; }
.source-list__item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 12px; }
.source-list__item i { color: var(--accent); margin-top: 6px; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 16px 44px; text-align: center; }
.footer__tagline { font-weight: 700; font-size: 18px; margin: 0 0 18px; }
.footer__links { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer__contact { margin: 0 0 22px; }
.footer__contact i { color: var(--accent); margin-right: 6px; }
.footer__disclaimer { max-width: 820px; margin: 0 auto 22px; font-size: 13px; line-height: 1.7; color: var(--muted); border-top: 1px solid var(--border); padding-top: 22px; }
.footer__copy { font-size: 13px; color: var(--muted); margin: 0; }

/* ---- Lightbox ------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(4,7,10,.9); backdrop-filter: blur(6px); padding: 40px 20px; }
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: 1000px; max-height: 100%; text-align: center; overflow: auto; }
.lightbox__figure img { max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 10px; }
.lightbox__figure figcaption { margin-top: 16px; color: #fff; font-weight: 600; font-size: 17px; }
.lightbox__close { position: absolute; top: 16px; right: 22px; background: none; border: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: .85; }
.lightbox__close:hover { opacity: 1; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 575px) {
  .evidence-card__media img { height: 230px; }
  .callout { flex-direction: column; gap: 12px; }
}
