/* Material Symbols Outlined - https://fonts.google.com/icons (load font via <link> in HTML) */

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  color: inherit;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  overflow: visible;
}

/* TimeNode docs site layout */
:root {
  --docs-bg: #ffffff;
  --docs-sidebar: #f7f8f9;
  --docs-border: #dfe1e6;
  --docs-text: #172b4d;
  --docs-text-subtle: #44546f;
  --docs-link: #0052cc;
  --docs-brand: #006d37;
  --docs-code-bg: #f4f5f7;
  --docs-hover: rgba(9, 30, 66, 0.04);
  --docs-active-bg: rgba(0, 109, 55, 0.08);
  --docs-toolbar-active-bg: #ffffff;
  --docs-toolbar-active-text: #172b4d;
  --docs-toolbar-cluster-bg: #f0f1f3;
  --docs-toolbar-cluster-border: #dfe1e6;
  --docs-toolbar-surface: #fafbfc;
  --docs-copy-success-bg: rgba(0, 109, 55, 0.1);
  --docs-copy-success-text: #006d37;
  --docs-copy-error-bg: rgba(222, 53, 11, 0.08);
  --docs-copy-error-text: #de350b;
  --docs-shadow: rgba(9, 30, 66, 0.08);
  --docs-overlay: rgba(9, 30, 66, 0.45);
  --docs-sidebar-width: 280px;
  --docs-header-height: 56px;
  --docs-header-control-height: 2.375rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --docs-bg: #18191a;
  --docs-sidebar: #1f1f21;
  --docs-border: #3d3f43;
  --docs-text: #cecfd2;
  --docs-text-subtle: #96999e;
  --docs-link: #6ca8ff;
  --docs-brand: #4bce97;
  --docs-code-bg: #242528;
  --docs-hover: rgba(255, 255, 255, 0.06);
  --docs-active-bg: rgba(75, 206, 151, 0.12);
  --docs-toolbar-active-bg: #35373c;
  --docs-toolbar-active-text: #e8e9eb;
  --docs-toolbar-cluster-bg: #222326;
  --docs-toolbar-cluster-border: #3d3f43;
  --docs-toolbar-surface: #1c1d1f;
  --docs-copy-success-bg: rgba(75, 206, 151, 0.14);
  --docs-copy-success-text: #4bce97;
  --docs-copy-error-bg: rgba(255, 107, 107, 0.12);
  --docs-copy-error-text: #ff8f73;
  --docs-shadow: rgba(0, 0, 0, 0.35);
  --docs-overlay: rgba(0, 0, 0, 0.55);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--docs-text);
  background: var(--docs-bg);
  line-height: 1.6;
}

a {
  color: var(--docs-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.docs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--docs-header-height);
  background: var(--docs-bg);
  border-bottom: 1px solid var(--docs-border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 100;
  gap: 1rem;
}

.docs-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.docs-header__brand:hover {
  text-decoration: none;
}

.docs-header__brand-mark {
  display: block;
  height: 48px;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
  /* image-rendering: -webkit-optimize-contrast; */
  image-rendering: high-quality;
}

.docs-header__search-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 14rem;
  max-width: 14rem;
  min-width: 0;
  height: var(--docs-header-control-height);
  padding: 0 0.75rem;
  box-sizing: border-box;
  border: 1px solid var(--docs-border);
  border-radius: 999px;
  background: var(--docs-bg);
  color: var(--docs-text-subtle);
  font-size: 0.875rem;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.docs-header__search-icon {
  font-size: 1rem;
  color: currentColor;
  flex-shrink: 0;
}

.docs-header__search-trigger:hover {
  border-color: var(--docs-text-subtle);
  color: var(--docs-text);
}

.docs-header__search-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-header__search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 2.75rem;
  padding: 0.125rem 0.375rem;
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  background: var(--docs-sidebar);
  color: var(--docs-text-subtle);
  font-size: 0.6875rem;
  font-family: inherit;
  line-height: 1.4;
}

.docs-header__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.docs-theme-switch {
  display: inline-flex;
  align-items: center;
  height: var(--docs-header-control-height);
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid var(--docs-border);
  border-radius: 999px;
  background: var(--docs-sidebar);
  gap: 2px;
}

.docs-theme-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--docs-header-control-height) - 6px);
  height: calc(var(--docs-header-control-height) - 6px);
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--docs-text-subtle);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.docs-theme-switch__btn:hover {
  color: var(--docs-text);
}

.docs-theme-switch__btn.is-active {
  background: var(--docs-bg);
  color: var(--docs-text);
  box-shadow: 0 1px 2px var(--docs-shadow);
}

.docs-theme-switch__btn .material-symbols-outlined {
  font-size: 1.125rem;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}

.docs-header__nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
}

.docs-header__nav a {
  color: var(--docs-text-subtle);
  font-weight: 500;
}

.docs-header__nav a.is-active,
.docs-header__nav a:hover {
  color: var(--docs-text);
  text-decoration: none;
}

/* Search modal */
.docs-search[hidden] {
  display: none;
}

.docs-search {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
}

.docs-search__backdrop {
  position: absolute;
  inset: 0;
  background: var(--docs-overlay);
}

.docs-search__panel {
  position: relative;
  width: min(32rem, 100%);
  max-height: min(80vh, 28rem);
  display: flex;
  flex-direction: column;
  background: var(--docs-bg);
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  box-shadow: 0 16px 48px var(--docs-shadow);
  overflow: hidden;
}

.docs-search__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--docs-border);
  flex-shrink: 0;
}

.docs-search__field {
  flex: 1;
  min-width: 0;
  display: block;
}

.docs-search__input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--docs-text);
  font-size: 1rem;
  font-family: inherit;
  padding: 0;
  outline: none;
}

.docs-search__input::placeholder {
  color: var(--docs-text-subtle);
}

.docs-search__head-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.docs-search__ai-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.docs-search__ai-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.docs-search__ai-status--checking {
  color: var(--docs-text-subtle);
}

.docs-search__ai-status--online {
  color: var(--docs-link);
}

.docs-search__ai-status--offline {
  color: #b13b3b;
}

.docs-search__ask-btn {
  border: 1px solid var(--docs-border);
  background: var(--docs-bg);
  color: var(--docs-text);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.docs-search__ask-btn:hover {
  background: var(--docs-hover);
}

.docs-search__ask-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.docs-search__results {
  list-style: none;
  margin: 0;
  padding: 0.375rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.docs-search__result {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.docs-search__result:hover,
.docs-search__result.is-active {
  background: var(--docs-hover);
  text-decoration: none;
}

.docs-search__result-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--docs-text);
  line-height: 1.3;
}

.docs-search__result-meta {
  font-size: 0.75rem;
  color: var(--docs-text-subtle);
  line-height: 1.3;
}

.docs-search__empty {
  margin: 0;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--docs-text-subtle);
  text-align: center;
}

.docs-search--has-answer .docs-search__results {
  max-height: 9rem;
  flex: none;
  border-bottom: 1px solid var(--docs-border);
}

.docs-search__answer {
  padding: 0.75rem 1rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.docs-search__answer-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--docs-text);
  white-space: pre-wrap;
}

.docs-search__sources {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.25rem 1rem 1rem;
}

.docs-search__sources a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--docs-link);
  text-decoration: none;
  line-height: 1.4;
}

.docs-search__sources a:hover {
  text-decoration: underline;
}

body.docs-search-open {
  overflow: hidden;
}

/* Code panel: Code / Styling + Angular / Flutter */
.docs-code-panel__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.docs-view-switch,
.docs-platform-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  background: var(--docs-bg);
  flex-shrink: 0;
}

.docs-view-switch button,
.docs-platform-switch button {
  border: none;
  background: transparent;
  color: var(--docs-text-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
}

.docs-view-switch button:hover,
.docs-platform-switch button:hover {
  color: var(--docs-text);
}

.docs-view-switch:not(.docs-view-switch--toolbar) button.is-active,
.docs-platform-switch:not(.docs-platform-switch--brand) button.is-active {
  background: var(--docs-bg);
  color: var(--docs-brand);
  box-shadow: 0 1px 2px var(--docs-shadow);
}

.docs-platform-switch[hidden] {
  display: none !important;
}

/* Angular / Flutter logo toggles (standalone code panels + component demos) */
.docs-platform-switch--brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border: none;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.docs-platform-switch--brand .docs-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  line-height: 0;
  box-shadow: none;
  transition:
    opacity 0.12s ease,
    filter 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
}

.docs-platform-switch--brand .docs-platform-btn .docs-icon-brand {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  shape-rendering: geometricPrecision;
}

.docs-platform-switch--brand .docs-platform-btn:not(.is-active) {
  filter: grayscale(1) saturate(0);
  opacity: 0.42;
}

.docs-platform-switch--brand .docs-platform-btn:not(.is-active):hover {
  opacity: 0.58;
  background: var(--docs-hover);
}

.docs-platform-switch--brand .docs-platform-btn.is-active {
  filter: none;
  opacity: 1;
  background: var(--docs-toolbar-active-bg);
  color: var(--docs-toolbar-active-text);
  box-shadow: none;
}

.docs-platform-switch--brand .docs-platform-btn.is-active:hover {
  background: var(--docs-toolbar-active-bg);
  color: var(--docs-toolbar-active-text);
}

.docs-code-panel__toolbar .docs-platform-switch--brand {
  border: 1px solid var(--docs-toolbar-cluster-border);
  background: var(--docs-toolbar-cluster-bg);
}

/* Copyable code panels */
.docs-code-panel {
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--docs-code-bg);
}

.docs-code-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--docs-sidebar);
  border-bottom: 1px solid var(--docs-border);
}

.docs-copy-btn {
  border: 1px solid var(--docs-border);
  background: var(--docs-bg);
  color: var(--docs-text);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.docs-copy-btn:hover {
  background: var(--docs-sidebar);
}

.docs-copy-btn.is-copied {
  color: var(--docs-copy-success-text);
  background: var(--docs-copy-success-bg);
  border-color: transparent;
}

.docs-code-block {
  display: flex;
  align-items: flex-start;
  overflow-x: hidden;
  background: var(--docs-code-bg);
  --docs-code-font-size: 0.8125rem;
  --docs-code-line-height: 1.5;
  --docs-code-pad-y: 1rem;
  --docs-code-pad-gutter-x: 0.75rem;
  --docs-code-pad-code-x: 1.125rem;
}

.docs-code-block__gutter {
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0;
  padding: var(--docs-code-pad-y) 0.625rem var(--docs-code-pad-y) var(--docs-code-pad-gutter-x);
  text-align: right;
  user-select: none;
  pointer-events: none;
  color: var(--docs-text-subtle);
  opacity: 0.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--docs-code-font-size);
  line-height: var(--docs-code-line-height);
  border-right: none;
  background: transparent;
}

.docs-code-block__line-num {
  display: block;
  min-width: 2ch;
  padding-right: 0.75rem;
  font-size: inherit;
  line-height: var(--docs-code-line-height);
  font-variant-numeric: tabular-nums;
}

