:root {
  --bg: #f4f6ff;
  --bg2: #eceffc;
  --paper: #ffffff;
  --navy: #1c2353;
  --navy2: #2a3270;
  --purple: #4e5fd6;
  --purple2: #6f80f0;
  --gold: #ffd54a;
  --ink: #1c2353;
  --muted: #4a5380;
  --line: #d9def5;
  --placeholder-bg: #fff4c8;
  --placeholder-fg: #6a4b00;
  --radius: 18px;
  --shadow: 0 8px 28px #1c235314;
  --max: 1080px;
  --wide: 720px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Nunito, Ubuntu, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.55;
  font-size: 17px;
}
img, iframe { max-width: 100%; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy2); }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(var(--wide), calc(100% - 32px)); margin: 0 auto; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: #fffffff2;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hbar {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 8px 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy); text-decoration: none; font-weight: 800; font-size: 1.15rem;
}
.logo svg { width: 36px; height: 36px; display: block; }
.logo:hover { color: var(--purple); }
nav.menu { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-left: auto; align-items: center; }
nav.menu a {
  color: var(--navy2); text-decoration: none; font-weight: 700; font-size: 0.95rem;
  padding: 6px 2px;
}
nav.menu a:hover, nav.menu a[aria-current="page"] { color: var(--purple); }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; margin-left: 6px;
}
.lang a {
  padding: 4px 10px; text-decoration: none; color: var(--muted); font-size: 0.82rem; font-weight: 800;
}
.lang a.on { background: var(--purple); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 26px;
  font: inherit; font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 3px 0 #0002;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffe27a; color: var(--navy); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple2); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: none; border: 2px solid var(--line); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.15rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero {
  background: linear-gradient(165deg, #6f80f0 0%, #4e5fd6 55%, #2a3270 100%);
  color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -40px; width: 280px; height: 280px;
  border: 18px solid #ffffff22; border-radius: 50%;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 14px; font-weight: 900; letter-spacing: -0.02em; }
.hero .lead { font-size: 1.15rem; max-width: 38rem; opacity: 0.95; margin: 0 0 28px; }
.hero .btn-gold { box-shadow: 0 4px 16px #0004; }
.kicker { display: inline-block; background: #ffffff24; border-radius: 999px; padding: 4px 12px; font-size: 0.82rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }

section { padding: 56px 0; }
section.alt { background: var(--bg2); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 10px; font-weight: 900; letter-spacing: -0.02em; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 40rem; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--paper); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border: 1px solid #fff;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }

.post-list { display: grid; gap: 16px; }
.post-teaser {
  display: block; background: var(--paper); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  border: 1px solid #fff;
}
.post-teaser:hover { transform: translateY(-1px); }
.post-teaser .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 6px; }
.post-teaser h3 { margin: 0 0 6px; color: var(--navy); }
.post-teaser p { margin: 0; color: var(--muted); }

.page-hero { padding: 36px 0 10px; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--navy2); text-decoration: none; }
.article { padding-bottom: 64px; }
.article .narrow p, .article .narrow li { font-size: 1.05rem; }
.article .narrow h2 { margin-top: 2em; }
.article .narrow h3 { margin-top: 1.4em; }
.article .narrow ul, .article .narrow ol { padding-left: 1.2em; }
.article .narrow table { width:100%; border-collapse:collapse; margin:1.2em 0; font-size:0.98rem; }
.article .narrow th, .article .narrow td { text-align:left; padding:0.5em 0.6em; border-bottom:1px solid #d8deea; vertical-align:top; }
.article .narrow th { color:var(--navy); }
.article .narrow td:last-child, .article .narrow th:last-child { text-align:right; }
.article .narrow blockquote {
  margin: 1.4em 0; padding: 8px 0 8px 16px; border-left: 4px solid var(--gold);
  color: var(--navy2);
}
.meta-line { color: var(--muted); font-size: 0.92rem; margin: 0 0 24px; }
.refs { font-size: 0.95rem; }
.refs li { margin-bottom: 8px; }
.note {
  background: #eef0ff; border-radius: 14px; padding: 14px 16px; color: var(--navy2);
  margin: 1.5em 0;
}
.placeholder {
  display: inline-block; background: var(--placeholder-bg); color: var(--placeholder-fg);
  border: 1px dashed #d6b54a; border-radius: 6px; padding: 0 6px; font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em;
}

.video-short {
  width: min(360px, 100%); margin: 1.2em auto; aspect-ratio: 9 / 16;
  background: #000; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.video-short iframe, .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video { aspect-ratio: 16 / 9; margin: 1.2em 0; border-radius: 16px; overflow: hidden; background: #000; }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cats a, .tag {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--navy2);
  font-size: 0.88rem; font-weight: 700;
}
.cats a.on, .cats a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

.legal h2 { font-size: 1.3rem; }
.legal p, .legal li { color: var(--navy2); }

footer.site {
  background: var(--navy); color: #d7dcf5; padding: 36px 0 24px; margin-top: 16px;
}
footer.site a { color: #fff; }
footer.site .cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  footer.site .cols { grid-template-columns: 2fr 1fr 1fr; }
}
footer.site h2 { font-size: 1rem; color: #fff; margin: 0 0 8px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 0 0 6px; }
.fine { font-size: 0.85rem; opacity: 0.8; margin-top: 28px; }

.empty { color: var(--muted); background: var(--paper); border-radius: var(--radius); padding: 24px; }

@media (max-width: 640px) {
  .hbar { flex-wrap: wrap; }
  nav.menu { margin-left: 0; width: 100%; }
  .hero { padding: 40px 0 48px; }
}

html.flag-off-blog_link .wp-blog{display:none!important}
