/* ============================================================
   category.html only. Every selector is scoped to .category-page
   because .criteria, .boundaries and .provenance are shared with
   the sector pages in styles.css.
   ============================================================ */

/* The home page logo under the hero text, at the home page size.
   Its chrome gradient washes out on ivory, so it sits on the same dark
   as the site header, which is how it reads on the home page. */
.category-page .cat-hero-mark {
  display: inline-block;
  max-width: 100%;
  margin-top: 40px;
  padding: 28px 36px;
  background: #0b0f14;
  border-radius: var(--radius);
}
.category-page .cat-hero-mark svg { width: min(300px, 58vw); height: auto; display: block; }

/* The definition: full container width, attribution set beside it */
.category-page .section--definition { padding: 72px 0 84px; }
.category-page .definition {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 64px;
  padding: 56px 64px;
}
.category-page .definition__attrib {
  margin: 0;
  padding: 0 0 0 28px;
  border-top: 0;
  border-left: 1px solid var(--hairline);
  align-self: end;
}

/* Heading on the left, reading column on the right */
.category-page .cat-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.category-page .cat-split__head {
  position: sticky;
  top: 112px;
}
.category-page .cat-split__head .lede { margin: 24px 0 0; font-size: 17px; }
.category-page .cat-prose { padding-top: 8px; }
.category-page .cat-prose .cta-inline { margin-top: 32px; }

/* The four criteria: a raised band, two by two */
.category-page .cat-criteria { background: var(--surface); }
.category-page .cat-split--intro { align-items: end; }
.category-page .cat-split--intro .cat-split__head { position: static; }
.category-page .cat-split--intro .lede { margin: 0; max-width: none; }
.category-page .criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  margin-top: 56px;
}
.category-page .criterion {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 36px 0 40px;
}
.category-page .criterion:last-child { border-bottom: 0; }
.category-page .criterion .criterion__num { font-size: 36px; line-height: 1.1; }
.category-page .criterion__name { margin-bottom: 12px; }

/* What it is not: separated rows in place of the left rule */
.category-page .boundaries {
  margin: 0;
  padding: 0;
  border-left: 0;
  max-width: none;
}
.category-page .boundaries li {
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}
.category-page .boundaries li:first-child { padding-top: 0; border-top: 0; }
.category-page .boundaries li:last-child { padding-bottom: 0; }
.category-page .boundaries b { display: block; margin-bottom: 4px; }

/* Provenance: label and text on the same grid as the page */
.category-page .provenance { border-top: 0; padding-top: 0; }
.category-page .cat-prov-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}
.category-page .cat-prov-row:first-child { padding-top: 0; border-top: 0; }
.category-page .cat-prov-row:last-child { padding-bottom: 0; }
.category-page .cat-prov-row p { max-width: none; }
.category-page .cat-prov-row .provenance__label { margin: 0; }

@media (max-width: 1180px) {
  .category-page .cat-split,
  .category-page .cat-prov-row { gap: 48px; }
  .category-page .definition { gap: 40px; padding: 48px; }
}

@media (max-width: 980px) {
  .category-page .cat-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .category-page .cat-split__head { position: static; }
  .category-page .cat-split--intro { align-items: start; gap: 20px; }
  .category-page .cat-prose { padding-top: 0; }
  .category-page .definition { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .category-page .definition__attrib {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--hairline);
    align-self: auto;
  }
  .category-page .criterion { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .category-page .criteria { column-gap: 40px; }
  .category-page .cat-prov-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 720px) {
  .category-page .section--definition { padding: 48px 0 56px; }
  .category-page .definition { padding: 32px 24px; }
  .category-page .criteria { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .category-page .criterion { padding: 28px 0; }
  .category-page .criterion:last-child { border-bottom: 1px solid var(--hairline); }
}