.docs-code-panel__code {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  border-radius: 0;
  background: transparent;
  padding: var(--docs-code-pad-y) var(--docs-code-pad-code-x);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--docs-code-font-size);
  line-height: var(--docs-code-line-height);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--docs-text);
  tab-size: 2;
}

/* Layout */
.docs-layout {
  display: flex;
  padding-top: var(--docs-header-height);
  min-height: 100vh;
}

.docs-sidebar {
  position: fixed;
  top: var(--docs-header-height);
  left: 0;
  width: var(--docs-sidebar-width);
  height: calc(100vh - var(--docs-header-height));
  overflow-y: auto;
  background: var(--docs-sidebar);
  border-right: 1px solid var(--docs-border);
  padding: 1.25rem 0.75rem 2rem;
}

.docs-main {
  margin-left: var(--docs-sidebar-width);
  flex: 1;
  max-width: 820px;
  padding: 2.5rem 3rem 4rem;
}

.docs-layout--wide .docs-main {
  max-width: 960px;
}

.docs-main--home {
  max-width: none;
  width: 100%;
  min-width: 0;
  flex: 1;
  padding-right: clamp(1.25rem, 2.5vw, 2.5rem);
  box-sizing: border-box;
  overflow-x: clip;
}

/* Homepage - intro + discover left; live preview spans right */
.docs-home {
  display: grid;
  grid-template-columns: minmax(0, min(36rem, 52%)) minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "intro preview"
    "below preview";
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  row-gap: 2.5rem;
  align-items: start;
  width: 100%;
}

.docs-home__intro {
  grid-area: intro;
  min-width: 0;
}

.docs-home__below {
  grid-area: below;
  min-width: 0;
}

.docs-section--home-discover > h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.docs-card-grid--home {
  margin-bottom: 0;
}

.docs-hero--home {
  margin-bottom: 0;
}

.docs-hero--home h1 {
  margin-bottom: 0;
}

.docs-section--home-start {
  margin-top: 0.5rem;
}

.docs-section--home-start > h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.docs-home__preview {
  grid-area: preview;
  --docs-home-preview-frame: min(44rem, calc(100vh - var(--docs-header-height) - 7rem));
  --docs-home-preview-scroll: min(38rem, calc(100vh - var(--docs-header-height) - 11rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: stretch;
  align-self: start;
  min-width: 0;
  width: 100%;
  position: sticky;
  top: calc(var(--docs-header-height) + 1.25rem);
  isolation: isolate;
}

.docs-home-preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.docs-home-preview__viewport {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.docs-home-preview__footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--tn-space-sm);
  padding-top: var(--tn-space-md);
  width: 100%;
}

.docs-home-preview__toolbar {
  display: flex;
  justify-content: center;
  width: 100%;
}

.docs-home-preview__toolbar .docs-device-switch--toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border: 1px solid var(--docs-toolbar-cluster-border);
  border-radius: 6px;
  background: var(--docs-toolbar-cluster-bg);
}

.docs-home-preview__toolbar .docs-device-switch--toolbar .docs-toolbar-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--docs-text-subtle);
  opacity: 0.5;
  cursor: pointer;
  line-height: 1;
}

.docs-home-preview__toolbar .docs-device-switch--toolbar .docs-toolbar-icon-btn .material-symbols-outlined {
  font-size: 1.25rem;
}

.docs-home-preview__toolbar .docs-device-switch--toolbar .docs-toolbar-icon-btn:not(.is-active):hover {
  opacity: 0.75;
  color: var(--docs-text);
}

.docs-home-preview__toolbar .docs-device-switch--toolbar .docs-toolbar-icon-btn.is-active {
  opacity: 1;
  color: var(--docs-toolbar-active-text);
  background: var(--docs-toolbar-active-bg);
}

.docs-home-preview__device-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.docs-home-preview__device-panel[data-device="mobile"] {
  align-items: center;
  width: auto;
  max-width: 100%;
}

.docs-home-preview__device-panel[data-device="web"] {
  align-items: stretch;
  width: 100%;
}

.docs-home-preview__device-panel[hidden] {
  display: none;
}

.docs-home-preview__link {
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
}

.docs-home-preview__link a {
  color: var(--docs-text-subtle);
  font-weight: 500;
}

.docs-home-preview__link a:hover {
  color: var(--docs-brand);
}

.docs-home-phone {
  width: 100%;
  max-width: min(24.375rem, 100%);
  height: auto;
  margin: 0 auto;
  padding: 0.625rem;
  display: flex;
  flex-direction: column;
  border-radius: 2.25rem;
  border: 1px solid var(--docs-border);
  background: color-mix(in srgb, var(--docs-text) 6%, var(--docs-bg));
  box-shadow: none;
}

.docs-home-phone__screen {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: min(36rem, calc(100vh - var(--docs-header-height) - 10rem));
  max-height: var(--docs-home-preview-frame);
  border-radius: 1.625rem;
  overflow: hidden;
  background: var(--tn-color-background-page);
}

.docs-home-phone__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  max-height: var(--docs-home-preview-scroll);
  padding: var(--tn-space-lg);
  padding-bottom: var(--tn-space-base);
  -webkit-overflow-scrolling: touch;
}

.docs-home-phone__nav {
  flex-shrink: 0;
  margin: 0;
  border-radius: 0;
}

/* Web browser frame - homepage preview */
.docs-home-browser {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid var(--docs-border);
  background: color-mix(in srgb, var(--docs-text) 6%, var(--docs-bg));
  box-shadow: none;
}

.docs-home-browser__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem 0.625rem;
}

.docs-home-browser__dots {
  display: inline-flex;
  gap: 0.375rem;
}

.docs-home-browser__dots i {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: var(--tn-border-radius-full);
  background: color-mix(in srgb, var(--docs-text) 18%, transparent);
  font-style: normal;
}

.docs-home-browser__dots i:first-child {
  background: #ff5f57;
}

.docs-home-browser__dots i:nth-child(2) {
  background: #febc2e;
}

.docs-home-browser__dots i:nth-child(3) {
  background: #28c840;
}

.docs-home-browser__url {
  flex: 1;
  min-width: 0;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  background: color-mix(in srgb, var(--docs-bg) 88%, var(--docs-text) 12%);
  font-size: 0.6875rem;
  color: var(--docs-text-subtle);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-home-browser__screen {
  container-type: inline-size;
  flex: 1 1 auto;
  height: auto;
  min-height: min(34rem, calc(100vh - var(--docs-header-height) - 10rem));
  max-height: var(--docs-home-preview-frame);
  overflow-y: auto;
  padding: var(--tn-space-lg);
  border-radius: 0.5rem;
  background: var(--tn-color-background-page);
  -webkit-overflow-scrolling: touch;
}

.docs-home-preview__web-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--tn-space-base);
  margin-bottom: var(--tn-space-lg);
  padding-bottom: 0;
}

.docs-home-preview__web-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--tn-space-base);
  min-width: 0;
}

.docs-home-preview__web-brand {
  flex: 1;
  min-width: 0;
}

.docs-home-preview__web-brand .docs-home-preview__title {
  overflow-wrap: anywhere;
}

.docs-home-preview__web-brand .tn-body-sm {
  margin: var(--tn-space-xs) 0 0;
  color: var(--tn-color-text-subtle);
}

.docs-home-preview__web-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tn-space-xs) var(--tn-space-sm);
}

.docs-home-preview__web-nav a {
  font-size: var(--tn-font-size-body-sm);
  font-weight: var(--tn-font-weight-semibold);
  color: var(--tn-color-text-subtle);
  text-decoration: none;
  padding: var(--tn-space-xs) var(--tn-space-sm);
  border-radius: var(--tn-border-radius-sm);
}

.docs-home-preview__web-nav a:hover {
  color: var(--tn-color-text-brand-onLight);
}

.docs-home-preview__web-nav a.is-active {
  color: var(--tn-color-text-brand-onLight);
  background: var(--tn-color-background-brand-tint10);
}

.docs-home-preview__web-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tn-space-lg);
  align-items: start;
}

@container (min-width: 28rem) {
  .docs-home-preview__web-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.docs-home-preview__web-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tn-space-base);
}

@container (min-width: 22rem) {
  .docs-home-preview__web-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.docs-home-preview__web-metrics .docs-card-demo__highlight {
  margin-top: 0;
}

.docs-home-preview__cta--web {
  margin-top: var(--tn-space-lg);
  width: auto;
}

.docs-home-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tn-space-base);
  margin-bottom: var(--tn-space-lg);
}

.docs-home-preview__title {
  margin: 0;
  font-size: var(--tn-font-size-heading-3);
}

.docs-home-preview__avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--tn-border-radius-full);
  border: 4px solid var(--tn-color-background-surface-container-lowest);
  box-shadow: var(--tn-elevation-shadow-lg);
  background: var(--tn-color-background-brand-tint20);
}

.docs-home-preview__summary {
  width: 100%;
  margin-bottom: var(--tn-space-lg);
}

.docs-home-preview__metric {
  margin: var(--tn-space-xs) 0 0;
}

.docs-home-preview__highlight {
  margin-top: var(--tn-space-base);
}

.docs-home-preview__cta {
  margin-bottom: var(--tn-space-lg);
}

.docs-home-preview__cta .tn-btn__icon {
  font-size: 1.25rem;
}

.docs-home-preview__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tn-space-base);
  margin-bottom: var(--tn-space-sm);
}

.docs-home-preview__list-head .tn-label {
  margin: 0;
}

.docs-home-preview__view-all {
  font-size: var(--tn-font-size-body-sm);
  font-weight: 700;
  color: var(--tn-color-text-brand-onLight);
  text-decoration: none;
}

.docs-home-preview__view-all:hover {
  text-decoration: underline;
}

.docs-home-preview__list {
  width: 100%;
  margin: 0;
}

.docs-home-preview__checkin {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--tn-space-base);
  width: 100%;
}

.docs-home-preview__person {
  display: flex;
  align-items: center;
  gap: var(--tn-space-sm);
  min-width: 0;
  flex: 1 1 auto;
}

.docs-home-preview__person .tn-avatar {
  flex-shrink: 0;
}

.docs-home-preview__person .tn-heading-4 {
  margin: 0;
  font-size: var(--tn-font-size-body-md);
  line-height: 1.25;
}

.docs-home-preview__person .tn-body-sm {
  margin: 0.15rem 0 0;
}

.docs-home-preview__badge {
  flex-shrink: 0;
  align-self: center;
  font-size: var(--tn-font-size-caption-sm);
}

.docs-home-preview__list [data-preview-checkin] {
  cursor: pointer;
  transition: background-color 140ms ease;
}

.docs-home-preview__list [data-preview-checkin]:hover {
  background: var(--tn-color-background-surface-container-high);
}

.docs-home-preview__list [data-preview-checkin]:focus-visible {
  outline: 2px solid var(--tn-color-border-focus);
  outline-offset: -2px;
}

.docs-home-preview__status {
  flex-shrink: 0;
  max-width: 6.5rem;
  font-size: var(--tn-font-size-caption-sm);
  font-weight: var(--tn-font-weight-bold);
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--tn-color-text-success);
}

