/* Blog styling — mirrors the index.html design system exactly */
:root {
  --green: #1db87a;
  --green-dim: rgba(29,184,122,0.12);
  --gold: #d6b15e;
  --gold-rgb: 214,177,94;
  --gold-soft: rgba(214,177,94,0.76);
  --gold-dim: rgba(214,177,94,0.16);
  --ink: #f7fff9;
  --muted: rgba(247,255,250,0.82);
  --muted-soft: rgba(247,255,250,0.68);
  --bg: #04080a;
  --progress: 0;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-width: 320px; overflow-x: hidden;
  background:
    radial-gradient(ellipse at 75% 0%, rgba(29,184,122,0.11), transparent 38rem),
    radial-gradient(ellipse at 10% 60%, rgba(10,80,50,0.14), transparent 30rem),
    linear-gradient(180deg, #030608 0%, #050c09 50%, #030608 100%);
}
a { color: inherit; text-decoration: none; }

/* ── VIDEO BACKGROUND (injected by blog.js) ── */
.vid-bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.vid-bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; will-change: opacity;
  transition: opacity 1.2s ease;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,6,8,0.88) 0%, rgba(3,6,8,0.5) 40%, rgba(3,6,8,0.3) 70%, rgba(3,6,8,0.7) 100%),
    linear-gradient(180deg, rgba(3,6,8,0.72) 0%, rgba(3,6,8,0.35) 30%, rgba(3,6,8,0.5) 60%, rgba(3,6,8,0.85) 100%);
}
.liquid {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(29,184,122,0.14), transparent 20rem),
    radial-gradient(ellipse at 88% 75%, rgba(10,80,50,0.12), transparent 18rem);
  mix-blend-mode: screen; opacity: 0.9; filter: blur(10px);
}

