:root {
  color-scheme: light;
  --ink: #1b211b;
  --muted: #4e564c;
  --line: #dce3d8;
  --grid: #e6ebe1;
  --lime: #caf648;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0;
  padding-bottom: calc(8rem + env(safe-area-inset-bottom));
  background: linear-gradient(90deg, var(--grid) 1px, transparent 1px),
              linear-gradient(var(--grid) 1px, #f7f9f4 1px);
  background-size: 26px 26px;
  color: var(--ink);
  font: 1.125rem/1.65 Georgia, "Times New Roman", serif;
}
a { color: #2e4c19; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible, .sop-table:focus-visible { outline: 3px solid #56781c; outline-offset: 4px; }
.skip { position: fixed; top: -6rem; left: 1rem; z-index: 5; padding: .55rem .8rem; background: white; }
.skip:focus { top: .5rem; }
.sop-header, .sop-footer, .sop-kicker, .sop-contents, .sop-back-row { font-family: system-ui, sans-serif; }
.sop-header { position: sticky; z-index: 3; top: 0; background: white; border-bottom: 1px solid var(--line); }
.sop-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: min(100% - 1.5rem, 58rem); min-height: 3.5rem; margin-inline: auto;
}
.brand { text-decoration: none; letter-spacing: -.055em; color: var(--ink); font-weight: 900; }
.brand span { color: #597b1d; }
.brand small { font-size: .65rem; letter-spacing: .12em; }
.sop-close { display: inline-flex; gap: .45rem; align-items: center; font-size: .92rem; font-weight: 700; color: var(--ink); }
.sop-close span { font-size: 1.45em; line-height: 1; text-decoration: none; }
progress { display: block; position: absolute; bottom: -1px; width: 100%; height: 4px; border: 0; appearance: none; background: transparent; }
progress[hidden] { display: none; }
progress::-webkit-progress-bar { background: transparent; }
progress::-webkit-progress-value { background: #8aaf26; }
progress::-moz-progress-bar { background: #8aaf26; }
.sop-paper {
  width: min(100% - 1.5rem, 56rem); margin: clamp(.75rem, 3vw, 2rem) auto 0;
  padding: clamp(1rem, 5vw, 4.25rem); background: #fff; border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.sop-kicker { font-size: .75rem; line-height: 1.4; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #41592f; }
.sop-back-row { margin: 0 0 1.7rem; font-size: .92rem; }
h1, h2, h3, h4 { line-height: 1.21; }
h1 { max-width: 23ch; font-size: clamp(2rem, 6vw, 3.4rem); margin: .4rem 0 .85rem; letter-spacing: -.04em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 4vw, 2rem); letter-spacing: -.025em; }
h3 { margin: 1.55rem 0 .55rem; font-size: 1.24rem; }
h4 { margin: 1.2rem 0 .5rem; font-size: 1.1rem; }
p { margin: .65rem 0; }
.sop-intro { color: var(--muted); }
.sop-contents, .sop-subtoc { margin-top: 1.45rem; padding: .85rem 1.05rem; background: #f6f8f3; border: 1px solid var(--line); }
.sop-contents h2 { font-size: 1.05rem; margin: 0; }
.sop-contents ul, .sop-subtoc ul { margin: .45rem 0 0; padding-inline-start: 1.25rem; }
.sop-contents a { display: inline-block; padding-block: .18rem; font-size: .93rem; }
.sop-subtoc { margin: 0 0 1.25rem; }
.sop-subtoc summary { cursor: pointer; font-weight: 700; }
.sop-subtoc li { font-size: 1rem; }
.sop-chapter { border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.65rem; }
.sop-tracking { padding: 0; list-style: none; margin: 1.1rem 0 0 .9rem; border-left: 2px solid #abc47d; }
.sop-tracking li { position: relative; padding: 0 0 1.25rem 1.75rem; }
.sop-tracking li:last-child { padding-bottom: 0; }
.sop-tracking h3 { margin: 0 0 .25rem; }
.sop-tracking p { margin: 0; }
.sop-pin {
  font: 800 .85rem/1 system-ui, sans-serif; position: absolute; left: -1rem; top: -.1rem;
  width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  border-radius: 50%; background: #edf7d6; color: #36531a; border: 1px solid #789a43;
}
.sop-source ul, .sop-source ol, .sop-chapter > ul { padding-left: 1.5rem; }
.sop-source li + li, .sop-chapter > ul li + li { margin-top: .3rem; }
.sop-source .sop-sublist { margin-left: 1rem; }
.sop-source hr { border: 0; border-top: 1px solid var(--line); margin-block: 1.4rem; }
.sop-table { max-width: 100%; overflow-x: auto; margin-block: 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.45; }
td, th { border: 1px solid var(--line); padding: .5rem .65rem; vertical-align: top; text-align: start; overflow-wrap: normal; }
th { background: #eef3e8; }
td p, th p { margin: 0; }
.sop-footer { position: fixed; z-index: 3; inset: auto 0 0; background: #212820; padding: .55rem 1rem max(.55rem, env(safe-area-inset-bottom)); color: white; }
.sop-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .15rem .95rem; }
.sop-apply { background: var(--lime); color: #1a2410; line-height: 1.2; padding: .72rem 1.25rem; min-height: 44px; display: inline-grid; place-items: center; text-decoration: none; border-radius: .55rem; font-weight: 800; font-size: 1rem; }
.sop-login { color: white; font-size: .88rem; line-height: 1.2; padding: .55rem .25rem; }
.sop-footer a:focus-visible { outline-color: white; }
@media (max-width: 620px) {
  body { font-size: 1.05rem; }
  .sop-paper { width: calc(100% - 1rem); }
  .sop-apply { width: 100%; }
  th, td { min-width: 5rem; }
}
@media print {
  body { background: none; padding: 0; }
  .sop-header, .sop-footer, .sop-back-row, .sop-contents, .sop-subtoc { display: none; }
  .sop-paper { width: 100%; border: 0; padding: 0; margin: 0; }
}
