/* Brand & style guide page (/brand). Depends on site.css tokens. */
.toc { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: 76px; z-index: 5; padding: 10px 0; background: var(--bg); }
.toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); text-decoration: none; font-size: 13px; }
.toc a:hover { color: var(--ink); border-color: var(--accent); }
.brand-contents { padding-block: 0; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lockup { margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.lockup img { display: block; width: 100%; height: auto; }
.lockup--light { background: #FFFFFF; }
.lockup--light figcaption { background: #f4faff; color: #60646c; border-color: #acd8fc; }
.lockup figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }
.icon-row { display: flex; align-items: flex-end; gap: 24px; padding: 28px; }
.icon-row img { border-radius: 18%; }
.gradient-bar { height: 56px; border-radius: 12px; background: var(--gradient); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font: 600 13px/1 var(--font-mono); color: #111113; margin-bottom: 28px; }
.color-group__title { font-size: 15px; color: var(--muted); font-weight: 600; margin: 24px 0 12px; letter-spacing: .04em; text-transform: uppercase; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.swatch { display: block; padding: 0; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: var(--surface); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.swatch__preview { display: block; height: 84px; background: var(--sw); }
.swatch__info { display: grid; gap: 2px; padding: 10px 12px; }
.swatch__name { font-weight: 600; font-size: 14px; }
.swatch__hex { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.swatch__var { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.swatch__note { font-size: 12px; color: var(--muted); }
.swatch:hover { border-color: var(--accent); }
.swatch.is-copied .swatch__hex::after { content: "  copied"; color: var(--ink); }
.mode-panel { border-radius: 14px; padding: 24px; border: 1px solid var(--border); }
.mode-panel h3 { margin: 0 0 8px; }
.mode-panel p { margin: 0 0 16px; }
.mode-panel--dark { background: var(--surface); }
.mode-panel--light { background: #FFFFFF; color: #1c2024; border-color: #acd8fc; background-image: linear-gradient(180deg, #e6f4fe, #FFFFFF); }
.mode-panel--light h3 { color: #1c2024; }
.mode-panel--light p { color: #60646c; }
.mode-panel--light a { color: #00749e; }
.mode-panel__swatches { display: flex; gap: 8px; }
.mode-panel__swatches span { width: 40px; height: 40px; border-radius: 10px; display: block; }
.type-specimen { display: grid; gap: 18px; }
.type-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); }
.type-meta { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.spec-h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 800; line-height: 1.05; margin: 0; }
.spec-h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 700; margin: 0; }
.spec-h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; margin: 0; }
.spec-body { margin: 0; max-width: 560px; }
.spec-num { font-family: var(--font-display); font-size: var(--fs-stat); font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 720px) { .type-row { grid-template-columns: 1fr; gap: 6px; } }
.spacing-scale { display: grid; gap: 10px; }
.space { display: flex; align-items: center; gap: 14px; }
.space span { display: block; height: 14px; background: var(--gradient); border-radius: 4px; }
.space code { font-size: 13px; color: var(--muted); }
.comp { padding: 22px 0; border-bottom: 1px solid var(--border); }
.comp h3 { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.comp-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.comp .stats-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dodont { list-style: none; margin: 0; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.dodont li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--border); }
.dodont li:last-child { border-bottom: 0; }
.dodont li::before { position: absolute; left: 0; top: 8px; font-weight: 700; }
.dodont--do li::before { content: "\2713"; color: var(--accent); }
.dodont--dont li::before { content: "\2715"; color: var(--danger); }
.tokens { position: relative; }
.tokens pre { margin: 0; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); overflow: auto; font-size: 13px; line-height: 1.5; }
.tokens__copy { position: absolute; top: 12px; right: 12px; }

.gradient-bar--cta { background: var(--btn-gradient); margin-top: -18px; }
.rationale { margin-bottom: 26px; }

/* v4 additions */
.lockup img { max-height: 260px; object-fit: contain; }
.lockup .icon-row img { max-height: none; }
.icon-row--split { padding: 0; align-items: stretch; gap: 0; }
.icon-row--split span { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px; }
.icon-row--split img { width: 100%; max-width: 260px; height: auto; }
.mono-dark { background: #0d1520; }
.mono-light { background: #ffffff; }
.downloads { margin-top: 24px; border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px; background: var(--surface); }
.downloads summary { cursor: pointer; font-weight: 600; }
.downloads ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 14px; }
.downloads a { color: var(--accent); }
.hl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); margin-right: 8px; vertical-align: 1px; }
.nav-demo { color: var(--ink); text-decoration: none; padding: 8px 12px; box-shadow: inset 0 -2px 0 var(--highlight); font-size: 14px; }