/* Sidebar */
.docs-sidebar {
  --docs-nav-pad-x: 1rem;
  --docs-nav-indent: 0.875rem;
  --docs-nav-l0: var(--docs-nav-pad-x);
  --docs-nav-l1: calc(var(--docs-nav-pad-x) + var(--docs-nav-indent));
  --docs-nav-l2: calc(var(--docs-nav-pad-x) + var(--docs-nav-indent) * 2);
  --docs-nav-chevron-size: 0.875rem;
  --docs-nav-chevron-gap: 0.5rem;
  --docs-nav-nested-text: calc(var(--docs-nav-chevron-size) + var(--docs-nav-chevron-gap));
}

.docs-sidebar__section {
  margin-bottom: 0.125rem;
}

.docs-sidebar__section + .docs-sidebar__section {
  margin-top: 0.125rem;
}

.docs-sidebar__section--flat {
  margin-bottom: 0;
  padding-top: 0.25rem;
}

.docs-sidebar__section--compact {
  margin-bottom: 0;
}

.docs-sidebar__section--compact .docs-sidebar__items {
  margin-top: 0;
  margin-bottom: 0.375rem;
  padding-top: 0;
  padding-bottom: 0;
}

/* Uniform row rhythm inside Components */
.docs-sidebar__section--compact .docs-nav__disclosure {
  margin: 0;
}

.docs-sidebar__section--compact .docs-nav__panel .docs-nav__summary,
.docs-sidebar__section--compact .docs-nav__panel .docs-sidebar__link {
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.docs-sidebar__section--compact .docs-sidebar__link--level-1 {
  font-size: 0.75rem;
}

.docs-sidebar__group {
  display: block;
  padding: 0.625rem 0.75rem 0.125rem var(--docs-nav-l1);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--docs-text-subtle);
}

/* Unified disclosure rows (<details> / <summary>) */
.docs-nav__disclosure {
  margin: 0;
}

.docs-nav__summary {
  display: grid;
  grid-template-columns: var(--docs-nav-chevron-size) minmax(0, 1fr);
  column-gap: var(--docs-nav-chevron-gap);
  align-items: center;
  list-style: none;
  cursor: pointer;
  border-radius: 4px;
  margin-right: 0.25rem;
  padding: 0.3125rem 0.375rem 0.3125rem 0;
  color: var(--docs-text);
}

.docs-nav__disclosure--section > .docs-nav__summary {
  width: calc(100% - 0.5rem);
  margin: 0.125rem 0.25rem 0;
}

.docs-nav__disclosure--group > .docs-nav__summary,
.docs-nav__disclosure--branch > .docs-nav__summary {
  margin: 0;
}

.docs-nav__summary::-webkit-details-marker {
  display: none;
}

.docs-nav__summary::marker {
  content: "";
}

.docs-nav__summary::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  width: 0.375rem;
  height: 0.375rem;
  margin-left: 0.1875rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
  transition: transform 0.16s ease;
}

.docs-nav__disclosure[open] > .docs-nav__summary::before {
  transform: rotate(45deg);
}

.docs-nav__disclosure:not([open]) > .docs-nav__summary::before {
  transform: rotate(-45deg);
}

.docs-nav__summary:hover {
  background: var(--docs-hover);
}

.docs-nav__summary:focus-visible {
  outline: 2px solid var(--docs-brand);
  outline-offset: 1px;
}

.docs-nav__summary-label,
.docs-nav__summary > a.docs-nav__summary-label {
  grid-column: 2;
  min-width: 0;
  line-height: 1.45;
  text-decoration: none;
  color: inherit;
}

.docs-nav__summary > a.docs-nav__summary-label:hover {
  color: inherit;
  text-decoration: none;
}

.docs-nav__summary > a.docs-nav__summary-label.is-current {
  color: var(--docs-brand);
  font-weight: 600;
}

.docs-nav__summary-label--section {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--docs-text);
}

.docs-nav__summary-label--category {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--docs-text-subtle);
}

.docs-nav__panel {
  margin: 0;
  padding: 0;
}

.docs-nav__disclosure--section > .docs-nav__panel.docs-sidebar__items {
  margin: 0 0.25rem 0.375rem 0;
  padding: 0 0 0 1.5rem;
  border-left: none;
}

/* Breathing room between Styling, Form, Button, Data, … (matches reference nav) */
.docs-sidebar__section--compact .docs-nav__disclosure--section > .docs-nav__panel > * + * {
  margin-top: 0.125rem;
}

/* Extra separation before Patterns (last core block) */
/* .docs-sidebar__section--compact + .docs-sidebar__section:not(.docs-sidebar__section--compact) {
  margin-top: 0.5rem;
} */

.docs-nav__disclosure--group > .docs-nav__panel .docs-sidebar__link--level-1 {
  padding-left: var(--docs-nav-nested-text);
}

.docs-nav__disclosure--branch > .docs-nav__panel .docs-sidebar__link {
  padding-left: calc(var(--docs-nav-nested-text) + var(--docs-nav-indent));
}

.docs-sidebar__items {
  margin: 0 0.25rem 0.375rem 0;
  padding: 0;
  border-left: none;
}

.docs-sidebar__divider {
  margin: 0.625rem var(--docs-nav-pad-x);
  border: none;
  border-top: 1px solid var(--docs-border);
}

.docs-sidebar__link {
  display: block;
  padding: 0.3125rem 0.5rem 0.3125rem var(--docs-nav-nested-text);
  font-size: 0.8125rem;
  line-height: 1.35;
  border-radius: 4px;
  margin-right: 0.25rem;
  color: var(--docs-text-subtle);
  border-left: 3px solid transparent;
  margin-left: 0;
}

.docs-sidebar__section--compact .docs-nav__panel > .docs-sidebar__link--level-0 {
  padding-left: var(--docs-nav-nested-text);
}

.docs-sidebar__link--level-1 {
  padding-left: var(--docs-nav-l1);
  font-size: 0.8125rem;
}

.docs-sidebar__link--level-2 {
  padding-left: var(--docs-nav-l2);
  font-size: 0.8125rem;
}

.docs-sidebar__section--flat .docs-sidebar__link--level-0 {
  padding-left: var(--docs-nav-pad-x);
}

.docs-sidebar__section--flat .docs-sidebar__link--level-1 {
  padding-left: var(--docs-nav-l1);
}

.docs-sidebar__section--flat .docs-sidebar__link--level-2 {
  padding-left: var(--docs-nav-l2);
}

.docs-sidebar__link--spaced {
  margin-top: 0.625rem;
}

.docs-sidebar__link:hover {
  background: var(--docs-hover);
  color: var(--docs-text);
  text-decoration: none;
}

.docs-sidebar__link.is-active {
  color: var(--docs-brand);
  background: var(--docs-active-bg);
  border-left-color: var(--docs-brand);
  font-weight: 600;
  text-decoration: none;
}

.docs-sidebar__section--flat .docs-sidebar__link {
  padding-left: var(--docs-nav-pad-x);
}

/* Legacy alias */
.docs-sidebar__link--nested {
  padding-left: var(--docs-nav-l1);
  font-size: 0.8125rem;
}

.docs-section--compact {
  margin-bottom: 2rem;
}

.docs-section--compact > p {
  margin: 0 0 0.75rem;
  max-width: 42rem;
}

.docs-section--compact > p:last-child {
  margin-bottom: 0;
}

.docs-foundation-color-rules {
  margin: 1rem 0 1.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  background: var(--docs-bg-subtle, #f8fafc);
  max-width: 44rem;
}

.docs-foundation-color-rules h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.docs-foundation-color-rules ul {
  margin: 0;
  padding-left: 1rem;
}

.docs-foundation-color-rules li + li {
  margin-top: 0.35rem;
}

.docs-foundation-surface-stack {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
  max-width: 44rem;
}

.docs-foundation-surface-stack__layer {
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.docs-foundation-surface-stack__layer--default {
  background: #f7f9fb;
}

.docs-foundation-surface-stack__layer--low {
  background: #f2f4f6;
}

.docs-foundation-surface-stack__layer--lowest {
  background: #ffffff;
}

.docs-foundation-surface-stack__token {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--docs-brand);
  word-break: break-all;
}

.docs-foundation-surface-stack__value {
  font-size: 0.8125rem;
  color: var(--docs-text-subtle);
}

.docs-lede {
  font-size: 0.9375rem;
  color: var(--docs-text-subtle);
  max-width: 40rem;
  margin: 0;
}

/* Content */
.docs-hero {
  margin-bottom: 2.5rem;
}

.docs-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.docs-hero p {
  font-size: 1.125rem;
  color: var(--docs-text-subtle);
  margin: 0;
  max-width: 36rem;
}

/* Component doc page (ADS-style: tabs, sections, contents rail) */
.docs-main--component {
  max-width: none;
  padding-right: 2.5rem;
}

.docs-component-doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.5rem;
  gap: 2.5rem;
  align-items: start;
}

.docs-component-doc__content {
  min-width: 0;
  max-width: 42rem;
}

/* Component styling page - one sheet, per listed component */
.docs-main--styling {
  max-width: none;
  padding-right: 2.5rem;
}

.docs-styling-doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.5rem;
  gap: 2.5rem;
  align-items: start;
}

.docs-styling-root {
  min-width: 0;
}

.docs-styling-loading {
  color: var(--docs-text-subtle);
  font-size: 0.9375rem;
}

.docs-styling-sheet {
  margin: 0;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(9, 30, 66, 0.06);
}

.docs-styling-sheet .docs-code-block,
.docs-styling-sheet .docs-code-panel__code {
  background: #ffffff;
}

.docs-styling-sheet .docs-code-block {
  max-height: none;
}

[data-theme="dark"] .docs-styling-sheet,
[data-theme="dark"] .docs-styling-sheet .docs-code-block,
[data-theme="dark"] .docs-styling-sheet .docs-code-panel__code {
  background: var(--docs-code-bg);
  box-shadow: none;
}

.docs-styling-sheet__label {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--docs-text-subtle);
}

.docs-styling-sheet__body {
  display: flex;
  flex-direction: column;
}

.docs-styling-section {
  scroll-margin-top: 5.5rem;
}

.docs-styling-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  background: var(--docs-sidebar);
  border-top: 1px solid var(--docs-border);
  border-bottom: 1px solid var(--docs-border);
}

.docs-styling-section__head-start {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  min-width: 0;
}

.docs-styling-section__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--docs-text-subtle);
  cursor: pointer;
  flex-shrink: 0;
}

.docs-styling-section__toggle:hover {
  background: var(--docs-hover);
  color: var(--docs-text);
}

.docs-styling-section__toggle .material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.docs-styling-section.is-collapsed .docs-styling-section__toggle .material-symbols-outlined {
  transform: rotate(-90deg);
}

/* Accordions start closed; open only when .is-collapsed is removed */
.docs-styling-section .docs-styling-section__body {
  display: none;
}

.docs-styling-section:not(.is-collapsed) .docs-styling-section__body {
  display: block;
}

.docs-styling-section__copy {
  flex-shrink: 0;
}

