/* Styles for the editorial pages (/features, /compare, /uses, /glossary, /tools, /docs).
 *
 * Scoped under .seo-page and built on the v2 design tokens defined in landing.min.css, so
 * these pages inherit the landing page's palette rather than defining a second one. Only the
 * things the landing page never needed live here: long-form prose, tables, breadcrumbs, a
 * table of contents, definition-style callouts and the calculator form. */

.seo-page {
  --seo-measure: 74ch;
  padding-bottom: 0;
}

.seo-article,
.seo-crumbs,
.seo-sitenav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- breadcrumbs */
.seo-crumbs {
  padding-top: 96px;
  font-size: 13px;
  color: var(--v2-text-faint);
}
.seo-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.seo-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--v2-text-faint);
  opacity: 0.6;
}
.seo-crumbs a { color: var(--v2-text-dim); text-decoration: none; }
.seo-crumbs a:hover { color: var(--v2-accent); }

/* ---------------------------------------------------------------- header */
.seo-head { padding: 28px 0 8px; }
.seo-h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 10px 0 18px;
  color: var(--v2-text);
  max-width: 22ch;
}
/* The direct answer. Visually the lede, structurally the thing that gets quoted. */
.seo-answer {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--v2-text);
  max-width: var(--seo-measure);
  margin: 0 0 16px;
  padding-left: 18px;
  border-left: 2px solid var(--v2-accent);
}
.seo-updated {
  font-size: 13px;
  color: var(--v2-text-faint);
  margin: 0 0 8px;
}

/* ---------------------------------------------------------------- table of contents */
.seo-toc {
  background: var(--v2-surface);
  border: 1px solid var(--v2-surface-border);
  border-radius: var(--v2-radius);
  padding: 18px 22px;
  margin: 28px 0 8px;
  max-width: var(--seo-measure);
}
.seo-toc-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--v2-text-faint);
  margin-bottom: 10px;
}
.seo-toc ol {
  margin: 0;
  padding-left: 20px;
  color: var(--v2-text-dim);
  font-size: 15px;
  line-height: 1.9;
}
.seo-toc a { color: var(--v2-text-dim); text-decoration: none; }
.seo-toc a:hover { color: var(--v2-accent); text-decoration: underline; }

/* ---------------------------------------------------------------- prose */
.seo-section { padding: 34px 0 6px; }
.seo-h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--v2-text);
  max-width: 30ch;
}
.seo-h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 26px 0 10px;
  color: var(--v2-text);
}
.seo-p {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--v2-text-dim);
  max-width: var(--seo-measure);
  margin: 0 0 16px;
}
.seo-p strong, .seo-list strong, .seo-steps strong { color: var(--v2-text); font-weight: 650; }
.seo-article a { color: var(--v2-accent); text-decoration: underline; text-underline-offset: 2px; }
.seo-article a:hover { color: #fff; }

.seo-list, .seo-steps {
  max-width: var(--seo-measure);
  color: var(--v2-text-dim);
  font-size: 16.5px;
  line-height: 1.7;
  margin: 0 0 18px;
  padding-left: 22px;
}
.seo-list li, .seo-steps li { margin-bottom: 10px; }
.seo-list { list-style: none; padding-left: 0; }
.seo-list li { padding-left: 22px; position: relative; }
.seo-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v2-accent);
  opacity: 0.75;
}
.seo-steps li::marker { color: var(--v2-accent); font-weight: 700; }

.seo-note {
  background: rgba(77, 216, 255, 0.07);
  border: 1px solid rgba(77, 216, 255, 0.22);
  border-radius: var(--v2-radius);
  padding: 16px 20px;
  margin: 20px 0;
  max-width: var(--seo-measure);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--v2-text-dim);
}

.seo-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--v2-hairline);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--v2-text);
}

/* ---------------------------------------------------------------- tables */
/* Wide tables scroll inside their own container. The page body must never scroll sideways. */
.seo-table-wrap {
  overflow-x: auto;
  margin: 22px 0 26px;
  border: 1px solid var(--v2-surface-border);
  border-radius: var(--v2-radius);
  background: var(--v2-surface);
  -webkit-overflow-scrolling: touch;
}
.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
.seo-table caption {
  text-align: left;
  padding: 14px 18px 0;
  font-size: 13px;
  color: var(--v2-text-faint);
}
.seo-table th, .seo-table td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--v2-hairline);
  vertical-align: top;
  line-height: 1.5;
}
.seo-table thead th {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--v2-text-faint);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.seo-table tbody th { color: var(--v2-text); font-weight: 600; }
.seo-table td { color: var(--v2-text-dim); }
.seo-table tbody tr:last-child th, .seo-table tbody tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- FAQ */
.seo-faq { max-width: var(--seo-measure); }
.seo-faq-item {
  border: 1px solid var(--v2-surface-border);
  border-radius: var(--v2-radius);
  background: var(--v2-surface);
  margin-bottom: 10px;
  overflow: hidden;
}
.seo-faq-item summary {
  cursor: pointer;
  padding: 15px 20px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item summary::after {
  content: "+";
  color: var(--v2-accent);
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
}
.seo-faq-item[open] summary::after { content: "\2212"; }
.seo-faq-item summary h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--v2-text);
}
.seo-faq-a { padding: 0 20px 18px; }
.seo-faq-a p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--v2-text-dim);
}

