@font-face{font-family:Roboto;font-weight:400;font-style:normal;font-display:swap;src:url("assets/fonts/Roboto-Regular.ttf") format("truetype")}
@font-face{font-family:Roboto;font-weight:700;font-style:normal;font-display:swap;src:url("assets/fonts/Roboto-Bold.ttf") format("truetype")}
@font-face{font-family:Montserrat;font-weight:600;font-style:normal;font-display:swap;src:url("assets/fonts/Montserrat-SemiBold.ttf") format("truetype")}
@font-face{font-family:Montserrat;font-weight:700;font-style:normal;font-display:swap;src:url("assets/fonts/Montserrat-Bold.ttf") format("truetype")}
:root {
  --brand-dark: #2d4f7a;
  --brand-mid: #2d4f7a;
  --brand-light: #93a4d4;
  --ink: #171722;
  --muted: #5c6170;
  --paper: #ffffff;
  --page: #f5f6f9;
  --line: #d9dce6;
  --soft-blue: #eef1fb;
  --soft-green: #edf7f1;
  --soft-amber: #fff7e5;
  --soft-red: #fbeeee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: var(--brand-mid);
  overflow-wrap: anywhere;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--brand-light);
}

.masthead {
  background: var(--brand-dark);
  color: #fff;
  border-bottom: 6px solid var(--brand-light);
}

.masthead__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3.25rem 2rem 2.7rem;
}

.masthead__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.masthead__top .brand {
  display: block;
  margin-bottom: 0;
}

.website-link {
  margin-left: auto;
  color: #fff;
  font-size: 0.9rem;
}

.website-link:hover,
.website-link:focus {
  color: #fff;
  text-decoration-thickness: 2px;
}

.link-example {
  color: var(--brand-mid);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #dce2ff;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead h1 {
  max-width: 1180px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin: 1.4rem 0 0;
  color: #eef1ff;
  font-size: 0.95rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(245px, 300px) minmax(0, 1fr);
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem;
}

.toc {
  align-self: start;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-mid);
  border-radius: 4px;
}

.toc h2 {
  margin: 0 0 0.85rem;
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.89rem;
  list-style: none;
}

.toc ol ol {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.1rem;
}

.toc li {
  margin: 0.22rem 0;
}

.toc a {
  color: #303344;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus {
  color: var(--brand-mid);
  text-decoration: underline;
}

main {
  min-width: 0;
  padding: 2.25rem clamp(1.25rem, 4vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(22, 20, 95, 0.06);
}

section {
  scroll-margin-top: 1rem;
}

section + section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

h2,
h3,
h4 {
  color: var(--brand-dark);
  line-height: 1.25;
}

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

h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.3rem;
}

h4 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.05rem;
}

p,
ul,
ol {
  margin-top: 0.55rem;
  margin-bottom: 0.9rem;
}

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

.lead {
  margin-top: 0;
  color: #343748;
  font-size: 1.08rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  background: var(--soft-blue);
  border: 1px solid #ccd2ee;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
}

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: var(--soft-blue);
  border-left: 4px solid var(--brand-light);
  border-radius: 2px;
}

.callout--check {
  background: var(--soft-green);
  border-left-color: #34845d;
}

.callout--caution {
  background: var(--soft-amber);
  border-left-color: #b87814;
}

.callout--scope {
  background: var(--soft-red);
  border-left-color: #a74c4c;
}

.callout__title {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--brand-dark);
  font-weight: 700;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.3rem 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow li {
  position: relative;
  margin: 0;
  padding: 1rem;
  background: #f8f8fb;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-mid);
  border-radius: 3px;
}

.workflow li::before {
  counter-increment: workflow;
  content: counter(workflow);
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  margin-bottom: 0.55rem;
  background: var(--brand-dark);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.65rem;
  text-align: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0 1.4rem;
}

.timeline > div {
  padding: 0.85rem;
  background: var(--soft-blue);
  border: 1px solid #ccd2ee;
  border-radius: 3px;
}

.timeline strong {
  display: block;
  color: var(--brand-dark);
}

.steps {
  padding-left: 1.4rem;
}

.steps > li {
  padding-left: 0.35rem;
}

.steps > li::marker {
  color: var(--brand-mid);
  font-weight: 700;
}

