/* Public service pages (/services, /services/<slug>).
   Functional layout only: reuses the landing design tokens from style.css —
   same colors, fonts, buttons, header and footer — no independent visual
   language, images or branding. Everything below is required for a readable
   long-form page and for tables that stay usable on a phone. */

.seo-header {
  background: var(--bg);
  border-bottom-color: var(--border);
}

/* The shared style.css hides .nav-links below 640px and reveals it only via
   `.header.open`, a class this server-rendered header never receives (there is
   no toggle script). These two links must stay reachable without JavaScript at
   every width, so the SEO sheet — loaded after the shared one — keeps them in
   the header. Scoped to .seo-header: the main landing markup is unaffected. */
.seo-header .nav-links {
  display: flex;
  gap: 16px;
}

.seo-main {
  padding: 40px 0 24px;
}

.seo-wrap {
  max-width: 860px;
}

.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.seo-breadcrumbs a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-breadcrumbs a:hover {
  color: var(--text);
}

.seo-page h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.seo-page h2 {
  margin: 32px 0 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.seo-page h3 {
  margin: 20px 0 6px;
  font-size: 1rem;
}

.seo-page section {
  border-top: 1px solid var(--border);
}

.seo-page p {
  color: var(--text-dim);
  margin: 8px 0 12px;
}

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

.seo-page a:hover {
  color: var(--violet-hi);
}

.seo-page ul,
.seo-page ol {
  margin: 8px 0 16px;
  padding-left: 1.25rem;
  color: var(--text-dim);
}

.seo-page li {
  margin: 4px 0;
}

.seo-meta {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.seo-lead {
  font-size: 1.05rem;
  color: var(--text) !important;
}

.seo-muted {
  color: var(--text-dim);
  font-size: 13px;
}

.seo-notice {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text) !important;
}

.seo-table-scroll {
  margin: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.seo-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.seo-table th,
.seo-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.seo-table thead th {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.seo-table tbody th {
  font-weight: 600;
  color: var(--text);
}

.seo-table td {
  color: var(--text-dim);
}

.seo-price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text) !important;
}

.seo-cancel-block {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.seo-cancel-block h3 {
  margin-top: 0;
}

.seo-source {
  font-size: 13px;
}

.seo-faq dt {
  margin-top: 16px;
  font-weight: 600;
  color: var(--text);
}

.seo-faq dd {
  margin: 4px 0 0;
  color: var(--text-dim);
}

.seo-sources {
  list-style: none;
  padding-left: 0 !important;
}

.seo-sources li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
  padding: 0 !important;
  list-style: none;
}

.seo-card {
  padding: 22px;
}

.seo-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.seo-card p {
  margin: 0 0 10px;
}

.seo-card-link {
  text-decoration: none !important;
}

.seo-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-left: 0 !important;
  list-style: none;
}

.seo-cta {
  margin: 40px 0 8px;
  padding: 24px;
}

.seo-cta h2 {
  margin-top: 0;
}

@media (max-width: 640px) {
  /* Keep the brand and both navigation links on one row down to 320px. */
  .seo-header .wrap {
    gap: 10px;
    padding: 0 16px;
  }

  .seo-header .nav-links {
    gap: 12px;
  }

  .seo-header .nav-links a {
    font-size: 13.5px;
    white-space: nowrap;
  }

  .seo-main {
    padding-top: 24px;
  }

  .seo-table {
    min-width: 480px;
  }

  .seo-cancel-block {
    padding: 12px;
  }
}
