@font-face {
  font-family: "Adfin";
  src: url("/assets/fonts/adfin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #084235;
  --banner-text: #151414;
  --background: #ffffff;
  --banner: #fff9ee;
  --border: #c9c8c7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Adfin", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* The snapshot link colour #B3B3FF has too little contrast on white. */
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 0.75rem;
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

.wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand img {
  display: block;
  width: auto;
  height: 2rem;
}

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Overview banner */

.banner {
  padding: 3rem 0;
  background: var(--banner);
  color: var(--banner-text);
}

.banner .wrap {
  display: grid;
  gap: 2rem;
}

.banner-text {
  max-width: 40rem;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hero {
  display: none;
}

/* Sections */

.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.frameworks,
.entries,
.controls {
  margin: 0;
  padding: 0;
  list-style: none;
}

.framework {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  width: 13.75rem;
}

.entry {
  display: grid;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.entry-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vendor-logo {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.facts {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  align-self: start;
}

.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}

.facts dt {
  min-width: 5rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.85;
}

.facts dd {
  margin: 0;
}

.description ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.control-category + .control-category {
  margin-top: 2.5rem;
}

.category-name {
  margin-bottom: 1rem;
}

.control {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.control + .control {
  margin-top: 1rem;
}

.control .name {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

@media (min-width: 48rem) {
  .banner .wrap {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: end;
  }

  /* Crop the wide banner image to the Adfin graphic near its right edge. */
  .hero {
    display: block;
    width: 18rem;
    height: 14rem;
    object-fit: cover;
    object-position: 77% 100%;
  }

  .subprocessor,
  .partner {
    grid-template-columns: 16rem minmax(0, 1fr);
  }

  .subprocessor {
    grid-template-rows: auto 1fr;
  }

  .subprocessor .description {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
  }

  .control + .control {
    margin-top: 0;
  }
}

@media print {
  .site-header nav,
  .hero {
    display: none;
  }

  .banner {
    padding: 0 0 1.5rem;
    background: none;
  }

  .section {
    padding: 1.5rem 0;
  }

  .subprocessor,
  .partner,
  .control {
    break-inside: avoid;
  }

  h2,
  h3 {
    break-after: avoid;
  }
}
