:root {
  --brand-blue: #1266a8;
  --brand-sky: #1e96d2;
  --brand-orange: #e86f0a;
  --brand-teal: #0f766e;
  --brand-indigo: #4338ca;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 28px rgba(18, 102, 168, 0.09);
  --max-w: 1180px;
}

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

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

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

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-orange);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

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

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

.main-nav a {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--brand-blue);
  background: #edf5fc;
}

.main-nav a.is-active {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 6px 3px 14px;
  width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 3px rgba(30, 150, 210, 0.14);
  background: #fff;
}

.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}

.header-search button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-search button:hover {
  color: var(--brand-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* Mandatory Announcement Banner directly below header navigation */
.announce-bar {
  background: linear-gradient(90deg, #fff7ed 0%, #eff6ff 100%);
  border-bottom: 1px solid #fed7aa;
  padding: 11px 0;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.announce-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.announce-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #1e293b;
  font-weight: 500;
}

/* Hero */
.hero-section {
  background: radial-gradient(circle at 85% 20%, rgba(30, 150, 210, 0.12), transparent 45%),
              radial-gradient(circle at 12% 85%, rgba(232, 111, 10, 0.08), transparent 45%),
              linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 56px 0 60px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  background: #e6f2fb;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.text-gradient {
  background: linear-gradient(95deg, var(--brand-blue) 0%, var(--brand-sky) 55%, var(--brand-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-size: 20px;
  color: var(--brand-blue);
  line-height: 1.25;
}

.metric-item span {
  font-size: 13px;
  color: var(--muted);
}

/* Panel Card */
.panel-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-blue { background: var(--brand-sky); }
.dot-orange { background: var(--brand-orange); }
.dot-green { background: #10b981; }

.panel-title {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

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

.matrix-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fcfdff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.matrix-tile:hover {
  transform: translateY(-2px);
  border-color: var(--brand-sky);
  box-shadow: 0 8px 20px rgba(18, 102, 168, 0.08);
}

.matrix-tile strong {
  font-size: 15.5px;
  color: var(--ink);
}

.matrix-tile small {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.tile-tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.tag-blue { background: #e0f2fe; color: #0369a1; }
.tag-orange { background: #ffedd5; color: #c2410c; }
.tag-teal { background: #ccfbf1; color: #0f766e; }
.tag-indigo { background: #e0e7ff; color: #3730a3; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: #0d5087;
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--brand-blue);
  border-color: #cbd5e1;
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  background: #f0f7fd;
  color: var(--brand-blue);
}

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

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 58px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-orange);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
}

.section-more {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* 4 Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

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

.icon-blue { background: #e0f2fe; color: var(--brand-blue); }
.icon-orange { background: #ffedd5; color: var(--brand-orange); }
.icon-teal { background: #ccfbf1; color: var(--brand-teal); }
.icon-indigo { background: #e0e7ff; color: var(--brand-indigo); }

.pillar-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.pillar-card h3 a {
  color: var(--ink);
}

.pillar-card h3 a:hover {
  color: var(--brand-blue);
}

.pillar-card p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.pillar-list {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  flex-grow: 1;
}

.pillar-list li {
  margin-bottom: 6px;
}

.card-link {
  font-weight: 600;
  font-size: 14px;
}

/* Comparison Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

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

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

.compare-table thead th {
  background: #f1f5f9;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

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

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

/* Category Pills */
.cat-pills,
.tool-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: #ffffff;
  border: 1px solid var(--border);
}

.pill:hover,
.pill.is-active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

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

.article-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

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

.badge-cat {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #e6f2fb;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 12px;
}

.article-title {
  margin: 0 0 10px;
  font-size: 17.5px;
  line-height: 1.42;
}

.article-title a {
  color: var(--ink);
}

.article-title a:hover {
  color: var(--brand-blue);
}

.article-excerpt {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-2);
  flex-grow: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
}

.article-tags {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.read-more {
  font-weight: 600;
  white-space: nowrap;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--brand-orange);
}

.faq-answer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 14.5px;
}

.faq-answer p {
  margin: 0;
}

/* Subpage Hero */
.sub-hero,
.article-hero {
  background: linear-gradient(180deg, #f3f8fe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 40px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.sub-hero-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-blue);
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sub-hero h1,
.article-hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.3;
  color: var(--ink);
}

.sub-hero-desc {
  margin: 0;
  max-width: 780px;
  color: var(--ink-2);
  font-size: 16px;
}

.tool-anchor-nav {
  margin-top: 20px;
  margin-bottom: 0;
}

/* Hub Features & Workbench */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.feature-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-box h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--ink);
}

.feature-box p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.workbench-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.workbench-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.workbench-head h2 {
  margin: 0;
  font-size: 22px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.tool-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.field input[type="text"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 3px rgba(30, 150, 210, 0.14);
}

.checkbox-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}

.tool-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 14px;
}

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

.code-area {
  width: 100%;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  resize: vertical;
}

.advisor-card {
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 22px;
}

.advisor-card h3 {
  margin: 10px 0 8px;
  font-size: 19px;
}

.advisor-card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.advisor-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.advisor-card li {
  margin-bottom: 6px;
}

/* Article Detail */
.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.article-lead-box {
  margin: 0;
  padding: 16px 20px;
  background: #ffffff;
  border-left: 4px solid var(--brand-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
  font-size: 15.5px;
  box-shadow: var(--shadow-sm);
}

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

.prose h2 {
  margin: 30px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 22px;
  color: var(--ink);
  scroll-margin-top: 86px;
}

.prose h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  color: var(--ink);
}

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

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

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

.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
}

.prose code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: Consolas, Monaco, monospace;
}

.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.prose .table-wrap {
  margin: 18px 0;
}

.article-tags-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.tag-chip {
  padding: 3px 11px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.tag-chip:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.safety-notice {
  margin-top: 22px;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #166534;
}

.article-prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.pn-item {
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pn-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.pn-item a {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.pn-item a:hover {
  color: var(--brand-blue);
}

.pn-item em {
  font-style: normal;
  font-size: 13.5px;
  color: var(--muted);
}

.pn-next {
  text-align: right;
}

/* Sidebar */
.article-sidebar,
.about-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ink);
}

.toc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
}

.toc-list li {
  margin-bottom: 7px;
}

.cta-card {
  background: linear-gradient(155deg, #eff6ff 0%, #fff7ed 100%);
  border-color: #bfdbfe;
}

.cta-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.side-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-links li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}

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

/* About & Search & Pagination */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: start;
}

.meta-dl {
  margin: 0;
  font-size: 13.5px;
}

.meta-dl dt {
  font-weight: 700;
  color: var(--muted);
  margin-top: 10px;
}

.meta-dl dt:first-child {
  margin-top: 0;
}

.meta-dl dd {
  margin: 3px 0 0;
  color: var(--ink);
}

.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin-top: 14px;
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.search-count {
  margin: 0 0 20px;
  color: var(--ink-2);
}

.empty-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
}

.empty-box .cat-pills {
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 0;
}

.code-404 {
  display: inline-block;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.page-btn:hover,
.page-btn.is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 48px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 38px;
}

.footer-logo-wrap {
  display: inline-block;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.footer-logo {
  height: 38px;
  width: auto;
}

.footer-desc {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.footer-safety {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #ffffff;
}

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

.footer-col li {
  margin-bottom: 9px;
  font-size: 13.5px;
}

.footer-col a {
  color: #cbd5e1;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 18px 0;
  font-size: 13px;
  color: #94a3b8;
}

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

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

.footer-bottom a:hover {
  color: #fb923c;
}

/* Responsive Breakpoints (verified down to 375px with zero horizontal overflow) */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 4px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .tool-grid,
  .article-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .container {
    padding: 0 15px;
  }

  .header-inner {
    min-height: 62px;
    gap: 8px;
  }

  .brand-logo {
    height: 36px;
  }

  .header-search {
    width: 145px;
    padding-left: 10px;
  }

  .announce-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-section {
    padding: 34px 0 38px;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .sub-hero h1,
  .article-hero h1 {
    font-size: 24px;
  }

  .section {
    padding: 38px 0;
  }

  .section-head,
  .workbench-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .pillars-grid,
  .feature-strip,
  .articles-grid,
  .quick-matrix,
  .article-prev-next,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pn-next {
    text-align: left;
  }

  .workbench-card {
    padding: 18px 15px;
  }

  .search-page-form {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .header-search {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .metric-item strong {
    font-size: 16px;
  }
}