.table-wrap {
  margin: 1rem 0 1.4rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

caption {
  padding: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: left;
}

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

th {
  background: var(--brand-dark);
  color: #fff;
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background: #f8f8fa;
}

.wide-table {
  font-size: 0.86rem;
}

.status {
  display: inline-block;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
  white-space: nowrap;
}

.status--normal {
  background: #dff1e6;
  color: #1f6746;
}

.status--manual {
  background: #fff0ce;
  color: #82530b;
}

.status--automatic {
  background: #e4e8fa;
  color: var(--brand-dark);
}

figure {
  margin: 1.5rem 0 1.8rem;
  padding: 0.7rem;
  background: #f7f7fa;
  border: 1px solid var(--line);
  border-radius: 3px;
}

figure a {
  display: block;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #cfd2dc;
}

figcaption {
  padding: 0.65rem 0.2rem 0.1rem;
  color: var(--muted);
  font-size: 0.87rem;
}

.example {
  margin: 1.2rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid #cfd4e8;
  border-radius: 3px;
}

.example h3,
.example h4 {
  margin-top: 0;
}

.formula {
  padding: 0.7rem 0.85rem;
  background: #f3f4f8;
  border: 1px solid var(--line);
  font-weight: 700;
}

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

.checklist li {
  position: relative;
  padding-left: 1.8rem;
}

.checklist li::before {
  content: "\2610";
  position: absolute;
  left: 0;
  color: var(--brand-mid);
  font-size: 1.15rem;
  line-height: 1.35;
}

.back-to-top {
  margin-top: 1.5rem;
  font-size: 0.88rem;
}

.page-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    max-height: none;
  }

  .workflow,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .masthead__inner,
  .layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  .workflow,
  .timeline {
    grid-template-columns: 1fr;
  }
}

@page {
  size: A4;
  margin: 16mm 14mm 17mm;
}

@media print {
  :root {
    --page: #fff;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  .masthead {
    border-bottom-width: 3px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .masthead__inner {
    padding: 17mm 5mm 12mm;
  }

  .masthead h1 {
    font-size: 27pt;
  }

  .layout {
    display: block;
    max-width: none;
    padding: 0;
  }

  .toc {
    position: static;
    max-height: none;
    margin: 10mm 0 12mm;
    page-break-after: always;
  }

  main {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  section + section {
    margin-top: 10mm;
    padding-top: 7mm;
  }

  h2,
  h3,
  h4 {
    break-after: avoid;
    break-inside: avoid;
  }

  figure,
  table,
  .callout,
  .example,
  .workflow,
  .timeline {
    break-inside: avoid;
  }

  .workflow {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    font-size: 8.5pt;
  }

  .wide-table {
    font-size: 7.5pt;
  }

  th {
    background: #e8e8ee !important;
    color: #000 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .status,
  .callout,
  .workflow li,
  .timeline > div {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .quick-links a {
    padding: 0;
    background: none;
    border: 0;
  }

  .quick-links a::after {
    content: " (" attr(href) ")";
    color: #444;
    font-weight: 400;
  }

  figure a[href]::after,
  .back-to-top,
  .screen-only {
    display: none;
  }

  figure a {
    display: block;
  }

  .page-footer {
    padding: 10mm 0 0;
  }
}

.brand{width:210px;height:auto;margin-bottom:1.5rem}.masthead{border-bottom-color:#ed6c78}h1,h2,h3,h4{font-family:Montserrat,Arial,sans-serif}.library{max-width:1060px;margin:2rem auto;padding:2rem}.guide-card{padding:1.75rem;border:1px solid var(--line);border-left:5px solid #ed6c78;margin:1.5rem 0}.guide-card .eyebrow{color:var(--brand-dark)}.primary-link{font-weight:700}.muted{color:var(--muted)}.document-meta{align-items:center}.chapter-nav{margin:0 0 1.5rem}.summary-line{font-weight:700;color:var(--brand-dark)}@media(max-width:560px){.library{margin:1rem;padding:1.25rem}}

.skip-link{position:absolute;left:1rem;top:-6rem;padding:.8rem;background:#fff;color:#2d4f7a;z-index:100}.skip-link:focus{top:1rem}a:focus-visible{outline:3px solid #ed6c78;outline-offset:3px}nav.toc a{font-size:.9rem}.workflow li{font-size:.95rem}@media print{.skip-link{display:none}.masthead__inner{padding:8mm 5mm}.masthead h1{font-size:25pt}.brand{width:160px;margin-bottom:5mm}.toc{page-break-after:auto;font-size:9pt;margin-bottom:8mm}.toc ol{columns:2}.toc li{break-inside:avoid}figure{padding:2mm}figure img{max-height:145mm;object-fit:contain}table{break-inside:auto}tr{break-inside:avoid}thead{display:table-header-group}a{color:inherit}.chapter-nav{display:none}}