.docs-styling-sheet__copy-all {
  font-size: 0.75rem;
}

.docs-styling-section:first-child .docs-styling-section__head {
  border-top: none;
}

.docs-styling-section__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--docs-text);
}

.docs-styling-section__title a {
  color: inherit;
  text-decoration: none;
}

.docs-styling-section__title a:hover {
  color: var(--docs-link);
  text-decoration: underline;
}

.docs-styling-section__path {
  font-size: 0.6875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--docs-text-subtle);
}

.docs-styling-section--root .docs-styling-section__head {
  border-top: none;
}

.docs-styling-section__code {
  border-top: none;
}

.docs-styling-section + .docs-styling-section .docs-styling-section__head {
  border-top: 1px solid var(--docs-border);
}

/* Nested parts inside a component section (e.g. Button → Base, Split button) */
.docs-styling-parts {
  display: flex;
  flex-direction: column;
}

.docs-styling-part {
  scroll-margin-top: 5.5rem;
  border-top: 1px solid var(--docs-border);
}

.docs-styling-part__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 1.25rem;
  background: var(--docs-bg);
}

.docs-styling-part__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--docs-text-subtle);
  cursor: pointer;
  flex-shrink: 0;
}

.docs-styling-part__toggle:hover {
  background: var(--docs-hover);
  color: var(--docs-text);
}

.docs-styling-part__toggle .material-symbols-outlined {
  font-size: 1.125rem;
  transition: transform 0.15s ease;
}

.docs-styling-part.is-collapsed .docs-styling-part__toggle .material-symbols-outlined {
  transform: rotate(-90deg);
}

.docs-styling-part__title {
  flex: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--docs-text);
}

.docs-styling-part__copy {
  flex-shrink: 0;
  font-size: 0.6875rem;
}

.docs-styling-part .docs-styling-part__body {
  display: none;
}

.docs-styling-part:not(.is-collapsed) .docs-styling-part__body {
  display: block;
}

.docs-styling-toc__link--root {
  font-weight: 600;
}

.docs-styling-toc__link--nested {
  padding-left: 0.75rem;
  font-size: 0.75rem;
  color: var(--docs-text-subtle);
}

.docs-styling-toc__link--nested:hover,
.docs-styling-toc__link--nested.is-active {
  color: var(--docs-link);
}

.docs-component-header {
  margin-bottom: 0;
}

.docs-component-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.docs-component-header__parent {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
}

.docs-component-header__parent a {
  color: var(--docs-text-subtle);
  text-decoration: none;
  font-weight: 500;
}

.docs-component-header__parent a:hover {
  color: var(--docs-accent);
  text-decoration: underline;
}

.docs-component-header__parent + h1 {
  margin-top: 0;
}

.docs-component-header__lede {
  font-size: 1.125rem;
  color: var(--docs-text-subtle);
  margin: 0 0 1.5rem;
  max-width: 36rem;
  line-height: 1.5;
}

.docs-page-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--docs-border);
}

.docs-page-tabs__btn {
  position: relative;
  margin: 0;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--docs-text-subtle);
  cursor: pointer;
  border-radius: 0;
}

.docs-page-tabs__btn:hover {
  color: var(--docs-text);
  background: var(--docs-hover);
}

.docs-page-tabs__btn.is-active {
  color: var(--docs-link);
  font-weight: 600;
}

.docs-page-tabs__btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--docs-link);
}

.docs-page-tabs__btn:focus-visible {
  outline: 2px solid var(--docs-link);
  outline-offset: 2px;
}

.docs-tab-panel[hidden] {
  display: none;
}

.docs-component-block {
  scroll-margin-top: calc(var(--docs-header-height) + 1rem);
  margin-bottom: 3rem;
}

.docs-component-block:last-child {
  margin-bottom: 0;
}

.docs-component-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  padding: 0;
  border: none;
  color: var(--docs-text);
  line-height: 1.3;
}

.docs-component-block__lede {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--docs-text-subtle);
  line-height: 1.55;
  max-width: 40rem;
}

.docs-component-block .docs-component-demo {
  margin: 0;
}

.docs-page-toc {
  position: sticky;
  top: calc(var(--docs-header-height) + 1.5rem);
  padding-top: 0.125rem;
}

.docs-page-toc__title {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--docs-text-subtle);
}

.docs-page-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
}

.docs-page-toc__link {
  display: block;
  padding: 0.3125rem 0 0.3125rem 0.75rem;
  margin-left: -0.75rem;
  border-left: 2px solid transparent;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--docs-text-subtle);
  text-decoration: none;
}

.docs-page-toc__link:hover {
  color: var(--docs-text);
  text-decoration: none;
}

.docs-page-toc__link.is-active {
  color: var(--docs-link);
  border-left-color: var(--docs-link);
  font-weight: 600;
}

/* Tokens reference page */
.docs-tokens-article .docs-component-doc__content {
  max-width: 42rem;
}

.docs-tokens-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: calc(var(--docs-header-height) + 1rem);
}

.docs-tokens-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.docs-tokens-section__lede {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--docs-text-subtle);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.docs-tokens-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  max-width: 44rem;
}

.docs-tokens-callout {
  padding: 1rem 1.125rem;
  border-radius: 8px;
  border: 1px solid var(--docs-border);
  background: var(--docs-bg);
}

.docs-tokens-callout--do {
  border-left: 3px solid var(--tn-color-background-brand-bold, #2ecc71);
}

.docs-tokens-callout--dont {
  border-left: 3px solid var(--docs-border-strong, #cbd5e1);
}

.docs-tokens-callout h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.docs-tokens-callout p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--docs-text);
}

.docs-tokens-callout__foot {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--docs-text-subtle);
}

.docs-tokens-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 44rem;
}

.docs-tokens-flow__step {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--docs-border);
  background: var(--docs-bg-subtle, #f8fafc);
  position: relative;
}

.docs-tokens-flow__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.625rem;
  top: 50%;
  transform: translate(100%, -50%);
  font-size: 0.875rem;
  color: var(--docs-text-subtle);
  pointer-events: none;
}

.docs-tokens-flow__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--docs-text);
}

.docs-tokens-flow__path {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  color: var(--docs-brand);
  word-break: break-all;
  line-height: 1.35;
}

.docs-tokens-flow__hint {
  font-size: 0.75rem;
  color: var(--docs-text-subtle);
  line-height: 1.35;
}

.docs-tokens-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.125rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.125rem;
  border-radius: 8px;
  background: var(--docs-bg-subtle, #f8fafc);
  border: 1px solid var(--docs-border);
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  max-width: 28rem;
}

.docs-tokens-formula__part {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.docs-tokens-formula__part--category {
  background: rgba(46, 204, 113, 0.12);
  color: #1a7f4e;
}

.docs-tokens-formula__part--role {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.docs-tokens-formula__part--variant {
  background: rgba(124, 58, 237, 0.1);
  color: #5b21b6;
}

.docs-tokens-formula__dot {
  color: var(--docs-text-subtle);
  font-weight: 700;
}

.docs-tokens-table {
  max-width: 44rem;
}

.docs-tokens-live {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 44rem;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--docs-border);
  background: var(--tn-color-background-surface-default, #f8fafc);
}

.docs-tokens-live__preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: 6px;
  background: var(--tn-color-background-surface-container-lowest, #fff);
  border: 1px solid var(--tn-color-border-default, #e2e8f0);
}

.docs-tokens-live__sample {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.docs-tokens-live__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.docs-tokens-live__chip {
  padding: 0.375rem 0.75rem;
  border-radius: var(--tn-border-radius-sm, 8px);
  font-size: 0.8125rem;
  font-weight: 600;
}

.docs-tokens-live__map {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.docs-tokens-live__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
}

.docs-tokens-live__row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--docs-text-subtle);
}

.docs-tokens-live__row dd {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  word-break: break-all;
}

.docs-tokens-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.75rem;
  max-width: 44rem;
}

.docs-tokens-category {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--docs-border);
  background: var(--docs-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.docs-tokens-category:hover {
  border-color: var(--docs-link);
  box-shadow: 0 2px 8px rgba(9, 30, 66, 0.06);
  text-decoration: none;
}

.docs-tokens-category__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--docs-text);
}

.docs-tokens-category__file {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  color: var(--docs-brand);
}

.docs-tokens-category__desc {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--docs-text-subtle);
}

.docs-component-usage h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.docs-component-usage h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.docs-component-usage p,
.docs-component-usage li {
  font-size: 0.9375rem;
  color: var(--docs-text-subtle);
}

.docs-component-usage ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.docs-component-usage .docs-table {
  margin-top: 0.5rem;
}

.docs-component-placeholder {
  font-size: 0.9375rem;
  color: var(--docs-text-subtle);
  margin: 0;
}

.docs-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--docs-border);
}

.docs-section h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.docs-section h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.75rem;
}

.docs-section p,
.docs-section li {
  color: var(--docs-text-subtle);
  font-size: 0.9375rem;
}

.docs-section ul {
  padding-left: 1.25rem;
}

.docs-catalog-section__header {
  margin-bottom: var(--tn-space-200, 1rem);
}

.docs-catalog-section__header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.docs-catalog-section__header p {
  margin: 0;
  color: var(--docs-text-muted, #5c6570);
  font-size: 0.9375rem;
  max-width: 42rem;
}

.docs-catalog-section + .docs-catalog-section {
  margin-top: 2.5rem;
}

.docs-card--nested {
  border-style: dashed;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.docs-card {
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--docs-bg);
  transition: box-shadow 0.15s ease;
}

.docs-card:hover {
  box-shadow: 0 4px 12px var(--docs-shadow);
  text-decoration: none;
}

.docs-card strong {
  display: block;
  color: var(--docs-text);
  margin-bottom: 0.25rem;
}

.docs-card span {
  font-size: 0.8125rem;
  color: var(--docs-text-subtle);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--docs-border);
}

.docs-table th {
  font-weight: 600;
  color: var(--docs-text);
  background: var(--docs-sidebar);
}

.docs-table code {
  font-size: 0.8125rem;
  background: var(--docs-code-bg);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

.docs-preview {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  background: var(--tn-color-background-surface-container-low, #f2f4f6);
}

/* Icon docs grid */
.docs-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  justify-content: center;
  padding: 0.25rem;
}

.docs-icon-grid--compact {
  gap: 1rem 1.5rem;
}

.docs-icon-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  min-width: 4.5rem;
  color: var(--tn-color-text);
}

.docs-icon-grid__item .material-symbols-outlined {
  font-size: 1.75rem;
  color: var(--tn-color-icon-primary, var(--tn-color-text));
}

.docs-icon-grid__name {
  font-size: var(--tn-font-size-caption, 0.75rem);
  color: var(--tn-color-text);
  text-align: center;
}

.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-tabs--segmented {
  width: 100%;
  max-width: 20rem;
}

.docs-component-demo__canvas[data-device="web"] .docs-preview-device .tn-tabs--bar {
  width: 100%;
  max-width: 36rem;
}

/* Component playground (preview + toolbar + code) */
.docs-component-demo {
  margin: 0;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--docs-bg);
  box-shadow: none;
  --docs-playground-code-bg: #ffffff;
}

