/* ============================================
   Doc Site Chrome — minimal layout only.
   No element-level selectors. No font overrides.
   Components use design-system.css exclusively.
   ============================================ */

/* --- Site Header (blue nav bar) --- */
.site-header {
  background: linear-gradient(135deg, #0d56b8 0%, #124083 52%, #0b2b63 100%);
  border-bottom: 1px solid rgba(0, 203, 207, 0.45);
  box-shadow: 0 8px 20px -14px rgba(5, 22, 56, 0.72);
  color: #fff;
  padding: 0 1.5rem;
  font-family: var(--txds-font-family);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}
.site-header__title {
  color: #fff;
  text-decoration: none;
  font-size: var(--txds-font-size-body-lg-eb);
  font-weight: var(--txds-font-weight-extrabold);
  line-height: var(--txds-line-height-body-lg-eb);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-header__title:hover,
.site-header__title:focus {
  color: #eef6ff;
}
.site-header__nav {
  margin-left: auto;
}
.site-header__menu {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.site-header__menu a {
  color: #d5e4f6;
  text-decoration: none;
  font-size: var(--txds-font-size-body-sm);
  font-weight: var(--txds-font-weight-bold);
  line-height: var(--txds-line-height-body-sm);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.site-header__menu a:hover,
.site-header__menu a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.site-header__menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: var(--txds-font-size-body-sm);
  font-weight: var(--txds-font-weight-bold);
  line-height: var(--txds-line-height-body-sm);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.site-header__menu-toggle:hover,
.site-header__menu-toggle:focus {
  background: rgba(255, 255, 255, 0.22);
}
.site-header__menu-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.site-header__menu-toggle-icon span {
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  display: block;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* --- Layout (sidebar + main) --- */
.site-body {
  display: flex;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1.5rem;
  gap: 3.5rem;
  font-family: var(--txds-font-family);
  align-items: flex-start;
}

/* --- Sidebar --- */
.site-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}
.site-sidebar__heading {
  font-size: var(--txds-font-size-body-sm);
  text-transform: none;
  letter-spacing: 0.04em;
  color: #5e6469;
  margin-bottom: 8px;
  font-weight: var(--txds-font-weight-bold);
  line-height: var(--txds-line-height-body-sm);
}
.site-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-sidebar__list li {
  margin-bottom: 1px;
}
.site-sidebar__list a {
  display: block;
  padding: 5px 10px;
  color: #2f4a63;
  text-decoration: none;
  font-size: var(--txds-font-size-body-sm);
  font-weight: var(--txds-font-weight-bold);
  line-height: var(--txds-line-height-body-sm);
  border-radius: 4px;
  transition: background 0.15s;
}
.site-sidebar__list a:hover {
  background: #f4f9ff;
  color: #1f3447;
}
.site-sidebar__list a[aria-current="page"] {
  background: #2a3d4e;
  color: #fff;
  font-weight: 700;
}

/* --- Main Content --- */
.site-main {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

/* --- Component Page --- */
.component-page__title {
  font-size: var(--txds-font-size-h2);
  font-weight: var(--txds-font-weight-semibold);
  line-height: var(--txds-line-height-h2);
  margin-bottom: 0.5rem;
  color: var(--txds-color-gray-70, #403c37);
}
.component-page__description {
  font-size: var(--txds-font-size-body-md);
  font-weight: var(--txds-font-weight-normal);
  line-height: var(--txds-line-height-body-md);
  color: var(--txds-color-gray-60, #5b5a56);
  margin-bottom: 1.5rem;
  max-width: 70ch;
}
.component-page__meta-list {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  font-size: var(--txds-font-size-body-sm);
  line-height: var(--txds-line-height-body-sm);
  color: var(--txds-color-gray-60, #5b5a56);
}
.component-page__meta-list li {
  margin-bottom: 0.25rem;
}
.component-page__preview-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 1.5rem;
  font-size: var(--txds-font-size-body-sm);
  font-weight: var(--txds-font-weight-bold);
  line-height: var(--txds-line-height-body-sm);
  color: #486687;
  background: #f0f6ff;
  border: 1px solid #b3d4fc;
  border-radius: 6px;
  text-decoration: none;
}
.component-page__preview-link:hover {
  background: #dceafc;
}

@media (max-width: 1024px) {
  .site-body {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .site-sidebar {
    width: 100%;
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .site-sidebar__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 4px 8px;
  }

  .site-sidebar__list li {
    margin-bottom: 0;
  }

  .site-main {
    width: 100%;
  }
}

/* --- Component meta badges --- */
.component-page__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.component-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: var(--txds-font-size-caption);
  font-weight: var(--txds-font-weight-semibold);
  line-height: var(--txds-line-height-caption);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.component-page__badge--wcag {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.component-page__badge--reviewed {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}
.component-page__badge--a11y {
  background: #fff8e1;
  color: #8a6200;
  border: 1px solid #ffe082;
}
.component-page__badge--a11y:hover {
  background: #fff0b3;
}
.component-page__section {
  margin-top: 3.5rem;
}
.component-page__section h2 {
  font-size: var(--txds-font-size-h4);
  font-weight: var(--txds-font-weight-bold);
  line-height: var(--txds-line-height-h4);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #dee2e6;
  color: var(--txds-color-gray-70, #403c37);
}

/* --- Design Guidance sections --- */
.ds-design-guidance,
.txds-design-guidance {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.txds-design-guidance table,
.ds-design-guidance table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--txds-font-size-body-sm);
  line-height: var(--txds-line-height-body-sm);
  margin-bottom: 16px;
}
.txds-design-guidance th,
.ds-design-guidance th,
.txds-design-guidance td,
.ds-design-guidance td {
  border: 1px solid #dee2e6;
  padding: 10px 16px;
  text-align: left;
}
.txds-design-guidance th,
.ds-design-guidance th {
  background: var(--txds-color-gray-10, #f0efed);
  font-weight: 700;
}
.txds-design-guidance h3,
.ds-design-guidance h3 {
  font-size: var(--txds-font-size-body-xl);
  font-weight: var(--txds-font-weight-bold);
  line-height: var(--txds-line-height-body-xl);
  margin-bottom: 12px;
}
.txds-design-guidance p,
.ds-design-guidance p {
  font-size: var(--txds-font-size-body-sm);
  line-height: var(--txds-line-height-body-sm);
  margin-bottom: 12px;
}
.txds-design-guidance ul,
.ds-design-guidance ul,
.txds-design-guidance ol,
.ds-design-guidance ol {
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: var(--txds-font-size-body-sm);
  line-height: var(--txds-line-height-body-sm);
}

/* --- CSS Classes reference table --- */
.component-page__section .txds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--txds-font-size-body-sm);
  line-height: var(--txds-line-height-body-sm);
}
.component-page__section .txds-table th,
.component-page__section .txds-table td {
  border: 1px solid #dee2e6;
  padding: 10px 16px;
  text-align: left;
}
.component-page__section .txds-table th {
  background: var(--txds-color-gray-10, #f0efed);
  font-weight: 700;
}
.component-page__section .txds-table code {
  background: var(--txds-color-gray-10, #f0efed);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  font-family: 'Source Code Pro', monospace;
}

/* --- Preview Block --- */
.preview {
  margin: 1.75rem 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.preview:has(.txds-alert-banner) {
  border: 0;
}

.preview:has(.txds-news-card-group) {
  border: 0;
}
.preview__render:has(.txds-preview-wide) {
  width: max-content;
  min-width: 100%;
  overflow-x: auto;
}
.preview__render {
  padding: 2.5rem 2rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}
.preview__render:has(> .txds-hero),
.preview__render:has(> .txds-page-header),
.preview__render:has(> .txds-featured-banner),
.preview__render:has(> .txds-footer),
.preview__render:has(> .txds-header--desktop),
.preview__render:has(> .txds-header--mobile-open),
.preview__render:has(> .txds-search-hero) {
  padding: 0;
  overflow-x: auto;
}

.preview__render:has(> .txds-alert-banner) {
  padding: 0 0 1rem;
  border: 0;
  border-radius: 0;
  overflow-x: auto;
}

.preview__render:has(.txds-desktop-nav__child-links) {
  overflow: visible;
  padding-bottom: 7rem;
}

/* Force mobile header variants visible inside previews regardless of viewport */
.preview__render .txds-header--mobile,
.preview__render .txds-header--mobile-open {
  display: flex !important;
}

/* Force dark mobile wrapper visible */
.preview__render > div > .txds-header--mobile {
  display: flex !important;
}

.preview__spacer {
  height: 24px;
  background: transparent;
}

.preview__source {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
}

.preview:has(.txds-news-card-group) .preview__render,
.preview:has(.txds-news-card-group) .preview__source {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.preview__source summary {
  border-top: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #486687;
  cursor: pointer;
  background: var(--txds-color-gray-00, #fafafa);
  user-select: none;
}
.preview__code-wrap {
  position: relative;
}
.preview__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #343a40;
  color: #e6e6e6;
  border: 1px solid #555;
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
}
.preview__copy:hover { background: #555; color: #fff; }
.preview__copy--done { background: #008200; border-color: #008200; color: #fff; }
.preview__copy-icon { flex-shrink: 0; }
.preview__source pre {
  margin: 0;
  padding: 16px;
  padding-top: 40px;
  background: #1b1b1b;
  color: #e6e6e6;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.preview__source code {
  font-family: 'Source Code Pro', monospace;
}

/* --- Skip nav --- */
.txds-skipnav {
  position: absolute;
  left: -999px;
  top: 4px;
  z-index: 100;
  padding: 8px 16px;
  background: #486687;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.txds-skipnav:focus { left: 4px; }

/* --- Footer --- */
.site-footer {
  background: linear-gradient(0deg, #000 0%, #03184c 65%, #021d5e 100%);
  color: #a9aeb1;
  padding: 1.5rem;
  margin-top: auto;
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.site-footer__inner nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer__inner nav a {
  color: #a9aeb1;
  text-decoration: none;
  font-size: 13px;
}
.site-footer__inner nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* --- Homepage hero --- */
.hero {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #021a52, #486687);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 3rem;
}
.hero h1 { font-size: 40px; line-height: 44px; margin-bottom: 16px; }
.hero p { font-size: 20px; line-height: 32px; max-width: 55ch; margin: 0 auto 2rem; opacity: 0.9; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__actions a {
  display: inline-block; padding: 12px 24px; border-radius: 4px;
  font-weight: 700; text-decoration: none; font-size: 16px;
}
.hero__actions a:first-child { background: #fff; color: #486687; }
.hero__actions a:last-child { border: 2px solid #fff; color: #fff; }

/* --- Homepage content sections --- */
.home-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 2.5rem;
}
.home-proof-chip {
  border: 1px solid #d6e2ee;
  background: linear-gradient(180deg, #f8fbff, #f2f7fd);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.home-proof-chip strong {
  color: #1f3447;
  font-size: 14px;
}
.home-proof-chip span {
  color: #5a6876;
  font-size: 13px;
}

.home-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2.8rem;
}
.home-role-card {
  display: block;
  border: 1px solid #d8e1ea;
  border-radius: 10px;
  background: #fff;
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-role-card h3 {
  font-size: 17px;
  margin: 0 0 0.35rem;
  color: #22384d;
}
.home-role-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #596675;
}
.home-role-list {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
  color: #596675;
  font-size: 14px;
  line-height: 1.5;
}
.home-role-list li + li {
  margin-top: 0.15rem;
}
.home-role-card:hover,
.home-role-card:focus {
  border-color: #486687;
  box-shadow: 0 10px 22px -14px rgba(42, 61, 78, 0.35);
  transform: translateY(-1px);
}

.home-section__title {
  margin: 0 0 1rem;
}
.txds-card-group.home-card-group {
  margin-bottom: 3rem;
  padding: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-card-group .txds-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-card-group .txds-card:hover {
  border-color: #486687;
  box-shadow: 0 10px 22px -14px rgba(42, 61, 78, 0.35);
  transform: translateY(-1px);
}
.home-lower-sections {
  position: relative;
  margin-top: 1.5rem;
  padding: 1.5rem 0 0.4rem;
}
.home-lower-sections::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(112, 138, 165, 0), rgba(112, 138, 165, 0.5), rgba(112, 138, 165, 0));
}
.home-lower-sections::after {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  z-index: -1;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(241, 246, 252, 0), rgba(241, 246, 252, 0.82) 18%, rgba(246, 250, 253, 0.96) 100%);
}
.home-feature-list {
  margin: 0 0 2rem;
  padding-left: 1.5rem;
  max-width: 72ch;
}
.home-feature-list li {
  font-size: var(--txds-font-size-body-sm, 16px);
  line-height: var(--txds-line-height-body-sm, 26px);
  margin-bottom: 0.65rem;
}
.home-feature-list--spacious li {
  margin-bottom: 0.8rem;
}

.home-eval-section {
  margin: 0 0 1.2rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.96), rgba(246, 249, 252, 0.98));
  box-shadow: 0 12px 32px -28px rgba(49, 73, 96, 0.34);
}
.home-eval-section + .home-eval-section {
  margin-top: 1rem;
}
.home-eval-section .home-section__title {
  margin-bottom: 0.45rem;
}
.home-section__lead {
  margin: 0 0 0.9rem;
  max-width: 72ch;
  color: #41505f;
  line-height: 1.55;
  font-size: 15px;
}
.home-eval-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.home-eval-group {
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  padding: 0.9rem;
  box-shadow: 0 10px 24px -24px rgba(44, 69, 93, 0.55);
}
.home-eval-group__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.45rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #e8f1fb;
  color: #33506c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-eval-group__title {
  margin: 0 0 0.7rem;
  color: #1f3447;
  font-size: 17px;
  line-height: 1.35;
}
.home-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  max-width: 76ch;
}
.home-checklist li {
  position: relative;
  margin: 0;
  padding: 0.6rem 0.75rem 0.6rem 1.6rem;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  background: #fff;
  color: #243240;
  line-height: 1.5;
  font-size: 15px;
}
.home-checklist li::before {
  content: "";
  position: absolute;
  left: 0.68rem;
  top: 0.98rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #3f5f7f;
}
.home-checklist li strong {
  color: #1f3447;
}

/* --- Tokens grid --- */
.token-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
/* --- Color palette (per-group row) --- */
.token-palette { display: flex; flex-wrap: wrap; gap: 12px; margin: 1rem 0 2rem; }
.token-swatch { border-radius: 6px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.08); width: 120px; flex-shrink: 0; }
.token-swatch--base { outline: 3px solid var(--txds-color-primary-50, #486687); outline-offset: 2px; }
.token-swatch__color { height: 60px; }
.token-swatch__label { padding: 6px 10px 8px; font-size: 11px; background: #fff; }
.token-swatch__label span { display: block; font-weight: 700; font-size: 12px; color: #1b1b1b; margin-bottom: 2px; }
.token-swatch__label code { display: block; font-size: 10px; color: #71767a; font-family: 'Source Code Pro', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* --- Type specimen --- */
.token-type-specimen { display: flex; flex-direction: column; gap: 8px; margin: 1rem 0 1.5rem; font-family: 'Geologica', sans-serif; font-size: 20px; }
.token-type-specimen__row { color: #403c37; border-bottom: 1px solid #e3e2e1; padding-bottom: 6px; }
/* --- Weight showcase --- */
.token-type-weights { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin: 1.5rem 0 2rem; }
.token-type-weight__aa { font-family: 'Geologica', sans-serif; font-size: 72px; line-height: 1; color: #403c37; }
.token-type-weight__chars { font-family: 'Geologica', sans-serif; font-size: 14px; line-height: 22px; color: #403c37; margin-top: 8px; word-break: break-all; }
.token-type-weight__label { font-size: 11px; color: #7b7976; margin-top: 6px; font-family: 'Source Code Pro', monospace; }
/* --- Header scale specimens --- */
.token-type-scale { margin: 1.5rem 0 2rem; }
.token-type-scale__item { border-bottom: 1px solid #e3e2e1; padding: 20px 0 16px; }
.token-type-scale__sample { font-family: 'Geologica', sans-serif; color: #403c37; }
.token-type-scale__spec { font-size: 11px; color: #7b7976; margin-top: 8px; font-family: 'Source Code Pro', monospace; }
.token-type-scale__spec code { font-size: 11px; color: #486687; background: none; }
/* --- Body copy specimens --- */
.token-body-scale { margin: 1.5rem 0 2rem; }
.token-body-scale__item { border-bottom: 1px solid #e3e2e1; padding: 24px 0 20px; }
.token-body-scale__name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #7b7976; margin-bottom: 12px; }
.token-body-scale__sample { font-family: 'Geologica', sans-serif; color: #403c37; }
.token-body-scale__spec { font-size: 11px; color: #7b7976; margin-top: 10px; font-family: 'Source Code Pro', monospace; }
.token-body-scale__spec code { font-size: 11px; color: #486687; background: none; }

/* --- Integration guides/slides shared styles --- */
.slide {
  max-width: 900px;
  margin: 0 auto;
}
.slide h2 {
  color: var(--txds-color-primary-50, #486687);
  border-bottom: 3px solid var(--txds-color-primary-50, #486687);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}
.slide h3 {
  color: var(--txds-color-primary-60, #2a3d4e);
}
.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.step-card {
  background: var(--txds-color-gray-00, #fafafa);
  border: 1px solid var(--txds-color-gray-20, #e3e2e1);
  border-radius: 8px;
  padding: 1.5rem;
}
.step-card h4 {
  margin-top: 0;
  color: var(--txds-color-primary-50, #486687);
}
.step-card pre {
  background: #1b1b1b;
  color: #e6e6e6;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}
.step-card code {
  font-family: "Courier New", monospace;
}
.step-number {
  display: inline-block;
  background: var(--txds-color-primary-50, #486687);
  color: #fff;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  text-align: center;
  line-height: 2rem;
  font-weight: 700;
  margin-right: 0.5rem;
}
.benefit-list {
  list-style: none;
  padding: 0;
}
.benefit-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
}
.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--txds-color-success, #008200);
  font-weight: 700;
}
.arch-diagram {
  background: var(--txds-color-gray-00, #fafafa);
  border: 1px solid var(--txds-color-gray-20, #e3e2e1);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  font-family: monospace;
  line-height: 1.8;
}
@media (max-width: 640px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Spacing tokens --- */
.token-spacing { display: flex; flex-direction: column; gap: 12px; margin: 1.5rem 0; }
.token-spacing__row { display: flex; align-items: center; gap: 16px; }
.token-spacing__bar { background: var(--txds-color-primary-50, #486687); border-radius: 2px; flex-shrink: 0; }
.token-spacing__meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #3d4551; }
.token-spacing__meta code { font-family: 'Source Code Pro', monospace; font-size: 12px; background: #f0f0f0; padding: 2px 6px; border-radius: 3px; }
.token-spacing__meta span { color: #71767a; }

/* --- Elevation tokens --- */
.token-elevation { display: flex; flex-wrap: wrap; gap: 32px; margin: 1.5rem 0; }
.token-elevation__item { background: #fff; border-radius: 8px; padding: 32px 40px; min-width: 260px; }
.token-elevation__label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.token-elevation__label strong { font-size: 15px; color: #1b1b1b; }
.token-elevation__label code { font-family: 'Source Code Pro', monospace; font-size: 12px; color: #71767a; }
.token-elevation__value { font-size: 12px; color: #71767a; font-family: 'Source Code Pro', monospace; }

/* --- Grid spec --- */
.token-grid-spec { display: flex; flex-wrap: wrap; gap: 32px; margin: 1.5rem 0; }
.token-grid-spec__item { flex: 1; min-width: 280px; }
.token-grid-spec__item h4 { margin: 0 0 12px; font-size: 15px; color: #3d4551; }
.token-grid-spec__cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-bottom: 16px; }
.token-grid-spec__cols--mobile { grid-template-columns: repeat(4, 1fr); }
.token-grid-spec__col { background: var(--txds-color-primary-20, #d0dce8); border-radius: 2px; height: 40px; }
.token-grid-spec__item table { width: 100%; border-collapse: collapse; font-size: 13px; }
.token-grid-spec__item td { padding: 6px 8px; border-bottom: 1px solid #dee2e6; color: #3d4551; }
.token-grid-spec__item td:first-child { color: #71767a; width: 50%; }

/* --- Component Overview Grid --- */
.component-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.component-card { border: 1px solid #dee2e6; border-radius: 8px; padding: 1.5rem 1.75rem; transition: box-shadow 0.15s, border-color 0.15s; }
.component-card:hover { border-color: #486687; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.component-card__title { font-size: 18px; margin-bottom: 8px; }
.component-card__title a { color: #486687; text-decoration: none; }
.component-card__title a:hover { text-decoration: underline; }
.component-card__desc { font-size: 14px; color: var(--txds-color-gray-60, #5b5a56); }

/* --- Page layout (tokens, customization, etc.) --- */
.txds-back-link-wrap,
.page__back-link-wrap {
  margin: 0 0 0.5rem;
}
.txds-back-link,
.page__back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #2f4a63;
  background: #f1f7ff;
  border: 1px solid #c7d9ec;
  border-radius: 999px;
  padding: 4px 12px;
}
.txds-back-link:hover,
.txds-back-link:focus,
.page__back-link:hover,
.page__back-link:focus {
  background: #e3f0ff;
  border-color: #9ab9d8;
}
.page h1 { font-size: 34px; line-height: 1.15; margin-bottom: 1rem; color: var(--txds-color-gray-70, #403c37); }
.page h2 { font-size: 22px; line-height: 1.3; margin-top: 3rem; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid #dee2e6; color: var(--txds-color-gray-70, #403c37); }
.page h3 { font-size: 18px; line-height: 1.4; margin-top: 2rem; margin-bottom: 0.6rem; color: var(--txds-color-gray-70, #403c37); }
.page p { font-size: 16px; line-height: 1.75; margin-bottom: 1.1rem; max-width: 70ch; }
.page ul, .page ol { padding-left: 1.5rem; margin-bottom: 1.1rem; font-size: 16px; line-height: 1.75; max-width: 70ch; }
.page li { margin-bottom: 0.4rem; }
.page pre { background: #1b1b1b; color: #e6e6e6; padding: 1.25rem 1.5rem; border-radius: 8px; overflow-x: auto; margin: 1.25rem 0 1.75rem; font-size: 13px; line-height: 1.65; }
.page code { font-family: 'Source Code Pro', monospace; }
.page p code, .page li code { background: var(--txds-color-gray-10, #f0efed); padding: 2px 6px; border-radius: 3px; font-size: 14px; }

/* --- Tokens overview readability --- */
.tokens-overview {
  max-width: 1000px;
}
.tokens-overview__intro {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: #3d4551;
}
.tokens-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 2rem;
}
.tokens-quick-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #cfd7df;
  border-radius: 999px;
  text-decoration: none;
  color: #2f4a63;
  font-size: 13px;
  font-weight: 700;
  background: #f8fbff;
}
.tokens-quick-links a:hover,
.tokens-quick-links a:focus {
  border-color: #486687;
  background: #edf5ff;
}
.token-grid--overview {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}
.tokens-card {
  display: block;
  text-decoration: none;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tokens-card:hover,
.tokens-card:focus {
  border-color: #486687;
  box-shadow: 0 8px 18px rgba(42, 61, 78, 0.12);
  transform: translateY(-1px);
}
.tokens-card h3 {
  margin: 0 0 0.35rem;
  color: #22384d;
  font-size: 16px;
}
.tokens-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #556370;
}
.tokens-detail {
  margin: 0 0 1rem;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.tokens-detail summary {
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 15px;
  color: #22384d;
  background: #f7fafd;
  cursor: pointer;
}
.tokens-detail[open] summary {
  border-bottom: 1px solid #d9e0e6;
}
.tokens-detail table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.tokens-detail th,
.tokens-detail td {
  text-align: left;
  border-bottom: 1px solid #e6ebf0;
  padding: 10px 12px;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
}
.tokens-detail th {
  background: #f3f7fb;
  color: #2d4358;
  font-weight: 700;
}
.tokens-detail tr:last-child td {
  border-bottom: none;
}
.tokens-steps {
  max-width: 72ch;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .preview__render {
    padding: 1rem;
  }

  .preview__render:has(> .txds-alert-banner) {
    padding: 0 0 1rem;
  }

  .site-header {
    padding: 0 1rem;
  }
  .site-header__inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }
  .site-header__menu-toggle {
    display: inline-flex;
    justify-content: center;
  }
  .site-header__nav {
    width: 100%;
    background: rgba(9, 34, 84, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 0 12px;
    box-shadow: 0 10px 24px -16px rgba(2, 10, 28, 0.85);
  }
  .site-header__menu {
    flex-direction: column;
    gap: 0;
    padding: 4px 0 6px;
  }
  .site-header__menu li {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .site-header__menu a {
    display: block;
    padding: 12px 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
  }
  .site-header__menu a:hover,
  .site-header__menu a:focus {
    background: transparent;
    color: #e8f3ff;
    border-color: transparent;
  }
  .page-home .site-sidebar {
    display: none;
  }
  .page-home .site-body {
    gap: 0;
  }
  .home-proof-strip,
  .home-role-grid {
    grid-template-columns: 1fr;
  }
  .txds-card-group.home-card-group {
    grid-template-columns: 1fr;
  }
  .home-lower-sections {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
  }
  .home-lower-sections::after {
    inset: 0 -0.35rem;
    border-radius: 14px;
  }
  .home-eval-section {
    padding: 0.95rem 0.9rem 1rem;
  }
  .home-eval-groups {
    grid-template-columns: 1fr;
  }
  .home-eval-group {
    padding: 0.85rem;
  }
  .home-checklist li {
    padding: 0.58rem 0.68rem 0.58rem 1.45rem;
    font-size: 14px;
  }
  .home-checklist li::before {
    left: 0.62rem;
  }
  .tokens-quick-links {
    margin-bottom: 1.5rem;
  }
  .tokens-card {
    padding: 0.9rem 1rem;
  }
  .tokens-detail th,
  .tokens-detail td {
    font-size: 13px;
    padding: 9px 10px;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .txds-card-group.home-card-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-eval-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-eval-group:last-child {
    grid-column: 1 / -1;
  }
}
