/* hq-nav.css: what the other four pages need once the top bar lists five pages (adding "HQ"),
   and once the report lists four signature pieces. To be copied to site/css/hq-nav.css; hq-nav.json links it
   after each page's last refinement stylesheet. hq.html carries the same top-bar rules in css/hq.css. */

/* The top bar with five pages. On a phone all five fit across a 390-pixel screen, as refine.css block R2 made four
   fit; the type stays at 12 pixels or more. The class rf-nav5 is added to the bar by hq-nav.json. */
@media (max-width: 760px) {
  .rf-nav5 .oa-bar__link {
    padding-left: 2px;
    padding-right: 2px;
    font-size: 12.5px;
    letter-spacing: -0.01em;
  }

  .rf-nav5 .oa-bar__link[aria-current="page"]::after {
    left: 2px;
    right: 2px;
  }
}

@media (max-width: 379px) {
  .rf-nav5 .oa-bar__link {
    font-size: 12px;
    letter-spacing: -0.02em;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .rf-nav5 .oa-bar__link {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* The report: the small strip of signature pieces near the top (refine.css R25) holds four. */
@media (min-width: 1181px) {
  .rf-sig__in {
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .rf-sig__in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The report: Explore, at the end, holds four tiles: four across at full width, two by two on a tablet. */
@media (min-width: 1181px) {
  .oa-explore__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .oa-explore__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The report on a phone: the five pages listed at the top of the Parts sheet (refine.css R2), two to a row,
   with the fifth across the full width. */
.rf-pages__link:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