.docs-component-demo:has(.tn-btn-split--open) {
  overflow: visible;
}

.docs-component-demo:has(.tn-btn-split--open) .docs-component-demo__canvas {
  overflow: visible;
}

.docs-component-demo .docs-code-panel--in-demo,
.docs-component-demo .docs-code-block,
.docs-component-demo__toolbar {
  background: var(--docs-playground-code-bg);
}

.docs-component-demo__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  padding: 2rem 1.5rem;
  background-color: #ffffff;
  background-image: none;
}

.docs-component-demo__canvas[data-theme="light"] {
  background-color: #ffffff;
  background-image: none;
}

.docs-component-demo__canvas[data-theme="dark"] {
  background-color: #1a1b1d;
  background-image:
    linear-gradient(45deg, #26272b 25%, transparent 25%),
    linear-gradient(-45deg, #26272b 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #26272b 75%),
    linear-gradient(-45deg, transparent 75%, #26272b 75%);
}

.docs-component-demo__canvas .docs-preview {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: 20rem;
  width: 100%;
}

.docs-component-demo__canvas .docs-preview.tn-pattern-tonal-section {
  padding: var(--tn-space-base);
  border-radius: var(--tn-border-radius-md, 1.5rem);
  background: var(--tn-color-background-surface-container-low);
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
}

.docs-component-demo__canvas {
  --tn-elevation-shadow-brand: none;
  --tn-elevation-shadow-brand-hover: none;
}

/* Card demos - workforce preview metrics */
.docs-card-demo__tonal,
.docs-card-demo__flat {
  width: 100%;
}

.docs-card-demo__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tn-space-base);
}

.docs-card-demo__highlight {
  background: var(--tn-color-background-brand-tint10);
}

.docs-card-demo__trend {
  color: var(--tn-color-text-success);
  font-weight: var(--tn-font-weight-bold);
}

.docs-card-demo__success {
  color: var(--tn-color-text-success);
}

.docs-card-demo__muted-inline {
  color: var(--tn-color-text-subtle);
  font-weight: var(--tn-font-weight-regular);
}

.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-card,
.docs-component-demo__canvas[data-device="web"] .docs-preview-device .tn-card,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-list,
.docs-component-demo__canvas[data-device="web"] .docs-preview-device .tn-list,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-list.tn-card,
.docs-component-demo__canvas[data-device="web"] .docs-preview-device .tn-list.tn-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.docs-list-demo__wrap {
  width: 100%;
  max-width: 24rem;
  padding: var(--tn-space-base);
  border-radius: var(--tn-border-radius-md);
  background: var(--tn-color-background-surface-container-low);
  box-sizing: border-box;
}

.docs-component-demo__canvas[data-device="web"] .docs-list-demo__wrap {
  max-width: 28rem;
}

.docs-list-demo__stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
}

.docs-component-demo__canvas .docs-preview-device .docs-list-demo__wrap,
.docs-component-demo__canvas .docs-preview-device .docs-list-demo__stack,
.docs-component-demo__canvas .docs-preview-device .docs-list-demo__head {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}

.docs-list-demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tn-space-base);
  width: 100%;
  margin-bottom: var(--tn-space-sm);
}

.docs-list-demo__checkin {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--tn-space-base);
  width: 100%;
}

.docs-list-demo__checkin > div {
  min-width: 0;
}

.docs-list-demo__status {
  flex-shrink: 0;
  max-width: 7rem;
  font-size: var(--tn-font-size-caption-sm, 0.6875rem);
  font-weight: var(--tn-font-weight-semibold);
  color: var(--tn-color-text-subtle);
  text-align: right;
  line-height: 1.3;
}

.docs-list-demo__head .tn-label {
  margin: 0;
}

.docs-list-demo__head a {
  font-size: var(--tn-font-size-body-sm);
  font-weight: 700;
  color: var(--tn-color-text-brand-onLight);
  text-decoration: none;
}

.docs-list-demo__head a:hover {
  text-decoration: underline;
}

.docs-component-demo__canvas .docs-preview.tn-pattern-tonal-section .docs-preview-device {
  width: 100%;
  max-width: none;
}

.docs-component-demo__canvas .tn-btn--primary,
.docs-component-demo__canvas .tn-btn--primary:hover:not(:disabled),
.docs-component-demo__canvas .tn-btn--primary:active:not(:disabled) {
  box-shadow: none !important;
}

.docs-section > h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.docs-section > h2:first-child {
  margin-top: 0;
}

.docs-component-demo__preview-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 20rem;
}

.docs-component-demo__preview-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
}

.docs-preview-device[hidden] {
  display: none !important;
}

.docs-component-demo__canvas[data-theme="light"] {
  --tn-color-background-page: #f8fafc;
  --tn-color-background-surface-default: #f8fafc;
  --tn-color-background-surface-container-low: #f1f5f9;
  --tn-color-background-surface-container-lowest: #ffffff;
  --tn-color-background-surface-container-high: #f1f5f9;
  --tn-color-background-surface-container-highest: #f8fafc;
  --tn-color-text: #000000;
  --tn-color-text-subtle: #7c8ba1;
  --tn-color-border-default: #e2e8f0;
  --tn-color-border-ghost: rgba(226, 232, 240, 0.5);
  --tn-color-background-brand-bold: #2ecc71;
  --tn-color-text-brand: #ffffff;
  --tn-color-background-discovery-bold: #7c3aed;
  --tn-color-text-danger: #dc2626;
  --tn-color-background-danger: #ffdad6;
  --tn-color-text-success: #2ecc71;
  --tn-color-background-brand-tint10: rgba(46, 204, 113, 0.1);
  --tn-color-background-brand-tint20: rgba(46, 204, 113, 0.2);
}

.docs-component-demo__canvas[data-theme="dark"] {
  --tn-color-background-page: #0f172a;
  --tn-color-background-surface-default: #0f172a;
  --tn-color-background-surface-container-low: #1e293b;
  --tn-color-background-surface-container-lowest: #1e293b;
  --tn-color-background-surface-container-high: #334155;
  --tn-color-background-surface-container-highest: #475569;
  --tn-color-text: #f8fafc;
  --tn-color-text-subtle: #94a3b8;
  --tn-color-text-disabled: #64748b;
  --tn-color-border-default: #334155;
  --tn-color-border-ghost: rgba(51, 65, 85, 0.65);
  --tn-color-border-strong: #475569;
  --tn-color-background-brand-bold: #2ecc71;
  --tn-color-text-brand: #ffffff;
  --tn-color-background-discovery-bold: #8b5cf6;
  --tn-color-background-brand-tint10: rgba(46, 204, 113, 0.15);
  --tn-color-text-danger: #f87171;
  --tn-color-background-danger: rgba(248, 113, 113, 0.2);
  --tn-color-text-success: #4ade80;
  --tn-color-background-brand-tint10: rgba(74, 222, 128, 0.15);
  --tn-color-background-brand-tint20: rgba(74, 222, 128, 0.25);
  --tn-color-elevation-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --tn-color-elevation-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.docs-component-demo__canvas[data-theme="dark"] .tn-pattern-tonal-section {
  background: var(--tn-color-background-surface-container-low);
}

/* Device preview frame (web vs mobile) */
.docs-device-frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  transition: max-width 0.2s ease;
}

.docs-component-demo__canvas[data-device="mobile"] .docs-device-frame {
  max-width: 22rem;
}

.docs-component-demo__canvas[data-device="web"] .docs-device-frame {
  max-width: 100%;
}

.docs-component-demo__canvas[data-device="mobile"] .docs-device-frame .docs-preview {
  max-width: 100%;
}

/* Mobile playground: center intrinsic-width controls; full-width spans the column */
.docs-component-demo__canvas[data-device="mobile"] .docs-device-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.docs-component-demo__canvas[data-device="mobile"] .docs-device-frame .docs-preview,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview.docs-component-demo__preview-stack,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview.docs-component-demo__preview-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--full-width,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn-split--full-width,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--primary,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--secondary,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--warning,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--danger,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--discovery,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--link.tn-btn--full-width,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--link-icon.tn-btn--full-width {
  align-self: stretch;
  width: 100%;
}

.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn-group,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--subtle,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--icon,
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--link:not(.tn-btn--full-width),
.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn--link-icon:not(.tn-btn--full-width) {
  align-self: center;
}

.docs-component-demo__canvas[data-device="mobile"] .docs-preview-device .tn-btn-group {
  justify-content: center;
}

.docs-component-demo__canvas[data-device="web"] .docs-component-demo__preview-stack,
.docs-component-demo__canvas[data-device="web"] .docs-component-demo__preview-row {
  max-width: none;
}

.docs-component-demo__canvas[data-device="web"] .docs-preview {
  max-width: none;
}

.docs-component-demo__canvas[data-device="web"] .docs-preview-device:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Web: buttons stay intrinsic width (mobile keeps full-width primary) */
.docs-component-demo__canvas[data-device="web"] .docs-preview-device .tn-btn:not(.tn-btn--icon),
.docs-component-demo__canvas[data-device="web"] .docs-preview-device .tn-btn-group,
.docs-component-demo__canvas[data-device="web"] .docs-preview-device .tn-btn-split {
  width: auto;
  max-width: 100%;
  align-self: flex-start;
}

.docs-component-demo__canvas[data-device="web"] .docs-preview-device .tn-btn--icon {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border-radius: var(--tn-border-radius-full);
  flex-shrink: 0;
}

.docs-component-demo__canvas[data-device="web"] .docs-preview-device .tn-btn--primary,
.docs-component-demo__canvas[data-device="web"] .docs-preview-device .tn-btn--primary-flat {
  width: auto;
  min-width: 9rem;
}

.docs-component-demo__canvas[data-device="web"] .docs-preview-device .docs-component-demo__preview-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  max-width: none;
  width: 100%;
}

/* Link icon row on web: pill-shaped controls beside each other */
.docs-component-demo__canvas[data-device="web"] .docs-preview-device .docs-component-demo__preview-row .tn-btn--link-icon {
  min-height: 2.5rem;
  padding: var(--tn-space-sm) var(--tn-space-md);
  border-radius: var(--tn-border-radius-pill);
  background: var(--tn-color-background-surface-container-lowest);
  border: var(--tn-border-width-thin) solid var(--tn-color-border-default);
}

.docs-component-demo__canvas .tn-btn--link-icon {
  min-height: 2.75rem;
}

.docs-component-demo__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding: 0.375rem 0.625rem;
  gap: 0.75rem;
  background: var(--docs-code-bg);
  border-top: 1px solid var(--docs-border);
  border-bottom: 1px solid var(--docs-border);
}

.docs-component-demo__toolbar-start {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  gap: 0;
}

.docs-component-demo__toolbar-start > * + * {
  margin-left: 0.625rem;
  padding-left: 0.625rem;
  border-left: 1px solid var(--docs-border);
}

.docs-component-demo__toolbar-start:has(.docs-platform-switch[hidden]):not(:has(.docs-device-switch)) {
  display: none;
}

