:root {
  color-scheme: dark;
  --bg: #0f1114;
  --surface: #15191f;
  --surface-raised: #1b2028;
  --surface-active: #222a34;
  --border: #303844;
  --border-strong: #475364;
  --text: #edf1f5;
  --muted: #aab4bf;
  --faint: #7e8995;
  --accent: #6fd3c6;
  --accent-strong: #9ce4da;
  --accent-contrast: #08110f;
  --accent-surface: #173531;
  --warning-surface: #352c18;
  --warning: #f1c36d;
  --radius: 7px;
  --content: 1120px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.3;
}

main,
.site-header,
.site-footer {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

main,
article,
section,
.resource-section,
.resource-hero-copy,
.quick-verdict {
  min-width: 0;
}

.resource-section a,
.quick-verdict dd,
.visual-grid figcaption,
.article-footer p {
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  transform: translateY(-180%);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 850;
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 680;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-footer a:hover {
  color: var(--text);
}

.breadcrumbs {
  padding-block: 24px 8px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 8px;
  color: var(--faint);
  font-size: 0.82rem;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 8px;
  color: var(--border-strong);
  content: "/";
}

.breadcrumbs a {
  color: var(--muted);
}

.hub-hero,
.resource-hero {
  padding-block: 58px 72px;
  border-bottom: 1px solid var(--border);
}

.resource-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: start;
  gap: clamp(28px, 6vw, 70px);
}

.lede {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.quick-verdict {
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.hub-hero .quick-verdict {
  max-width: 820px;
  margin-top: 34px;
}

.quick-verdict h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.quick-verdict p,
.quick-verdict dd {
  color: var(--muted);
}

.quick-verdict p:last-child,
.quick-verdict dl {
  margin-bottom: 0;
}

.quick-verdict dl {
  display: grid;
  gap: 16px;
}

.quick-verdict dl div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.quick-verdict dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.resource-section {
  padding-block: 54px;
  border-bottom: 1px solid var(--border);
}

.resource-section > p:not(.eyebrow),
.resource-section > ul {
  max-width: 830px;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading > p {
  color: var(--faint);
  font-size: 0.84rem;
}

.resource-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.resource-card:hover {
  border-color: var(--border-strong);
}

.resource-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resource-card-heading img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
}

.resource-card-heading .eyebrow {
  margin: 0;
}

.resource-card h3 a {
  color: var(--text);
}

.resource-card > p {
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
}

.resource-card dl {
  display: grid;
  margin: 0 0 20px;
  gap: 12px;
}

.resource-card dl div {
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.resource-card dd {
  color: var(--muted);
  font-size: 0.82rem;
}

.text-link {
  font-size: 0.86rem;
  font-weight: 760;
}

.steps {
  display: grid;
  max-width: 900px;
  margin: 28px 0 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  padding: 17px;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps p {
  margin: 3px 0 0;
}

.steps a {
  margin-top: 3px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.step-number {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 820;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.visual-grid figure {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.visual-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.visual-grid figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-size: 0.74rem;
}

.two-column-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
  border-bottom: 1px solid var(--border);
}

.two-column-sections .resource-section {
  border-bottom: 0;
}

.check-list,
.limit-list,
.source-list {
  margin: 0;
  padding-left: 22px;
}

.check-list li,
.limit-list li,
.source-list li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.check-list li::marker {
  color: var(--accent);
}

.limit-list li::marker {
  color: var(--warning);
}

.evidence-section {
  padding-inline: clamp(18px, 4vw, 36px);
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--surface);
}

pre {
  overflow-x: auto;
  width: 100%;
  max-width: 820px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--accent-strong);
  line-height: 1.5;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.callout {
  padding: 15px 18px;
  border-left: 3px solid var(--warning);
  background: var(--warning-surface);
  color: var(--text) !important;
}

.faq-list {
  display: grid;
  max-width: 900px;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-list summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 720;
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-list p {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-grid a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.related-grid a:hover {
  border-color: var(--accent);
}

.related-grid span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 34px 56px;
  gap: 24px;
}

.article-footer p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.byline {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  gap: 24px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  max-width: 590px;
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-hero {
    grid-template-columns: 1fr;
  }

  .quick-verdict {
    max-width: 760px;
  }

  .two-column-sections {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .two-column-sections .resource-section:first-child {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 680px) {
  main,
  .site-header,
  .site-footer {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-header {
    min-height: 84px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .hub-hero,
  .resource-hero {
    padding-block: 40px 52px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.25rem);
  }

  .section-heading,
  .article-footer,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-grid,
  .visual-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .steps li {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .steps a {
    grid-column: 2;
    white-space: normal;
  }
}
