:root {
  color-scheme: light;
  --bg: #fbfbf7;
  --surface: #ffffff;
  --surface-2: #eeeeea;
  --text: #111111;
  --muted: #73786f;
  --line: #dcddd6;
  --line-strong: #c9cbc1;
  --accent: #111111;
  --sidebar: #f0f1ee;
  --ad: #f8f8f5;
  --shadow: 0 18px 55px rgba(20, 20, 16, 0.08);
  --sidebar-w: 308px;
  --ad-w: 284px;
  --content-w: 820px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1f211f;
  --surface: #262923;
  --surface-2: #30342c;
  --text: #f6f4ed;
  --muted: #b9bbb1;
  --line: #44483e;
  --line-strong: #5a5f52;
  --accent: #f6f4ed;
  --sidebar: #232620;
  --ad: #282b25;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 50; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 16px; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  overflow-y: auto;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 32px 28px 34px;
  z-index: 20;
}
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: 210px; height: auto; }
.logo-dark, [data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.theme-toggle { margin-left: auto; flex: 0 0 auto; }
.search-form { position: relative; margin: 22px 0 18px; height: 40px; }
.search-form span {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}
.search-form input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px 0 40px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.search-results {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
}
.search-results a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; line-height: 1.35; }
.search-results a:hover { background: var(--surface-2); }
.start-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  margin-bottom: 18px;
}
.start-link:hover { background: rgba(155, 28, 31, 0.07); color: #7d2e31; }
.nav-label { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; margin: 0 0 10px; }
.nav-group { border-top: 1px solid var(--line); padding: 16px 0; }
.nav-group h2 { margin: 0 0 8px; font-size: 14px; line-height: 1.25; }
.nav-group a { display: block; padding: 6px 8px 6px 12px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.45; }
.nav-group a:hover { background: var(--surface); color: var(--text); }

.mobile-header { display: none; }
.content-shell {
  margin-left: var(--sidebar-w);
  margin-right: 0;
  min-height: 100vh;
  padding: 56px 32px 90px;
}
.page {
  width: min(var(--content-w), calc(100vw - var(--sidebar-w) - 64px));
  max-width: var(--content-w);
  margin: 0 auto;
}
.eyebrow, .breadcrumbs { color: var(--muted); font-weight: 800; font-size: 14px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: 0; }
h1 { font-size: clamp(38px, 4.6vw, 60px); margin: 0 0 28px; font-weight: 800; }
.post-page h1 { font-size: clamp(34px, 4vw, 52px); margin: 0; }
h2 { font-size: clamp(26px, 3vw, 35px); margin: 48px 0 14px; font-weight: 800; }
h3 { font-size: 18px; margin: 28px 0 6px; font-weight: 800; }
p { margin: 0 0 22px; color: color-mix(in srgb, var(--text) 88%, var(--muted)); font-size: 17px; line-height: 1.84; }
.rule { height: 1px; background: var(--line); margin: 28px 0; }
.home-banner { margin: 0; }
.home-banner img { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow); }
.hub-section { border-top: 1px solid var(--line); padding-top: 24px; }
.hub-links { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.hub-links a { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.45; color: color-mix(in srgb, var(--text) 84%, var(--muted)); }
.hub-links span { color: var(--muted); }

.post-header { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.breadcrumbs { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 700; }
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.download-button span { font-size: 20px; line-height: 1; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 34px 0 34px; border-radius: 8px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.direct-answers-box {
  margin: 44px 0 64px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.direct-answers-box h2 { margin-top: 0; font-size: 20px; text-transform: uppercase; letter-spacing: .08em; }
.direct-answers-box h3 { margin-top: 32px; }
.post-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); margin-top: 76px; padding-top: 28px; }
.post-pagination a { font-weight: 800; text-decoration: none; }
.post-pagination a:last-child { text-align: right; }

.ad-rail {
  position: fixed;
  right: 28px;
  top: 56px;
  bottom: 56px;
  width: calc(var(--ad-w) - 56px);
  display: none;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: var(--ad);
  font-weight: 800;
}
.mobile-ad { display: none; }
body.ads-enabled .content-shell { margin-right: var(--ad-w); }
body.ads-enabled .page { width: min(var(--content-w), calc(100vw - var(--sidebar-w) - var(--ad-w) - 88px)); }
body.ads-enabled .ad-rail { display: grid; }

@media (max-width: 1100px) {
  .content-shell { margin-right: 0; padding-right: clamp(24px, 5vw, 64px); }
  body.ads-enabled .content-shell { margin-right: 0; }
  body.ads-enabled .page { width: min(var(--content-w), calc(100vw - var(--sidebar-w) - 64px)); }
  .ad-rail { display: none; }
}

@media (max-width: 820px) {
  body { font-size: 17px; padding-bottom: 0; }
  body.ads-enabled { padding-bottom: 100px; }
  .sidebar {
    transform: translateX(-105%);
    transition: transform .2s ease;
    width: min(88vw, 360px);
    top: 86px;
    box-shadow: var(--shadow);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar .brand-row { display: none; }
  .mobile-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 16px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 30;
  }
  .mobile-header .brand img { width: min(58vw, 240px); }
  .mobile-actions { display: flex; align-items: center; gap: 8px; }
  .content-shell {
    margin: 0;
    padding: 34px 18px 54px;
    width: 100%;
    overflow-x: hidden;
  }
  body.ads-enabled .content-shell { padding-bottom: 132px; }
  .page, body.ads-enabled .page { width: 100%; max-width: none; }
  h1 { font-size: clamp(34px, 12vw, 50px); margin: 0 0 24px; overflow-wrap: anywhere; }
  .post-page h1 { font-size: clamp(30px, 10vw, 44px); }
  h2 { font-size: clamp(26px, 8vw, 35px); margin-top: 44px; }
  h3 { font-size: clamp(22px, 6vw, 28px); }
  .post-actions { display: grid; align-items: start; margin-top: 20px; }
  .download-button { justify-content: center; width: 100%; min-height: 42px; }
  .direct-answers-box { padding: 22px; margin: 34px 0 48px; }
  .hub-links a { grid-template-columns: 24px 1fr; font-size: 17px; }
  .post-pagination { grid-template-columns: 1fr; }
  .post-pagination a:last-child { text-align: left; }
  .mobile-ad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    display: none;
    place-items: center;
    border: 0;
    border-top: 1px solid var(--line-strong);
    border-radius: 0;
    background: var(--ad);
    color: var(--muted);
    font-weight: 800;
    z-index: 40;
  }
  body.ads-enabled .mobile-ad { display: grid; }
}
