/* Brand pages (one per brand: <brand>-eyeglasses.html), the brands index (brands.html), the style pages (one per shape,
   material, rim, color: <style>-glasses.html) and the styles index (styles.html). All written by the Central from
   src/pages/marca.html, marcas.html, estilo.html and estilos.html. The frames use the catalog's own grid and card
   (.catp-grid in catalogo.css, .fcard in styles.css): nothing here redraws them. Prefix brandp-. */
.brandp { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) var(--sec-y); }
.brandp-head { padding: var(--sec-y-sm) 0 0; max-width: none; }
.brandp-head .kicker a { color: inherit; text-decoration: none; }
.brandp-head .kicker a:hover { color: var(--ink); }
.brandp-body { padding-top: clamp(40px, 5vw, 72px); }
.brandp-more { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin: clamp(48px, 6vw, 88px) 0 0; }

/* the index: brand · how many frames, on hairlines, in columns */
.brandp-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--gold); }
.brandp-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.brandp-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; font-size: 17px; color: var(--ink); text-decoration: none; transition: color .2s; }
.brandp-list a .num { font-size: var(--fs-small); color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* a one-word name longer than a phone column (RETROSUPERFUTURE at 375 px) breaks inside its column instead of pushing the page sideways */
.brandp-list a > span:not(.num), .brandp-list [aria-current="page"] > span:not(.num) { min-width: 0; overflow-wrap: anywhere; }
@media (hover: hover) { .brandp-list a:hover { color: var(--gold); } }
.brandp-list a:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
/* style pages (<style>-glasses.html) and the styles index (styles.html): the same list, one group per family under a small head;
   the style of the page itself is marked, not linked */
.brandp-group { margin-top: clamp(40px, 5vw, 72px); }
.brandp-group:first-child { margin-top: 0; }
.brandp-group h2 { margin: 0 0 18px; font: 500 var(--fs-caps)/1.2 var(--font-ui); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-3); }
.brandp-list [aria-current="page"] { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; font-size: 17px; color: var(--gold); }
.brandp-list [aria-current="page"] .num { font-size: var(--fs-small); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.brandp-sibs { padding-top: clamp(56px, 7vw, 104px); }
@media (min-width: 861px) { .brandp-list { columns: 3; } }
@media (min-width: 1280px) { .brandp-list { columns: 4; } }
@media (max-width: 860px) {
  .brandp-head .offset-1 { margin-left: 0; } .brandp-head { padding-top: var(--block); }
  /* phones: the button takes the row and a long label wraps inside it ("Filter and sort these frames" needs 360 px: on a
     360–375 px phone it made the whole page scroll sideways) */
  .brandp-more .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.35; }
}
@media (prefers-reduced-motion: reduce) { .brandp-list a { transition: none; } }
