/* fix-a.css: layout fixes for index, vera and insights. Loaded after redress.css. */

/* HOME ------------------------------------------------------------ */

/* Video cards are <button>s: in a stretched grid row the shorter card's
   content was centered vertically, so posters in one row sat at different heights. */
body[data-page="home"] .vids > .vid{align-self:start}

/* Vendor rail cards were 3:4 tall with three short blocks spread by
   space-between, leaving a large empty middle. Size them to content. */
body[data-page="home"] .vcard{aspect-ratio:auto;min-height:0;justify-content:flex-start;gap:28px}
body[data-page="home"] .vcard .go{margin-top:auto}

/* Manifesto line was capped at 22ch, leaving the right 40% of the band empty. */
body[data-page="home"] .manifesto p{max-width:30ch}

/* "No saving, no fee" engine: a later rule in redress.css forces two columns
   at every width, so below 960px the steps were squeezed into a ~150px
   column beside a tiny chart. Restore the single column stack. */
@media(max-width:960px){
  body[data-page="home"] .engine-grid{grid-template-columns:minmax(0,1fr);min-height:0;padding-block:56px!important}
  body[data-page="home"] .machine{width:100%;max-width:480px}
}

/* VERA ------------------------------------------------------------ */

body[data-page="vera"] .vids > .vid{align-self:start}

/* 14 films in a 3 column grid left one empty cell at the end.
   Use a 6 track grid: cards span 2, and a 2 card last row spans 3 each. */
@media(min-width:981px){
  body[data-page="vera"] .vids{grid-template-columns:repeat(6,minmax(0,1fr))}
  body[data-page="vera"] .vids > .vid{grid-column:span 2}
  body[data-page="vera"] .vids > .vid:nth-child(3n+1):nth-last-child(2),
  body[data-page="vera"] .vids > .vid:nth-child(3n+1):nth-last-child(2) + .vid{grid-column:span 3}
}

/* Two paper bands in a row ("How the benchmark works", "What you get back")
   stacked full bottom and top padding: one long blank strip of the same color. */
body[data-page="vera"] .band.paper + .band.paper{padding-top:0}

/* INSIGHTS -------------------------------------------------------- */

/* Article covers were 16:10 with the title at top and author at bottom,
   leaving a tall empty block in every card. */
body[data-page="insights"] .wp-cover{aspect-ratio:auto;min-height:190px}

/* At 981 to 1279px "Read on redresscompliance.com" wrapped, dropping the
   arrow onto its own line under a full width underline. Keep it on one line. */
body[data-page="insights"] .wp-body .link{white-space:nowrap}
@media(max-width:1279px){body[data-page="insights"] .wp-body .link{font-size:14px}}
