:root {
  color-scheme: light;
  --ink: #16221f;
  --muted: #61706b;
  --line: #d8dfdc;
  --paper: #ffffff;
  --wash: #f1f5f2;
  --accent: #007f73;
  --accent-dark: #00655d;
  --mint: #dff2ec;
  --warning: #fff3cf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 16px/1.55 Arial, sans-serif; }
a { color: var(--accent-dark); }
.sop-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px max(20px, calc((100vw - 1120px) / 2)); background: #050505; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 6px; }
.back-link { color: #fff; text-decoration: none; border-bottom: 1px solid #8fa39c; }
.sop-shell { width: min(1120px, calc(100% - 32px)); margin: 32px auto 60px; }
.title-block { padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 6px; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
h1 { max-width: 760px; margin: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; }
.title-block > p:not(.eyebrow) { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 19px; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.link-row a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 5px; text-decoration: none; font-weight: 700; }
.link-row .primary-link { background: var(--accent); color: #fff; }
.toc { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.toc a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.sop-section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.section-heading > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
h2 { margin: 0; font-size: 28px; line-height: 1.15; }
h3 { margin: 0 0 12px; font-size: 18px; }
.steps { max-width: 880px; margin: 0; padding-left: 24px; }
.steps li { padding: 4px 0 8px 8px; }
.steps.compact li { padding-bottom: 4px; }
.annotated-shot { margin: 28px 0 0; }
.image-wrap { position: relative; overflow: hidden; border: 1px solid #c8d0cd; border-radius: 6px; background: #fff; box-shadow: 0 10px 30px rgba(23, 34, 31, 0.09); }
.image-wrap img { display: block; width: 100%; height: auto; }
.image-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.image-wrap svg circle { fill: var(--accent); stroke: #fff; stroke-width: 5px; }
.image-wrap svg text { fill: #fff; font: 700 22px Arial, sans-serif; text-anchor: middle; }
.image-wrap svg line { stroke: var(--accent); stroke-width: 6px; }
.image-wrap svg marker path { fill: var(--accent); }
figcaption { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin-top: 12px; color: var(--muted); font-size: 14px; }
figcaption span { display: flex; align-items: flex-start; gap: 8px; }
figcaption b { display: inline-grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.two-column { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.callout, .safety-note { padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--paper); }
.manager-access-note { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 5px; background: var(--paper); }
.manager-access-note p { margin: 6px 0 0; color: var(--muted); }
.callout.success { background: var(--mint); }
.callout p, .safety-note p { margin: 6px 0 0; color: var(--muted); }
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.status-list div { padding: 16px 18px; background: var(--paper); }
.status-list dt { font-weight: 700; }
.status-list dd { margin: 4px 0 0; color: var(--muted); }
.help-list { display: grid; gap: 8px; }
details { border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
summary { padding: 14px 16px; cursor: pointer; font-weight: 700; }
details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }
.safety-note { margin-top: 24px; border-left-color: #a86c00; background: var(--warning); }
footer { padding: 28px 16px; border-top: 1px solid #2a2a2a; background: #050505; color: #fff; text-align: center; font-size: 13px; }

@media (max-width: 760px) {
  .sop-shell { width: min(100% - 22px, 1120px); margin-top: 12px; }
  .title-block { padding-top: 26px; }
  .two-column, .notice-grid, .status-list, figcaption { grid-template-columns: 1fr; }
  .annotated-shot { margin-left: -11px; margin-right: -11px; }
  .image-wrap { border-radius: 0; }
}

@media print {
  .sop-header, .toc { position: static; }
  body { background: #fff; }
  .sop-shell { width: 100%; margin: 0; }
  .image-wrap { box-shadow: none; break-inside: avoid; }
  .sop-section { break-inside: auto; }
}
