/* /styleguide shows the real tokens and components; it never defines its own. */
/* Layout */
/* /styleguide: shows the real tokens and components, it never defines its own. */
/* Design system: live tokens, actual components, and an honest source/asset register. */
.styleguide-page{padding-bottom:90px}
.ds-index{display:flex;flex-wrap:wrap;gap:12px 25px;padding:25px 0;border-block:1px solid var(--line);font:12px var(--font-mono)}
.ds-section{padding:65px 0;border-bottom:1px solid var(--line);scroll-margin-top:110px}
.ds-heading{display:flex;align-items:baseline;gap:25px;margin-bottom:30px}
.ds-heading h2{font-size:clamp(32px,4vw,45px)}
.ds-section>p{max-width:780px;margin-bottom:22px}
.ds-section details{margin-top:20px}
.ds-section summary{font-size:13px}
.ds-section pre{max-height:450px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--wash);padding:24px;font-size:12px}
.styleguide-page .page-intro h1{font-size:clamp(38px,6.5vw,88px)}
@media(max-width:760px){
  .ds-heading{flex-direction:column;gap:14px}
  .ds-section{padding:42px 0}
}
/* Colour */
.ds-swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.ds-swatch{border:1px solid var(--line);padding:12px;background:var(--paper-light)}
.ds-colour{height:90px;background:var(--sample);margin-bottom:12px}
.ds-swatch code,.ds-swatch strong{display:block;font-size:12px;font-weight:400}
.ds-swatch strong{font-family:var(--font-mono);margin-top:5px;color:var(--muted)}
.ds-contrasts{display:flex;flex-wrap:wrap;gap:25px;margin-top:28px;font-size:12px}
.ds-contrasts b{font-family:var(--font-mono);margin-left:8px}
@media(max-width:760px){
  .ds-swatches{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:420px){
  .ds-swatches{gap:12px}
}
/* Type */
.ds-row{display:grid;grid-template-columns:140px 1fr;gap:25px;align-items:baseline;padding:22px 0;border-top:1px solid var(--line)}
.ds-row>small{font:11px var(--font-mono);color:var(--muted)}
.ds-type-hero{font-size:clamp(40px,6vw,72px);line-height:1.1;letter-spacing:-.055em;font-weight:600}
.ds-type-serif{font:italic 34px/1.2 var(--font-editorial)}
@media(max-width:760px){
  .ds-row{grid-template-columns:1fr;gap:14px}
}
/* Components and review */
.ds-components{display:flex;flex-wrap:wrap;gap:20px;align-items:center}
.ds-icons{display:flex;flex-wrap:wrap;gap:18px 26px}
.ds-icon{display:inline-flex;flex-direction:column;align-items:center;gap:8px;min-width:64px}
.ds-icon code{font-size:11px;color:var(--muted)}
.ds-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}
.ds-grid>div{border-top:1px solid var(--line);padding-top:20px}
.ds-grid h3{font-size:24px;margin-bottom:16px}
.ds-grid p{font-size:14px}
.ds-portrait{max-width:180px;border-radius:3px;margin-top:20px}
.ds-demo-field{width:min(100%,400px)}
.ds-field-label{margin:0 0 8px}
@media(max-width:760px){
  .ds-grid{grid-template-columns:1fr}
}
