/* Brand guidelines page. Colours come from the theme tokens; the swatches get their colour from data-hex in src/client/brandpage.ts. */
.bd { max-width: 1100px; margin-top: 32px; padding-bottom: 48px; }
.bd-hero h1 { margin-bottom: 12px; }
.bd-sec { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.bd-sec h2 { font-size: 1.4rem; margin-bottom: 10px; }
.bd-sec h3 { font-size: 1.05rem; margin: 28px 0 4px; }
.bd-sec p { line-height: 1.6; max-width: 72ch; }
.bd-note { color: var(--muted); margin-bottom: 14px; }
.bd-values { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.bd-values li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; line-height: 1.5; }
.bd-values strong { display: block; margin-bottom: 4px; }
.bd-anatomy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.bd-anatomy img { width: min(320px, 100%); justify-self: center; }
.bd-anatomy ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
@media (min-width: 760px) { .bd-anatomy { grid-template-columns: 340px minmax(0, 1fr); } }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: 12px; }
.bd-two { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.bd-three { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.bd-card, .bd-rule { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.bd-stage { display: grid; place-items: center; padding: 28px; min-height: 170px; }
.bd-stage img { max-width: 100%; max-height: 130px; width: auto; height: auto; }
.bd-light { background: var(--bg); }
.bd-dark { background: var(--grad-hero); }
.bd-cobalt { background: var(--accent); }
.bd-plain { background: var(--surface-2); }
.bd-card figcaption, .bd-rule figcaption { display: grid; gap: 4px; padding: 14px 16px 16px; font-size: .92rem; color: var(--muted); }
.bd-card figcaption strong { color: var(--ink); }
.bd-get { display: flex; gap: 8px; margin-top: 6px; }
.bd-dl { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: .85rem; text-decoration: none; }
.bd-dl:hover { border-color: var(--accent); color: var(--accent); }
.bd-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.bd-pair .bd-stage { border-radius: var(--radius); border: 1px solid var(--line); }
.bd-flag { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.bd-ok .bd-flag { color: var(--cov-fg); }
.bd-no .bd-flag { color: var(--can-fg); }
.bd-ok { border-color: var(--cov-bd); }
.bd-no { border-color: var(--can-bd); }
.bd-rule img { width: 200px; max-height: none; }
.bd-rule img.bd-small { width: 140px; margin: 12px; }
.bd-stretch { transform: scale(1.35, .7); }
.bd-tilt { transform: rotate(-14deg); }
.bd-hue { filter: hue-rotate(140deg) saturate(1.6); }
.bd-shadow { filter: drop-shadow(5px 6px 3px var(--ink)); }
.bd-faint { opacity: .25; }
.bd-wide { transform: scale(1.4, 1); }
.bd-swatches { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 14px; }
.bd-sw { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; gap: 4px; padding-bottom: 14px; }
.bd-sw > :not(.bd-chip) { padding: 0 14px; }
.bd-sw span:last-child { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.bd-chip { display: block; height: 84px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.bd-sw code { justify-self: start; margin-left: 14px; padding: 2px 8px; border: 0; cursor: pointer; min-height: 28px; display: inline-flex; align-items: center; }
.bd-type { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 16px; }
.bd-type p { margin: 0 0 10px; max-width: none; }
.bd-t1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.bd-t2 { font-size: 1.3rem; font-weight: 600; color: var(--accent); }
.bd-t3 { font-size: 1.15rem; word-break: break-word; }
.bd-t4 { color: var(--muted); font-size: .92rem; }
.bd-t1, .bd-t2 { font-family: "Google Sans Flex", "Inter", system-ui, sans-serif; }
