@font-face {
  font-family: 'Stack Sans Text';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/fonts/stack-sans-text-latin-300-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Stack Sans Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/stack-sans-text-latin-400-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Stack Sans Text';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/stack-sans-text-latin-600-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Stack Sans Headline';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/stack-sans-headline-latin-400-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Fragment Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/fragment-mono-latin-400-normal.woff2) format('woff2');
}

:root {
  --dark: #231f23;
  --dark-64: rgba(35, 31, 35, 0.64);
  --dark-48: rgba(35, 31, 35, 0.475);
  --dark-16: rgba(35, 31, 35, 0.16);
  --dark-8: rgba(35, 31, 35, 0.08);
  --dark-4: rgba(35, 31, 35, 0.04);
  --light: #f7f6f5;
  --lift: #ffffff;
  --core-coral: #ed7472;
  --cache-sand: #f4e7c7;
  --red-16: rgba(255, 34, 68, 0.16);

  --font-text: 'Stack Sans Text', system-ui, sans-serif;
  --font-headline: 'Stack Sans Headline', 'Stack Sans Text', system-ui, sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --column: 680px;
  --pad: 32px;
  --space-top: 56px;
  --space-bottom: 120px;
}

@media (max-width: 1199.98px) {
  :root {
    --pad: 24px;
  }
}

@media (max-width: 809.98px) {
  :root {
    --pad: 16px;
    --space-top: 40px;
    --space-bottom: 80px;
  }
}

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

html {
  background: var(--light);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--dark);
  font: 300 16px/24px var(--font-text);
  overflow-wrap: break-word;
}

main {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--pad));
  margin-inline: auto;
  padding: var(--space-top) var(--pad) var(--space-bottom);
}

a {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--dark-64);
}

.document-body .header-anchor {
  color: inherit;
  text-decoration: none;
}

.document-body .header-anchor:hover,
.document-body .header-anchor:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-headline);
  font-weight: 400;
}

h1 {
  margin-bottom: 24px;
  font-size: 64px;
  line-height: 68px;
  letter-spacing: -1px;
  text-align: center;
}

h2 {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 24px;
}

h3 {
  margin: 24px 0 20px;
  font-size: 18px;
  line-height: 24px;
}

h4 {
  margin: 20px 0 20px;
  font-size: 16px;
  line-height: 22px;
}

/* The reference sets a section heading 8px under the paragraph before it: 20px of paragraph margin less 12px. */
p + h2,
p + h3,
p + h4,
ul + h2,
ol + h2 {
  margin-top: -12px;
}

p {
  margin: 0 0 20px;
}

strong,
b {
  font-weight: 600;
}

ul,
ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--dark-16);
}

.pill,
article > h1 + p,
.cards li > p:last-child,
.versions span,
.site-footer p {
  font: 400 12px/16px var(--font-mono);
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: var(--dark-64);
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 7px 11px;
  color: var(--dark);
  border: 1px solid var(--dark-8);
  border-radius: 8px;
  text-decoration: none;
}

.pill-dot {
  width: 10px;
  height: 10px;
  background: var(--core-coral);
  border-radius: 2px;
}

.banner,
.notice {
  margin-bottom: 24px;
  padding: 16px 20px;
  color: var(--dark);
  border-radius: 8px;
}

.banner p,
.notice p {
  margin: 0;
}

.banner[data-status='upcoming'],
.notice {
  background: var(--cache-sand);
  border-left: 4px solid var(--core-coral);
}

.banner[data-status='current'] {
  background: var(--lift);
  border: 1px solid var(--dark-16);
}

.banner[data-status='superseded'] {
  background: var(--red-16);
}

/* Dark 64% on Red 16% is 4.34:1, under AA, so a link here keeps full Dark and shows hover with a heavier underline. */
.banner[data-status='superseded'] a:hover {
  color: var(--dark);
  text-decoration-thickness: 2px;
}

article > p {
  text-align: center;
}

article > h1 + p {
  margin-bottom: 8px;
}

article > p:has([data-copy]) {
  font-size: 14px;
  line-height: 22px;
}

[data-copy] {
  overflow-wrap: anywhere;
}

.copy-button {
  margin-left: 8px;
  padding: 2px 10px;
  color: var(--dark);
  font: 400 14px/20px var(--font-text);
  background: var(--lift);
  border: 1px solid var(--dark);
  border-radius: 6px;
  cursor: pointer;
}

.copy-button:hover {
  background: var(--dark-4);
}

.copy-status {
  margin-left: 8px;
  color: var(--dark);
}

.document-body {
  margin-top: 72px;
}

.document-body > :first-child {
  margin-top: 0;
}

.cards,
.versions {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.cards li {
  margin-bottom: 16px;
  padding: 20px 24px;
  background: var(--lift);
  border: 1px solid var(--dark-16);
  border-radius: 8px;
}

.cards h2 {
  margin: 0 0 8px;
}

.cards li > p {
  margin-bottom: 8px;
}

.cards li > p:last-child {
  margin-bottom: 0;
}

.versions li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dark-16);
}

.table-scroll {
  max-width: 100%;
  margin-bottom: 20px;
  overflow-x: auto;
  background: var(--lift);
  border: 1px solid var(--dark-16);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 22px;
}

th,
td {
  min-width: 160px;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--dark-16);
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

th {
  font-weight: 600;
  background: var(--dark-4);
}

tr:last-child td {
  border-bottom: 0;
}

.list-title,
.empty {
  text-align: center;
}

.site-header {
  display: flex;
  align-items: center;
  height: 72px;
  margin-top: 8px;
  padding: 0 calc(var(--pad) + 16px);
}

.logo {
  display: block;
}

.logo img {
  display: block;
  width: 153.48px;
  height: auto;
}

.site-footer {
  padding: 32px var(--pad);
  text-align: center;
  border-top: 1px solid var(--dark-8);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 809.98px) {
  h1 {
    margin-bottom: 20px;
    font-size: 48px;
    line-height: 52px;
  }

  body {
    font-size: 14px;
    line-height: 20px;
  }

  h2 {
    font-size: 16px;
    line-height: 20px;
  }

  h3 {
    font-size: 16px;
    line-height: 20px;
  }

  h4 {
    font-size: 14px;
    line-height: 20px;
  }

  .pill {
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.5px;
  }

  .site-header {
    padding: 0 var(--pad);
  }
}

@media (max-width: 389px) {
  .cards li {
    padding: 16px;
  }
}

/* Subprocessors, the longest word in a title, is too wide at 48px on a screen narrower than this. */
@media (max-width: 374.98px) {
  h1 {
    font-size: 36px;
    line-height: 40px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .pill,
  .copy-button,
  .copy-status {
    display: none;
  }

  html,
  body {
    background: none;
  }

  main {
    max-width: none;
    padding: 0;
  }

  a {
    color: inherit;
  }

  main a[href^='http']:not([href^='https://legal.zippyassist.com'])::after {
    content: ' (' attr(href) ')';
    overflow-wrap: anywhere;
  }

  .table-scroll {
    overflow: visible;
  }
}