.docs-component-demo__toolbar-actions {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.docs-component-demo__toolbar-actions > * + * {
  margin-left: 0.625rem;
  padding-left: 0.625rem;
  border-left: 1px solid var(--docs-border);
}

.docs-toolbar-cluster {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.docs-component-demo__toolbar-actions .docs-preview-theme {
  padding: 0;
  margin: 0;
  border: none;
  gap: 0.25rem;
}

.docs-component-demo__toolbar-actions .docs-toolbar-cluster--views .docs-view-switch--toolbar {
  margin: 0;
  padding: 2px;
  border: 1px solid var(--docs-toolbar-cluster-border);
  border-radius: 6px;
  background: var(--docs-toolbar-cluster-bg);
  gap: 0;
}

.docs-component-demo__toolbar-actions .docs-toolbar-icon-btn--copy {
  margin: 0;
}

/* Demo toolbar: platform logos + clustered controls */
.docs-component-demo__toolbar .docs-toolbar-cluster--platform .docs-platform-switch--brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border: none;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.docs-component-demo__toolbar .docs-toolbar-cluster--platform {
  padding: 2px;
  border: 1px solid var(--docs-toolbar-cluster-border);
  border-radius: 6px;
  background: var(--docs-toolbar-cluster-bg);
}

.docs-component-demo__toolbar .docs-toolbar-cluster--views .docs-view-switch--toolbar {
  display: inline-flex;
  align-items: center;
  box-shadow: none;
  flex-shrink: 0;
}

.docs-component-demo__toolbar .docs-platform-switch--brand .docs-platform-btn,
.docs-component-demo__toolbar .docs-toolbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition:
    opacity 0.12s ease,
    filter 0.12s ease,
    background 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
}

.docs-component-demo__toolbar .docs-platform-switch--brand .docs-platform-btn {
  box-shadow: none;
  line-height: 0;
}

.docs-component-demo__toolbar .docs-toolbar-icon-btn {
  line-height: 1;
}

.docs-component-demo__toolbar .docs-platform-switch--brand .docs-platform-btn .docs-icon-brand {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  shape-rendering: geometricPrecision;
}

.docs-component-demo__toolbar .docs-platform-switch--brand .docs-platform-btn:not(.is-active) {
  filter: grayscale(1) saturate(0);
  opacity: 0.42;
}

.docs-component-demo__toolbar .docs-platform-switch--brand .docs-platform-btn:not(.is-active):hover {
  opacity: 0.58;
  background: var(--docs-hover);
}

.docs-component-demo__toolbar .docs-platform-switch--brand .docs-platform-btn.is-active {
  filter: none;
  opacity: 1;
  background: var(--docs-toolbar-active-bg);
  color: var(--docs-toolbar-active-text);
  box-shadow: none;
}

.docs-component-demo__toolbar .docs-platform-switch--brand .docs-platform-btn.is-active:hover {
  background: var(--docs-toolbar-active-bg);
  color: var(--docs-toolbar-active-text);
}

.docs-component-demo__toolbar .docs-view-switch--toolbar .docs-toolbar-icon-btn:not(.is-active) {
  color: var(--docs-text-subtle);
  opacity: 0.5;
}

.docs-component-demo__toolbar .docs-toolbar-icon-btn .material-symbols-outlined {
  font-size: 1.25rem;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.docs-component-demo__toolbar .docs-view-switch--toolbar .docs-toolbar-icon-btn:not(.is-active):hover {
  opacity: 0.75;
  color: var(--docs-text);
  background: transparent;
}

.docs-component-demo__toolbar .docs-view-switch--toolbar .docs-toolbar-icon-btn.is-active {
  opacity: 1;
  color: var(--docs-toolbar-active-text);
  background: var(--docs-toolbar-active-bg);
  box-shadow: none;
}

.docs-component-demo__toolbar .docs-view-switch--toolbar .docs-toolbar-icon-btn.is-active:hover {
  color: var(--docs-toolbar-active-text);
  background: var(--docs-toolbar-active-bg);
}

.docs-component-demo__toolbar .docs-toolbar-icon-btn--copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--docs-text-subtle);
  opacity: 1;
  border-radius: 6px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
}

.docs-component-demo__toolbar .docs-toolbar-icon-btn--copy:active:not(:disabled) {
  transform: scale(0.94);
}

.docs-component-demo__toolbar .docs-toolbar-icon-btn--copy:disabled {
  opacity: 0.55;
  cursor: wait;
}

.docs-component-demo__toolbar .docs-copy-btn__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.docs-component-demo__toolbar .docs-copy-btn__icon .material-symbols-outlined {
  font-size: 1.125rem;
}

.docs-component-demo__toolbar .docs-copy-btn__icon--success {
  transform: scale(1.08);
  color: var(--docs-copy-success-text);
}

.docs-component-demo__toolbar .docs-toolbar-icon-btn--copy:hover:not(:disabled) {
  color: var(--docs-text);
  background: var(--docs-hover);
}

.docs-component-demo__toolbar .docs-toolbar-icon-btn--copy.is-copied {
  color: var(--docs-copy-success-text);
  background: var(--docs-copy-success-bg);
  box-shadow: none;
}

.docs-copy-toast {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  max-width: calc(100% - 1.25rem);
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  border: 1px solid var(--docs-border);
  background: var(--docs-bg);
  box-shadow: 0 4px 12px var(--docs-shadow);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--docs-copy-success-text);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.docs-copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.docs-copy-toast--error {
  color: var(--docs-copy-error-text);
  background: var(--docs-copy-error-bg);
  border-color: transparent;
}

.docs-copy-toast__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.docs-copy-toast__icon .material-symbols-outlined {
  font-size: 1rem;
}

.docs-copy-toast__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-component-demo__toolbar .docs-platform-switch[hidden] {
  display: none !important;
}

.docs-demo-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  border: none;
  background: transparent;
  color: var(--docs-text);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.docs-demo-action:hover {
  background: var(--docs-hover);
  color: var(--docs-text);
  text-decoration: none;
}

.docs-demo-action svg {
  flex-shrink: 0;
  color: var(--docs-text-subtle);
}

.docs-demo-action:hover svg {
  color: var(--docs-text);
}

.docs-code-panel--in-demo {
  position: relative;
  margin: 0;
  border: none;
  border-radius: 0;
  background: var(--docs-code-bg);
}

.docs-code-panel--in-demo .docs-code-block {
  --docs-code-pad-y: 1rem;
}

.docs-code-panel--in-demo .docs-code-panel__code {
  border-top: none;
}

/* Preview theme swatches (light / dark) */
.docs-preview-theme {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  flex-shrink: 0;
}

.docs-preview-theme__swatch {
  width: 1.125rem;
  height: 1.125rem;
  padding: 0;
  border: 1.5px solid var(--docs-border);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.1s ease;
}

.docs-preview-theme__swatch--light {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(9, 30, 66, 0.06);
}

.docs-preview-theme__swatch--dark {
  background: #1e293b;
}

.docs-preview-theme__swatch:hover {
  border-color: var(--docs-text-subtle);
}

.docs-preview-theme__swatch.is-active {
  border-color: var(--docs-text);
  box-shadow: none;
  outline: 1px solid var(--docs-text);
  outline-offset: 1px;
}

.docs-preview-theme__swatch:focus-visible {
  outline: 2px solid var(--docs-text-subtle);
  outline-offset: 2px;
}

/* Device switch (web / mobile) - icon toolbar */
.docs-device-switch--toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border: 1px solid var(--docs-toolbar-cluster-border);
  border-radius: 6px;
  background: var(--docs-toolbar-cluster-bg);
}

.docs-component-demo__toolbar .docs-device-switch--toolbar .docs-toolbar-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--docs-text-subtle);
  opacity: 0.5;
  cursor: pointer;
  line-height: 1;
}

.docs-component-demo__toolbar .docs-device-switch--toolbar .docs-toolbar-icon-btn .material-symbols-outlined {
  font-size: 1.25rem;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.docs-component-demo__toolbar .docs-device-switch--toolbar .docs-toolbar-icon-btn:not(.is-active):hover {
  opacity: 0.75;
  color: var(--docs-text);
  background: transparent;
}

.docs-component-demo__toolbar .docs-device-switch--toolbar .docs-toolbar-icon-btn.is-active {
  opacity: 1;
  color: var(--docs-toolbar-active-text);
  background: var(--docs-toolbar-active-bg);
  box-shadow: none;
}

.docs-component-demo__toolbar .docs-device-switch--toolbar .docs-toolbar-icon-btn.is-active:hover {
  color: var(--docs-toolbar-active-text);
  background: var(--docs-toolbar-active-bg);
}

.docs-component-demo__toolbar .docs-device-switch--toolbar .docs-toolbar-icon-btn:focus-visible {
  outline: 2px solid var(--docs-link);
  outline-offset: 1px;
}

.docs-code {
  background: var(--docs-code-bg);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.docs-code-block .docs-code.docs-code-panel__code {
  margin: 0;
  padding: var(--docs-code-pad-y) var(--docs-code-pad-code-x);
  background: transparent;
  border-radius: 0;
  font-size: var(--docs-code-font-size);
  line-height: var(--docs-code-line-height);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: visible;
  color: var(--docs-text);
  min-height: 3rem;
}

.docs-component-demo .docs-code-panel--in-demo .docs-code-block__gutter {
  opacity: 0.45;
}

.docs-token {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--docs-brand);
}

/* Color palette - product roles + ramps */
.docs-palette-product {
  margin-bottom: 2.5rem;
}

.docs-palette-product > h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.docs-palette-product-group {
  margin-bottom: 1.75rem;
}

.docs-palette-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.docs-palette-product-swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 6.5rem;
  padding: 0.75rem;
  padding-top: 2rem;
  border-radius: 8px;
  background-color: var(--docs-palette-swatch-bg);
  box-shadow: 0 0 0 1px rgba(9, 30, 66, 0.08);
  overflow: visible;
}

.docs-palette-product-swatch__name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #172b4d;
  line-height: 1.2;
}

.docs-palette-product-swatch__step {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #44546f;
  line-height: 1.2;
}

.docs-palette-product-swatch__token {
  font-family: ui-monospace, monospace;
  font-size: 0.625rem;
  color: #44546f;
  word-break: break-all;
  line-height: 1.3;
}

.docs-palette-product-swatch__hex {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  color: #626f86;
  margin-top: auto;
}

.docs-palette-product-swatch.docs-palette-swatch--on-dark .docs-palette-product-swatch__name,
.docs-palette-product-swatch.docs-palette-swatch--on-dark .docs-palette-product-swatch__step,
.docs-palette-product-swatch.docs-palette-swatch--on-dark .docs-palette-product-swatch__token,
.docs-palette-product-swatch.docs-palette-swatch--on-dark .docs-palette-product-swatch__hex {
  color: #ffffff;
}

