/* Brand kit page */
.brand-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.brand-layout > * { min-width: 0; }
.brand-nav { position: sticky; top: 90px; font-size: 0.95rem; max-height: calc(100vh - 110px); overflow: auto; }
.brand-nav h5 { margin: 1.2rem 0 0.3rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); }
.brand-nav h5:first-child { margin-top: 0; }
.brand-nav a { display: block; padding: 0.3rem 0.7rem; border-radius: var(--pill); color: var(--fg); font-weight: 600; }
.brand-nav a:hover, .brand-nav a.active { background: var(--accent-soft); text-decoration: none; }
.bk-section { padding: 2.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.bk-section:first-child { border-top: 0; padding-top: 0; }
.bk-section h2 { margin-bottom: 0.3em; }
.bk-section > p.lead { font-size: 1.1rem; }
.bk-section h4 { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 1.8rem 0 0.6rem; font-family: var(--font-display); }
.rules { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; }
.rules li { padding-left: 1.6rem; position: relative; }
.rules li::before { content: '•'; position: absolute; left: 0.4rem; color: var(--accent); font-weight: 700; }
.rules li b { font-family: var(--font-display); }
@media (max-width: 860px) { .brand-layout { grid-template-columns: 1fr; } .brand-nav { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 0.2rem; } .brand-nav h5 { width: 100%; } }

/* Logo specimens */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-top: 1rem; }
.logo-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.logo-card .spec { display: grid; place-items: center; height: 150px; background: repeating-conic-gradient(var(--bg-2) 0 25%, var(--panel) 0 50%) 0 0 / 20px 20px; }
.logo-card .spec.dark { background: var(--deep); }
.logo-card .spec.light { background: var(--paper); }
.logo-card .spec img, .logo-card .spec svg { width: 96px; height: 96px; }
.logo-card .spec .lockup { width: 200px; height: auto; }
.logo-card .meta { padding: 0.8rem 1rem; font-size: 0.9rem; }
.logo-card .meta b { display: block; font-family: var(--font-display); font-size: 1rem; }
.logo-card .meta .links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; margin-top: 0.4rem; }
.logo-card .meta .links a { font-family: var(--font-mono); font-size: 0.8rem; }
.clearspace { display: grid; place-items: center; padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--bg-2); margin-top: 1rem; }
.clearspace .box { position: relative; padding: 28px; outline: 1px dashed var(--spot); }
.clearspace .box svg { width: 112px; height: 112px; display: block; }
.clearspace .box::after { content: 'clear space = tile radius (¼ of the mark)'; position: absolute; left: 0; right: 0; bottom: -1.8rem; text-align: center; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.toolbar-demo { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }
.toolbar-demo .bar { min-width: 760px; }
.toolbar-demo .bar { display: flex; align-items: center; gap: 0.6rem; padding: 8px 10px; background: var(--paper); color: #1d1d1f; border-bottom: 1px solid #d6d0c4; font: 15px/1.4 var(--font-body); }
.toolbar-demo .bar.dark { background: #242427; color: #f2f2f7; border-color: #3a3a3f; }
.toolbar-demo .bar .brandmark { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; letter-spacing: 0.02em; color: var(--leaf); }
.toolbar-demo .bar.dark .brandmark { color: var(--leaf-2); }
.toolbar-demo .bar .brandmark svg { width: 24px; height: 24px; }
.toolbar-demo .bar button { font: inherit; white-space: nowrap; padding: 4px 10px; border-radius: 6px; border: 1px solid #d6d0c4; background: #fff; color: inherit; }
.toolbar-demo .bar.dark button { background: #2d2d31; border-color: #3a3a3f; }
.toolbar-demo .bar button.run { background: var(--play); color: #fff; border-color: transparent; }
.donts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.donts figure { margin: 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.donts .spec { display: grid; place-items: center; height: 110px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); position: relative; }
.donts .spec::after { content: '✕'; position: absolute; top: 6px; right: 8px; color: var(--danger); font-weight: 700; }
.donts .spec svg { width: 56px; height: 56px; }

/* Mascot */
.mascot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.mascot-grid figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; text-align: center; }
.mascot-grid img { width: 100%; max-width: 220px; margin: 0 auto 0.6rem; }
.mascot-grid b { font-family: var(--font-display); }
.mascot-grid small { display: block; color: var(--muted); }

/* Colour */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.8rem; margin-top: 0.8rem; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; transition: transform 0.15s; }
.swatch:hover { transform: translateY(-2px); }
.swatch .chipc { height: 72px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 6px; font-family: var(--font-mono); font-size: 0.75rem; }
.swatch .info { padding: 0.6rem 0.8rem; font-size: 0.85rem; }
.swatch .info b { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.swatch .info code { font-size: 0.8rem; }
.swatch .info small { display: block; color: var(--muted); margin-top: 0.2rem; line-height: 1.3; }
.swatch .copy-label { display: inline-block; margin-top: 0.3rem; font-size: 0.75rem; color: var(--accent); font-weight: 600; }
.swatch.copied .copy-label { color: var(--play); }
.game-pal { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; margin-top: 0.8rem; }
.game-pal button { aspect-ratio: 1; border: 1px solid rgb(0 0 0 / 0.15); border-radius: 4px; cursor: pointer; padding: 0; position: relative; }
.game-pal button:hover::after { content: attr(data-hex); position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 2px 6px; border-radius: 4px; font: 0.7rem var(--font-mono); white-space: nowrap; z-index: 2; }
@media (max-width: 700px) { .game-pal { grid-template-columns: repeat(8, 1fr); } }
.token-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.8rem; }
@media (max-width: 700px) { .token-table, .glossary { display: block; overflow-x: auto; } }
.token-table th, .token-table td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.token-table .dotc { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgb(0 0 0 / 0.15); vertical-align: -3px; margin-right: 6px; }
.contrast { font-family: var(--font-mono); font-size: 0.8rem; }
.contrast.pass { color: var(--play); }
.contrast.fail { color: var(--danger); }

/* Type */
.type-spec { display: grid; gap: 0.2rem; margin-top: 0.8rem; }
.type-spec .row { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.type-spec .row small { color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; }
.type-spec .d1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.05; letter-spacing: -0.01em; }
.type-spec .d2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.type-spec .d3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.type-spec .lead-s { font-size: 1.3rem; color: var(--muted); }
.type-spec .body-s { font-size: 17px; }
.type-spec .ui-s { font-size: 15px; }
.type-spec .small-s { font-size: 13px; color: var(--muted); }
.type-spec .mono-s { font-family: var(--font-mono); font-size: 15px; }
.type-spec .game-s { font-family: monospace; font-size: 20px; color: #fff; background: #1d2b53; padding: 4px 10px; display: inline-block; }
.type-spec .heading-app { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; }

/* Shape */
.radii { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.8rem; }
.radii div { width: 90px; height: 70px; background: var(--accent-soft); border: 2px solid var(--accent); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; }
.elev { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.2rem; margin-top: 0.8rem; }
.elev div { padding: 1.2rem; border-radius: var(--radius-lg); background: var(--panel); font-size: 0.85rem; }
.elev div b { display: block; font-family: var(--font-display); }
.elev .e1 { border: 1px solid var(--line); }
.elev .e2 { box-shadow: var(--shadow-card); }
.elev .e3 { box-shadow: var(--shadow-pop); }
.elev .e4 { box-shadow: var(--shadow-dialog); }
.checker { display: inline-block; width: 120px; height: 60px; border: 1px solid var(--line); border-radius: var(--radius); background: repeating-conic-gradient(#e6e6e6 0 25%, #fafafa 0 50%) 0 0 / 16px 16px; vertical-align: middle; }

/* Pixel art */
.sprite-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; align-items: flex-end; }
.sprite-row figure { margin: 0; text-align: center; font-size: 0.8rem; color: var(--muted); }
.sprite-row .pic { height: 96px; display: grid; place-items: center; padding: 8px; background: repeating-conic-gradient(var(--bg-2) 0 25%, var(--panel) 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.sprite-row img { height: 72px; width: auto; }
.points { display: inline-flex; gap: 1rem; margin-top: 0.8rem; font-size: 0.85rem; }
.points i { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 4px; }

/* Motion */
.motion-demo { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; }
.spot-demo { position: relative; display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.spot-demo::after { content: ''; position: absolute; inset: -5px; border-radius: 12px; border: 3px solid var(--spot); animation: spot 1.2s ease-out infinite; pointer-events: none; }
@keyframes spot { 0% { box-shadow: 0 0 0 0 rgb(41 173 255 / 0.6); } 100% { box-shadow: 0 0 0 10px rgb(41 173 255 / 0); } }
@media (prefers-reduced-motion: reduce) { .spot-demo::after { animation: none; } }

/* Voice */
.glossary { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 0.8rem; }
.glossary th, .glossary td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.glossary td:first-child { font-weight: 700; color: var(--leaf); }
.glossary td:nth-child(2) { color: var(--danger); text-decoration: line-through; }
.voice-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.voice-pairs > div { padding: 1rem 1.2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); }
.voice-pairs b { font-family: var(--font-display); display: block; margin-bottom: 0.3rem; }
.voice-pairs .yes b { color: var(--leaf); }
.voice-pairs .no b { color: var(--danger); }
.voice-pairs p { margin: 0.2rem 0; font-size: 0.95rem; }
@media (max-width: 600px) { .voice-pairs { grid-template-columns: 1fr; } }

/* Sounds */
.sounds { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.sounds button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem 0.5rem 0.6rem; border-radius: var(--pill); border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.sounds button span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.7rem; }

/* Downloads */
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.dl a { display: block; padding: 1rem 1.2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); color: var(--fg); }
.dl a:hover { border-color: var(--accent); text-decoration: none; }
.dl a b { display: block; font-family: var(--font-display); }
.dl a small { color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; }

/* ---------- NutHouse kit ---------- */
.contrast.pass { color: var(--leaf); } .contrast.fail { color: var(--danger); }
.word { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.word i { font-style: normal; color: var(--accent); } .word i:first-child { color: var(--acorn-text); }
.word.inv i { color: var(--dew); } .word.inv i:first-child { color: var(--acorn-dark); }
.word.big { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; }
.logo-card .spec img.mark { width: 96px; height: 96px; border-radius: 22px; }
.logo-card .spec img.mark.sm { width: 32px; height: 32px; border-radius: 7px; image-rendering: auto; }
.logo-card .spec .lockup { width: 220px; height: auto; }
.logo-card .spec.forest { background: var(--forest); }
.logo-card .spec.night { background: #1b1b1d; }
.size-ladder { display: flex; align-items: flex-end; gap: 18px; padding: 16px 14px 12px; margin-top: 1rem; border-radius: var(--radius-lg); background: repeating-conic-gradient(var(--bg-2) 0 25%, var(--panel) 0 50%) 0 0 / 20px 20px; border: 1px solid var(--line); overflow-x: auto; }
.size-ladder figure { margin: 0; text-align: center; font: 0.75rem var(--font-mono); color: var(--muted); display: grid; gap: 6px; justify-items: center; }
.size-ladder img { display: block; }
.toolbar-demo .bar .brandmark img { width: 24px; height: 24px; border-radius: 6px; }
.toolbar-demo .bar .brandmark .word { font: 800 17px/1 var(--font-body); letter-spacing: 0.02em; }
.toolbar-demo .bar .brandmark .word i { color: var(--leaf); } .toolbar-demo .bar.dark .brandmark .word i { color: var(--leaf-2); }
.toolbar-demo .bar .brandmark .word i:first-child { color: var(--acorn-text); } .toolbar-demo .bar.dark .brandmark .word i:first-child { color: var(--acorn-dark); }
.toolbar-demo .bar button.acc2 { background: var(--acorn); color: var(--ink); border-color: transparent; }
.toolbar-demo .bar.dark button.acc2 { background: var(--acorn-dark); color: #1d1d1f; }
.toolbar-demo .bar button.acc { background: var(--leaf); color: #fff; border-color: transparent; }
.toolbar-demo .bar.dark button.acc { background: var(--leaf-2); color: #1d1d1f; }
.donts .spec img { width: 56px; height: 56px; border-radius: 12px; }
.play-vs { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; padding: 1rem; margin-top: 0.8rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); font: 15px/1.4 var(--font-body); }
.play-vs .chip { padding: 4px 12px; border-radius: 999px; color: #fff; font-weight: 600; }
.play-vs .chip.leaf { background: var(--leaf); } .play-vs .chip.leaf-2 { background: var(--grass); color: var(--ink); }
.play-vs button { font: inherit; padding: 6px 14px; border-radius: 8px; border: 0; color: #fff; font-weight: 600; }
.play-vs .b-play { background: var(--play); } .play-vs .b-acorn { background: var(--acorn); color: var(--ink); } .play-vs .b-acorn-dark { background: var(--acorn-dark); color: #1d1d1f; }
.token-table tr.new-row td { background: var(--accent-2-soft); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.duo-card { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; padding: 1.2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); font: 15px/1.4 var(--font-body); }
.duo-card.light { background: #f8f6f1; color: #1d1d1f; --a: var(--leaf); --a2: var(--acorn); --a2s: var(--husk); --ln: #d6d0c4; --a2t: var(--acorn-deep); }
.duo-card.dark { background: #242427; color: #f2f2f7; --a: var(--leaf-2); --a2: var(--acorn-dark); --a2s: #4a2e14; --ln: #3a3a3f; --a2t: var(--acorn-dark); }
.duo-card .t { width: 100%; font: 700 0.75rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.duo-card .lk { color: var(--a); text-decoration: underline; }
.duo-card button { font: inherit; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--ln); background: transparent; color: inherit; }
.duo-card .b1 { background: var(--a2); color: #241a0e; border-color: transparent; font-weight: 600; }
.duo-card .b2 { border-color: var(--a); color: var(--a); } .duo-card .b3 { background: var(--play); color: #fff; border-color: transparent; }
.duo-card .chip { padding: 3px 10px; border-radius: 999px; background: var(--a); color: #fff; font-size: 0.85rem; } .duo-card.dark .chip { color: #1d1d1f; }
.duo-card .chip.m { background: var(--a2s); color: var(--a2t); border: 1px solid var(--a2); }
.hero-art { margin-top: 1rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); } .hero-art img { display: block; width: 100%; height: auto; }
.og-preview { margin-top: 1rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); } .og-preview img { display: block; width: 100%; height: auto; }
