/* SEO-7: the feature, alternative, guide and article pages (site/seo_page.html) and the /features and /guides hubs
   (site/seo_hub.html). Loaded after site.css by those pages only. Built on the .site-doc column and the shared
   tokens; the prose column is 760px and nothing scrolls sideways at 390px (wide tables scroll in .table-scroll). */

.servers-page.site-doc.seo-page { max-width: 808px; }

/* ------------------------------------------------------------------ breadcrumbs */
.seo-crumbs { padding: 32px 0 0; }
.seo-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.seo-crumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-tertiary); }
.seo-crumbs li + li::before { content: "/"; color: var(--text-tertiary); opacity: .6; }
.seo-crumbs a { color: var(--text-secondary); }
.seo-crumbs a:hover { color: var(--text-primary); }
.seo-crumbs [aria-current] { color: var(--text-tertiary); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ hero */
.seo-hero { padding: 40px 0 48px; }
.seo-stickers { display: flex; gap: 8px; margin: 0 0 20px; }
.seo-stickers .seo-sticker { width: 40px; height: 40px; }
.seo-hero h1 {
  margin: 0; font-size: 48px; line-height: 54px; font-weight: 800; letter-spacing: var(--tracking-tighter);
  color: var(--text-primary); text-wrap: balance;
}
.seo-lede { margin: 20px 0 0; max-width: 62ch; color: var(--text-secondary); font-size: 18px; line-height: 28px; text-wrap: pretty; }
.seo-lede a, .seo-body a, .seo-cta a:not(.btn) { color: var(--sky); }
.seo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.seo-updated { margin: 16px 0 0; color: var(--text-tertiary); font-size: 14px; line-height: 20px; }
/* The Add to Discord button in the Discord colour, as on the landing page (landing.css is not loaded here). */
.seo-page .lp-btn-discord {
  --btn-bg: var(--clr-discord); --btn-fg: #fff; --btn-bd: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 28px -8px rgba(88, 101, 242, .65);
}
.seo-page .lp-btn-discord:hover { --btn-bg: #4752c4; }
.seo-page .lp-btn-quiet { --btn-bg: rgba(255, 255, 255, .06); --btn-bd: var(--border-default); }
.seo-page .lp-btn-quiet:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: var(--border-hover); }
.seo-page .btn-lg { border-radius: 12px; padding: 0 24px; }

/* ------------------------------------------------------------------ body sections */
.seo-body > section { padding: 40px 0 0; border-top: 1px solid var(--border-subtle); margin-top: 40px; scroll-margin-top: 96px; }
.seo-body > section:first-child { margin-top: 0; }
.seo-body h2 { margin: 0 0 16px; color: var(--text-primary); font-size: 28px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.seo-body h3 { margin: 24px 0 8px; color: var(--text-primary); font-size: 19px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.seo-body p, .seo-body li { color: var(--text-secondary); font-size: 16px; line-height: 27px; }
.seo-body p { margin: 0 0 16px; }
.seo-body ul { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 22px; }
.seo-body li::marker { color: var(--text-tertiary); }
.seo-body b { color: var(--text-primary); font-weight: 600; }
.seo-body code, .seo-faq code {
  padding: 1px 6px; border-radius: 6px; background: var(--clr-surface-3); border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-size: 14px; overflow-wrap: anywhere;
}
.seo-body kbd {
  padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border-default); border-bottom-width: 2px;
  background: var(--clr-surface-2); color: var(--text-primary); font: inherit; font-size: 14px;
}
.seo-sub { scroll-margin-top: 96px; }

/* ------------------------------------------------------------------ figures and tables */
.seo-figure { margin: 8px 0 24px; }
.seo-figure img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
  background: var(--clr-surface-1);
}
.seo-figure figcaption { margin-top: 8px; color: var(--text-tertiary); font-size: 14px; line-height: 20px; }
.table-scroll {
  max-width: 100%; margin: 0 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--clr-surface-1);
}
.seo-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.seo-table caption { caption-side: top; padding: 12px 16px 0; text-align: left; color: var(--text-tertiary); font-size: 14px; line-height: 20px; }
.seo-table th, .seo-table td { padding: 12px 16px; text-align: left; vertical-align: top; font-size: 15px; line-height: 22px; }
.seo-table th { color: var(--text-primary); font-weight: 600; border-bottom: 1px solid var(--border-subtle); }
.seo-table td { color: var(--text-secondary); }
.seo-table tbody tr + tr td { border-top: 1px solid var(--border-subtle); }
.seo-cmds td:first-child { width: 40%; }
.seo-cmds td:first-child code { white-space: normal; overflow-wrap: anywhere; }
.seo-cmds td:last-child { width: 22%; }
.seo-more { font-size: 15px; }

