/* The brand guide (brand.razor) only. */
/* --- Brand guide --- */
.brand-hero { padding-block: 64px 40px; }
.brand-hero h1 { font-size: clamp(36px, 6vw, 56px); }
.brand-hero p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 40em; }
.brand-section { padding: 48px 0; border-top: 1px solid var(--line); }
.brand-section > .wrap > h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 8px; }
.brand-section .intro { color: var(--muted); max-width: 44em; margin-bottom: 28px; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tile { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.tile .art { display: grid; place-items: center; min-height: 180px; padding: 28px; }
.tile .art img { max-height: 120px; width: auto; }
.tile .art.on-light { background: #fff; }
.tile .art.on-foam { background: var(--foam); }
.tile .art.on-dark { background: var(--night); }
.tile .art.on-sea { background: linear-gradient(160deg, var(--sea), var(--deep-sea)); }
.tile .meta { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.tile .meta strong { display: block; font-size: 15px; }
.tile .meta a { font-weight: 700; }
.swatches { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.swatch .chip { height: 96px; }
.swatch .meta { padding: 12px 14px; font-size: 14px; }
.swatch .meta strong { display: block; font-size: 16px; }
.swatch code { font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.rules { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rule { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rule h3 { font-size: 18px; margin-bottom: 8px; }
.rule p, .rule li { color: var(--muted); }
.rule ul { margin: 0; padding-left: 18px; }
.rule.do { border-top: 5px solid #2E8B57; }
.rule.dont { border-top: 5px solid var(--signal); }
.type-sample { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.type-sample + .type-sample { margin-top: 16px; }
.type-sample .label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.clearspace { display: grid; place-items: center; background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); }
.clearspace div { outline: 2px dashed var(--sand); outline-offset: 0; padding: 24px; background: repeating-linear-gradient(45deg, rgb(224 151 60 / 10%) 0 8px, transparent 8px 16px); }
.clearspace img { height: 72px; width: auto; background: #fff; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