.docs-palette-product-swatch .docs-palette-swatch__actions {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.docs-palette-product-swatch:hover .docs-palette-swatch__actions,
.docs-palette-product-swatch:focus-within .docs-palette-swatch__actions {
  opacity: 1;
  pointer-events: auto;
}

/* Typography foundations page */
.docs-layout--wide .docs-main--typography {
  max-width: 52rem;
}

.docs-main--typography .docs-hero.docs-type-hero {
  margin-bottom: 2.5rem;
}

.docs-main--typography .docs-section h2 + .docs-type-lede {
  margin-top: -0.5rem;
}

.docs-main--typography .docs-section p.docs-type-lede {
  color: var(--docs-text-subtle);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
  line-height: 1.55;
  max-width: 40rem;
}

.docs-main--typography .docs-type-scale-card p,
.docs-main--typography .docs-type-features__card p,
.docs-main--typography .docs-type-leading-card p,
.docs-main--typography .docs-type-weight-ladder__sample {
  color: var(--tn-color-text);
  font-size: inherit;
}

.docs-main--typography .docs-type-showcase .tn-body-lg,
.docs-main--typography .docs-type-hero__panel .tn-body-sm {
  color: var(--tn-color-text-subtle);
}

.docs-main--typography .docs-type-features__card h3 {
  margin: 0 0 0.35rem;
  padding: 0;
  border: none;
  font-size: 1rem;
}

.docs-type-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  gap: 1.5rem 2rem;
  align-items: stretch;
}

.docs-type-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--docs-text-subtle);
}

.docs-type-hero__stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--docs-text);
  line-height: 1.2;
}

.docs-type-hero__panel {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--docs-border);
  border-radius: var(--tn-border-radius-md, 1.5rem);
  background: linear-gradient(145deg, var(--tn-color-background-surface-container-low, #f1f5f9), #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.docs-type-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  padding: 1.5rem;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  background: #fff;
}

.docs-type-showcase__name {
  margin: 0 0 0.75rem;
  font-family: var(--tn-font-family-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--docs-text);
}

.docs-type-showcase__glyph {
  margin: 0;
  font-family: var(--tn-font-family-body);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--tn-color-text-brand-onLight, #2ecc71);
}

.docs-type-showcase__alphabet {
  margin: 1rem 0 0;
  font-family: var(--tn-font-family-body);
  font-size: 0.8125rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--tn-color-text-subtle);
  word-break: break-all;
}

.docs-type-showcase__meta {
  margin: 0;
  min-width: 12rem;
  font-size: 0.875rem;
}

.docs-type-showcase__meta div {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--docs-border);
}

.docs-type-showcase__meta div:last-child {
  border-bottom: none;
}

.docs-type-showcase__meta dt {
  font-weight: 600;
  color: var(--docs-text-subtle);
  margin-bottom: 0.2rem;
}

.docs-type-showcase__meta dd {
  margin: 0;
}

.docs-type-weight-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-type-weight-ladder__row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  background: #fff;
}

.docs-type-weight-ladder__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs-type-weight-ladder__value {
  font-size: 1.125rem;
  font-weight: 800;
  font-family: var(--tn-font-family-body);
}

.docs-type-weight-ladder__name {
  font-size: 0.875rem;
  font-weight: 700;
}

.docs-type-weight-ladder__use {
  font-size: 0.75rem;
  color: var(--docs-text-subtle);
}

.docs-type-weight-ladder__sample {
  margin: 0;
  font-family: var(--tn-font-family-body);
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  color: var(--tn-color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-typography-features] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.docs-type-features__card {
  padding: 1.25rem;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  background: var(--tn-color-background-surface-container-lowest, #fff);
}

.docs-type-features__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.docs-type-features__compare-panel {
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--docs-bg);
  border: 1px solid var(--docs-border);
}

.docs-type-features__compare-panel--accent {
  border-color: var(--tn-color-text-brand-onLight, #2ecc71);
  background: var(--tn-color-background-brand-tint10, rgba(46, 204, 113, 0.1));
}

.docs-type-features__compare-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--docs-text-subtle);
  margin-bottom: 0.35rem;
}

.docs-type-features__compare-value {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
  font-variant-numeric: proportional-nums;
  word-break: break-all;
}

.docs-type-features__preview {
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--docs-bg);
  text-align: center;
}

.docs-type-features__title,
.docs-type-scale-group__title,
.docs-type-callouts__title {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--docs-text);
}

.docs-type-scale-group__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--docs-text-subtle);
}

.docs-type-features__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--docs-text-subtle);
  line-height: 1.5;
}

.docs-type-features__badge {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 4px;
  background: var(--tn-color-background-brand-tint10, rgba(46, 204, 113, 0.12));
  color: var(--tn-color-text-brand-onLight, #2ecc71);
}

.docs-type-scale-ramp {
  display: none;
}

.docs-type-scale-group {
  margin-bottom: 1.75rem;
}

.docs-type-scale-group:last-child {
  margin-bottom: 0;
}

.docs-type-scale-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.docs-type-scale-card {
  position: relative;
  padding: 1rem 1rem 1rem 1.125rem;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  background: #fff;
}

.docs-type-scale-card__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tn-color-text-brand-onLight, #2ecc71);
  border-radius: 10px 0 0 10px;
}

.docs-type-scale-card__specimen-wrap {
  display: flex;
  align-items: flex-end;
  min-height: calc(var(--docs-type-scale-px, 16) * 1px + 8px);
  margin: 0 0 0.75rem;
  padding: 0.35rem 0 0.65rem;
  border-bottom: 1px solid var(--docs-border);
  overflow: hidden;
}

.docs-type-scale-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.docs-type-scale-card__name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.docs-type-scale-card__utility {
  font-size: 0.8125rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--tn-color-background-surface-container-lowest, #fff);
  border: 1px solid var(--docs-border);
}

.docs-type-scale-card__specimen {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tn-color-text) !important;
}

.docs-type-scale-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.docs-type-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 4px;
  background: var(--tn-color-background-surface-container-lowest, #fff);
  border: 1px solid var(--docs-border);
  color: var(--docs-text-subtle);
}

.docs-type-scale-card__tokens {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: var(--docs-text-subtle);
}

.docs-type-scale-card__use {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--docs-text-subtle);
}

.docs-type-scale-card__workforce {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  border-radius: 6px;
  background: var(--tn-color-background-brand-tint10, rgba(46, 204, 113, 0.08));
  color: var(--docs-text);
}

.docs-type-leading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.docs-type-leading-card {
  padding: 1.25rem;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  background: var(--tn-color-background-surface-container-lowest, #fff);
}

.docs-main--typography .docs-type-leading-card h3 {
  margin: 0 0 0.25rem;
  padding: 0;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--docs-text);
}

.docs-type-leading-card__ratio {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--docs-text-subtle);
}

.docs-type-leading-card__viz {
  padding: 1rem;
  border-radius: 8px;
  background: var(--docs-bg);
  margin-bottom: 0.75rem;
}

.docs-type-leading-block {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.docs-type-leading-block__label {
  flex-shrink: 0;
  width: 2.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--docs-text-subtle);
  text-align: right;
  padding-top: 0.15rem;
}

.docs-type-leading-block__line {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  border: 1px dashed var(--tn-color-border-default, #e2e8f0);
  border-radius: 4px;
  background: #fff;
  font-family: var(--tn-font-family-body);
  font-size: var(--tn-font-size-heading-2);
  font-weight: var(--tn-font-weight-extrabold);
  line-height: 1.2;
  box-sizing: border-box;
  overflow: hidden;
}

.docs-type-leading-block--body .docs-type-leading-block__line {
  font-size: var(--tn-font-size-body);
  font-weight: var(--tn-font-weight-medium);
  align-items: flex-start;
  padding-top: 0.25rem;
}

.docs-type-leading-block--label .docs-type-leading-block__line {
  font-size: var(--tn-font-size-label);
  align-items: center;
  justify-content: flex-start;
}

.docs-type-leading-card__example {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--docs-text-subtle);
}

.docs-type-workforce-layout {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.docs-type-workforce__shell {
  padding: var(--tn-space-lg);
  border: 1px solid var(--docs-border);
  border-radius: var(--tn-border-radius-md, 1.5rem);
  background: var(--tn-color-background-surface-default, #f8fafc);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.docs-type-workforce__header {
  margin-bottom: var(--tn-space-lg);
}

.docs-type-workforce__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tn-space-base);
}

.docs-type-workforce__metric {
  margin: var(--tn-space-xs) 0 0;
  font-size: var(--tn-font-size-heading-2);
  font-weight: var(--tn-font-weight-extrabold);
  line-height: var(--tn-font-lineHeight-heading-2);
  font-variant-numeric: tabular-nums;
}

.docs-type-workforce__metric-sub {
  color: var(--tn-color-text-subtle);
  font-weight: var(--tn-font-weight-regular);
}

.docs-type-workforce__row-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--tn-space-lg);
}

.docs-type-workforce__link {
  color: var(--tn-color-text-brand-onLight);
  font-size: var(--tn-font-size-body-sm);
  font-weight: var(--tn-font-weight-bold);
  text-decoration: none;
}

.docs-type-callouts {
  padding: 1rem 1.125rem;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  background: #fff;
}

.docs-type-callouts__title {
  padding-bottom: 0.65rem;
  margin-bottom: 0.5rem !important;
  border-bottom: 1px solid var(--docs-border);
}

.docs-type-callouts__item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--docs-border);
}

.docs-type-callouts__item:last-child {
  border-bottom: none;
}

.docs-type-callouts__class {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--tn-color-background-surface-container-lowest, #fff);
}

.docs-type-callouts__text {
  font-size: 0.875rem;
  color: var(--docs-text-subtle);
}

.docs-type-code-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  overflow: hidden;
}

.docs-type-code-demo__preview {
  padding: 1.5rem 1.75rem;
  background: var(--tn-color-background-surface-default, #f8fafc);
  border-right: 1px solid var(--docs-border);
}

.docs-type-code-demo__code {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border: none;
  border-radius: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  background: var(--docs-playground-code-bg, #fff);
  overflow-x: auto;
}

.docs-type-footnote {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--docs-text-subtle);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .docs-type-hero {
    grid-template-columns: 1fr;
  }

  .docs-type-showcase {
    grid-template-columns: 1fr;
  }

  .docs-type-leading-grid {
    grid-template-columns: 1fr;
  }

  .docs-type-workforce-layout {
    grid-template-columns: 1fr;
  }

  .docs-type-code-demo {
    grid-template-columns: 1fr;
  }

  .docs-type-code-demo__preview {
    border-right: none;
    border-bottom: 1px solid var(--docs-border);
  }

  .docs-type-weight-ladder__row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .docs-type-weight-ladder__sample {
    white-space: normal;
  }
}

/* Typography foundations page */
.docs-type-intro {
  color: var(--docs-text-subtle);
  margin: 0 0 1.25rem;
}

.docs-type-typeface-card {
  margin: 1.25rem 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--docs-border);
  border-radius: 12px;
  background: var(--tn-color-background-surface-container-lowest, #fff);
}

.docs-type-weights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.docs-type-weights__item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--docs-border);
  border-radius: 8px;
  background: var(--docs-bg);
}

.docs-type-weights__num {
  font-family: var(--tn-font-family-body);
  font-size: 1.25rem;
  font-weight: 800;
  min-width: 2.5rem;
}

