:root {
  --seo-ink: #142033;
  --seo-muted: #5c6b7c;
  --seo-line: #dce4ec;
  --seo-soft: #f3f7fa;
  --seo-blue: #1457a5;
  --seo-blue-dark: #0c3f7b;
}

.seo-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--seo-line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 16px max(24px, calc((100vw - 1240px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.seo-brand {
  color: var(--seo-blue-dark);
  font-size: 1.22rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.seo-brand span {
  color: var(--seo-muted);
  display: block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.seo-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}

.seo-header nav a,
.seo-footer a,
.breadcrumbs a,
.related-grid a,
.directory-list a {
  color: var(--seo-blue);
  text-decoration: none;
}

.seo-header nav a:hover,
.seo-footer a:hover,
.related-grid a:hover,
.directory-list a:hover {
  text-decoration: underline;
}

.seo-main {
  color: var(--seo-ink);
  margin: 0 auto;
  max-width: 1240px;
  padding: 24px;
}

.breadcrumbs {
  color: var(--seo-muted);
  font-size: .9rem;
  margin: 0 0 18px;
}

.hero-card,
.content-card,
.error-card,
.related-grid,
.verification-notice {
  background: #fff;
  border: 1px solid var(--seo-line);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(28, 49, 75, .05);
  margin-bottom: 20px;
  padding: clamp(20px, 4vw, 38px);
}

.hero-card h1,
.content-card h1,
.error-card h1 {
  color: var(--seo-ink);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.25;
  margin: 6px 0 14px;
}

.content-card h2,
.related-grid h2 {
  font-size: 1.28rem;
  margin: 24px 0 10px;
}

.content-card.compact {
  padding-bottom: 20px;
  padding-top: 20px;
}

.content-card.compact h2 {
  margin-top: 0;
}

.lead {
  color: #3e5064;
  font-size: 1.05rem;
  line-height: 1.8;
}

.muted,
.meta-row {
  color: var(--seo-muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  font-size: .9rem;
  gap: 8px 24px;
  margin: 18px 0;
}

.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin: 22px 0;
}

.stat-grid div {
  background: var(--seo-soft);
  border-radius: 10px;
  padding: 15px;
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.stat-grid strong {
  color: var(--seo-blue-dark);
  font-size: 1.42rem;
}

.stat-grid span {
  color: var(--seo-muted);
  font-size: .82rem;
  margin-top: 3px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-actions a,
.copy-link {
  background: #fff;
  border: 1px solid #bdcad8;
  border-radius: 8px;
  color: var(--seo-blue);
  cursor: pointer;
  font: inherit;
  padding: 9px 14px;
  text-decoration: none;
}

.hero-actions .primary-link {
  background: var(--seo-blue);
  border-color: var(--seo-blue);
  color: #fff;
}

.seo-table-wrap {
  overflow-x: auto;
}

.seo-table-wrap table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}

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

.seo-table-wrap th {
  background: var(--seo-soft);
  color: #34475a;
  font-size: .86rem;
}

.seo-table-wrap td {
  font-size: .88rem;
}

.seo-table-wrap a {
  color: var(--seo-blue);
}

.seo-pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.seo-pagination a,
.seo-pagination span {
  border: 1px solid var(--seo-line);
  border-radius: 7px;
  color: var(--seo-blue);
  padding: 8px 13px;
  text-decoration: none;
}

.verification-notice {
  background: #fff9e8;
  border-color: #ead59b;
}

.verification-notice p {
  line-height: 1.7;
  margin-bottom: 0;
}

.related-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.related-grid > h2 {
  grid-column: 1 / -1;
  margin: 0;
}

.related-grid h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.related-grid ul {
  line-height: 1.7;
  margin: 0;
  padding-left: 20px;
}

.directory-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.directory-list a {
  background: #fff;
  border: 1px solid var(--seo-line);
  border-radius: 10px;
  display: block;
  height: 100%;
  padding: 18px;
}

.directory-list strong,
.directory-list span {
  display: block;
}

.directory-list span {
  color: var(--seo-muted);
  font-size: .86rem;
  margin-top: 6px;
}

.error-card {
  margin: 8vh auto;
  max-width: 760px;
  text-align: center;
}

.error-code {
  color: var(--seo-blue);
  font-size: 4rem;
  font-weight: 800;
  margin: 0;
}

.error-card .hero-actions {
  justify-content: center;
}

.seo-footer {
  background: #13263b;
  color: #dbe5ef;
  line-height: 1.65;
  margin-top: 36px;
  padding: 30px max(24px, calc((100vw - 1192px) / 2));
}

.seo-footer p {
  margin: 8px 0;
  max-width: 980px;
}

@media (max-width: 820px) {
  .seo-header {
    align-items: flex-start;
    position: static;
  }

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

  .stat-grid,
  .directory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .seo-header {
    display: block;
  }

  .seo-header nav {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .seo-main {
    padding: 16px;
  }

  .stat-grid,
  .directory-list {
    grid-template-columns: 1fr;
  }
}
