@font-face { font-family: 'DM Sans'; src: url('./docs/assets/fonts/dm-sans.woff2') format('woff2'); font-display: swap; font-weight: 100 900; }
@font-face { font-family: 'Noto Sans KR'; src: url('./docs/assets/fonts/noto-kr-subset.woff2') format('woff2'); font-display: swap; font-weight: 100 900; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button, summary, select { -webkit-tap-highlight-color: transparent; }
code, pre { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; }
code { overflow-wrap: anywhere; }
::selection { color: var(--on-accent); background: var(--accent-solid); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 30; background: var(--accent-solid); color: var(--on-accent); padding: 14px 20px; }
.skip-link:focus { top: 16px; }
.no-script { margin: 0; padding: 16px 24px; border-bottom: 1px solid var(--warning-line); color: var(--warning-text); background: var(--warning-surface); font-size: 14px; }
.masthead { max-width: 1600px; margin: auto; min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px clamp(24px, 4vw, 64px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; font-size: 10px; font-weight: 800; letter-spacing: .09em; line-height: 1.3; }
.brand-mark { width: 36px; height: 38px; display: flex; align-items: center; justify-content: center; border: 2px solid currentColor; font-size: 23px; letter-spacing: -.12em; }
.brand-mark span { color: var(--accent-text); }
.masthead-actions { display: flex; align-items: center; gap: 22px; }
.build-version { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.source-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 12px; font-weight: 700; text-decoration: none; }
.source-link:hover, .text-link:hover, .document-links a:hover, .footer a:hover { color: var(--accent-text); }
.catalog-shell { max-width: 1600px; padding: 0 clamp(24px, 4vw, 64px); margin: auto; display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: clamp(40px, 5vw, 84px); }
.catalog-sidebar { align-self: start; position: sticky; top: 32px; padding: 46px 0 28px; }
.eyebrow { color: var(--accent-text); font-size: 10px; line-height: 1.5; font-weight: 800; letter-spacing: .1em; margin: 0; }
.sidebar-intro p { font-size: 14px; font-weight: 650; line-height: 1.7; margin: 14px 0 34px; }
.catalog-sidebar nav { display: grid; gap: 3px; }
.catalog-sidebar nav a { display: flex; align-items: center; gap: 16px; min-height: 47px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 650; padding: 0 5px 0 0; }
.catalog-sidebar nav a > span:first-child { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.nav-arrow { margin-left: auto; color: var(--muted); }
.catalog-sidebar nav a:hover, .catalog-sidebar nav a:hover span { color: var(--accent-text); }
.catalog-sidebar nav a[aria-current='location'] { color: var(--accent-text); border-bottom: 2px solid var(--accent-text); }
.catalog-sidebar nav a[aria-current='location'] > span { color: var(--accent-text); }
.sidebar-bottom { margin-top: 54px; padding-top: 24px; }
.system-status { color: var(--muted); font-size: 9px; letter-spacing: .12em; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.system-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-solid); }
.sidebar-bottom p { font-size: 24px; font-weight: 650; letter-spacing: -.05em; line-height: 1.4; }
.sidebar-bottom a { color: var(--muted); font-size: 11px; line-height: 1.7; }
main { min-width: 0; }
.hero { padding: 48px 0 0; border-bottom: 1px solid var(--line); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-edition { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.hero h1 { margin: 36px 0 22px; font-size: clamp(48px, 5.1vw, 80px); line-height: 1.13; font-weight: 750; letter-spacing: -.045em; }
.hero h1 em { color: var(--accent-text); font-style: normal; }
.hero-description { margin: 0; font-size: 16px; line-height: 1.85; color: var(--muted); word-break: keep-all; }
.hero-actions { margin: 30px 0 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; }
.primary-link { display: inline-flex; align-items: center; gap: 32px; min-height: 48px; padding: 12px 18px; color: var(--on-accent); background: var(--accent-solid); text-decoration: none; font-size: 12px; font-weight: 700; border-radius: var(--radius-control); }
.primary-link:hover { filter: brightness(.91); }
.text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 12px; font-weight: 700; text-decoration: none; }
.hero-specimen { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; }
.specimen-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: calc(23px * var(--space-factor)) calc(28px * var(--space-factor)); border-bottom: 1px solid var(--line); }
.specimen-label { display: block; color: var(--accent-text); font-size: 11px; font-weight: 700; }
.specimen-heading strong { display: block; margin-top: 6px; font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1.3; }
.specimen-version { color: var(--muted); font-size: 11px; font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; overflow-wrap: anywhere; text-align: right; }
.specimen-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); min-width: 0; }
.specimen-stage { display: grid; gap: 18px; padding: calc(28px * var(--space-factor)); background: var(--surface-raised); min-width: 0; }
.specimen-stage-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.specimen-stage .hds-textField { max-width: 440px; }
.specimen-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.specimen-action p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.specimen-anatomy { display: flex; flex-direction: column; padding: calc(28px * var(--space-factor)); border-left: 1px solid var(--line); min-width: 0; }
.specimen-anatomy > p { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.specimen-anatomy dl { margin: 0; }
.specimen-anatomy dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specimen-anatomy dt { color: var(--muted); font-size: 11px; }
.specimen-anatomy dd { margin: 0; font-size: 11px; }
.specimen-anatomy a { margin-top: auto; padding-top: 20px; color: var(--accent-text); font-size: 11px; font-weight: 700; text-decoration: none; }
.specimen-anatomy a span { margin-left: 7px; }
.hero-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.hero-index a { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 22px 12px 24px 0; text-decoration: none; border-right: 1px solid var(--line); font-size: 12px; }
.hero-index a + a { padding-left: 20px; }
.hero-index a:last-child { border-right: 0; }
.hero-index a > span:first-child { color: var(--muted); }
.hero-index strong { font-variant-numeric: tabular-nums; font-weight: 700; }
.hero-index a > span:last-child { margin-left: auto; color: var(--accent-text); }
.hero-index a:hover { color: var(--accent-text); }
.catalog-section { padding: calc(78px * var(--space-factor)) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.section-heading { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 28px; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.2; letter-spacing: -.065em; margin: 13px 0 0; font-weight: 700; word-break: keep-all; }
.section-description { margin: 0 0 2px; color: var(--muted); font-size: 13px; line-height: 1.85; word-break: keep-all; }
.foundation-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 26px 0 34px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.foundation-notes h3 { font-size: 13px; margin: 20px 0 9px; }.foundation-notes p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; word-break: keep-all; }
.foundation-number { display: block; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.08em; }
.foundation-space, .foundation-colors { display: flex; align-items: end; gap: 5px; height: 44px; }
.foundation-space i { width: 12px; height: 12px; background: var(--accent-solid); }.foundation-space i:nth-child(2) { height: 20px; }.foundation-space i:nth-child(3) { height: 30px; }.foundation-space i:nth-child(4) { height: 40px; }
.foundation-colors i { width: 25px; height: 25px; border-radius: 50%; margin-bottom: 7px; background: var(--palette-cobalt); }.foundation-colors i:nth-child(2) { background: var(--palette-forest); }.foundation-colors i:nth-child(3) { background: var(--palette-coral); }
.token-toolbar { display: grid; grid-template-columns: 1fr 180px; align-items: start; gap: 20px; }
.token-toolbar .hds-field, .playground-options .hds-field { --hds-layout-gap: var(--space-1); }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 12px; color: var(--muted); font-size: 11px; }.results-heading p { margin: 0; }
.token-list { border-top: 1px solid var(--control-border); }.token-row { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; } summary::-webkit-details-marker { display: none; }
.token-row > summary { min-height: 76px; padding: 14px 4px; display: grid; align-items: center; grid-template-columns: 30px minmax(0, 1fr) minmax(75px, auto) 22px; gap: 16px; }
.token-row > summary:hover, .api-entry > summary:hover { background: var(--surface); }
.token-symbol { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--control-border); border-radius: 5px; font-size: 10px; font-weight: 700; }
.token-identity { min-width: 0; }.token-identity > code { display: block; font-size: 12px; font-weight: 700; }.token-identity > span { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.token-value { color: var(--muted); font-size: 11px; max-width: 205px; text-align: right; }.expand-icon { font-size: 22px; line-height: 1; color: var(--muted); font-weight: 400; text-align: center; }
details[open] > summary .expand-icon { transform: rotate(45deg); }
.token-detail { padding: 0 4px 24px 50px; font-size: 12px; line-height: 1.8; }.token-detail > p { color: var(--muted); margin: 18px 0 10px; }.token-detail strong { color: var(--ink); margin-right: 10px; }
.condition-list { padding-left: 18px; color: var(--muted); }.condition-list li { margin: 10px 0; }.condition-list li > span { display: block; color: var(--ink); }
.empty-state { padding: 40px 24px; border: 1px dashed var(--control-border); border-radius: var(--radius-card); text-align: center; }.empty-state h3 { font-size: 17px; }.empty-state p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.section-footnote { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 22px 0 0; }.section-footnote code { color: var(--ink); font-size: 11px; }
.code-block { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); min-width: 0; }
.code-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }.code-heading > span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.copy-control { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 8px; min-width: 0; }.copy-status:empty { display: none; }.copy-status { color: var(--muted); font-size: 10px; line-height: 1.5; max-width: 180px; }
.code-block pre { margin: 0; padding: 18px; overflow: auto; max-width: 100%; color: var(--ink); font-size: 11px; line-height: 1.8; tab-size: 2; }.code-block pre:focus-visible { outline-offset: -3px; }.code-block code { overflow-wrap: normal; }
.import-note { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); margin-bottom: 20px; }.import-note code { font-size: 11px; }.import-note > span { font-size: 11px; color: var(--muted); }
.components-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }.component-card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: calc(24px * var(--space-factor)); min-width: 0; background: var(--surface-raised); }
.component-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }.component-title h3 { font-size: 22px; letter-spacing: -.04em; margin: 0; font-weight: 650; }.component-index { font-size: 10px; color: var(--accent-text); font-weight: 700; }.component-title .hds-badge { margin-left: auto; }
.component-card > p, .badge-example > p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 18px 0 22px; word-break: keep-all; }.component-card p code { color: var(--ink); font-size: 11px; }
.playground { margin-bottom: 20px; }.playground-stage { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 12px; background: var(--surface); border-radius: var(--radius-control); }.demo-status { font-size: 12px; line-height: 1.8; color: var(--muted); min-height: 22px; margin: 16px 0 0; }
.playground-options { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; padding-top: 18px; }.playground-options .hds-field { grid-column: 1 / -1; }
.demo-form { display: grid; gap: 22px; margin-top: 28px; }.demo-fields { display: grid; gap: 22px; min-width: 0; padding: 0; margin: 0; border: 0; }.demo-form .demo-status { margin: 0; }.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }.local-tag { font-size: 10px; color: var(--muted); }
.usage-code { margin-top: 24px; border-top: 1px solid var(--line); }.usage-code > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; font-size: 12px; font-weight: 650; }.usage-code > summary > span { font-size: 20px; color: var(--muted); font-weight: 400; }.usage-code[open] > summary > span { transform: rotate(45deg); }.usage-code[open] > .code-block { margin-top: 8px; }
.badge-example { margin-top: 16px; padding: calc(24px * var(--space-factor)); border: 1px solid var(--line); border-radius: var(--radius-card); }.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }.badge-example .code-block { max-width: 520px; }
.state-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }.state-notes p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 0; }.state-notes strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 6px; }
.settings-code-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.release-notice { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); }.release-notice p { margin: 14px 0 0; font-size: 12px; line-height: 1.9; }
.setup-steps { list-style: none; padding: 0; margin: 30px 0; }.setup-steps > li { display: grid; grid-template-columns: .7fr 1.3fr; align-items: start; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }.step-number { color: var(--accent-text); font-size: 11px; font-weight: 700; }.setup-steps h3 { font-size: 18px; letter-spacing: -.04em; margin: 10px 0; }.setup-steps p { color: var(--muted); font-size: 12px; line-height: 1.85; margin: 0; }
.document-links { display: flex; gap: 12px 24px; flex-wrap: wrap; }.document-links a { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 18px; font-size: 12px; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line); }
.result-count { font-size: 11px; color: var(--muted); margin: 20px 0 12px; }.api-list { border-top: 1px solid var(--control-border); }.api-entry { border-bottom: 1px solid var(--line); }.api-entry > summary { display: grid; grid-template-columns: minmax(0, 1fr) 75px 22px; align-items: center; gap: 18px; padding: 19px 4px; min-height: 64px; }.api-entry > summary strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }.api-entry > summary > span:not(.expand-icon) { font-size: 11px; color: var(--muted); }
.api-detail { padding: 0 4px 28px; }.api-detail > p { font-size: 13px; color: var(--muted); line-height: 1.85; }.props-scroll { overflow-x: auto; margin: 24px 0; }.props-scroll table { width: 100%; font-size: 12px; line-height: 1.7; border-collapse: collapse; text-align: left; }.props-scroll caption { text-align: left; margin-bottom: 14px; font-weight: 700; }.props-scroll td, .props-scroll th { vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }.props-scroll thead th { color: var(--muted); font-size: 10px; }.props-scroll tbody th { font-weight: 500; }.props-scroll td code { font-size: 11px; }.api-guidance { padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.85; }.api-guidance li { margin: 8px 0; }.api-detail .api-limits { color: var(--muted); font-size: 11px; border-left: 2px solid var(--line); padding-left: 16px; margin: 22px 0; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0 48px; }.footer > div > span { font-size: 10px; font-weight: 800; letter-spacing: .1em; }.footer p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }.footer a { font-size: 11px; text-decoration: none; }.muted { color: var(--muted); }
@media (max-width: 1150px) { .catalog-shell { grid-template-columns: 170px minmax(0, 1fr); gap: 38px; }.hero-edition { display: none; }.components-grid { grid-template-columns: 1fr; }.component-card { padding: 28px; }.playground { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }.playground-options { padding-top: 0; }.playground-stage { min-height: 190px; }.settings-code-grid { grid-template-columns: 1fr; }.specimen-body { grid-template-columns: 1fr; }.specimen-anatomy { border-left: 0; border-top: 1px solid var(--line); }.specimen-anatomy dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }.specimen-anatomy a { margin-top: 0; } }
@media (max-width: 800px) { html { scroll-padding-top: 80px; }.catalog-section { scroll-margin-top: 0; }.catalog-shell { display: block; padding: 0 24px; }.catalog-sidebar { position: sticky; top: 0; z-index: 10; padding: 0; background: var(--paper); }.sidebar-intro, .sidebar-bottom { display: none; }.catalog-sidebar nav { display: flex; gap: 24px; overflow-x: auto; margin: 0 -24px; padding: 4px 24px; border-bottom: 1px solid var(--line); }.catalog-sidebar nav a { min-height: 56px; border: 0; flex: none; font-size: 12px; gap: 8px; }.nav-arrow { display: none; }.masthead { padding: 16px 24px; min-height: 82px; }.masthead-actions { gap: 15px; }.build-version { font-size: 10px; }.hero { padding-top: 36px; }.hero h1 { margin-top: 30px; font-size: clamp(44px, 8.3vw, 68px); }.section-heading { grid-template-columns: 1fr 1fr; }.hero-specimen { padding: 24px; } }
@media (max-width: 540px) { .catalog-shell { padding: 0 20px; }.masthead { padding: 16px 20px; gap: 12px; }.masthead-actions { gap: 10px; }.build-version, .source-link { display: none; }.brand { font-size: 9px; }.brand-mark { width: 32px; height: 34px; }.catalog-sidebar nav { margin: 0 -20px; padding: 0 20px; gap: 22px; }.hero h1 { font-size: clamp(37px, 9vw, 49px); line-height: 1.18; letter-spacing: -.045em; margin-bottom: 20px; }.hero-description { font-size: 14px; }.hero-actions { gap: 12px 24px; margin: 26px 0 30px; }.primary-link { font-size: 11px; min-height: 46px; gap: 22px; }.text-link { font-size: 11px; }.specimen-heading { display: block; padding: 19px; }.specimen-heading strong { font-size: 18px; }.specimen-version { display: block; margin-top: 8px; text-align: left; font-size: 9px; }.specimen-stage, .specimen-anatomy { padding: 20px; }.specimen-anatomy dl { grid-template-columns: 1fr; }.specimen-anatomy dl > div { padding: 6px 0; }.hero-index a { display: grid; gap: 3px; padding: 16px 7px 18px 0; font-size: 10px; }.hero-index a + a { padding-left: 10px; }.hero-index a > span:last-child { display: none; }.catalog-section { padding: calc(58px * var(--space-factor)) 0; }.section-heading { display: block; margin-bottom: 26px; }.section-heading h2 { font-size: 30px; }.section-description { margin-top: 18px; font-size: 12px; }.foundation-notes { gap: 18px; }.foundation-notes h3 { font-size: 12px; }.foundation-notes p { font-size: 11px; }.foundation-number { font-size: 36px; }.foundation-colors { gap: 3px; }.foundation-colors i { width: 20px; height: 20px; }.token-toolbar { grid-template-columns: minmax(0, 1fr); gap: 14px; }.results-heading { font-size: 10px; }.token-row > summary { grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 12px; padding: 14px 0; }.token-symbol { width: 24px; height: 24px; }.token-identity > code { font-size: 11px; }.token-identity > span { font-size: 10px; }.token-value { grid-column: 2; grid-row: 2; text-align: left; max-width: none; font-size: 10px; margin-top: -8px; }.token-row > summary .expand-icon { grid-column: 3; grid-row: 1 / 3; }.token-detail { padding-left: 0; }.component-card { padding: calc(20px * var(--space-factor)); }.component-title h3 { font-size: 20px; }.playground { display: block; }.playground-stage { min-height: 155px; }.playground-options { padding-top: 18px; }.state-notes { grid-template-columns: 1fr; gap: 16px; }.state-notes strong { display: inline; margin-right: 9px; }.badge-example { padding: 20px; }.setup-steps > li { grid-template-columns: 1fr; gap: 20px; }.release-notice { padding: 18px; }.api-entry > summary { gap: 12px; grid-template-columns: minmax(0, 1fr) 65px 18px; }.api-entry > summary strong { font-size: 13px; }.api-entry > summary > span:not(.expand-icon) { font-size: 10px; }.code-block pre { padding: 14px; font-size: 10px; }.code-heading { padding-left: 14px; }.copy-status { max-width: 115px; }.props-scroll td, .props-scroll th { padding: 10px 6px; }.footer { align-items: start; }.footer p { max-width: 210px; line-height: 1.7; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:root[data-motion='reduced'] { scroll-behavior: auto; }
@media (forced-colors: active) { .token-symbol, .foundation-colors i { forced-color-adjust: none; }.primary-link { border: 1px solid ButtonText; }.brand-mark { border-color: ButtonText; } }

/* The expanded component library keeps demos separate from the documentation chrome. */
.component-library { margin: 28px 0 56px; min-width: 0; }
.library-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); align-items: end; gap: 24px; margin-bottom: 24px; }
.library-heading h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.35; margin: 10px 0 0; letter-spacing: -.045em; }
.library-heading p, .library-description { color: var(--muted); font-size: 13px; line-height: 1.8; }
.library-categories { display: flex; flex-wrap: wrap; gap: 8px; }
.library-index { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.library-index code { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.library-stage { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-card); padding: clamp(16px, 3vw, 28px); min-width: 0; }
.library-stage [data-suite] { display: grid; gap: 24px; min-width: 0; }
.library-stage [data-suite] > * { min-width: 0; }
.library-stage h3 { font-size: 18px; margin: 8px 0 16px; }
.library-stage h4 { font-size: 15px; margin: 12px 0; }
.library-stage p { line-height: 1.7; }
.library-stage .demo-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.library-stage .demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.core-components-heading { font-size: 20px; margin: 40px 0 24px; }
@media (max-width: 640px) { .library-heading { display: block; }.library-heading p { margin-top: 18px; }.library-stage .demo-grid { grid-template-columns: minmax(0, 1fr); }.library-categories .hds-button { flex: 1 1 auto; } }

.library-stage .hds-demoOverlays__controls { display: flex; flex-wrap: wrap; gap: 12px; }
.hds-demoOverlays__form { display: grid; gap: 16px; }
.library-stage .demo-group { display: grid; align-content: start; gap: 18px; min-width: 0; }
.library-stage .demo-group > h3 { margin: 8px 0 0; }
.library-stage .demo-group > p { margin: 0; }
.library-stage .demo-group + .demo-group { padding-top: 20px; border-top: 1px solid var(--line); }
.library-stage .demo-grid > .demo-group + .demo-group { padding-top: 0; border-top: 0; }
.library-stage .demo-ratio { display: grid; place-items: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--control-border); border-radius: var(--radius-control); }
.library-stage .demo-scroll-list { margin: 0; padding: 16px 32px; line-height: 1.9; }

.sizing-demo { margin-block: 24px; }
.sizing-picker { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 16px 0; }
.sizing-picker legend { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.sizing-picker label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--control-border); cursor: pointer; }
.sizing-picker label:has(:checked) { color: var(--accent-text); border-color: var(--accent-text); }
.sizing-picker input { accent-color: var(--accent-solid); }
.sizing-button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.sizing-surface { padding-block: calc(var(--hds-layout-padding) * var(--space-factor)); border: 1px solid var(--line); background: var(--surface); }
.sizing-demo pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; padding: 16px; font-size: 12px; line-height: 1.6; border: 1px solid var(--line); }
.sizing-note { font-size: 13px; color: var(--muted); }
@media (any-pointer: coarse) { .sizing-picker label { min-height: 44px; } }
