/* Saylane SEO & comparison page extensions — strictly follows family.css & style.css */
.seo-breadcrumb {
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--text-3);
}
.seo-breadcrumb > ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.seo-breadcrumb > ol > li + li::before {
  content: "/" / "";
  margin-inline-end: 0.45rem;
  color: var(--text-3);
}
.seo-breadcrumb a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.22);
  text-underline-offset: 3px;
}
.seo-breadcrumb a:hover,
.seo-breadcrumb a:focus-visible {
  color: var(--text);
  text-decoration-color: currentColor;
  position: relative;
  z-index: 1;
}
.seo-breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
@media (forced-colors: active) {
  .seo-breadcrumb [aria-current="page"] {
    text-decoration: underline;
  }
}

.seo-hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(56px, 7vw, 88px);
}
.seo-hero h1 {
  max-width: 19ch;
  font: 600 clamp(36px, 5vw, 64px)/1.08 var(--display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
html[lang^="zh"] .seo-hero h1 {
  max-width: 22ch;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.seo-hero h1 > span {
  color: var(--mint);
}
.seo-hero .seo-lead {
  max-width: 680px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.75;
}
.seo-hero .hero-actions {
  justify-content: flex-start;
  margin: 30px 0 0;
}
.seo-meta-note {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 13px;
}

.seo-section {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  border-top: 1px solid var(--line-soft);
}
.seo-section > h2 {
  max-width: 24ch;
  text-wrap: balance;
}
.seo-section > .section-intro {
  max-width: 680px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.75;
}

/* Terminal / workflow showcase box */
.workflow-panel {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--fam-r-lg);
  background: var(--fam-surface);
  overflow: hidden;
}
.workflow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-3);
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.workflow-cell {
  padding: 24px;
}
.workflow-cell + .workflow-cell {
  border-left: 1px solid var(--line-soft);
}
.workflow-step-label {
  display: block;
  margin-bottom: 10px;
  font: 500 12px/1.4 var(--fam-mono);
  color: var(--mint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.workflow-cell h3 {
  font-size: 17px;
  font-weight: 600;
}
.workflow-cell p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
}
.workflow-quote {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--fam-r-md);
  border: 1px solid var(--line);
  background: var(--fam-canvas);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.workflow-quote small {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  color: var(--text-3);
}
@media (max-width: 860px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .workflow-cell + .workflow-cell {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
}

/* Responsive comparison table (modern-web-guidance: responsive-table) */
.seo-table-region {
  margin-top: 34px;
  overflow: auto;
  max-inline-size: 100%;
  container-type: inline-size;
  border: 1px solid var(--line);
  border-radius: var(--fam-r-lg);
  background: var(--fam-surface);
}
.seo-table-region:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.seo-table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  line-height: 1.6;
}
.seo-table caption {
  padding: 16px 20px;
  text-align: start;
  font-size: 13px;
  color: var(--text-3);
  border-block-end: 1px solid var(--line);
  background: var(--fam-surface);
}
.seo-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}
.seo-table th,
.seo-table td {
  padding: 16px 20px;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--line-soft);
}
.seo-table thead th {
  background: var(--fam-raised);
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  border-block-end: 1px solid var(--line);
}
.seo-table thead th.is-saylane {
  color: var(--mint);
}
.seo-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--fam-surface);
  color: var(--text);
  font-weight: 500;
  min-inline-size: 170px;
}
.seo-table tbody td {
  color: var(--text-2);
}
.seo-table tbody td.is-saylane {
  color: var(--text);
  background: color-mix(in srgb, var(--mint) 5%, var(--fam-surface));
}
.seo-table tbody tr:last-child th,
.seo-table tbody tr:last-child td {
  border-block-end: 0;
}
.seo-table strong {
  color: var(--text);
  font-weight: 600;
}

@container (width < 680px) {
  .seo-table,
  .seo-table thead,
  .seo-table tbody,
  .seo-table tr,
  .seo-table th,
  .seo-table td {
    display: block;
  }
  .seo-table thead {
    display: none;
  }
  .seo-table tbody tr {
    margin: 12px;
    border: 1px solid var(--line);
    border-radius: var(--fam-r-md);
    overflow: hidden;
  }
  .seo-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--fam-raised);
    border-block-end: 1px solid var(--line);
    padding: 12px 16px;
  }
  .seo-table tbody td {
    padding: 11px 16px;
  }
  .seo-table tbody td::before {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-3);
    margin-block-end: 2px;
  }
  .seo-table tbody td.is-saylane::before {
    color: var(--mint);
  }
  .seo-table tbody td:nth-child(2)::before { content: var(--label-2) ": "; }
  .seo-table tbody td:nth-child(3)::before { content: var(--label-3) ": "; }
  .seo-table tbody td:nth-child(4)::before { content: var(--label-4) ": "; }
  .seo-table tbody td:nth-child(5)::before { content: var(--label-5) ": "; }
}

.seo-ledger {
  margin-top: 34px;
}
.seo-ledger h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.seo-ledger p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.seo-cta-band {
  margin-top: 36px;
  padding: clamp(32px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--fam-r-lg);
  background: radial-gradient(ellipse 65% 90% at 50% 0%, #1c2c25, var(--fam-surface) 72%);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 28px;
  align-items: center;
}
.seo-cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
}
.seo-cta-band p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 58ch;
}
.seo-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 860px) {
  .seo-cta-band {
    grid-template-columns: 1fr;
  }
}

.lang-pill {
  padding: 5px 10px;
  border-radius: var(--fam-r-sm);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13px;
  transition: color 0.15s, border-color 0.15s;
}
.lang-pill:hover {
  color: var(--text);
  border-color: rgb(255 255 255 / 0.25);
}