/* ---------------------------------------------------------------- related + nav */
.seo-related {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  max-width: var(--seo-measure);
}
.seo-related a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--v2-surface-border);
  border-radius: 12px;
  background: var(--v2-surface);
  text-decoration: none;
  color: var(--v2-text);
  font-size: 15.5px;
}
.seo-related a:hover { border-color: var(--v2-hairline-bright); color: var(--v2-accent); }

.seo-sitenav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 26px;
  padding-bottom: 44px;
  border-top: 1px solid var(--v2-hairline);
  margin-top: 20px;
  font-size: 14px;
}
.seo-sitenav a { color: var(--v2-text-dim); text-decoration: none; }
.seo-sitenav a:hover { color: var(--v2-accent); }

.seo-close { margin-top: 40px; }

/* ---------------------------------------------------------------- hub cards */
.seo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.seo-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--v2-surface-border);
  border-radius: var(--v2-radius);
  background: var(--v2-surface);
  text-decoration: none !important;
  box-shadow: var(--v2-surface-shadow);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.seo-card:hover { box-shadow: var(--v2-surface-shadow-hover); border-color: var(--v2-hairline-bright); }
.seo-card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 650;
  color: var(--v2-text);
  line-height: 1.3;
}
.seo-card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--v2-text-dim);
}
.seo-card-more { font-size: 13.5px; color: var(--v2-accent); font-weight: 600; }

/* ---------------------------------------------------------------- calculator */
.seo-calc {
  margin: 30px 0 10px;
  padding: 24px;
  border: 1px solid var(--v2-hairline-bright);
  border-radius: var(--v2-radius-lg);
  background: var(--v2-ink-card);
}
.seo-calc .seo-h2 { margin-bottom: 18px; }
.seo-calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.seo-field { display: block; }
.seo-field-label {
  display: block;
  font-size: 13px;
  color: var(--v2-text-dim);
  margin-bottom: 6px;
}
.seo-field-input { display: flex; align-items: stretch; }
.seo-affix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--v2-hairline);
  color: var(--v2-text-faint);
  font-size: 14px;
}
.seo-field-input .seo-affix:first-child { border-radius: 10px 0 0 10px; border-right: 0; }
.seo-field-input .seo-affix:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.seo-calc input[type="number"], .seo-calc select {
  width: 100%;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--v2-hairline);
  border-radius: 10px;
  color: var(--v2-text);
  font-size: 15px;
  font-family: inherit;
  min-width: 0;
}
.seo-field-input input[type="number"] { border-radius: 0 10px 10px 0; }
.seo-field-input .seo-affix:first-child + input[type="number"] { border-radius: 0 10px 10px 0; }
.seo-calc input:focus, .seo-calc select:focus {
  outline: none;
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px var(--v2-accent-glow);
}
.seo-calc-out { display: grid; gap: 1px; }
.seo-calc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--v2-hairline);
}
.seo-calc-row:last-child { border-bottom: 0; }
.seo-calc-label { font-size: 14.5px; color: var(--v2-text-dim); }
.seo-calc-value { font-size: 16px; color: var(--v2-text); font-weight: 600; text-align: right; }
.seo-calc-row.is-big .seo-calc-value {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  color: var(--v2-accent);
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .seo-article, .seo-crumbs, .seo-sitenav { padding: 0 18px; }
  .seo-crumbs { padding-top: 84px; }
  .seo-calc { padding: 18px; border-radius: var(--v2-radius); }
}

/* ---------------------------------------------------------------- author profile */
.seo-author-role {
  font-size: 15px;
  color: var(--v2-text-dim);
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.seo-cv-entry { margin-bottom: 26px; max-width: var(--seo-measure); }
.seo-cv-entry .seo-h3 { margin-top: 0; }
.seo-cv-period {
  font-size: 13px;
  color: var(--v2-text-faint);
  margin: 2px 0 8px;
}
/* The bibliography. A profile that lists the work is evidence; one that only asserts is not. */
.seo-author-posts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  max-width: var(--seo-measure);
}
.seo-author-posts li {
  padding: 13px 16px;
  border: 1px solid var(--v2-surface-border);
  border-radius: 12px;
  background: var(--v2-surface);
}
.seo-author-posts a { font-size: 15.5px; text-decoration: none; color: var(--v2-text); }
.seo-author-posts a:hover { color: var(--v2-accent); }
.seo-author-posts time {
  display: block;
  font-size: 12.5px;
  color: var(--v2-text-faint);
  margin-top: 3px;
}
