/* Shared standalone-page styles. Load after the page's existing styles. */
:root {
  --ink: #24151a;
  --muted: #654a51;
  --paper: #fffaf3;
  --paper-2: #fff1df;
  --dark: #24151a;
  --maroon: #802020;
  --maroon-deep: #571526;
  --mustard: #f5c542;
  --coral: var(--mustard);
  --teal: var(--mustard);
  --violet: var(--maroon);
  --line: rgba(36, 21, 26, .18);
  --max: 1120px;
  --anchor-offset: 6rem;
  --font-heading: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  font-size: 16px;
  scroll-padding-top: var(--anchor-offset);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

:where([id]) {
  scroll-margin-top: var(--anchor-offset);
}

strong, b {
  font-weight: 700;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 960px;
  font-size: clamp(2.125rem, 1.25rem + 3.5vw, 4rem);
  font-weight: 800;
  text-wrap: balance;
}

h3 {
  font-weight: 600;
}

a {
  text-decoration-thickness: .1em;
  text-underline-offset: .2em;
}

:focus-visible {
  outline: 3px solid var(--maroon);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px var(--paper);
}

footer :focus-visible,
.cta :focus-visible {
  outline-color: var(--mustard);
  box-shadow: 0 0 0 4px var(--dark);
}

.skip-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
}

.site-header {
  background: rgba(255, 250, 243, .98);
}

.nav {
  min-width: 0;
  min-height: 80px;
  gap: .5rem 1rem;
  padding-block: .625rem;
}

/* The original 6000px square is scaled uniformly. Only white padding is
   outside this viewport: mark bounds are approximately 605..5350 / 2218..3740. */
.brand,
footer .brand {
  position: relative;
  display: inline-block;
  flex: 0 0 148px;
  width: 148px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  vertical-align: middle;
}

.brand img {
  position: absolute;
  top: -69px;
  left: -18.8px;
  display: block;
  width: 186.5px;
  height: 186.5px;
  max-width: none;
}

.primary-nav {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .25rem;
  font-size: .875rem;
  font-weight: 600;
}

.primary-nav a,
.primary-nav a:not(.nav-cta) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 44px;
  padding: .625rem .55rem;
  border-radius: 8px;
  line-height: 1.4;
}

.primary-nav .nav-cta {
  padding: .625rem .85rem;
  color: var(--paper);
  background: var(--maroon);
  border-radius: 999px;
  font-weight: 700;
}

.primary-nav .nav-cta:hover {
  background: var(--maroon-deep);
}

.hero {
  padding: clamp(2rem, 5vw, 4rem) 0 2.5rem;
  background: radial-gradient(circle at 90% 0, rgba(245, 197, 66, .24), transparent 35%),
    linear-gradient(145deg, var(--paper), #ffe8e0);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin-bottom: 1rem;
  padding: .5rem .25rem;
  color: var(--maroon);
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 600;
}

.eyebrow {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .09em;
}

.lead {
  max-width: 760px;
  font-size: clamp(1rem, .9rem + .5vw, 1.1875rem);
  line-height: 1.75;
}

.byline {
  font-size: .875rem;
  font-weight: 500;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 255px);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.article-shell > *,
.footer-grid > *,
.role-grid > *,
.choice-grid > *,
.card-grid > *,
.related > * {
  min-width: 0;
}

.prose {
  width: 100%;
  min-width: 0;
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(1.625rem, 1.25rem + 1.25vw, 2.25rem);
}

.prose h3 {
  font-size: 1.375rem;
}

.prose p,
.prose li {
  font-size: 1rem;
}

.prose a,
footer a {
  overflow-wrap: anywhere;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .9375rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.answer,
.note,
.policy-note,
.source-note,
.warning,
.step,
.choice-card,
.role-card {
  padding: 1.125rem clamp(1rem, 2vw, 1.35rem);
}

.note,
.policy-note,
.source-note {
  color: var(--ink);
  background: var(--paper-2);
  border-color: rgba(128, 32, 32, .22);
}

.choice-card,
.role-card {
  border-top-color: var(--maroon);
}

.choice-card:nth-child(2),
.role-card:nth-child(2),
.role-card:nth-child(3) {
  border-top-color: var(--mustard);
}

.role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid,
.card-grid,
.related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-hint {
  margin-bottom: .5rem;
  color: var(--muted);
  font-size: .875rem;
}

.comparison {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.comparison table,
.comparison .price-table {
  display: table;
  width: 100%;
  min-width: 640px;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.6;
  white-space: normal;
  overflow: visible;
}

.comparison caption {
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 600;
}

.comparison th,
.comparison .price-table th {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.comparison th,
.comparison td {
  vertical-align: top;
}

.toc {
  top: var(--anchor-offset);
  max-height: calc(100dvh - var(--anchor-offset) - 1rem);
  overflow-y: auto;
  padding: 1rem;
}

.toc h2 {
  font-size: 1.125rem;
}

.toc ol {
  font-size: .9375rem;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: .375rem;
  line-height: 1.5;
}

.toc li + li {
  margin-top: .125rem;
}

.related a {
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
}

.cta {
  padding: clamp(1.125rem, 3vw, 1.75rem);
}

.prose .cta h2 {
  color: var(--paper);
  font-size: clamp(1.625rem, 1.25rem + 1.25vw, 2rem);
}

.cta strong {
  color: inherit;
}

.button {
  gap: .5rem;
  min-height: 44px;
  max-width: 100%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.button span {
  flex-shrink: 0;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
}

.footer-copy,
.footer-col {
  font-size: .9375rem;
}

.footer-col {
  gap: .125rem;
}

.footer-col a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: .375rem;
}

.platform-disclaimer,
.footer-bottom {
  color: #dac4c8;
  font-size: .875rem;
}

.footer-bottom {
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 960px) {
  .article-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2rem;
  }

  .prose {
    max-width: none;
  }

  .toc {
    position: static;
    max-height: none;
    margin: 0;
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  :root {
    --anchor-offset: 8.5rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    padding-block: .5rem;
  }

  .primary-nav {
    width: 100%;
    justify-content: center;
  }

  .primary-nav a,
  .primary-nav a:not(.nav-cta) {
    padding-inline: .35rem;
  }

  .primary-nav .nav-cta {
    padding-inline: .55rem;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 1.75rem;
  }

  .role-grid,
  .choice-grid,
  .card-grid,
  .related {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
