/* Alexa排名流量联盟 (www.alexaz.com) Design System
   100% Local CSS, Zero External CDN, Mobile-first 375px-safe */

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --navy: #0b192c;
  --navy-2: #16365e;
  --primary: #1d6fd8;
  --primary-dark: #1557b0;
  --accent: #ea6a0a;
  --accent-soft: #fff4eb;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --green: #059669;
  --green-bg: #ecfdf5;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --rose: #be123c;
  --rose-bg: #fff1f2;
  --blue-bg: #eff6ff;
  --indigo: #4338ca;
  --indigo-bg: #eef2ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -8px rgba(15, 23, 42, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 5px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
  line-height: 1.45;
}

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 0;
}

.brand-logo img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--blue-bg);
  color: var(--primary);
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}

.header-search input {
  border: 0;
  background: transparent;
  padding: 7px 10px;
  font-size: 13px;
  width: 170px;
  color: var(--text);
  outline: none;
}

.header-search button {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.header-search button:hover {
  background: var(--primary-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  cursor: pointer;
}

/* Homepage Verbatim Announcement Bar */
.announce-bar {
  background: linear-gradient(90deg, #eff6ff 0%, #fff7ed 100%);
  border-bottom: 1px solid #dbeafe;
  padding: 10px 0;
}

.announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.announce-tag {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-top: 2px;
}

.announce-text {
  margin: 0;
  font-size: 13.5px;
  color: #1e3a5f;
  line-height: 1.55;
}

/* Hero */
.hero-section {
  padding: 24px 0 8px;
}

.hero-card {
  background: radial-gradient(circle at 85% 15%, rgba(234, 106, 10, 0.22), transparent 36%),
              radial-gradient(circle at 12% 90%, rgba(29, 111, 216, 0.35), transparent 45%),
              linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-pill {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.hero-subpill {
  font-size: 13px;
  color: #cbd5e1;
}

.hero-title {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 15px;
  color: #dbeafe;
  max-width: 860px;
}

.hero-lead code {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-form {
  display: flex;
  gap: 10px;
  max-width: 760px;
}

.hero-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 0 14px;
  min-width: 0;
}

.hero-input-wrap.light-input {
  border: 1px solid var(--border-strong);
}

.hero-icon {
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 8px;
}

.hero-input-wrap input {
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  padding: 13px 0;
  font-size: 15px;
  color: var(--text);
  background: transparent;
}

.quick-try {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-label {
  font-size: 13px;
  color: #94a3b8;
}

.quick-chip {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.15s ease;
}

.quick-chip:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.tool-inputs .quick-chip {
  background: var(--surface-soft);
  color: var(--text-2);
  border: 1px solid var(--border-strong);
}

.tool-inputs .quick-chip:hover {
  background: var(--blue-bg);
  color: var(--primary);
  border-color: var(--primary);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-metric strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.hero-metric span {
  font-size: 12.5px;
  color: #cbd5e1;
}

/* Sub Hero */
.sub-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.sub-hero h1 {
  margin: 8px 0 8px;
  font-size: 26px;
  line-height: 1.3;
  color: var(--text);
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-sub {
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
  max-width: 880px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary:hover {
  background: #c85806;
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  color: var(--text-2);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Sections & Cards */
.section {
  padding: 24px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: 21px;
  color: var(--text);
}

.section-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.section-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-pad {
  padding: 22px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
}

.card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-head-row p {
  margin: 2px 0 0;
  font-size: 13.5px;
}

/* Pillar Grid */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pillar-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--text);
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.icon-blue { background: var(--blue-bg); color: var(--primary); }
.icon-orange { background: var(--accent-soft); color: var(--accent); }
.icon-green { background: var(--green-bg); color: var(--green); }
.icon-indigo { background: var(--indigo-bg); color: var(--indigo); }

.pillar-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.pillar-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-blue { background: var(--blue-bg); color: var(--primary); }
.badge-orange { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-rose { background: var(--rose-bg); color: var(--rose); }
.badge-indigo { background: var(--indigo-bg); color: var(--indigo); }
.badge-slate { background: #f1f5f9; color: #475569; }

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

.data-table thead th {
  background: var(--surface-soft);
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: #f8fbff;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.compact-table th,
.compact-table td {
  padding: 10px 10px;
  font-size: 13.5px;
}

.small-cell {
  max-width: 260px;
  font-size: 13px;
  color: var(--text-2);
}

.domain-link {
  display: inline-flex;
  flex-direction: column;
  color: var(--text);
}

.domain-link strong {
  color: var(--primary);
}

.domain-cn {
  font-size: 12.5px;
  color: var(--muted);
}

.action-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* Two Column Grid */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.inline-tld-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-form input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
}

.inline-form input:focus {
  border-color: var(--primary);
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  background: var(--surface-soft);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Report Page */
.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.report-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.report-title-row h1 {
  margin: 0;
  word-break: break-all;
}

.report-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.kpi-label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.kpi-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.kpi-value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.kpi-note {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* TLD Matrix */
.tld-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tld-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  transition: border-color 0.15s ease;
}

.tld-item:hover {
  border-color: var(--primary);
}

.tld-free {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.tld-ext {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.tld-name {
  font-size: 14.5px;
  word-break: break-all;
}

/* Key-Value Table */
.kv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.kv-table th,
.kv-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.kv-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}

.kv-table tr:last-child th,
.kv-table tr:last-child td {
  border-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-2);
}

/* AI Bots Grid */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.bot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Related Grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.related-chip {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.related-chip:hover {
  border-color: var(--primary);
}

.related-chip strong {
  font-size: 14px;
  color: var(--primary);
}

.related-chip span {
  font-size: 12px;
  color: var(--muted);
}

/* Lifecycle & Checklist */
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.life-step {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.life-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: var(--blue-bg);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.life-step h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.life-step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.check-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.check-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
}

/* Tools */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-row {
  margin-bottom: 14px;
}

.field-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.field-row input,
.field-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.field-row input:focus,
.field-row select:focus {
  border-color: var(--primary);
}

.check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.chk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
}

.chk input {
  margin-top: 3px;
}

.tool-output-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.out-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-strong);
  font-size: 14px;
}

.out-kpi:last-of-type {
  border-bottom: 0;
}

.out-kpi.highlight strong {
  color: var(--accent);
  font-size: 18px;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.code-box {
  margin: 0;
  padding: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}

/* Articles */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  flex-wrap: wrap;
}

.article-card h2,
.article-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.4;
}

.article-card h2 a,
.article-card h3 a {
  color: var(--text);
}

.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--primary);
}

.article-card p {
  margin: 0 0 14px;
  font-size: 13.8px;
  color: var(--muted);
  flex: 1;
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more {
  font-size: 13.5px;
  font-weight: 600;
}

.article-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.article-h1 {
  font-size: 28px !important;
  margin: 10px 0 12px !important;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}

.prose h2 {
  font-size: 20px;
  margin: 26px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 14px;
  color: var(--text-2);
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-2);
}

.prose li {
  margin-bottom: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13.5px;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 9px 10px;
  text-align: left;
}

.prose th {
  background: var(--surface-soft);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.article-cta {
  margin-top: 22px;
  padding: 18px;
  background: var(--blue-bg);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

.article-cta p {
  margin: 4px 0 12px;
  font-size: 13.5px;
}

.side-links,
.side-articles {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.side-links li {
  border-bottom: 1px solid var(--border);
}

.side-links li:last-child,
.side-articles li:last-child {
  border-bottom: 0;
}

.side-links a {
  display: block;
  padding: 9px 0;
  font-size: 13.8px;
  color: var(--text-2);
}

.side-links a:hover {
  color: var(--primary);
}

.side-articles li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.side-articles a {
  display: block;
  font-size: 13.8px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.side-articles a:hover {
  color: var(--primary);
}

.not-found-box {
  max-width: 660px;
  margin: 30px auto;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  margin-top: 36px;
  padding-top: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 28px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-logo-row strong {
  font-size: 18px;
  color: #fff;
}

.footer-domain {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}

.footer-desc {
  margin: 0;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.65;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 7px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 13.5px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

.footer-bottom a {
  color: #e2e8f0;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive Breakpoints (Strict 375px zero-horizontal-scroll guarantee) */
@media (max-width: 1024px) {
  .header-search {
    display: none;
  }
  .pillar-grid,
  .lifecycle-grid,
  .tld-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 14px;
    border-top: 1px solid var(--border);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 10px 12px;
  }
  .hero-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .hero-title {
    font-size: 22px;
  }
  .hero-form {
    flex-direction: column;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col-grid,
  .tool-grid,
  .checklist-grid,
  .bot-grid,
  .article-grid,
  .pillar-grid,
  .lifecycle-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tld-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sub-hero h1,
  .article-h1 {
    font-size: 21px !important;
  }
  .card-pad {
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }
  .brand-logo img {
    height: 38px;
  }
  .kpi-grid,
  .tld-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .kv-table th {
    width: 38%;
  }
  .out-kpi {
    flex-direction: column;
    align-items: flex-start;
  }
}
