:root {
  color-scheme: light;
  color: #172d40;
  background: #f0f5f9;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #0d5686; text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid #2476b1; outline-offset: 3px; }
h1, h2, p { margin: 0 0 .65rem; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.15; }
h2 { line-height: 1.25; }
header {
  padding: 2.5rem max(1.15rem, calc((100% - 76rem) / 2));
  background: #14334b;
  color: #fff;
}
header p { max-width: 68ch; }
.brand { color: #a9daf0; font-weight: 700; letter-spacing: .045em; }
.note { color: #d3e5f1; font-size: .9rem; }
.skip { position: absolute; top: -5rem; background: #fff; padding: .5rem 1rem; }
.skip:focus { top: .5rem; left: .5rem; }
.guide {
  display: grid;
  grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 78rem;
  margin: auto;
  padding: 1.5rem 1rem 4rem;
  align-items: start;
}
nav, section {
  background: #fff;
  border: 1px solid #cfdee9;
  border-radius: .8rem;
}
nav { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; padding: 1.1rem; }
nav h2 { font-size: 1.15rem; }
nav p { font-weight: 700; margin: .9rem 0 .15rem; }
nav ul { padding-left: 1rem; margin: 0; font-size: .92rem; }
nav li { margin-bottom: .24rem; }
section { margin-bottom: 1.25rem; padding: clamp(1rem, 3vw, 2rem); scroll-margin-top: 1rem; }
section:target { border-color: #287ba9; box-shadow: 0 0 0 2px #b8dcef; }
.lead { font-weight: 650; color: #294d66; }
figure { margin: 1.25rem 0; }
figure img { width: 100%; height: auto; display: block; border: 1px solid #cfdee9; border-radius: .5rem; }
figcaption { font-size: .87rem; color: #425a6b; margin-top: .4rem; }
.top { display: inline-block; margin-top: .65rem; font-size: .9rem; }
code { overflow-wrap: anywhere; }
main { min-width:0; }
[hidden] { display:none !important; }
nav ol { padding-left:1.3rem; font-size:.9rem; }
nav label { display:block; margin-top:1rem; font-weight:600; font-size:.9rem; }
#help-search { display:block; width:100%; min-width:0; font:inherit; padding:.55rem; border:1px solid #9bb4c8; border-radius:.4rem; }
#help-search-status { font-size:.85rem; font-weight:400; }
h3 { font-size:1.12rem; margin:1.35rem 0 .5rem; line-height:1.4; }
li { margin-bottom:.55rem; }
.workflow { border-left:3px solid #2476b1; padding-left:1rem; margin:1rem 0; }
.workflow ol { padding-left:1.3rem; }
.result,.callout,.example { background:#edf5fa; padding:.8rem; border-radius:.4rem; }
.example { border-left:3px solid #6b8a9e; }
section p,section li { overflow-wrap:anywhere; }
th:first-child { width:31%; }

@media (max-width: 730px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  nav { position: static; max-height: none; }
  nav ol { max-height:18rem; overflow:auto; padding-right:.4rem; }
  .workflow { padding-left:.6rem; }
  th,td { padding:.35rem; }
}

@media print {
  header { color: #172d40; background: #fff; padding: 0; }
  .brand, .note { color: inherit; }
  .guide { display: block; padding: 0; }
  nav { position: static; max-height: none; overflow: visible; }
  section { border: 0; padding: .75rem 0; box-shadow: none; }
  figure { break-inside: avoid; }
  .top { display: none; }
  #help-search,nav label,#help-search-status { display:none; }
  nav ol { max-height:none; overflow:visible; }
}

/* Matrix is readable in narrow windows as well as printed instructions. */
table { width:100%; border-collapse:collapse; font-size:.92rem; table-layout:fixed; }
th,td { border-bottom:1px solid #cfdee9; padding:.45rem; text-align:left; vertical-align:top; overflow-wrap:anywhere; }
th { background:#e5f0fd; }
caption { text-align:left; font-weight:700; margin:.7rem 0; }
tbody tr:nth-child(even) { background:#f5f9fd; }

.help-image-viewer { width:min(96vw,1800px);max-width:96vw;max-height:95vh;border:1px solid #b9cee4;border-radius:10px;padding:12px;background:#fff; }
.help-image-viewer::backdrop { background:#10243bc9; }
.help-image-viewer button { position:sticky;top:0;display:block;margin-left:auto;padding:10px 16px;background:#245aaa;color:white;border:0;border-radius:6px;cursor:pointer;font:inherit; }
.help-image-viewer img { display:block;max-width:100%;height:auto;margin:10px auto; }
