.brand-index{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:38px}
.brand-index a{padding:8px 14px;border:1px solid var(--line);border-radius:8px;color:var(--periwinkle)}
.brand-index a:is(:hover,:focus-visible){color:var(--link-hover);border-color:currentColor}
.brand-section{padding-block:clamp(32px,5vw,65px);border-top:1px solid var(--line)}
.brand-section h2{margin:0 0 14px;font-size:clamp(1.7rem,3vw,2.7rem)}
.brand-section ul{margin-block:0;color:var(--muted);padding-inline-start:1.35em}
.brand-section li+li{margin-top:9px}
.brand-section strong{color:var(--porcelain)}
.brand-section code{overflow-wrap:anywhere}
.brand-columns{display:grid;align-items:start;row-gap:16px;margin-top:18px}
.brand-columns>*{min-width:0}
.brand-columns h3{margin-bottom:10px}
.brand-section ul.brand-columns{margin-top:18px;row-gap:9px}
.brand-columns>li+li{margin-top:0}
.brand-variants,.brand-palette{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px;margin:26px 0}
.brand-variant{margin:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--slate)}
.brand-lockup{display:grid;place-items:center;min-height:174px;padding:24px;background:var(--midnight)}
.brand-lockup--light{background:var(--porcelain)}
.brand-lockup img{width:min(100%,250px);height:90px;object-fit:contain}
.brand-variant figcaption,.brand-swatch-copy{padding:17px}
.brand-variant h3{font-size:1.12rem;margin-bottom:6px}
.brand-variant .text-link{margin-top:12px;font-size:.9rem}
.brand-misuse{margin-top:32px}
.brand-misuse>h3{margin-bottom:8px}
.brand-misuse .brand-lockup{position:relative;isolation:isolate;overflow:hidden}
.brand-misuse h4{display:flex;align-items:center;gap:8px;margin:0 0 6px;font:700 1.05rem/1.4 Manrope,Inter,sans-serif}
.brand-misuse-cross{display:grid;place-items:center;width:22px;height:22px;border:1px solid currentColor;border-radius:50%;color:#ffb8c9;font-size:1rem;line-height:1}
.brand-misuse--busy .brand-lockup{background:#16182b url(/assets/replaystudiopro.webp) center/cover no-repeat}
.brand-misuse--overlap .brand-lockup::after{content:"";position:absolute;inset:46% 6% auto auto;width:45%;height:28px;border:1px solid var(--periwinkle);border-radius:5px;background:var(--ultramarine);transform:rotate(-14deg)}
.brand-misuse--stretch img{transform:scaleY(.56)}
.brand-misuse--rotate img{transform:rotate(-26deg)}
.brand-misuse--recolour img{filter:hue-rotate(145deg) saturate(1.45)}
.brand-misuse--contrast .brand-lockup{background:var(--porcelain)}
.brand-clearspace{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:center;gap:24px;margin:32px 0}
.brand-clearspace .prose h3{margin:0 0 10px}
.brand-safe-area{border:1px dashed var(--periwinkle);border-radius:12px;padding:9%;background:var(--midnight)}
.brand-safe-area img{width:100%;height:auto}
.brand-swatch{height:84px;border-bottom:1px solid var(--line)}
.brand-swatch--ultramarine{background:var(--ultramarine)}
.brand-swatch--midnight{background:var(--midnight)}
.brand-swatch--slate{background:var(--slate)}
.brand-swatch--periwinkle{background:var(--periwinkle)}
.brand-swatch--porcelain{background:var(--porcelain)}
.brand-swatch-copy p+p{margin-top:7px}
.brand-type,.brand-component-samples{padding:clamp(16px,3vw,25px);border:1px solid var(--line);border-radius:12px;background:var(--slate)}
.brand-type .brand-type-display{font:800 clamp(1.8rem,3vw,2.8rem)/1.1 Manrope,Inter,sans-serif;letter-spacing:-.035em;color:var(--porcelain)}
.brand-type .brand-type-body{margin-top:20px;color:var(--porcelain)}
.brand-component-samples{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;margin-bottom:18px}
@media (min-width:56rem){
  .brand-columns{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:clamp(32px,5vw,76px)}
}
@media (min-width:70rem){
  .brand-variants{grid-template-columns:repeat(3,minmax(0,1fr))}
  .brand-variants--full{grid-template-columns:repeat(4,minmax(0,1fr))}
  .brand-palette{grid-template-columns:repeat(5,minmax(0,1fr))}
}