/* ------------------------------------------------------------------ setup steps: numbered by a counter */
.seo-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: seo-step; }
.seo-steps > li {
  position: relative; counter-increment: seo-step; padding: 20px 24px 8px 72px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--clr-surface-1);
}
.seo-steps > li::before {
  content: counter(seo-step); position: absolute; left: 24px; top: 20px; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: var(--radius-md); font-size: 14px; font-weight: 700;
  background: rgba(0, 132, 255, 0.12); border: 1px solid rgba(0, 132, 255, 0.28); color: var(--sky);
}
.seo-steps > li h3 { margin: 4px 0 8px; }

/* ------------------------------------------------------------------ FAQ */
.seo-faq h3 { margin: 24px 0 8px; }
.seo-faq h3:first-child { margin-top: 0; }
.seo-faq > div { color: var(--text-secondary); font-size: 16px; line-height: 27px; }
.seo-faq > div a { color: var(--sky); }

/* ------------------------------------------------------------------ cards (related pages, hubs) */
.seo-body ul.seo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.seo-cards li { margin: 0; }
.seo-cards a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; text-decoration: none;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--clr-surface-1);
  transition: border-color 150ms var(--ease-smooth), background-color 150ms var(--ease-smooth);
}
.seo-cards a:hover { border-color: var(--border-default); background: var(--clr-surface-2); text-decoration: none; }
.seo-cards b { color: var(--text-primary); font-size: 16px; line-height: 24px; font-weight: 600; }
.seo-cards span { color: var(--text-tertiary); font-size: 14px; line-height: 20px; }

/* Hub: every module, with its sticker. */
.seo-body ul.seo-modlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0 0 8px; padding: 0; list-style: none; }
.seo-modlist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; }
.seo-modlist .seo-sticker { width: 24px; height: 24px; margin-top: 2px; }
.seo-modlist a { color: var(--text-primary); font-weight: 600; }
.seo-modlist span:not(.badge) { display: block; color: var(--text-tertiary); font-size: 14px; line-height: 20px; }

/* ------------------------------------------------------------------ closing call to action */
.seo-cta {
  margin: 56px 0 0; padding: 32px; text-align: center;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  background: var(--grad-card), var(--clr-surface-1); box-shadow: var(--shadow-card);
}
.seo-cta h2 { margin: 0 0 8px; color: var(--text-primary); font-size: 28px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; }
.seo-cta p { margin: 0 auto 20px; max-width: 48ch; color: var(--text-secondary); font-size: 16px; line-height: 26px; }

@media (max-width: 640px) {
  .seo-crumbs { padding-top: 16px; }
  .seo-hero { padding: 24px 0 32px; }
  .seo-hero h1 { font-size: 34px; line-height: 40px; }
  .seo-lede { font-size: 17px; line-height: 27px; }
  .seo-actions .btn { flex: 1 1 100%; justify-content: center; }
  .seo-body > section { padding-top: 32px; margin-top: 32px; }
  .seo-body h2 { font-size: 24px; line-height: 32px; }
  .seo-steps > li { padding: 64px 16px 4px; }
  .seo-steps > li::before { left: 16px; top: 16px; }
  .seo-body ul.seo-modlist { grid-template-columns: minmax(0, 1fr); }
  .seo-cta { padding: 24px 16px; }
  .seo-cta h2 { font-size: 24px; line-height: 32px; }
}