.docs-type-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.docs-type-features__card {
  padding: 1rem 1.125rem;
  border: 1px solid var(--docs-border);
  border-radius: 10px;
  background: var(--tn-color-background-surface-container-lowest, #fff);
}

.docs-type-features__preview {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tn-color-text);
}

.docs-type-features__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.docs-type-features__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--docs-text-subtle);
  line-height: 1.45;
}

.docs-type-features__badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tn-color-text-brand-onLight, #2ecc71);
}

.docs-type-scale__table {
  margin-top: 1rem;
}

.docs-type-scale__group td {
  background: var(--docs-bg-subtle, #f8fafc);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--docs-text-subtle);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.docs-type-scale__specimen-cell {
  min-width: 10rem;
}

.docs-type-scale__specimen-cell p {
  margin: 0;
  white-space: nowrap;
}

.docs-type-scale__muted {
  color: var(--docs-text-subtle);
}

.docs-type-workforce {
  margin-top: 1rem;
}

.docs-type-workforce__shell {
  max-width: 24.375rem;
  margin: 0 auto;
  padding: var(--tn-space-lg);
  border: 1px solid var(--docs-border);
  border-radius: var(--tn-border-radius-md, 1.5rem);
  background: var(--tn-color-background-surface-default);
}

.docs-type-workforce__header {
  margin-bottom: var(--tn-space-lg);
}

.docs-type-workforce__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tn-space-base);
}

.docs-type-workforce__metric {
  margin: var(--tn-space-xs) 0 0;
  font-size: var(--tn-font-size-heading-2);
  font-weight: var(--tn-font-weight-extrabold);
  line-height: var(--tn-font-lineHeight-heading-2);
  font-variant-numeric: tabular-nums;
}

.docs-type-workforce__metric-sub {
  color: var(--tn-color-text-subtle);
  font-weight: var(--tn-font-weight-regular);
}

.docs-type-workforce__row-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--tn-space-lg);
}

.docs-type-workforce__link {
  color: var(--tn-color-text-brand-onLight);
  font-size: var(--tn-font-size-body-sm);
  font-weight: var(--tn-font-weight-bold);
  text-decoration: none;
}

.docs-palette-intro {
  font-size: 0.9375rem;
  color: var(--docs-text-subtle);
  margin: 0 0 1.5rem;
}

.docs-palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.docs-palette-ramp__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--docs-text);
}

.docs-palette-ramp__title--sub {
  font-size: 0.875rem;
  font-weight: 600;
}

.docs-palette-ramp__stack {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(9, 30, 66, 0.06);
}

.docs-palette-swatch {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0;
  font: inherit;
  text-align: left;
  background-color: var(--docs-palette-swatch-bg);
  transition: filter 0.12s ease;
}

.docs-palette-swatch--alpha {
  background-image:
    linear-gradient(45deg, #ebecf0 25%, transparent 25%),
    linear-gradient(-45deg, #ebecf0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ebecf0 75%),
    linear-gradient(-45deg, transparent 75%, #ebecf0 75%),
    linear-gradient(var(--docs-palette-swatch-bg), var(--docs-palette-swatch-bg));
  background-size: 10px 10px, 10px 10px, 10px 10px, 10px 10px, 100% 100%;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0, 0 0;
}

.docs-palette-swatch--first {
  border-radius: 8px 8px 0 0;
}

.docs-palette-swatch--last {
  border-radius: 0 0 8px 8px;
}

.docs-palette-swatch--first.docs-palette-swatch--last {
  border-radius: 8px;
}

.docs-palette-swatch:hover,
.docs-palette-swatch:focus-within {
  filter: brightness(0.97);
  z-index: 1;
}

.docs-palette-swatch__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #172b4d;
  line-height: 1.2;
  flex-shrink: 0;
}

.docs-palette-swatch--on-dark .docs-palette-swatch__label {
  color: #ffffff;
}

.docs-palette-swatch__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.docs-palette-swatch:hover .docs-palette-swatch__actions,
.docs-palette-swatch:focus-within .docs-palette-swatch__actions {
  opacity: 1;
  pointer-events: auto;
}

.docs-palette-swatch__copy {
  border: none;
  background: transparent;
  padding: 0.125rem 0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  color: inherit;
  opacity: 0.72;
  text-decoration: none;
}

.docs-palette-swatch__copy:focus-visible {
  opacity: 1;
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

.docs-palette-swatch__copy.is-copied {
  opacity: 1;
  font-weight: 600;
}

.docs-palette-swatch--on-dark .docs-palette-swatch__copy {
  color: #ffffff;
}

.docs-palette-swatch:not(.docs-palette-swatch--on-dark) .docs-palette-swatch__copy {
  color: #172b4d;
}

@media (hover: none) {
  .docs-palette-swatch__actions {
    opacity: 1;
    pointer-events: auto;
  }
}

.docs-palette-neutrals {
  margin-top: 2.5rem;
}

.docs-palette-neutrals > h2 {
  margin-bottom: 1rem;
}

.docs-palette-neutrals + .docs-palette-neutrals {
  padding-top: 0.5rem;
  border-top: 1px solid var(--docs-border);
}

.docs-palette-grid--neutrals {
  margin-bottom: 0;
}

.docs-palette-ramp--neutrals-solo {
  max-width: 12rem;
}

.docs-palette-error {
  color: #ae2e24;
  font-size: 0.875rem;
}

@media (max-width: 720px) {
  .docs-palette-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .docs-palette-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile menu toggle */
.docs-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0 0 auto;
  padding: 0;
  border: 1px solid var(--docs-border);
  border-radius: 6px;
  background: var(--docs-bg);
  cursor: pointer;
  flex-shrink: 0;
}

.docs-menu-toggle__bar {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--docs-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.docs-nav-open .docs-menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.docs-nav-open .docs-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.docs-nav-open .docs-menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.docs-overlay {
  position: fixed;
  top: var(--docs-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--docs-overlay);
}

.docs-overlay[hidden] {
  display: none;
}

@media (max-width: 1200px) {
  .docs-home {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "preview"
      "below";
    row-gap: 2rem;
  }

  .docs-home__preview {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .docs-home__preview {
    --docs-home-preview-frame: min(40rem, calc(100vh - var(--docs-header-height) - 6rem));
    --docs-home-preview-scroll: min(34rem, calc(100vh - var(--docs-header-height) - 10rem));
  }

  .docs-home-phone__screen {
    min-height: min(32rem, 70vh);
  }

  .docs-home-browser__screen {
    min-height: min(30rem, 70vh);
  }

  .docs-home-preview__web-grid {
    grid-template-columns: 1fr;
  }

  .docs-home-preview__web-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .docs-home-preview__web-metrics .docs-card-demo__highlight {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .docs-main--home {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .docs-home {
    row-gap: 1.75rem;
  }

  .docs-home-phone {
    max-width: 100%;
    border-radius: 1.75rem;
  }

  .docs-home__preview {
    --docs-home-preview-frame: min(36rem, calc(100vh - var(--docs-header-height) - 5rem));
    --docs-home-preview-scroll: min(30rem, calc(100vh - var(--docs-header-height) - 9rem));
  }

  .docs-home-phone__screen {
    min-height: min(28rem, 68vh);
  }

  .docs-home-browser__screen {
    min-height: min(26rem, 68vh);
  }

  .docs-home-preview__checkin {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--tn-space-xs);
  }

  .docs-home-preview__status {
    max-width: none;
    text-align: left;
  }

  .docs-home-preview__badge {
    align-self: flex-start;
  }

  .docs-home-preview__web-top {
    flex-wrap: wrap;
  }

  .docs-card-grid--home {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .docs-section--home-start {
    margin-top: 0.75rem;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .docs-header {
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .docs-header__search-trigger {
    width: auto;
    max-width: 7.5rem;
  }

  .docs-header__nav {
    margin-left: 0;
    flex: 1;
    min-width: 0;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 90%, transparent);
  }

  .docs-header__nav::-webkit-scrollbar {
    display: none;
  }

  .docs-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: 0.25rem;
  }

  .docs-header__brand {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .docs-sidebar {
    width: min(86vw, 320px);
    z-index: 110;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 24px var(--docs-shadow);
  }

  body.docs-nav-open .docs-sidebar {
    transform: translateX(0);
  }

  body.docs-nav-open {
    overflow: hidden;
  }

  .docs-main {
    margin-left: 0;
    max-width: none;
    width: 100%;
    padding: 1.25rem 1rem 2.5rem;
  }

  .docs-main--home {
    width: 100%;
  }

  .docs-main--component {
    padding-right: 1.25rem;
  }

  .docs-main--styling {
    padding-right: 1.25rem;
  }

  .docs-styling-doc__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .docs-styling-toc {
    display: none;
  }

  .docs-component-doc__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .docs-page-toc {
    display: none;
  }

  .docs-tokens-flow {
    grid-template-columns: 1fr;
  }

  .docs-tokens-flow__step:not(:last-child)::after {
    content: none;
  }

  .docs-tokens-live {
    grid-template-columns: 1fr;
  }

  .docs-hero h1 {
    font-size: 1.75rem;
  }

  .docs-hero p {
    font-size: 1rem;
  }

  .docs-section h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }

  .docs-card-grid {
    grid-template-columns: 1fr;
  }

  .docs-preview {
    padding: 1rem;
  }

  .docs-page-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .docs-page-tabs::-webkit-scrollbar {
    display: none;
  }

  .docs-page-tabs__btn {
    flex: 0 0 auto;
  }

  .docs-component-demo__canvas {
    padding: 1.25rem 1rem;
  }

  .docs-component-demo__toolbar {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .docs-component-demo__toolbar-start,
  .docs-component-demo__toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .docs-code {
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
  }

  .docs-section:has(.docs-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .docs-table {
    min-width: 22rem;
  }
}

@media (max-width: 480px) {
  .docs-header {
    padding: 0 0.75rem;
  }

  .docs-header__brand-mark {
    height: 36px;
  }

  .docs-header__search-trigger {
    width: 2.375rem;
    max-width: 2.375rem;
    min-width: 2.375rem;
    justify-content: center;
    padding: 0;
  }

  .docs-header__search-trigger-label {
    display: none;
  }

  .docs-header__search-icon {
    font-size: 1.125rem;
  }

  .docs-header__nav {
    display: none;
  }

  .docs-header__search-trigger-label {
    font-size: 0.8125rem;
  }

  .docs-header__search-kbd {
    display: none;
  }

  .docs-menu-toggle {
    margin-left: 0;
  }

  .docs-home-preview__viewport {
    padding: 0.625rem;
  }

  .docs-home-preview__footer {
    padding: 0.625rem 0.75rem;
  }

  .docs-main {
    padding: 1rem 0.75rem 2rem;
  }

  .docs-main--component,
  .docs-main--styling,
  .docs-main--home {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .docs-table {
    min-width: 18.5rem;
  }

  .docs-table th,
  .docs-table td {
    padding: 0.5rem 0.5rem;
    font-size: 0.8125rem;
  }

  .docs-code {
    font-size: 0.71875rem;
  }
}
