/* Component gallery at /_ui, dev only (owner: WP0). Layout helpers for the sheet itself. */
.ts-gallery-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; padding: 12px 16px; background: var(--ts-surface-muted); border-radius: var(--ts-radius-md); font-size: var(--ts-fs-small); }
.ts-gallery-toc a { color: var(--ts-link-on-muted); font-weight: 600; text-decoration: none; }
.ts-gallery-toc a:hover { text-decoration: underline; }
.ts-gallery-section { padding: 40px 0 8px; border-top: 1px solid var(--ts-border); scroll-margin-top: 80px; }
.ts-gallery-section:first-of-type { border-top: 0; }
.ts-gallery-section > .ts-section-title { margin-bottom: 4px; }
.ts-gallery-lede { margin: 0 0 20px; color: var(--ts-text-secondary); max-width: 80ch; }
.ts-gallery-label { margin: 0 0 10px; font-size: var(--ts-fs-micro); line-height: var(--ts-lh-micro); font-weight: 600; color: var(--ts-text-secondary); }
.ts-gallery-label code { font-size: 11px; }
.ts-gallery-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ts-gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ts-gallery-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.ts-gallery-panel { min-width: 0; padding: 20px 24px; border: 1px solid var(--ts-border-subtle); border-radius: var(--ts-radius-lg); background: #fff; }
.ts-gallery-panel--blue { background: var(--ts-blue-900); border-color: var(--ts-blue-900); color: #fff; }
.ts-gallery-panel--blue .ts-gallery-label { color: var(--ts-text-inverse-3); }
.ts-gallery-panel--muted { background: var(--ts-surface-muted); border-color: var(--ts-surface-muted); }
.ts-gallery-swatches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.ts-gallery-swatch { overflow: hidden; border: 1px solid var(--ts-border-subtle); border-radius: var(--ts-radius-md); background: #fff; font-size: 12px; line-height: 16px; }
.ts-gallery-swatch > span { display: block; height: 56px; }
.ts-gallery-swatch > p { margin: 0; padding: 8px 10px 10px; color: var(--ts-text-secondary); }
.ts-gallery-swatch strong { display: block; color: #123063; font-size: 13px; }
.ts-gallery-sw--blue { background: var(--ts-super-blue); }
.ts-gallery-sw--pink { background: var(--ts-super-pink); }
.ts-gallery-sw--pink-deep { background: var(--ts-super-pink-deep); }
.ts-gallery-sw--pink-light { background: var(--ts-super-pink-light); }
.ts-gallery-sw--creamy { background: var(--ts-creamy); }
.ts-gallery-sw--green { background: var(--ts-success-green); }
.ts-gallery-sw--amber { background: var(--ts-amber-500); }
.ts-gallery-sw--red { background: var(--ts-red-600); }
.ts-gallery-type { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; align-items: baseline; }
.ts-gallery-type > dt { font-size: 12px; line-height: 16px; color: var(--ts-text-muted); font-weight: 500; }
.ts-gallery-type > dd { margin: 0 0 12px; }
.ts-gallery-ref { font-size: var(--ts-fs-small); }
.ts-gallery-ref td:first-child { white-space: nowrap; }
.ts-gallery-ref code { white-space: nowrap; }
.ts-gallery-verdict { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; padding: 16px 24px; border-top: 1px solid var(--ts-border-subtle); }
.ts-gallery-verdict:first-child { border-top: 0; }
.ts-gallery-verdict__words { font-size: var(--ts-fs-small); color: var(--ts-text-secondary); }
.ts-gallery-verdict__words strong { display: block; color: #123063; font-size: var(--ts-fs-body); margin-bottom: 2px; }
@media (max-width: 991.98px) {
  .ts-gallery-verdict { grid-template-columns: minmax(0, 1fr); }
  .ts-gallery-type { grid-template-columns: minmax(0, 1fr); }
}
