:root {
  --ink: #0a1633;
  --teal: #0d5bff;
  --muted: #5e6b8a;
  --line: #d9e3f5;
  --paper: #fff;
  --bg: #f8faff;
  --soft: #edf3ff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.5 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #c0862f;
  outline-offset: 4px;
}
.guide-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}
.guide-nav > div {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.wordmark {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
}
.download {
  display: inline-block;
  background: var(--teal);
  color: white !important;
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 700;
}
.guide-nav a[aria-current="true"] {
  font-weight: 800;
  border-bottom: 2px solid var(--teal);
}
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
}
.contents {
  position: fixed;
  left: 20px;
  top: 95px;
  bottom: 20px;
  width: 220px;
  overflow: auto;
  font-size: 12px;
  padding-right: 12px;
}
.contents h1 {
  font-size: 20px;
  margin-bottom: 5px;
}
.contents > p {
  color: var(--muted);
  font-size: 11px;
}
.contents ol {
  list-style: none;
  padding: 0;
}
.contents li {
  margin: 0 0 7px;
}
.contents a {
  display: flex;
  gap: 9px;
  padding: 6px 0;
}
.contents a span {
  color: #789287;
  flex: 0 0 18px;
}
.contents a[aria-current] {
  font-weight: bold;
}
main {
  max-width: 920px;
  margin: 30px 30px 50px 265px;
}
.page {
  scroll-margin-top: 90px;
  padding: 36px 42px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 25px;
  box-shadow: 0 8px 30px #0a163305;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--teal);
  font-weight: 700;
  margin: 0 0 12px;
}
.page h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 0 0 14px;
}
.audience {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 14px;
}
.audience span {
  font-weight: 400;
  color: var(--muted);
  margin-right: 9px;
}
.lead {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
}
figure {
  margin: 20px 0 18px;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
figcaption {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin-top: 7px;
}
.instructions h3 {
  font-size: 15px;
  margin: 16px 0 8px;
}
.instructions ol {
  padding-left: 22px;
  margin: 0;
}
.instructions li {
  padding-left: 5px;
  margin-bottom: 8px;
}
.instructions li::marker {
  font-weight: bold;
  color: var(--teal);
}
.note {
  margin-top: 18px;
  padding: 13px 16px;
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
}
.back {
  display: inline-block;
  font-size: 12px;
  margin-top: 20px;
}
.role-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.role-card {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 22px;
  border-radius: 12px;
  display: block;
}
.role-card > span {
  color: var(--teal);
  font-size: 28px;
  font-weight: 800;
}
.role-card h3 {
  font-size: 20px;
  margin: 8px 0;
}
.role-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
.role-card small {
  font-weight: bold;
}
.cover {
  min-height: 780px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 7px solid var(--teal);
}
.cover h2 {
  font-size: 48px;
  max-width: 720px;
}
.cover .lead {
  font-size: 19px;
}
.visual-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 18px 0;
}
.visual-flow li {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  position: relative;
  font-size: 11px;
  min-width: 0;
}
.visual-flow li:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -9px;
  top: 40%;
  z-index: 1;
  color: var(--teal);
  background: white;
  font-weight: bold;
}
.visual-flow span {
  display: block;
  color: var(--teal);
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 5px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 18px;
}
th {
  text-align: left;
  color: var(--teal);
  background: var(--soft);
}
th,
td {
  padding: 9px 11px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.guide-index main {
  margin: 8vh auto;
  padding: 40px;
  max-width: 850px;
}
.guide-index h1 {
  font-size: 52px;
  line-height: 1.1;
  margin: 18px 0;
}
.guide-index h1 span {
  color: var(--teal);
}
.language-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}
.language-cards article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 26px;
}
.language-cards h2 {
  font-size: 25px;
  margin-top: 0;
}
.language-cards a {
  display: block;
  margin-top: 14px;
}
.language-cards article > p {
  color: var(--muted);
}
@media (max-width: 1050px) {
  .contents {
    position: static;
    width: auto;
    margin: 24px;
    max-height: 310px;
    border: 1px solid var(--line);
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
  }
  .contents ol {
    columns: 2;
  }
  .contents li {
    break-inside: avoid;
  }
  main {
    margin: 24px;
  }
  .guide-nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  .guide-nav > div {
    margin-left: 0;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  .page {
    padding: 25px 20px;
  }
  .page h2 {
    font-size: 28px;
  }
  .cover {
    min-height: 0;
  }
  .cover h2 {
    font-size: 37px;
  }
  .cover .lead {
    font-size: 16px;
  }
  .role-map,
  .language-cards {
    grid-template-columns: 1fr;
  }
  .visual-flow {
    grid-template-columns: 1fr 1fr;
  }
  .visual-flow li:nth-child(2):after {
    content: "";
  }
  .contents ol {
    columns: 1;
  }
  .guide-index main {
    padding: 20px;
    margin: 10px;
  }
  .guide-index h1 {
    font-size: 40px;
  }
  .guide-nav {
    padding: 12px 16px;
  }
  .guide-nav > div {
    gap: 12px;
  }
  .download {
    padding: 9px 12px;
  }
  main {
    margin: 18px 12px;
  }
}
@page {
  size: A4;
  margin: 14mm 14mm 17mm;
}
@media print {
  html {
    scroll-behavior: auto;
  }
  body {
    background: white;
    font-size: 12px;
    line-height: 1.4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .guide-nav,
  .contents,
  .screen-only {
    display: none !important;
  }
  main {
    max-width: none;
    margin: 0;
  }
  .page {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    break-after: page;
    page-break-after: always;
  }
  .page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  .page h2 {
    font-size: 26px;
    line-height: 1.13;
    margin-bottom: 9px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
    letter-spacing: 1.2px;
  }
  .audience {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .lead {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  figure {
    margin: 12px 0 14px;
    break-inside: avoid;
  }
  figure img {
    max-height: none;
    width: 100%;

    border-radius: 5px;
  }
  figcaption {
    font-size: 7px;
    margin-top: 5px;
  }
  .has-flow figure img,
  .has-table figure img {
    max-height: none;
  }
  .instructions h3 {
    font-size: 12px;
    margin: 12px 0 6px;
  }
  .instructions li {
    margin-bottom: 6px;
  }
  .note {
    font-size: 10px;
    padding: 10px 12px;
    margin-top: 12px;
    break-inside: avoid;
  }
  .visual-flow {
    margin: 12px 0;
    gap: 9px;
    break-inside: avoid;
  }
  .visual-flow li {
    padding: 9px;
    font-size: 9px;
  }
  .visual-flow span {
    font-size: 13px;
    margin-bottom: 3px;
  }
  table {
    font-size: 10px;
    margin-top: 12px;
    break-inside: avoid;
  }
  th,
  td {
    padding: 7px 9px;
  }
  .cover {
    min-height: 920px;
    border-top: 6px solid var(--teal);
    padding-top: 32px;
    justify-content: flex-start;
  }
  .cover h2 {
    font-size: 45px;
    margin-top: 22px;
  }
  .cover .lead {
    font-size: 18px;
  }
  .cover .role-map {
    margin-top: 45px;
  }
  .role-card {
    padding: 23px;
  }
  .role-card h3 {
    font-size: 19px;
  }
  .role-card p {
    font-size: 12px;
  }
  .role-card small {
    font-size: 10px;
  }
  .role-map {
    gap: 18px;
  }
  .cover .note {
    margin-top: auto;
    margin-bottom: 35px;
  }
  .back {
    display: none;
  }
  .guide-index main {
    margin: 0;
    padding: 0;
  }
}
