.content-page {
  background: #fff;
}

.content-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.breadcrumbs {
  padding: 26px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumbs a {
  color: var(--blue-700);
  text-decoration: none;
}

.breadcrumbs span[aria-hidden="true"] {
  color: #9aa0a6;
}

.article-hero {
  padding: 70px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  align-items: end;
  gap: 76px;
}

.article-hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 6vw, 72px);
}

.article-lede {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-ledger {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-ledger::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--blue-600) 0 50%, var(--router) 50% 100%);
}

.hero-ledger > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ledger-row {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid #edf0f2;
}

.ledger-row:last-of-type {
  border-bottom: 0;
}

.ledger-row small {
  color: var(--muted);
  font-size: 11px;
}

.ledger-row strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.hero-ledger p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.article-body {
  padding-bottom: 96px;
}

.answer-box {
  max-width: 880px;
  margin: 0 0 64px;
  padding: 24px 26px;
  background: var(--blue-050);
  border: 1px solid #d2e3fc;
  border-left: 4px solid var(--blue-600);
  border-radius: 0 10px 10px 0;
}

.answer-box strong {
  color: var(--blue-700);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.answer-box p {
  margin: 9px 0 0;
  color: #3c4043;
  font-size: 17px;
  line-height: 1.6;
}

.content-section {
  margin-top: 72px;
}

.content-section > h2,
.faq-section > h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 570;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.content-section > p,
.content-section > ul {
  max-width: 760px;
  color: #4b4f52;
  font-size: 15px;
  line-height: 1.78;
}

.content-section > p {
  margin: 18px 0 0;
}

.content-section > ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.content-section li + li {
  margin-top: 9px;
}

.content-section a,
.content-note a {
  color: var(--blue-700);
  font-weight: 620;
  text-underline-offset: 3px;
}

.table-wrap {
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.content-table {
  min-width: 830px;
}

.content-table th {
  padding: 13px 16px;
}

.content-table td {
  padding: 15px 16px;
  line-height: 1.45;
  vertical-align: top;
}

.content-table td:first-child {
  font-weight: 680;
}

.content-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.content-table .router-cell {
  color: #3f3788;
}

.content-table .best-cell {
  color: var(--green);
  background: #f4fbf6;
  font-weight: 700;
}

.content-note {
  max-width: 840px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.choice-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.choice-card {
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.choice-card span {
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.choice-card h3 {
  margin: 13px 0 9px;
  font-size: 18px;
  font-weight: 680;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.62;
}

.directory-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.directory-card {
  min-height: 92px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.directory-card:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.directory-card strong {
  font-size: 14px;
  line-height: 1.35;
}

.directory-card span {
  margin-top: 14px;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 650;
}

.table-model-link {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

.table-model-link:hover {
  text-decoration: underline;
}

.detail-grid {
  max-width: 980px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.detail-grid > div {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-grid span {
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.detail-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.25;
}

.detail-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.provider-model-table,
.model-price-table {
  min-width: 920px;
}

.channel-callout {
  margin-top: 70px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  background: linear-gradient(90deg, var(--blue-050), var(--router-bg));
  border: 1px solid #d9def4;
  border-radius: 12px;
}

.channel-callout h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 620;
  letter-spacing: -.025em;
}

.channel-callout p {
  max-width: 670px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.text-action {
  padding: 11px 16px;
  color: #fff;
  background: var(--blue-600);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.faq-section {
  margin-top: 84px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 840px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 19px 34px 19px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 680;
  cursor: pointer;
}

.faq-list details p {
  max-width: 740px;
  margin: -4px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.related-section {
  margin-top: 84px;
}

.related-section h2 {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 620;
}

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

.related-card {
  min-height: 150px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.related-card:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.related-card span {
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.related-card strong {
  font-size: 17px;
  line-height: 1.35;
}

.page-updated {
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
}

.trust-page .answer-box strong,
.policy-index strong {
  letter-spacing: .07em;
}

.trust-hero h1 {
  max-width: 790px;
}

.trust-ledger .ledger-row strong {
  max-width: 180px;
  color: var(--blue-700);
  font-size: 15px;
  text-align: right;
}

.principle-grid,
.contact-checklist {
  max-width: 980px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.principle-grid article,
.contact-checklist > div {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.principle-grid span,
.contact-checklist span {
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.principle-grid h3,
.contact-checklist strong {
  margin: 13px 0 9px;
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.principle-grid p,
.contact-checklist p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.formula-card {
  max-width: 760px;
  margin-top: 26px;
  padding: 22px 24px;
  display: grid;
  gap: 10px;
  color: #283142;
  background: linear-gradient(90deg, var(--blue-050), #fff);
  border: 1px solid #d2e3fc;
  border-left: 4px solid var(--blue-600);
  border-radius: 0 10px 10px 0;
}

.formula-card code {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.method-steps {
  max-width: 840px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.method-steps li {
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(150px, .36fr) 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.method-steps li + li {
  margin-top: 0;
}

.method-steps strong {
  color: var(--ink);
  font-size: 13px;
}

.method-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.source-register {
  max-width: 980px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.source-register a {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.source-register a:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.source-register strong {
  font-size: 13px;
}

.source-register span {
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 650;
  text-align: right;
}

.contact-address {
  margin: 16px 0 10px;
  display: inline-block;
  color: var(--blue-700);
  font-size: 17px;
  font-weight: 720;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.contact-checklist {
  grid-template-columns: repeat(2, 1fr);
}

.policy-page .article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.policy-page .content-section {
  max-width: 840px;
}

.policy-page .content-section[id] {
  scroll-margin-top: 92px;
}

.policy-index {
  max-width: 980px;
  margin: -18px 0 72px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.policy-index strong {
  margin-right: 8px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.policy-index a {
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.policy-index a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-kicker {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.history-key {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
}

.history-key.official,
.history-marker.official {
  background: var(--blue-600);
}

.history-key.openrouter,
.history-marker.openrouter {
  background: var(--router);
}

.history-stream {
  position: relative;
  max-width: 840px;
  margin-top: 30px;
  padding-left: 30px;
}

.history-stream::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 7px;
  width: 2px;
  background: linear-gradient(var(--blue-600), var(--router));
  opacity: .24;
}

.history-event {
  position: relative;
  padding: 0 0 30px;
}

.history-marker {
  position: absolute;
  top: 7px;
  left: -30px;
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.history-event > div {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.history-event p:first-child {
  margin: 0 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
}

.history-event p:first-child span {
  color: var(--blue-700);
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.history-event h3 {
  margin: 0;
  font-size: 19px;
}

.history-delta {
  margin: 9px 0;
  color: #3c4043;
  font-size: 13px;
  line-height: 1.6;
}

.history-event a {
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 650;
}

.history-empty {
  min-height: 175px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  background: linear-gradient(135deg, var(--blue-050), #fff 62%, var(--router-bg));
  border: 1px solid #d9e2f3;
  border-radius: 12px;
}

.history-empty > span {
  color: var(--blue-600);
  font-size: 42px;
  font-weight: 720;
  letter-spacing: -.06em;
}

.history-empty strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.history-empty p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .article-hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-ledger {
    max-width: 520px;
  }

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

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

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

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

@media (max-width: 640px) {
  .content-shell {
    width: min(100% - 28px, 1100px);
  }

  .article-hero {
    padding: 48px 0 50px;
  }

  .article-hero h1 {
    font-size: 45px;
  }

  .article-lede {
    font-size: 16px;
  }

  .answer-box {
    margin-bottom: 54px;
    padding: 20px;
  }

  .answer-box p {
    font-size: 15px;
  }

  .content-section,
  .faq-section,
  .related-section {
    margin-top: 60px;
  }

  .channel-callout {
    grid-template-columns: 1fr;
  }

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

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

  .history-stream {
    padding-left: 24px;
  }

  .history-stream::before {
    left: 5px;
  }

  .history-marker {
    left: -26px;
  }

  .history-empty {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }

  .contact-checklist,
  .source-register {
    grid-template-columns: 1fr;
  }

  .source-register a:nth-child(odd) {
    border-right: 0;
  }

  .method-steps li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .policy-index {
    margin-bottom: 52px;
    align-items: flex-start;
  }
}
