/* The guide consumes the same tokens as the blocks it documents. */
.guide { max-width: 1370px; }
.guide-theme { font-size: 12px; color: var(--brand5); padding: 4px 9px; background: var(--surface-muted); border-radius: 4px; }
.guide .intro { max-width: 65ch; }
.guide-brand-stage { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 44px 32px; background: var(--brand3); border-radius: 10px; margin-top: 32px; }
.guide-brand-stage .brand-logo { font-size: 35px; gap: 14px; }
.guide-brand-stage .brand-logo::before { width: 38px; height: 42px; }
.guide-brand-stage p { font-size: 13px; color: var(--brand5); max-width: 36ch; margin: 0; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--brand5); }
.guide-jump a:hover { color: var(--brand1); }
.guide-section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.guide-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.guide-section h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.5px; margin: 0; font-weight: 550; }
.guide-section-title p { font-size: 12px; color: var(--brand5); margin: 0; }
.guide-subtitle { margin: 28px 0 14px; font-size: 13px; font-weight: 550; }
.guide-palette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.guide-surfaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-swatch { display: block; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); color: var(--brand2); font: inherit; text-align: left; cursor: pointer; }
.guide-swatch:hover .guide-swatch-info b { color: var(--brand1); }
.guide-swatch-color { display: block; height: 84px; border-bottom: 1px solid var(--line); }
.guide-surfaces .guide-swatch-color { height: 44px; }
.guide-swatch-info { display: flex; flex-direction: column; padding: 12px; gap: 4px; }
.guide-swatch-info b { font-size: 12px; font-weight: 550; }
.guide-swatch-info code { font-size: 11px; color: var(--brand5); }
.guide-swatch-info [data-value] { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--brand5); }
.guide-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.guide-fonts h3 { font-size: 12px; color: var(--brand5); font-weight: 500; margin: 0 0 12px; }
.guide-font-name { font-size: 20px; letter-spacing: -.4px; margin: 0 0 14px; }
.guide-alphabet { font-family: var(--font-heading); font-size: 25px; margin: 0 0 20px; }
.guide-body-sample { font-size: 16px; line-height: 1.7; margin: 0 0 20px; }
.guide-fonts code { display: block; overflow-wrap: anywhere; color: var(--brand5); font-size: 11px; line-height: 1.7; }
.guide-type-scale > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.guide-type-scale > div > span { font-size: 12px; color: var(--brand5); white-space: nowrap; }
.guide-type-scale p { margin: 0; font-family: var(--font-heading); letter-spacing: -.02em; overflow-wrap: anywhere; }
.guide-type-scale > div:nth-last-child(-n+2) p { font-family: var(--font-body); letter-spacing: normal; }
.guide-controls { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 44px; }
.guide-control { min-width: 100px; }
.guide-control h3 { font-size: 12px; color: var(--brand5); font-weight: 500; margin: 0 0 16px; }
.guide-control p { margin: 12px 0 0; font-size: 12px; color: var(--brand5); }
.guide-form-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 32px; margin-top: 32px; }
.guide-field { display: flex; flex-direction: column; gap: 8px; width: min(100%, 300px); font-size: 12px; }
.guide-field input { padding: 12px 14px; width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--brand2); border-radius: 6px; font: 14px var(--font-body); }
.guide-field input::placeholder { color: var(--brand5); }
.guide-links { display: flex; align-items: center; gap: 24px; padding: 10px 0; font-size: 12px; }
.guide-links a { color: var(--brand1); text-decoration: underline; text-underline-offset: 4px; }
.guide-badge { background: var(--brand4); padding: 4px 9px; border-radius: 4px; }
.guide-spacing { display: flex; flex-wrap: wrap; gap: 25px; }
.guide-spacing > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 75px; gap: 14px; font-size: 12px; }
.guide-spacing code { color: var(--brand5); font-size: 11px; }
.guide-spacing span { height: 28px; background: var(--brand1); border-radius: 2px; }
.guide-spacing b { font-weight: 400; color: var(--brand5); }
.guide-radius { display: flex; align-items: center; gap: 20px; margin-top: 36px; font-size: 12px; }
.guide-radius > span { width: 64px; height: 64px; background: var(--brand4); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-radius p { line-height: 1.9; margin: 0; }
.guide-radius code { color: var(--brand5); }
.guide pre { border: 1px solid var(--line); border-radius: 7px; background: var(--brand3); color: var(--brand2); font-size: 12px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.guide-actions button, .guide-download { padding: 10px 15px; border-radius: 5px; font: 12px var(--font-body); border: 1px solid var(--line); background: var(--surface); color: var(--brand2); cursor: pointer; }
.guide-download { background: var(--brand1); color: var(--on-brand); border-color: transparent; }
.guide-note { font-size: 12px; color: var(--brand5); max-width: 70ch; line-height: 1.8; margin: 18px 0 0; }
.guide-source { color: var(--brand1); text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:1100px) { .guide-palette { grid-template-columns: repeat(3, minmax(0, 1fr)); } .guide-brand-stage { gap: 25px; } .guide-section-title { align-items: flex-start; flex-direction: column; gap: 8px; } }
@media(max-width:760px) { .guide-brand-stage { padding: 28px 22px; flex-direction: column; align-items: flex-start; gap: 20px; } .guide-brand-stage .brand-logo { font-size: 30px; } .guide-palette,.guide-surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guide-jump { gap: 12px 20px; } .guide-section { padding: 30px 0; } .guide-fonts { grid-template-columns: 1fr; gap: 28px; } .guide-type-scale > div { grid-template-columns: 1fr; gap: 12px; } .guide-controls { gap: 28px; } .guide-type-scale p { max-width: 100%; } }

@media(max-width:400px){.guide .heading-row{flex-wrap:wrap;gap:10px}}