/* ── GLASS ── */
.glass {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3,6,8,0.42), rgba(3,6,8,0.28)),
    rgba(235,255,248,0.045);
  border: 1px solid var(--gold-dim);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 60px rgba(0,0,0,0.24);
}
.glass::before {
  position: absolute; inset: 0; z-index: 1; content: ""; border-radius: inherit; padding: 1px;
  background: linear-gradient(148deg,
    rgba(255,244,205,0.36) 0%, rgba(255,255,255,0.1) 20%,
    rgba(var(--gold-rgb),0.24) 44%, rgba(255,255,255,0) 58%,
    rgba(var(--gold-rgb),0.18) 80%, rgba(255,244,205,0.34) 100%);
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass > * { position: relative; z-index: 2; }

/* ── NAV (matches index) ── */
@keyframes navDrop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.2rem clamp(1.2rem,4vw,3.5rem);
  transition: padding .45s ease, background .45s ease, backdrop-filter .45s ease, border-color .45s ease;
  animation: navDrop .7s cubic-bezier(0.22,1,0.36,1) .2s both;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 0.85rem clamp(1.2rem,4vw,3.5rem);
  background: rgba(4,8,10,0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: var(--gold-dim);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; justify-self: start; }
.brand-mark {
  width: 2.7rem; height: 2.7rem; display: grid; place-items: center; flex-shrink: 0;
  transition: transform .3s cubic-bezier(0.22,1,0.36,1);
}
.brand:hover .brand-mark { transform: scale(1.06) rotate(-3deg); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.brand-text { display: flex; flex-direction: column; gap: 0.05rem; }
.brand-text strong {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; line-height: 1; color: var(--ink);
  white-space: nowrap;
}
.brand-text span {
  font-size: 0.6rem; font-weight: 400; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted-soft); line-height: 1;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(1.4rem,3vw,2.6rem); justify-self: center; }
.nav-links a {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(247,255,250,0.78); position: relative; padding-bottom: 2px; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 0.7rem; }
.nav-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); padding: 0.6rem 1.3rem;
  border: 1px solid rgba(var(--gold-rgb),0.5); border-radius: 999px;
  position: relative; overflow: hidden; transition: color .3s, border-color .3s;
}
.nav-cta-btn::before {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: translateY(101%); transition: transform .35s cubic-bezier(0.22,1,0.36,1);
}
.nav-cta-btn:hover { color: #030608; border-color: var(--gold); }
.nav-cta-btn:hover::before { transform: translateY(0); }
.nav-cta-btn span { position: relative; z-index: 1; }

/* ── LANGUAGE SWITCHER (matches index) ── */
.lang-switch { position: relative; display: inline-flex; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(var(--gold-rgb),0.24);
  color: var(--muted); padding: 0.5rem 0.85rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; cursor: pointer;
  font-family: var(--font-body); transition: color .2s, border-color .2s;
}
.lang-btn:hover { color: var(--ink); border-color: rgba(var(--gold-rgb),0.5); }
.lang-btn svg { width: 0.9rem; height: 0.9rem; stroke: currentColor; fill: none; stroke-width: 1.6; flex-shrink: 0; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 200;
  min-width: 175px; border-radius: 16px; padding: 0.45rem;
  display: none; flex-direction: column; gap: 2px;
}
.lang-menu.open { display: flex; }
.lang-menu a {
  text-align: left; color: var(--muted); font-size: 0.8rem;
  padding: 0.55rem 0.8rem; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background .2s, color .2s;
}
.lang-menu a:hover { background: rgba(var(--gold-rgb),0.1); color: var(--ink); }
.lang-menu a.active { color: var(--gold); }
.lang-menu .lang-code { font-size: 0.62rem; letter-spacing: 0.14em; color: var(--muted-soft); }

/* ── ARTICLE ── */
main { position: relative; z-index: 4; }
.wrap {
  position: relative; z-index: 4;
  max-width: 46rem; margin: 0 auto;
  padding: clamp(7rem,12vw,9rem) clamp(1.2rem,5vw,2rem) 4rem;
}
.crumb { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 1.5rem; }
.crumb a:hover { color: var(--gold); }
.tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(var(--gold-rgb),0.3); border-radius: 999px;
  padding: 0.3rem 0.8rem; margin-bottom: 1.2rem;
}
h1, h2, h3 { margin: 0 0 1rem; font-family: var(--font-body); letter-spacing: -0.015em; }
h1 {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem,4.4vw,3.1rem); line-height: 1.03;
  text-shadow: 0 2px 24px rgba(0,0,0,0.72);
}
.meta { font-size: 0.76rem; color: var(--muted-soft); margin-bottom: 2.5rem; }
.lead {
  font-size: clamp(1.02rem,1.5vw,1.18rem); line-height: 1.75; color: rgba(247,255,250,0.9);
  padding-bottom: 1.8rem; margin: 0 0 2rem;
  border-bottom: 1px solid rgba(var(--gold-rgb),0.16);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
article h2 {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.2rem,2.2vw,1.6rem); margin: 3rem 0 1rem; line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
article h3 { font-size: 1.02rem; font-weight: 700; margin: 2rem 0 0.6rem; color: var(--ink); text-transform: none; }
article p { line-height: 1.85; color: var(--muted); margin: 0 0 1.1rem; font-size: 0.97rem; }
article ul, article ol { color: var(--muted); line-height: 1.85; padding-left: 1.3rem; margin: 0 0 1.4rem; font-size: 0.97rem; }
article li { margin-bottom: 0.5rem; }
article strong { color: var(--ink); font-weight: 600; }
article a.inline { color: var(--gold); border-bottom: 1px solid rgba(var(--gold-rgb),0.4); transition: border-color .2s; }
article a.inline:hover { border-color: var(--gold); }

/* callouts */
.note {
  border-left: 3px solid var(--gold);
  background: rgba(var(--gold-rgb),0.07);
  border-radius: 0 16px 16px 0; padding: 1.1rem 1.3rem; margin: 1.8rem 0;
  backdrop-filter: blur(8px);
}
.note p { margin: 0; font-size: 0.9rem; }
.note strong { color: var(--gold); }
.warn { border-left-color: #e0645a; background: rgba(224,100,90,0.09); }
.warn strong { color: #f08a80; }

/* table */
.tbl-wrap { overflow-x: auto; border-radius: 16px; margin: 1.6rem 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 32rem; }
.tbl th, .tbl td { text-align: left; padding: 0.8rem 0.95rem; border-bottom: 1px solid rgba(var(--gold-rgb),0.14); }
.tbl th { color: var(--gold); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.tbl td { color: var(--muted); vertical-align: top; }

/* CTA */
.cta-box {
  margin: 3.5rem 0 0; padding: clamp(1.6rem,3vw,2.4rem);
  border-radius: 24px; text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(3,6,8,0.42), rgba(3,6,8,0.28)), rgba(235,255,248,0.045);
  border: 1px solid var(--gold-dim);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 60px rgba(0,0,0,0.24);
}
.cta-box h2 { margin: 0 0 0.6rem; font-size: clamp(1.2rem,2.4vw,1.7rem); text-transform: uppercase; font-weight: 800; }
.cta-box p { margin: 0 0 1.4rem; font-size: 0.92rem; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(3,6,8,0.42), rgba(3,6,8,0.24)), rgba(235,255,248,0.055);
  border: 1px solid rgba(var(--gold-rgb),0.4); color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--gold); color: #04080a; border-color: var(--gold); }

/* ── GUIDES HUB ── */
.guides-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.2rem; margin-top: 2.5rem;
}
.guide-card {
  display: flex; flex-direction: column; gap: 0.7rem;
  padding: 1.5rem; border-radius: 20px;
  background: rgba(235,255,248,0.03);
  border: 1px solid rgba(var(--gold-rgb),0.16);
  backdrop-filter: blur(10px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb),0.45);
  background: rgba(var(--gold-rgb),0.06);
}
.guide-card .tag { margin-bottom: 0; align-self: flex-start; }
.guide-card h2 {
  font-size: 1.05rem; margin: 0; line-height: 1.25;
  font-weight: 700; text-transform: none; letter-spacing: -0.01em; color: var(--ink);
  text-shadow: none;
}
.guide-card p { font-size: 0.86rem; color: var(--muted); margin: 0; line-height: 1.7; }
.guide-read {
  margin-top: auto; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.guide-card:hover .guide-read { color: var(--ink); }

/* related */
.related { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(var(--gold-rgb),0.16); }
.related h2 { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.2rem; font-weight: 700; }
.related a {
  display: block; padding: 1rem 1.2rem; border-radius: 16px; margin-bottom: 0.7rem;
  font-size: 0.9rem; color: var(--muted);
  background: rgba(235,255,248,0.03);
  border: 1px solid rgba(var(--gold-rgb),0.16);
  backdrop-filter: blur(10px);
  transition: border-color .25s, color .25s, transform .25s, background .25s;
}
.related a:hover {
  color: var(--ink); transform: translateX(4px);
  border-color: rgba(var(--gold-rgb),0.42); background: rgba(var(--gold-rgb),0.06);
}
.tbl-wrap {
  background: rgba(3,6,8,0.4); border: 1px solid var(--gold-dim);
  backdrop-filter: blur(10px);
}

/* footer */
footer {
  position: relative; z-index: 4;
  padding: 2rem clamp(1.2rem,5vw,3.5rem);
  border-top: 1px solid rgba(var(--gold-rgb),0.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247,255,250,0.55);
}
.legal-note {
  position: relative; z-index: 4;
  max-width: 46rem; margin: 2.5rem auto 0; padding: 0 clamp(1.2rem,5vw,2rem);
  font-size: 0.72rem; line-height: 1.8; color: rgba(247,255,250,0.5);
}

/* reveal */
[data-r] { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
[data-r].vis { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid rgba(var(--gold-rgb),0.85); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 900px) { .nav-links { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-r] { opacity: 1; transform: none; }
}
