:root {
  --ink: #0b1b2b;
  --sea: #0d4f8b;
  --sea-deep: #08365e;
  --sun: #f0b429;
  --sand: #f5f1e8;
  --paper: #ffffff;
  --line: #d8dde3;
  --muted: #5a6a78;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--sea-deep);
  color: var(--paper);
  padding: 14px 0;
  border-bottom: 3px solid var(--sun);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 22px;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.site-nav a {
  color: var(--paper);
  margin-left: 22px;
  font-size: 15px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: var(--paper);
  padding: 60px 0 50px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero p.lede {
  font-size: 19px;
  max-width: 720px;
  opacity: 0.92;
  margin: 0 0 28px;
}

/* Search */
.search-box {
  background: var(--paper);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  gap: 6px;
  max-width: 640px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.search-box input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  border-radius: 6px;
  color: var(--ink);
}
.search-box button {
  background: var(--sun);
  color: var(--ink);
  border: 0;
  padding: 0 22px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.search-box button:hover { background: #e0a519; }
.search-results {
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  margin-top: 10px;
  max-width: 640px;
  overflow: hidden;
}
.search-results:empty { display: none; }
.search-results a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--sand); text-decoration: none; }
.search-results .hit-title { font-weight: 600; }
.search-results .hit-snippet { font-size: 14px; color: var(--muted); margin-top: 2px; }
.search-empty { padding: 14px 16px; color: var(--muted); font-size: 15px; }

/* Section */
section { padding: 50px 0; }
section h2 {
  font-size: 28px;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
section h3 {
  font-size: 21px;
  margin: 28px 0 10px;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.video-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-decoration: none;
}
.video-card .thumb {
  aspect-ratio: 16 / 9;
  background: #ddd center/cover no-repeat;
  position: relative;
}
.video-card .thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.video-card .meta { padding: 14px 16px; }
.video-card .meta h3 { margin: 0 0 4px; font-size: 17px; color: var(--ink); }
.video-card .meta p { margin: 0; font-size: 14px; color: var(--muted); }

/* Companion page */
.companion {
  padding: 32px 0 60px;
}
.companion .breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.companion h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.2;
}
.companion .subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 36px;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.callout {
  background: var(--sand);
  border-left: 4px solid var(--sun);
  padding: 18px 22px;
  border-radius: 6px;
  margin: 24px 0;
}
.callout strong { color: var(--sea-deep); }

.verdict {
  background: var(--sea-deep);
  color: var(--paper);
  padding: 24px 28px;
  border-radius: 10px;
  font-size: 19px;
  margin: 30px 0;
}
.verdict strong { color: var(--sun); display: block; font-size: 14px; letter-spacing: 0.08em; margin-bottom: 8px; text-transform: uppercase; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 22px;
  color: var(--sea);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 4px; color: var(--ink); }

.resources ul { list-style: none; padding: 0; }
.resources li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.resources li:last-child { border-bottom: 0; }
.resources .disclosure {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 14px;
}

.community-cta {
  background: linear-gradient(135deg, #1877f2 0%, #0d5cbd 100%);
  color: var(--paper);
  padding: 28px;
  border-radius: 10px;
  margin: 40px 0;
  text-align: center;
}
.community-cta h3 { margin: 0 0 6px; color: var(--paper); }
.community-cta a {
  display: inline-block;
  background: var(--paper);
  color: #1877f2;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 12px;
}
.community-cta a:hover { text-decoration: none; }

/* Email capture */
.email-capture {
  background: var(--sand);
  padding: 36px 28px;
  border-radius: 10px;
  text-align: center;
}
.email-capture h2 { margin-top: 0; }
.email-capture form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 18px auto 0;
}
.email-capture input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}
.email-capture button {
  background: var(--sea);
  color: var(--paper);
  border: 0;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.email-capture button:hover { background: var(--sea-deep); }
.email-capture .note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #b8c4d0;
  padding: 30px 0;
  font-size: 14px;
  margin-top: 40px;
}
.site-footer a { color: var(--sun); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 30px; }
  .companion h1 { font-size: 26px; }
  section { padding: 36px 0; }
  .search-box button { padding: 0 14px; font-size: 14px; }
  .email-capture form { flex-direction: column; }
  .email-capture button { padding: 12px; }
}
