/* Tablet widths, 552 to 1175 px (brief section 6, agreed 19 Nov; built 30 Nov).
   Written by hand (not generated by tools/convert.pl). Loaded after the design's CSS, so it only overrides it
   inside these three width ranges; desktop (1176 px and up) and phones (551 px and below) are untouched.

   The rule from desktop and phones, carried to tablets: the content column is a whole number of 120 px major
   columns, centred, and the grid starts at the column's left edge, so the major lines meet both column edges.
     1032-1175 px: 960 px column (8 majors)   was 984, left-aligned; two-column blocks overflowed it
      792-1031 px: 720 px column (6 majors)   was 744
      552- 791 px: 480 px column (4 majors)   was 504
   Two-column blocks at 960 px keep their desktop shape with one major column less:
     events 360|120|480 (photo 480 wide over the first two), lab 480|480, questions and Terms 360|600,
     footer band 480|480, footer columns 4 x 240, gift cards 3 across.
   Header: phone-size logo from 1031 px down; from 791 px down the header is the phone header (no button). */

@container (min-width:1032px) and (max-width:1175px){
  .v2-wrap{width:960px;margin-left:auto;margin-right:auto}
  .v2-grid{background-position:calc((100cqw - 960px) / 2) 0,calc((100cqw - 960px) / 2) 0,calc((100cqw - 960px) / 2) 0,calc((100cqw - 960px) / 2) 0}
  .v2-split{grid-template-columns:360px 120px 480px}
  .ev .v2-split>.v2-split-photo{width:480px}
  .v2-lab{grid-template-columns:480px 480px}
  .v3-lab-tall{width:480px;height:576px}
  .v2-faq,.v2-legal{grid-template-columns:360px 600px}
  .fa-band{grid-template-columns:480px 480px}
  .v2-footer-cols{grid-template-columns:repeat(4,240px)}
  .v2-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .fl-track{--bleed:calc((960px - 100cqw) / 2)}
}

@container (min-width:792px) and (max-width:1031px){
  .v2-wrap{width:720px;margin-left:auto;margin-right:auto}
  .v2-grid{background-position:calc((100cqw - 720px) / 2) 0,calc((100cqw - 720px) / 2) 0,calc((100cqw - 720px) / 2) 0,calc((100cqw - 720px) / 2) 0}
  /* two flavour cards fill the column, as they did at 744 */
  .fl-track{--bleed:calc((720px - 100cqw) / 2);grid-auto-columns:348px}
  /* header: the full-size logo (288) no longer fits beside EN/BM and the button; use the phone size (240 x 40) */
  .v2-logo img{width:240px;height:40px}
}

@container (min-width:552px) and (max-width:791px){
  .v2-wrap{width:480px;margin-left:auto;margin-right:auto}
  .v2-grid{background-position:calc((100cqw - 480px) / 2) 0,calc((100cqw - 480px) / 2) 0,calc((100cqw - 480px) / 2) 0,calc((100cqw - 480px) / 2) 0}
  .fl-track{--bleed:calc((480px - 100cqw) / 2);grid-auto-columns:228px}
  /* header: same column width as large phones, so the same header as phones: phone-size logo, EN/BM, no button
     (the logo was squeezed to 48 px in the design, 24 px here, beside the 256 px button) */
  .v2-logo img{width:240px;height:40px}
  .v2-header .v2-btn{display:none}
}
