/*
  Wayfinder for the static article pages (checklists, guides, hubs, legal pages). Loaded after wayfinder.css, which holds the
  tokens, header, buttons and footer. These pages no longer load styles.css; every class they use is styled here.
*/

body.wf-article {
  min-height: 100vh;
}

.wf-article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.seo-main {
  display: grid;
  gap: 24px;
  margin: 0;
}

/* Articles read as plain pages, not a card on a page: the callouts below carry the boxes. */
.seo-article {
  display: grid;
  gap: 22px;
  padding: 0;
  color: var(--ink);
}

.seo-article img {
  max-width: 100%;
  height: auto;
}

/* Type */
.seo-article h1,
.seo-article h2,
.seo-article h3 {
  margin: 0;
  max-width: none;
  color: var(--ink);
}

.seo-article h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.seo-article h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.seo-article h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.seo-article p {
  margin: 0;
  color: var(--body2);
  font-size: 17px;
  line-height: 1.65;
}

.seo-article strong {
  color: var(--ink);
}

.seo-article a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-article a.primary-button,
.seo-article a.secondary-button {
  text-decoration: none;
}

.seo-article a.primary-button {
  color: var(--accent-ink);
}

.seo-article a.secondary-button {
  color: var(--ink);
}

.seo-article section {
  display: grid;
  gap: 14px;
}

.seo-article ul,
.seo-article ol {
  margin: 0;
  padding-left: 22px;
  color: var(--body2);
  font-size: 17px;
  line-height: 1.65;
}

.seo-article li + li {
  margin-top: 8px;
}

.seo-article .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.seo-article .summary-text {
  max-width: none;
}

.seo-intro {
  display: grid;
  gap: 14px;
}

.seo-byline {
  color: var(--muted);
}

.seo-article p.seo-byline {
  font-size: 14px;
  color: var(--muted);
}

.seo-article p.seo-byline a {
  color: var(--muted);
}

/* Breadcrumbs */
.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.seo-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.seo-breadcrumbs a:hover,
.seo-breadcrumbs a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
}

.seo-breadcrumb-sep {
  color: var(--ring);
}

/* Answer-first block, decision strip and callouts */
.seo-quick-answer,
.seo-start-here,
.seo-trust-block,
.seo-where-this-fits,
.seo-key-takeaways {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 22px;
  background: var(--tint);
}

.seo-article .seo-quick-answer p,
.seo-article .seo-start-here p,
.seo-article .seo-trust-block p,
.seo-article .seo-key-takeaways p,
.seo-article .seo-where-this-fits p {
  color: var(--ink);
}

.seo-article .seo-quick-answer ul,
.seo-article .seo-quick-answer ol,
.seo-article .seo-trust-block ul,
.seo-article .seo-key-takeaways ul,
.seo-article .seo-key-takeaways ol {
  color: var(--ink);
}

.seo-quick-answer {
  display: grid;
  gap: 14px;
}

.seo-decision-strip {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  background: var(--surface);
}

.seo-article .seo-decision-strip h2 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.seo-article .seo-decision-strip li {
  color: var(--ink);
}

.seo-printable-cta {
  font-size: 15px;
}

.seo-article p.seo-printable-cta {
  font-size: 15px;
  color: var(--body2);
}

.seo-jump-links {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ground);
}

.seo-article .seo-jump-links p {
  font-size: 15px;
}

/* Checklists */
.seo-article ul.seo-checklist {
  padding-left: 0;
  list-style: none;
}

.seo-checklist li {
  position: relative;
  padding-left: 32px;
}

.seo-checklist li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 0;
  width: 17px;
  height: 17px;
  border: 2px solid var(--accent);
  border-radius: 5px;
}

.seo-quick-timeline,
.seo-related-links {
  display: grid;
  gap: 12px;
}

.seo-related-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 24px;
  padding-left: 20px;
}

.seo-related-links li + li {
  margin-top: 0;
}

/* Cards and grids */
.seo-link-grid,
.seo-direction-grid,
.seo-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.seo-faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.seo-article a.seo-link-card,
.seo-direction-card,
.seo-faq-item {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.seo-article a.seo-link-card:hover,
.seo-article a.seo-link-card:focus-visible {
  border-color: var(--accent);
}

.seo-link-card h3,
.seo-direction-card h3,
.seo-faq-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.seo-article .seo-link-card p,
.seo-article .seo-direction-card p,
.seo-article .seo-faq-item p {
  font-size: 15px;
  color: var(--body2);
}

/* Tables */
.seo-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.seo-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.seo-article th,
.seo-article td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--body2);
  text-align: left;
  vertical-align: top;
}

.seo-article th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.seo-article td:first-child {
  color: var(--ink);
  font-weight: 600;
}

/* Closing call to action */
.seo-cta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--hero-bg);
  color: var(--hero-text);
}

:root[data-theme="dark"] .seo-cta-box {
  border-color: var(--hero-line);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seo-cta-box {
    border-color: var(--hero-line);
  }
}

.seo-article .seo-cta-box p {
  color: var(--hero-text);
}

.seo-article .seo-cta-box p:first-child {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.seo-article .seo-cta-box p + p {
  color: var(--hero-muted);
}

/* Links on the dark box: the page's blue link colour is too dark to read against it. */
.seo-article .seo-cta-box a:not(.primary-button):not(.secondary-button),
.seo-article .seo-cta-box .text-button {
  color: var(--hero-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-article p.seo-trust-lite {
  color: var(--muted);
  font-size: 14px;
}

/* Small screens */
@media (max-width: 640px) {
  /* A wide table scrolls inside itself instead of widening the page. */
  .seo-article table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .seo-article th {
    white-space: normal;
  }

  .wf-article-shell {
    padding: 20px 16px 48px;
  }

  .seo-article p,
  .seo-article ul,
  .seo-article ol {
    font-size: 16px;
  }

  .seo-faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Smaller pieces */
.seo-preview {
  margin: 0;
}

.seo-preview img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.seo-tool-steps {
  display: grid;
  gap: 14px;
}

.seo-directional-links {
  display: grid;
  gap: 14px;
}


.seo-timeline-table {
  width: 100%;
}

/* Breadcrumb links get a taller tap area on phones. */
.seo-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
