/* Knowledge center. Mobile first, and separate from the marketing site.css. */
:root {
  --ink: #102744;
  --muted: #4b6280;
  --brand: #0f3b82;
  --accent: #3b82f6;
  --soft: #e8f0ff;
  --bg: #f7f9fc;
  --card: #ffffff;
  --line: #d7e2f4;
  --ok: #0f766e;
  --shadow: 0 18px 50px rgba(15, 59, 130, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  background: #fff;
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus { top: 8px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 252, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-compact { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--brand); }
.brand-slogan {
  color: var(--accent);
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-style: italic;
  font-size: 12px;
}
.links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.links a { text-decoration: none; color: var(--ink); font-weight: 650; }
.links a:hover { color: var(--brand); }
.learn-home, .learn-article { padding: 28px 0 56px; }
.learn-article { width: min(720px, calc(100% - 32px)); margin: 0 auto; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
h1 { font-size: 1.7rem; line-height: 1.35; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 1.28rem; line-height: 1.4; margin: 2.1rem 0 0.75rem; }
h3 { font-size: 1.05rem; line-height: 1.45; margin: 0 0 8px; }
p { margin: 0 0 1rem; }
.lead, .learn-answer {
  font-size: 1.06rem;
  background: var(--soft);
  border-radius: 16px;
  padding: 14px 16px;
}
.learn-meta, .empty { color: var(--muted); }
.crumb { font-size: 14px; margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.learn-group { margin-top: 28px; }
.cards { display: grid; gap: 14px; }
.card, .example, .misuse, .practice, .callout, .learn-save, .related {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.card { padding: 16px 16px 8px; }
.card h3 { font-size: 1.12rem; }
.card a { text-decoration: none; }
.card a:hover { text-decoration: underline; }
.example, .misuse, .callout { margin: 0 0 14px; padding: 14px 16px; box-shadow: none; }
.example blockquote {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.14rem;
  line-height: 1.5;
}
.example blockquote p { margin: 0; }
.example figcaption { margin-top: 8px; color: var(--muted); }
.table-scroll { margin: 0 0 16px; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.compare caption {
  display: block;
  width: 100%;
  text-align: left;
  font-weight: 700;
  margin: 0 0 8px;
  caption-side: top;
}
.compare th, .compare td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.compare th { background: #f3f7ff; border-top: 0; }
.misuse-wrong, .misuse-right { margin-bottom: 6px; }
.misuse-wrong span, .misuse-right span, .practice-answer span {
  display: inline-block;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.misuse-wrong span { color: #9f1239; }
.misuse-right span, .practice-answer span { color: var(--ok); }
.callout { background: #f8fbff; }
.practice {
  margin: 14px 0;
  padding: 16px;
  background: #f3fbf8;
  border-color: #b7e4da;
  box-shadow: none;
}
.practice h3 { color: var(--ok); }
.related, .learn-save { margin-top: 28px; padding: 16px 16px 18px; }
.related ul { margin: 0; padding-left: 1.2rem; }
.related li { margin: 0.35rem 0; }
.learn-sign {
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-style: italic;
  color: var(--accent);
}
.learn-actions, .term-tools ul { display: flex; flex-direction: column; gap: 10px; }
.term-tools, .learn-tools {
  margin: 22px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.term-tools ul { list-style: none; margin: 0 0 12px; padding: 0; }
.term-tools li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.term-tools li span { font-weight: 700; min-width: 7rem; }
.copy-status:empty { display: none; }
.copy-status, .copy-warn { color: var(--ok); font-weight: 650; }
.copy-warn { color: #9f1239; }
button.btn { width: 100%; font: inherit; cursor: pointer; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.btn:hover { background: #0c3070; color: #fff; }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); color: var(--brand); }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot { display: grid; gap: 12px; }
.foot-brand { display: flex; gap: 10px; align-items: baseline; }
.foot-brand em {
  color: var(--accent);
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
}
.legal-entity { color: var(--muted); font-size: 14px; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

@media (max-width: 640px) {
  .compare { display: block; width: 100%; border: 0; background: transparent; }
  .compare caption { display: block; }
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr {
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }
  .compare td { border-top: 1px solid var(--line); }
  .compare tr td:first-child { border-top: 0; }
  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
}

@media (min-width: 720px) {
  h1 { font-size: 2.05rem; }
  .learn-home, .learn-article { padding-top: 42px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:only-child { grid-column: 1 / -1; }
  .learn-actions, .term-tools ul { flex-direction: row; flex-wrap: wrap; }
  .learn-actions .btn, .term-tools .btn, button.btn { width: auto; }
}
