/* Column grid — horizontal rhythm (added 2026-09-25; DESIGN.md §5).
   One 12-column grid on the 1200px content frame. Every section seam sits
   on a grid line; vertically stacked zones share at least one seam.
   Named recipes: 8+4 (main + rail) · 6+6 · 4+4+4 · 3+6+3 (sidebar/feed/rail) · 3+9.
   Full-bleed colour bands are allowed, but the content inside them aligns
   to this same grid (wrap an .unifor-grid inside the band). */
:root{
/* Breakpoints (foundation, 2026-10-11). Phone: under 600px · Tablet: 600–1023px · Desktop: 1024px and up.
   Written in em so they follow the reader's default text size (1em = 16px at the default).
   CSS can't read custom properties inside @media, so every query repeats the em value:
   phone   = @media (max-width:37.4375em)   (under 600px)
   tablet- = @media (max-width:63.9375em)   (under 1024px: phone and tablet)
   These properties document the values for scripts and designs; they do not drive the queries. */
--bp-tablet:37.5em;   /* 600px */
--bp-desktop:64em;    /* 1024px */
--grid-cols:12;
--grid-gutter:var(--gutter-desktop);
}

.unifor-grid{
display:grid;
grid-template-columns:repeat(12,minmax(0,1fr));
column-gap:var(--grid-gutter);
max-width:var(--content-max);
margin-inline:auto;
padding-inline:var(--gutter-desktop);
box-sizing:border-box;
}

.unifor-col-2{grid-column:span 2}
.unifor-col-3{grid-column:span 3}
.unifor-col-4{grid-column:span 4}
.unifor-col-5{grid-column:span 5}
.unifor-col-6{grid-column:span 6}
.unifor-col-7{grid-column:span 7}
.unifor-col-8{grid-column:span 8}
.unifor-col-9{grid-column:span 9}
.unifor-col-10{grid-column:span 10}
.unifor-col-full{grid-column:1 / -1}

@media (max-width:63.9375em){
:root{--grid-gutter:var(--gutter-tablet)}
.unifor-grid{padding-inline:var(--gutter-tablet)}
}

/* Phones: the grid is a single column; every span goes full width. */
@media (max-width:37.4375em){
:root{--grid-gutter:var(--gutter-phone)}
.unifor-grid{padding-inline:var(--gutter-phone)}
.unifor-grid>*{grid-column:1 / -1}
}

/* Phone artboards on a desktop-width board: the same collapse, scoped to a .unifor-phone container. */
.unifor-phone{--grid-gutter:var(--gutter-phone)}
.unifor-phone .unifor-grid{padding-inline:var(--gutter-phone)}
.unifor-phone .unifor-grid>*{grid-column:1 / -1}
