:root {
  color-scheme: light;
  --ink: #152238;
  --ink-soft: #4f5b6d;
  --navy: #101b2a;
  --navy-2: #17263a;
  --paper: #f5f7f5;
  --white: #ffffff;
  --line: #dbe2e3;
  --mint: #c7f277;
  --teal: #167c72;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.65; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { line-height: 1.15; letter-spacing: -.04em; }
h1 { font-size: clamp(3.25rem, 7vw, 6.2rem); }
h2 { font-size: clamp(2rem, 3vw, 3.1rem); }
h3 { line-height: 1.3; }
:focus-visible { outline: 3px solid #d88636; outline-offset: 3px; }
.wrap, .header-inner, .nav-inner, .footer-inner { max-width: 1240px; padding-inline: 28px; margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -70px; z-index: 30; background: white; padding: 8px 12px; }
.skip-link:focus { top: 12px; }
.eyebrow, .topic-index, .section-number, .editorial-badge { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: var(--teal); }

.site-header { background: var(--navy); color: white; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-size: 1.25rem; font-weight: 800; text-decoration: none; letter-spacing: -.025em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--mint); color: var(--navy); letter-spacing: -.12em; font-weight: 900; }
.brand-mark span { color: var(--teal); margin-left: 1px; }
.header-note { color: #aab9c7; font-size: .9rem; }
.site-nav { border-top: 1px solid #2b3a4d; overflow-x: auto; scrollbar-width: thin; }
.nav-inner { display: flex; gap: 32px; min-width: max-content; }
.nav-link { display: inline-flex; align-items: center; min-height: 54px; border-bottom: 3px solid transparent; color: #c8d1db; text-decoration: none; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: white; border-color: var(--mint); }
.mobile-topics { display: none; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, .65fr); gap: 7vw; padding-block: clamp(70px, 10vw, 132px); }
.hero-copy h1 { margin-block: 22px 26px; max-width: 900px; }
.hero-copy em { color: var(--teal); font-style: normal; }
.hero-deck { max-width: 680px; color: var(--ink-soft); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.6; }
.text-link, .jump-link { display: inline-block; font-weight: 750; text-decoration-thickness: 2px; text-underline-offset: 5px; color: var(--teal); }
.hero-stat { align-self: end; padding: 32px; border-radius: 22px; color: white; background: var(--navy); box-shadow: 16px 16px 0 #dfe8de; }
.hero-stat span { display: block; font-size: 4.2rem; line-height: 1; font-weight: 800; letter-spacing: -.08em; color: var(--mint); }
.hero-stat p { margin: 2px 0 23px; font-weight: 650; }
.hero-stat small { display: block; color: #bdcbd5; line-height: 1.5; }
.home-topics { padding-bottom: 96px; }
.home-ad { margin-bottom: 80px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.topic-card { min-height: 274px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: white; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.topic-card:hover { transform: translateY(-4px); border-color: #89a79c; box-shadow: 0 12px 28px #15223812; }
.topic-index { color: var(--teal); }
.topic-card h2 { font-size: 1.85rem; margin-block: 24px 8px; }
.topic-card p { color: var(--ink-soft); margin-bottom: 24px; }
.topic-action { margin-top: auto; font-size: .84rem; font-weight: 750; color: var(--teal); }
.home-standards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border-top: 1px solid var(--line); padding-block: 72px 96px; }
.home-standards h2 { max-width: 460px; }
.home-standards > p { max-width: 560px; color: var(--ink-soft); font-size: 1.22rem; line-height: 1.7; }

.category-page { padding-block: 65px 100px; }
.category-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 47px; border-bottom: 1px solid var(--line); }
.category-heading h1 { margin: 8px 0 15px; }
.category-deck { max-width: 690px; margin-bottom: 0; font-size: 1.22rem; color: var(--ink-soft); }
.jump-link { flex: 0 0 auto; margin-bottom: 8px; }
.category-columns { display: grid; grid-template-columns: minmax(0, 780px) minmax(220px, 1fr); gap: 65px; padding-block: 57px 92px; }
.guide-intro { padding-bottom: 36px; }
.editorial-badge { display: inline-block; padding: 8px 10px; border-radius: 5px; background: #e6ecea; color: #47635b; font-size: .67rem; }
.guide-intro h2 { margin-block: 22px; }
.guide-intro p { font-size: 1.19rem; color: #35485b; }
.guide-section { display: grid; grid-template-columns: 43px 1fr; gap: 19px; padding-block: 26px; border-top: 1px solid var(--line); }
.section-number { color: var(--teal); padding-top: 5px; }
.guide-section h2 { font-size: 1.48rem; letter-spacing: -.025em; margin-bottom: 10px; }
.guide-section p { margin-bottom: 0; color: var(--ink-soft); }
.checklist { margin-top: 20px; padding: 25px 28px; border-left: 5px solid var(--teal); background: #e9f0eb; }
.checklist h2, .sources h2 { font-size: 1.2rem; letter-spacing: -.015em; }
.checklist ul, .sources ul { margin: 0; padding-left: 22px; }
.checklist li + li, .sources li + li { margin-top: 8px; }
.sources { margin-top: 37px; }
.sources a { color: var(--teal); text-underline-offset: 3px; }
.guide-aside { padding-top: 5px; }
.aside-panel { position: sticky; top: 25px; padding: 25px; border-radius: 15px; color: white; background: var(--navy-2); }
.aside-panel .eyebrow { color: var(--mint); }
.aside-panel p { margin: 15px 0 0; font-size: 1.03rem; }
.ad-slot { min-height: 250px; }
.guide-aside .ad-slot { margin-top: 25px; }
.ad-slot > span { display: block; margin-bottom: 10px; color: #67747b; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.ad-slot > ins.adsbygoogle { width: 100%; }
.video-section { border-top: 2px solid var(--navy); padding-top: 40px; scroll-margin-top: 25px; }
.video-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.video-heading h2 { margin: 0 0 10px; }
.video-heading p:last-child { color: var(--ink-soft); }
.feed-updated { color: var(--ink-soft); font-size: .88rem; text-align: right; }
.video-state { padding: 48px 28px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink-soft); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.video-grid[hidden] { display: none; }
.video-card { display: grid; grid-template-columns: 39% minmax(0, 1fr); gap: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; min-width: 0; }
.video-card.is-playing { display: block; }
.video-card.is-playing .video-card-content { margin-top: 15px; }
.video-open { position: relative; display: block; width: 100%; align-self: start; padding: 0; border: 0; border-radius: 8px; background: #d9e3e6; overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; }
.video-open img { width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 6px; background: #0d1c2ae8; color: white; font-size: .85rem; font-weight: 800; }
.video-open:hover .play-icon { background: var(--teal); }
.video-rank { color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .08em; }
.video-card h3 { font-size: 1.12rem; margin: 5px 0 9px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.video-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ink-soft); font-size: .89rem; line-height: 1.5; margin-bottom: 10px; }
.video-meta { color: #697580; font-size: .78rem; margin: 0; }
.video-description { margin-top: 11px; color: var(--ink-soft); font-size: .85rem; }
.video-description summary { cursor: pointer; color: var(--teal); font-weight: 700; }
.video-description p { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ranking-note, .stale-note { color: var(--ink-soft); font-size: .9rem; }
.ranking-note { margin-top: 22px; }
.ranking-note a { color: var(--teal); }
.stale-note { padding: 10px 14px; border-left: 3px solid #c77a32; background: #fff4e8; }

.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 0 11px; color: var(--ink-soft); font-size: .84rem; }
.player-toolbar button { flex: 0 0 auto; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); cursor: pointer; }
.inline-player-frame { width: 100%; aspect-ratio: 16 / 9; min-height: 200px; background: #07121d; }
.inline-player-frame iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }

.info-page { min-height: 65vh; max-width: 830px; padding-block: 75px 110px; }
.info-page h1 { margin-block: 10px 34px; }
.info-page p { font-size: 1.1rem; color: #3e4d5d; }
.site-footer { padding: 52px 0 28px; background: var(--navy); color: white; }
.footer-inner { display: flex; justify-content: space-between; gap: 35px; }
.footer-inner strong { font-size: 1.3rem; }
.footer-inner p { color: #b9c5d0; font-size: .9rem; }
.footer-inner nav { display: flex; gap: 24px; flex-wrap: wrap; align-content: start; }
.footer-inner a { color: #d4e1e7; font-size: .9rem; }
.footer-small { max-width: 1240px; margin: 48px auto 0; padding-inline: 28px; color: #91a0af; font-size: .75rem; }

@media (max-width: 950px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-columns { grid-template-columns: 1fr; gap: 24px; }
  .guide-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .aside-panel { position: static; }
  .guide-aside .ad-slot { margin-top: 0; }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .wrap, .header-inner, .nav-inner, .footer-inner { padding-inline: 18px; }
  .header-inner { min-height: 70px; position: relative; }
  .header-note { display: none; }
  .site-nav { display: none; }
  .mobile-topics { display: block; position: absolute; top: 50%; right: 18px; transform: translateY(-50%); }
  .mobile-topics summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid #506078; border-radius: 8px; cursor: pointer; list-style: none; font-size: .9rem; font-weight: 700; }
  .mobile-topics summary::-webkit-details-marker { display: none; }
  .mobile-topics summary::before { content: '☰'; font-size: 1.1rem; line-height: 1; }
  .mobile-topics[open] summary::before { content: '×'; }
  .mobile-topics nav { position: absolute; z-index: 10; top: calc(100% + 15px); right: 0; min-width: 220px; padding: 8px 18px; border: 1px solid #2b3a4d; border-radius: 0 0 10px 10px; background: var(--navy); box-shadow: 0 12px 24px #101b2a33; }
  .mobile-topics .nav-link { display: block; min-height: 0; padding: 11px 0; border-bottom-width: 1px; }
  .home-hero { grid-template-columns: 1fr; gap: 55px; padding-block: 65px 80px; }
  .hero-stat { max-width: 380px; }
  .topic-grid, .home-standards { grid-template-columns: 1fr; }
  .home-topics { padding-bottom: 65px; }
  .topic-card { min-height: 230px; }
  .category-page { padding-block: 45px 75px; }
  .category-heading, .video-heading { display: block; }
  .jump-link { margin-top: 25px; }
  .category-columns { padding-block: 42px 70px; }
  .guide-aside { grid-template-columns: 1fr; }
  .ad-preview { min-height: 180px; }
  .feed-updated { text-align: left; margin-bottom: 20px; }
  .video-card { grid-template-columns: 1fr; gap: 10px; }
  .video-open { max-height: 270px; }
  .footer-inner { display: block; }
  .footer-inner nav { margin-top: 28px; }
  .footer-small { padding-inline: 18px; }
}
