/* Shared Delve product and editorial system. Loaded after page-specific styles. */
:root {
  color-scheme: light dark;
  --bg: #fafbfD;
  --bg-soft: #f0f3f8;
  --paper: #172235;
  --paper-dim: #526078;
  --paper-faint: #626f83;
  --rule: #dbe2ec;
  --accent: #235cc5;
  --accent-deep: #15489f;
  --accent-faint: #235cc526;
  --warn: #80570c;
  --surface: #ffffff;
  --nav-surface: #fafbfdf2;
  --action: #205dcc;
  --action-hover: #174daF;
  --measure: 52rem;
  --measure-wide: 76rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d121c;
    --bg-soft: #151e2d;
    --paper: #edf2fa;
    --paper-dim: #b0bbce;
    --paper-faint: #98a6bc;
    --rule: #2a3547;
    --accent: #93bbff;
    --accent-deep: #b8d2ff;
    --accent-faint: #93bbff30;
    --warn: #eac67b;
    --surface: #111927;
    --nav-surface: #0d121cf2;
    --action: #2866d7;
    --action-hover: #3475ed;
  }
}
html { scroll-padding-top: calc(92px + var(--ref-banner-h, 0px)); }
body.premium-site { background: var(--bg); color: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.7; letter-spacing: -.012em; overflow-x: clip; }
body.premium-site::before { display: none; }
body.premium-site main { background: transparent; }
body.premium-site a { color: var(--accent); }
body.premium-site :is(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
body.premium-site .skip-link { z-index: 300; background: var(--paper); color: var(--bg); padding: 12px 20px; }
body.premium-site .reading { max-width: var(--measure); width: 100%; padding-left: 28px; padding-right: 28px; }
body.premium-site article.reading { padding-top: 48px; }
body.premium-site .reading > p, body.premium-site .reading > ul, body.premium-site .reading > ol { line-height: 1.8; color: var(--paper-dim); }
body.premium-site .reading h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -.04em; margin-bottom: 20px; }
body.premium-site .reading h3 { line-height: 1.35; margin: 1.5em 0 .65em; }
body.premium-site code { background: var(--bg-soft); color: var(--accent); overflow-wrap: anywhere; }
body.premium-site pre { max-width: 100%; overflow-x: auto; background: var(--bg-soft); color: var(--paper); border-color: var(--rule); }
body.premium-site .eyebrow { font: 650 11px/1.5 var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
body.premium-site #nav { height: 72px; position: fixed; top: var(--ref-banner-h, 0px); inset-inline: 0; padding: 0 28px; z-index: 100; background: var(--nav-surface); border-bottom: 1px solid var(--rule); backdrop-filter: blur(18px); box-shadow: none; }
body.premium-site #nav::after { display: none; }
body.premium-site .nav-inner { max-width: 1160px; width: 100%; height: 72px; margin: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.premium-site .nav-brand { gap: 16px; }
body.premium-site .nav-logo { gap: 9px; text-decoration: none; }
body.premium-site .nav-logo-glyph { width: auto; height: auto; }
body.premium-site .nav-logo-text { color: var(--paper); font-size: 19px; letter-spacing: -.05em; }
body.premium-site .nav-logo-studio { color: var(--paper-faint); font: 400 11px var(--sans); letter-spacing: 0; }
body.premium-site .nav-logo-studio::before { background: var(--rule); }
body.premium-site .nav-links { gap: 24px; font-size: 12px; padding: 0; border: 0; box-shadow: none; background: transparent; }
body.premium-site .nav-links a { display: inline-flex; color: var(--paper-dim); font-weight: 500; text-decoration: none; }
body.premium-site .nav-links a:hover, body.premium-site .nav-links a[aria-current] { color: var(--accent); }
body.premium-site .nav-links .nav-buy { border: 0; background: transparent; color: var(--accent); padding: 0; }
body.premium-site .nav-links .nav-cta { padding: 9px 17px; color: #fff; background: var(--action); border: 0; border-radius: 9px; font-size: 12px; box-shadow: none; }
body.premium-site .nav-mobile-toggle span { background: var(--paper); }
body.premium-site .btn { min-height: 48px; border-radius: 10px; padding: 12px 22px; font: 600 14px/1.5 var(--sans); letter-spacing: -.01em; box-shadow: none; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 18px; }
body.premium-site .btn-primary { color: #fff; background: var(--action); border: 1px solid var(--action); box-shadow: 0 5px 14px #205dcc15; }
body.premium-site .btn-primary:hover, body.premium-site .nav-cta:hover { background: var(--action-hover); color: #fff; }
body.premium-site .btn-secondary, body.premium-site .btn-quiet { color: var(--paper); background: var(--surface); border: 1px solid var(--rule); }
body.premium-site .btn-secondary:hover, body.premium-site .btn-quiet:hover { border-color: var(--accent); }
body.premium-site .blog-header, body.premium-site .post-header { padding-top: 132px; padding-bottom: 34px; }
body.premium-site .blog-title { font-size: clamp(2.25rem, 5vw, 3.6rem); letter-spacing: -.055em; line-height: 1.08; font-weight: 650; text-wrap: balance; margin: 0 0 24px; }
body.premium-site .blog-sub { max-width: none; font-size: 1.15rem; line-height: 1.65; color: var(--paper-dim); }
body.premium-site .blog-byline, body.premium-site .post-meta { font: 400 12px/1.6 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--paper-faint); }
body.premium-site .post-list { padding-top: 8px; }
body.premium-site .post-link { padding: 28px; grid-template-columns: 70px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; }
body.premium-site .post-link:hover { background: var(--bg-soft); border-color: var(--accent); transform: translateY(-2px); }
body.premium-site .post-headline { color: var(--paper); font-size: 1.6rem; margin: 8px 0 12px; }
body.premium-site .post-dek { color: var(--paper-dim); font-size: 1rem; max-width: none; }
body.premium-site .post-index { color: var(--paper-faint); }
body.premium-site .post-readmore { color: var(--accent); font: 500 13px var(--sans); }
body.premium-site .callout, body.premium-site .verdict { background: var(--bg-soft); color: var(--paper-dim); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 24px; }
body.premium-site .callout p, body.premium-site .verdict p { color: var(--paper-dim); }
body.premium-site .compare-wrap { border-radius: 12px; background: var(--surface); }
body.premium-site table.compare { font-size: 14px; line-height: 1.65; }
body.premium-site table.compare th, body.premium-site table.compare td { padding: 16px; min-width: 120px; }
body.premium-site table.compare tbody th { color: var(--paper); }
body.premium-site .faq { margin-top: 0; }
body.premium-site .faq summary { padding-top: 21px; padding-bottom: 21px; }
body.premium-site .faq summary::after { top: 19px; }
body.premium-site .faq details p { color: var(--paper-dim); }
body.premium-site #download { padding-top: 64px; padding-bottom: 64px; }
body.premium-site #footer { border-top: 1px solid var(--rule); background: var(--bg-soft); margin: 0; padding: 56px 28px 28px; color: var(--paper-dim); }
body.premium-site .footer-inner { max-width: 1160px; width: 100%; margin: auto; padding: 0; display: block; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
body.premium-site .footer-brand { font-size: 16px; color: var(--paper); display: flex; align-items: center; gap: 9px; }
.footer-description { max-width: 220px; font-size: 13px; margin-top: 14px; color: var(--paper-faint); }
.footer-group h2 { font-size: 12px !important; font-weight: 650; margin: 0 0 16px !important; color: var(--paper); letter-spacing: 0 !important; }
.footer-group ul { list-style: none; display: grid; gap: 9px; }
body.premium-site .footer-group a { color: var(--paper-dim); font-size: 12px; text-decoration: none; }
body.premium-site .footer-group a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--rule); margin-top: 36px; padding-top: 22px; font-size: 11px; color: var(--paper-faint); }
.footer-legal { display: flex; gap: 20px; }
body.premium-site .footer-legal a { color: var(--paper-faint); text-decoration: none; }

/* Home page. Real product imagery carries the visual story. */
.home-hero { padding: calc(112px + var(--ref-banner-h, 0px)) 28px 0; max-width: 1240px; margin: auto; }
.home-intro { max-width: 860px; margin: auto; text-align: center; }
.home-intro h1 { font-size: clamp(3rem, 6.5vw, 5.35rem); font-weight: 650; line-height: 1.03; letter-spacing: -.065em; text-wrap: balance; }
.home-intro h1 span { color: var(--accent); }
.home-lede { font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.65; max-width: 520px; margin: 20px auto; color: var(--paper-dim); }
.home-intro .hero-actions { margin: 20px 0 12px; }
.home-trial { font-size: 12px; color: var(--paper-dim); }
.home-requirements { font-size: 11px; color: var(--paper-faint); margin-top: 6px; }
.home-product { max-width: 1120px; margin: 32px auto 0; padding: 20px 20px 0; background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 20px; }
.home-product img { display: block; width: 100%; border-radius: 8px; box-shadow: 0 10px 28px #0b172d16; }
.home-product a { display: block; }
.home-product figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 15px 3px; color: var(--paper-faint); font-size: 11px; }
.home-product figcaption span:first-child { color: var(--paper-dim); }
.home-assurances { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 38px; padding: 22px 0; font-size: 11px; color: var(--paper-faint); }
.home-assurances li::before { content: '✓'; margin-right: 9px; color: var(--accent); }
.home-section { max-width: 1160px; margin: 0 auto; padding: 56px 20px; border-bottom: 1px solid var(--rule); }
body.premium-site .home-section#features { padding: 40px 20px 56px; max-width: 1160px; }
.home-section h2, .home-team h2, .home-closing h2 { font-size: clamp(2rem, 3.3vw, 2.75rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.12; text-wrap: balance; }
.home-section-heading { margin-bottom: 28px; }
.home-section-heading > p:not(.eyebrow) { max-width: 590px; color: var(--paper-dim); margin-top: 20px; font-size: 16px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.workflow-label { display: block; padding-top: 16px; margin-bottom: 14px; border-top: 1px solid var(--rule); color: var(--accent); font: 500 12px/1.5 var(--mono); white-space: nowrap; }
.workflow-grid h3, .detail-list h3 { font-size: 19px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; margin-bottom: 13px; }
.workflow-grid p, .detail-list p { color: var(--paper-dim); font-size: 15px; line-height: 1.8; }
.home-views, .home-price { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.home-details, .home-faq { display: block; }
.detail-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.home-faq .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
body.premium-site .home-faq .faq details { padding: 0; }
body.premium-site .home-faq .faq summary { padding: 16px 28px 16px 0; }
body.premium-site .home-faq .faq summary::after { top: 14px; }
.home-views .home-section-heading { margin: 0; }
.text-link { display: inline-block; margin-top: 26px; font-size: 13px; font-weight: 550; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.view-studies { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.view-studies figure { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 24px 20px; }
.view-studies figcaption { margin-top: 25px; }
.view-studies figcaption strong { display: block; font-size: 14px; font-weight: 550; }
.view-studies figcaption span { display: block; font-size: 12px; color: var(--paper-faint); margin-top: 6px; }
.map-study { height: 160px; display: grid; gap: 4px; grid-template-columns: 1.4fr .65fr 1fr; grid-template-rows: 1fr .7fr .6fr; }
.map-study i { background: #537fdd; border-radius: 2px; }
.map-study i:first-child { grid-row: span 3; background: #3863b5; }
.map-study i:nth-child(2) { grid-column: span 2; background: #87a9ea; }
.map-study i:nth-child(3) { grid-row: span 2; background: #85b3a8; }
.map-study i:nth-child(4) { background: #577f93; }
.map-study i:nth-child(5) { background: #bdb6dd; }
.map-study i:nth-child(n+6) { display: none; }
.sunburst-study { width: 160px; max-width: 100%; aspect-ratio: 1; margin: auto; border-radius: 50%; background: conic-gradient(#3863b5 0 32%,var(--surface) 32% 33%,#87a9ea 33% 59%,var(--surface) 59% 60%,#85b3a8 60% 78%,var(--surface) 78% 79%,#bdb6dd 79% 99%,var(--surface) 99%); position: relative; }
.sunburst-study::before, .sunburst-study::after { content: ''; position: absolute; border-radius: 50%; }
.sunburst-study::before { inset: 24%; border: 4px solid var(--surface); background: conic-gradient(#537fdd 0 59%,var(--surface) 59% 61%,#577f93 61% 99%,var(--surface) 99%); }
.sunburst-study::after { inset: 41%; background: var(--surface); }
.study-note { grid-column: 1 / -1; text-align: center; color: var(--paper-faint); font-size: 10px; }
.detail-list > article { min-width: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
.detail-list a { display: inline-block; margin-top: 12px; font-size: 12px; }
body.premium-site .detail-list #privacy { display: block; max-width: none; padding: 20px 0 0; margin: 0; border: 0; border-top: 1px solid var(--rule); background: transparent; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
body.premium-site .resource-grid > a { position: relative; padding: 26px 24px 48px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--paper); transition: border-color .2s, transform .2s; }
.resource-grid > a:hover { border-color: var(--accent); transform: translateY(-3px); }
.resource-grid span { font-size: 10px; color: var(--accent); }
.resource-grid h3 { font-size: 20px; line-height: 1.3; font-weight: 550; letter-spacing: -.025em; margin: 15px 0 12px; }
.resource-grid p { font-size: 13px; color: var(--paper-dim); }
.resource-grid b { position: absolute; bottom: 18px; right: 24px; color: var(--accent); font-weight: 400; }
.home-price > div > p:not(.eyebrow) { max-width: 400px; margin-top: 22px; color: var(--paper-dim); font-size: 16px; }
.home-price-card { border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); padding: 32px; }
.home-price-card > p:first-child { font-size: 14px; margin: 0 !important; }
.home-price-card .home-price-value { font-size: 52px !important; line-height: 1.15; color: var(--paper) !important; letter-spacing: -.05em; }
.home-price-value span { display: block; font-size: 12px; color: var(--paper-faint); letter-spacing: 0; margin-top: 10px; }
.home-price-card ul { list-style: none; margin: 26px 0; font-size: 13px; color: var(--paper-dim); display: grid; gap: 9px; }
.home-price-card li::before { content: '✓'; color: var(--accent); margin-right: 12px; }
.home-price-card .btn { width: 100%; }
.home-price-card small { display: block; font-size: 11px; color: var(--paper-faint); text-align: center; margin-top: 14px; }
.home-reading-links { display: flex; gap: 30px; }
.home-team { max-width: 1120px; margin: 36px auto 0; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--bg-soft); border-radius: 16px; }
.home-team h2 { font-size: 25px; }
.home-team .eyebrow { margin-bottom: 12px; }
.home-team p:not(.eyebrow) { color: var(--paper-dim); font-size: 13px; margin-top: 12px; }
.home-team .btn { flex-shrink: 0; }
.home-closing { text-align: center; padding: 56px 24px; }
.home-closing img { margin-bottom: 18px; }
.home-closing p { color: var(--paper-dim); margin: 16px 0 22px; font-size: 16px; }
.home-closing small { display: block; color: var(--paper-faint); font-size: 11px; margin-top: 16px; }
.ref-banner[hidden] { display: none; }
.ref-banner { position: fixed; z-index: 110; top: 0; width: 100%; background: var(--bg-soft); border-bottom: 1px solid var(--rule); padding: 10px 24px; font-size: 12px; }
.ref-banner-inner { max-width: 1160px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ref-banner-close { border: 0; background: transparent; color: var(--paper); cursor: pointer; padding: 8px; }
.ref-banner-fallback { text-align: center; margin-top: 8px; }
@media (max-width: 1000px) {
  body.premium-site .nav-links { gap: 15px; }
  body.premium-site .nav-logo-studio { display: none; }
  .home-views, .home-price { gap: 36px; }
  .home-section { padding: 48px 28px; }
  body.premium-site .home-section#features { padding: 36px 28px 48px; }
  .workflow-grid, .detail-list { gap: 24px; }
  .home-team { margin-inline: 28px; }
}
@media (max-width: 760px) {
  body.premium-site { font-size: 16px; }
  body.premium-site #nav { padding-inline: 22px; height: 64px; }
  body.premium-site .nav-inner { height: 64px; }
  body.premium-site .nav-links { display: none; position: fixed; top: 72px; left: 16px; right: 16px; max-height: calc(100dvh - 100px); overflow-y: auto; padding: 18px 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); opacity: 1; box-shadow: 0 16px 40px #0002; }
  body.premium-site .nav-links.open { display: flex; gap: 0; }
  body.premium-site .nav-links a { display: block; padding: 12px 0; font-size: 14px; }
  body.premium-site .nav-links a.nav-buy { padding: 12px 0; }
  body.premium-site .nav-links .nav-cta { margin-top: 10px; text-align: center; }
  body.premium-site .nav-mobile-toggle { display: flex; }
  body.premium-site .reading { padding-inline: 24px; }
  body.premium-site .blog-header, body.premium-site .post-header { padding-top: 108px; }
  body.premium-site .post-link { grid-template-columns: 1fr; padding: 24px; gap: 6px; }
  body.premium-site .post-index { font-size: 10px; }
  body.premium-site table.compare { min-width: 540px; }
  .home-hero { padding: calc(96px + var(--ref-banner-h, 0px)) 24px 0; }
  .home-intro { text-align: left; }
  .home-intro h1 { font-size: clamp(2.65rem, 9.5vw, 4.25rem); }
  .home-lede { margin-inline: 0; }
  .home-intro .hero-actions { justify-content: flex-start; gap: 10px; }
  .home-intro .btn { padding-inline: 16px; font-size: 13px; }
  .home-trial { max-width: 280px; line-height: 1.7; }
  .home-product { padding: 10px 10px 0; border-radius: 12px; margin-top: 32px; }
  .home-product figcaption { font-size: 9px; padding-block: 10px; }
  .home-product figcaption span:first-child { display: none; }
  .home-assurances { justify-content: flex-start; gap: 12px 22px; font-size: 10px; }
  .home-section, body.premium-site .home-section#features { padding: 40px 24px; }
  .home-section-heading { margin-bottom: 24px; }
  .workflow-grid, .detail-list { grid-template-columns: 1fr; gap: 24px; }
  .workflow-grid p { max-width: 500px; }
  .home-views, .home-price { grid-template-columns: 1fr; gap: 28px; }
  .home-faq .faq { grid-template-columns: 1fr; gap: 0; }
  .home-views .home-section-heading > p { max-width: 500px; }
  .view-studies { max-width: 500px; }
  .view-studies figure { padding: 20px 14px; }
  .map-study { height: auto; aspect-ratio: 1; }
  .sunburst-study { width: 100%; }
  .resource-grid { grid-template-columns: 1fr; }
  .home-team { flex-direction: column; align-items: flex-start; padding: 24px; margin: 24px 24px 0; }
  .home-closing { padding-block: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-description { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
body.premium-site .nav-links a.nav-cta { color: #fff !important; }
.home-intro .hero-actions { justify-content: center; }
.article-toc { border: 1px solid var(--rule); border-radius: 12px; padding: 22px 26px; margin: 24px 0 8px; background: var(--bg-soft); font-size: 14px; }
.article-toc > p { color: var(--paper); font-weight: 600; margin-bottom: 10px; }
.article-toc ol, .article-toc ul { padding-left: 20px; }
.article-toc li + li { margin-top: 5px; }
.article-related { padding-top: 42px; padding-bottom: 60px; }
.steps, .buy-steps { padding-left: 24px; }
.steps li + li, .buy-steps li + li { margin-top: 18px; }
@media (max-width: 760px) { .home-intro .hero-actions { justify-content: flex-start; } }
:root {
  --funnel-action: var(--action);
  --funnel-action-hover: var(--action-hover);
  --funnel-blue: var(--accent);
  --funnel-blue-hover: var(--accent-deep);
  --funnel-ink: var(--paper);
  --funnel-copy: var(--paper-dim);
  --funnel-muted: var(--paper-faint);
  --funnel-surface: var(--bg);
  --funnel-soft: var(--bg-soft);
  --funnel-line: var(--rule);
}
body.premium-site:not(.delve-home) #privacy.reading { display: block; max-width: var(--measure); margin: 0 auto; padding: 48px 28px 24px; border: 0; background: transparent; }
body.premium-site .specsheet { font-family: var(--sans); font-size: 14px; }
body.premium-site .spec { padding-block: 14px; }
body.premium-site .spec dt { font-family: var(--sans); font-size: 11px; }
body.premium-site .article-toc.reading { margin: 24px auto 8px; padding: 22px 26px; width: calc(100% - 48px); max-width: calc(var(--measure) - 56px); }
.journal-group-head { margin-top: 48px; }
#posts.reading { padding-top: 44px; }
body.premium-site.ent-page #hero { background: transparent; padding-top: 132px; }
body.premium-site.ent-page .hero-title { font-size: clamp(2.65rem, 6.5vw, 5.35rem); letter-spacing: -.065em; }
body.premium-site.ent-page .lede { color: var(--paper-dim); font-size: 20px; }
@media (max-width: 760px) { body.premium-site.ent-page #hero { padding-top: 108px; } }

/* Resource navigation keeps established article URLs in one browsable library. */
body.premium-site :is(#hero, #honest, #download).legacy-anchor { display: block; position: static; width: 0; height: 0; min-height: 0; padding: 0; margin: 0; border: 0; background: none; }
.resource-nav { margin-top: calc(72px + var(--ref-banner-h, 0px)); border-bottom: 1px solid var(--rule); }
.resource-nav-inner { display: flex; gap: 28px; width: 100%; max-width: 1216px; margin: auto; padding: 0 28px; }
body.premium-site .resource-nav a { display: inline-flex; align-items: center; min-height: 52px; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 500; color: var(--paper-dim); text-decoration: none; white-space: nowrap; }
body.premium-site .resource-nav a:hover { color: var(--accent); }
body.premium-site .resource-nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
body.premium-site.has-resource-nav :is(.blog-header, .post-header) { padding-top: 40px; }
.resource-shell { width: 100%; max-width: 1216px; margin-inline: auto; padding-inline: 28px; }
.resource-header { padding-top: 40px; padding-bottom: 32px; }
.resource-header h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 650; line-height: 1.1; letter-spacing: -.055em; text-wrap: balance; margin: 0 0 16px; }
.resource-header > p:last-child { max-width: 620px; font-size: 17px; line-height: 1.7; color: var(--paper-dim); }
.resource-library { padding-bottom: 56px; }
.resource-library-heading h2 { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 16px; letter-spacing: -.025em; }
.resource-tools { display: grid; grid-template-columns: auto minmax(180px, 360px) 1fr; align-items: center; gap: 16px; padding-block: 18px; margin-bottom: 20px; border-block: 1px solid var(--rule); }
.resource-tools label { color: var(--paper-dim); font-size: 13px; }
.resource-tools input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 9px; background: var(--surface); color: var(--paper); font: 400 16px/1.4 var(--sans); }
.resource-tools input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.resource-count { text-align: right; font-size: 12px; color: var(--paper-faint); }
.resource-page .resource-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.resource-card { min-width: 0; margin: 0; }
body.premium-site .resource-card-link { display: flex; flex-direction: column; height: 100%; padding: 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color .2s, background .2s; }
body.premium-site .resource-card-link:hover { border-color: var(--accent); background: var(--bg-soft); }
.resource-page .resource-kind { font-size: 11px; font-weight: 550; letter-spacing: .02em; }
.resource-page .resource-card h3 { color: var(--paper); font-size: 20px; font-weight: 600; line-height: 1.3; margin: 14px 0 12px; }
.resource-page .resource-card p { font-size: 14px; line-height: 1.65; margin: 0 0 20px; }
.resource-page .resource-read { margin-top: auto; font-size: 12px; font-weight: 550; }
.resource-page [hidden] { display: none !important; }
.resource-page [data-resource-empty] { padding: 24px 0; color: var(--paper-dim); }
@media (max-width: 1000px) {
  .resource-page .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .resource-nav { margin-top: calc(64px + var(--ref-banner-h, 0px)); }
  .resource-nav-inner { padding-inline: 24px; gap: 22px; }
  body.premium-site .resource-nav a { min-height: 48px; font-size: 12px; }
  body.premium-site.has-resource-nav :is(.blog-header, .post-header) { padding-top: 32px; }
  .resource-shell { padding-inline: 24px; }
  .resource-header { padding-top: 32px; padding-bottom: 24px; }
  .resource-header > p:last-child { font-size: 16px; }
  .resource-tools { grid-template-columns: 1fr auto; gap: 10px; }
  .resource-tools input { grid-column: 1 / -1; grid-row: 2; }
  .resource-tools .resource-count { grid-column: 2; grid-row: 1; }
}
@media (max-width: 560px) {
  .resource-nav-inner { gap: 18px; }
  .resource-page .resource-grid { grid-template-columns: 1fr; }
  body.premium-site .resource-card-link { padding: 22px; }
}
