@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@500;700&display=swap');

:root {
  color-scheme: light;
  --green: #155f44;
  --ink: #202522;
  --muted: #565d59;
  --line: #e7e7e9;
  --tint: #f3f7f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    1rem/1.75 Inter,
    sans-serif;
  overflow-wrap: anywhere;
}

a {
  color: var(--green);
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -10rem;
  left: 1rem;
  z-index: 5;
  padding: 0.5rem 1rem;
  background: white;
}

.skip-link:focus {
  top: 1rem;
}

.reader-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.reader-bar nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1rem;
  max-width: 960px;
  margin: auto;
  padding: 0.5rem 1.5rem;
}

.reader-bar a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  overflow-wrap: normal;
  text-decoration: none;
}

.reader-bar a:hover {
  text-decoration: underline;
}

.reader-brand {
  font-weight: 600;
}

.reader-contents {
  margin-inline-start: auto;
}

.language-links {
  display: flex;
  flex-shrink: 0;
  gap: 0.25rem;
}

.language-links a {
  min-width: 44px;
  justify-content: center;
  border-radius: 6px;
}

.language-links [aria-current='page'] {
  background: var(--tint);
}

[aria-current='page'] {
  font-weight: 700;
}

main,
footer {
  max-width: 960px;
  margin: auto;
  padding: 2.5rem 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
summary {
  line-height: 1.35;
}

h1,
h2,
h3 {
  font-family: Roboto, Inter, sans-serif;
  font-weight: 700;
}

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

h2 {
  margin: 0 0 1rem;
  font-size: 1.85rem;
}

h3 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
}

h4 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

h5 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

h6 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

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

li + li {
  margin-top: 0.4rem;
}

.procedure-steps > li + li {
  margin-top: 1rem;
}

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

.intro {
  color: var(--muted);
  font-size: 1.125rem;
}

.eyebrow,
.chapter-number {
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 700;
}

.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--green);
  background: var(--tint);
}

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

.notice > :last-child {
  margin-bottom: 0;
}

.category {
  margin-top: 4rem;
}

.chapter {
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.reading-section {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 1000px;
}

.directory {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-block: 1px solid var(--line);
}

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

.directory-group h3 {
  margin-top: 1.25rem;
  font:
    700 1.1rem/1.5 Inter,
    sans-serif;
}

.directory-group ul,
.chapter-toc ul,
.screen-directory ul {
  list-style: none;
  padding: 0;
}

.directory-group a,
.chapter-toc a,
.screen-directory a {
  display: block;
  padding: 0.5rem 0;
}

.screen-directory {
  margin: 2.5rem 0;
}

.screen-directory ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 2rem;
}

.screen-directory li + li {
  margin-top: 0;
}

.directory-search label {
  display: block;
  font-weight: 600;
}

.search-controls {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.search-controls button {
  flex-shrink: 0;
  white-space: nowrap;
}

input,
button {
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid #8b948f;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input {
  min-width: 0;
  width: 100%;
}

button,
summary {
  cursor: pointer;
}

.search-status,
.chapter-footer,
figcaption {
  color: var(--muted);
  font-size: 0.875rem;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.step {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.workflow,
.chapter-toc {
  margin: 1rem 0;
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 1rem 0;
  color: var(--green);
  font-weight: 600;
}

.workflow-body {
  padding: 0.5rem 0 1.5rem;
}

figure {
  margin: 1.5rem 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--tint);
}

figcaption {
  margin-top: 0.5rem;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 0.75rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--tint);
}

.role-comparison th:first-child {
  width: 24%;
  min-width: 12rem;
}

hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

footer {
  border-top: 1px solid var(--line);
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .directory-groups,
  .screen-directory ul {
    grid-template-columns: minmax(0, 1fr);
  }

  main,
  footer,
  .reader-bar nav {
    padding-inline: 1rem;
  }

  .reader-bar nav {
    gap: 0.5rem;
    font-size: 0.875rem;
  }

  .language-links {
    gap: 0.25rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  th,
  td {
    min-width: 9rem;
  }
}

@media print {
  .reading-section {
    content-visibility: visible;
    contain-intrinsic-block-size: none;
  }

  .reader-bar,
  .directory-search,
  .chapter-footer,
  .chapter-toc,
  .skip-link {
    display: none;
  }

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

  .chapter {
    break-before: page;
  }

  a {
    color: inherit;
  }
}
