@charset "UTF-8";

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--dark-blue);
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

header {
  padding: 2.8rem clamp(2.4rem, 5vw, 5.6rem) clamp(6.4rem, 8vw, 9.6rem);
  display: flex;
  flex-direction: column;
  gap: clamp(5.6rem, 8vw, 9.6rem);
  background-color: var(--dark-blue);
  color: var(--white);
}

header .doc-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: space-between;
  align-items: center;
}

header .doc-top .brand {
  font-size: var(--fs-brand);
  font-weight: 700;
}

header .doc-top .back {
  padding: 1rem 2rem;
  border-radius: 99.9rem;
  font-size: var(--fs-nav);
  font-weight: 600;
  background-color: var(--white);
  color: var(--dark-blue);
}

header .doc-title {
  max-width: 82rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

header .doc-title .kicker {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.6);
}

header .doc-title h1 {
  font-size: clamp(4.4rem, 7vw, 7.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

header .doc-title .updated {
  font-size: 1.5rem;
  color: rgba(242, 242, 242, 0.6);
}

main {
  flex: 1;
  padding: clamp(5.6rem, 8vw, 9.6rem) clamp(2.4rem, 5vw, 5.6rem) 12rem;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(4rem, 6vw, 8rem);
  align-items: flex-start;
}

main .toc {
  flex: 1 1 26rem;
  max-width: 30rem;
  position: sticky;
  top: 2.4rem;
}

main .toc .toc-toggle {
  display: none;
}

main .toc .toc-title {
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  opacity: 0.5;
}

main .toc .toc-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

main .toc .toc-links a {
  padding: 0.8rem 0;
  display: flex;
  gap: 1.2rem;
  font-size: var(--fs-nav);
  font-weight: 600;
  line-height: 1.35;
}

main .toc .toc-links a span:first-child {
  min-width: 2.2rem;
  opacity: 0.45;
}

main article {
  flex: 999 1 42rem;
  min-width: 0;
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  gap: 5.6rem;
}

main article .intro {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

main article .intro p {
  font-size: 2.1rem;
  font-weight: 500;
  line-height: var(--lh-text);
  text-wrap: pretty;
}

main article section {
  scroll-margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

main article section h2 {
  display: flex;
  gap: 1.4rem;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
}

main article section h2 span {
  opacity: 0.35;
}

main article section h3 {
  margin-top: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
}

main article section p {
  font-size: var(--fs-card-text);
  line-height: 1.7;
  text-wrap: pretty;
  opacity: 0.85;
}

main article section .note {
  padding: 1.8rem 2.2rem;
  border-radius: 1.6rem;
  border: 0.15rem solid var(--dark-blue);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: var(--lh-text);
  opacity: 1;
}

main article section ul,
main article section ol {
  border-top: 0.1rem solid rgba(2, 11, 38, 0.12);
  list-style: none;
  counter-reset: item;
}

main article section li {
  padding: 1.2rem 0;
  border-bottom: 0.1rem solid rgba(2, 11, 38, 0.12);
  display: flex;
  gap: 1.6rem;
  font-size: var(--fs-card-text);
  line-height: var(--lh-lead);
}

main article section li::before {
  min-width: 1.8rem;
  flex-shrink: 0;
  font-weight: 700;
  opacity: 0.5;
}

main article section ul li::before {
  content: "—";
}

main article section ol li::before {
  counter-increment: item;
  content: counter(item);
}

footer {
  padding: 4rem clamp(2.4rem, 5vw, 5.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  background-color: var(--dark-blue);
  color: var(--white);
}

footer nav {
  display: flex;
  gap: 2.8rem;
}

footer nav a {
  font-size: var(--fs-nav);
  font-weight: 500;
  color: rgba(242, 242, 242, 0.75);
}

footer p {
  font-size: var(--fs-caption);
  color: rgba(242, 242, 242, 0.7);
}

@media all and (max-width: 650px) {
  header {
    padding: 2rem 2.4rem 5.6rem;
    gap: 4.8rem;
  }

  header .doc-top {
    flex-wrap: nowrap;
    gap: 1.2rem;
  }

  header .doc-top .back {
    height: 4.4rem;
    padding: 0 1.8rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    font-size: var(--fs-label);
  }

  header .doc-title {
    gap: 1.4rem;
  }

  header .doc-title h1 {
    font-size: 4rem;
    line-height: 1.05;
    letter-spacing: var(--ls-heading);
  }

  header .doc-title .updated {
    font-size: 1.4rem;
  }

  main {
    padding: 4rem 2.4rem 7.2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 4.4rem;
  }

  main .toc {
    max-width: none;
    border: 0.1rem solid rgba(2, 11, 38, 0.15);
    border-radius: 1.8rem;
    position: static;
  }

  main .toc .toc-title {
    display: none;
  }

  main .toc .toc-toggle {
    width: 100%;
    height: 5.6rem;
    padding: 0 1.8rem;
    border: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    color: var(--dark-blue);
  }

  main .toc .toc-toggle span {
    font-size: 1.8rem;
    letter-spacing: 0;
  }

  main .toc .toc-links {
    padding: 0 1.8rem 1rem;
    display: none;
    gap: 0;
  }

  main .toc.is-open .toc-links {
    display: flex;
  }

  main .toc .toc-links a {
    padding: 1.2rem 0;
    border-top: 0.1rem solid rgba(2, 11, 38, 0.1);
  }

  main article {
    flex: none;
    gap: 4.4rem;
  }

  main article .intro {
    gap: 1.4rem;
  }

  main article .intro p {
    font-size: 1.8rem;
  }

  main article section {
    scroll-margin-top: 2rem;
    gap: 1.6rem;
  }

  main article section h2 {
    gap: 1.2rem;
    font-size: 2.4rem;
  }

  main article section h3 {
    margin-top: 0.6rem;
    font-size: 1.7rem;
  }

  main article section .note {
    padding: 1.6rem 1.8rem;
    border-radius: 1.4rem;
  }

  main article section li {
    gap: 1.4rem;
  }

  main article section li::before {
    min-width: 1.6rem;
  }

  footer {
    padding: 3.2rem 2.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }

  footer nav {
    gap: 2.4rem;
  }

  footer nav a {
    padding: 1rem 0;
  }
}
