/* AntraNet legal pages: plain, accessible, responsive. Greys only. */

:root {
  --text: #000;
  --muted: #444;
  --rule: #c8c8c8;
  --panel: #f4f4f4;
  --measure: 70ch;
}

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

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 2px solid #000;
  z-index: 10;
}

header.site,
main,
footer.site {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  padding-top: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

header.site a {
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--text);
}

header.site a:hover,
header.site a:focus {
  text-decoration: underline;
}

/* The brand pack's "Antra" signature, black on white, at its 120 px minimum. */
header.site a.brand {
  display: inline-block;
}

header.site a.brand img {
  display: block;
  width: 120px;
  height: auto;
}

header.site a.brand:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
  margin: 0.5rem 0 0.5rem;
}

h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

li > ul,
li > ol {
  margin-top: 0.4rem;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

a:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

.effective {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.summary {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 4px solid #000;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}

.summary h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 1.125rem;
}

.summary p:last-child {
  margin-bottom: 0;
}

.changes {
  color: var(--muted);
}

.pages {
  list-style: none;
  padding-left: 0;
}

.pages li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}

.pages li:first-child {
  border-top: 1px solid var(--rule);
}

.pages a {
  font-weight: 600;
}

.pages span {
  display: block;
  color: var(--muted);
}

footer.site {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

footer.site li {
  margin: 0;
}

footer.site a.current {
  font-weight: 700;
  text-decoration: none;
}

footer.site p {
  margin: 0;
}

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.625rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  header.site,
  main,
  footer.site {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .summary {
    padding: 0.875rem 1rem;
  }
}

@media print {
  .skip,
  footer.site ul {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  a {
    text-decoration: none;
  }
}
