.staff-reference { max-width: 820px; margin: 0 auto; overflow-wrap: anywhere; }
html { scroll-padding-top: 100px; }
.staff-reference *, .top *, .staff-footer * { letter-spacing: 0; }
.top .nav a:not(.tool) { display: inline-flex; align-items: center; min-height: 44px; }
.staff-reference h1 { font-size: 36px; font-weight: 500; line-height: 1.18; }
.staff-reference h2 { font-size: 23px; font-weight: 600; }
.staff-reference .reference-meta, .staff-reference .source, .staff-reference .example-label { color: #535c63; font-size: 13px; }
.staff-reference .lede { font-size: 18px; }
.staff-reference section { padding: 8px 0 26px; border-top: 1px solid var(--line); }
.staff-reference p { line-height: 1.65; }
.staff-reference .example-label { font-family: var(--mono); }
.resource-list { padding: 0 !important; list-style: none; }
.resource-list li { margin: 0; border-bottom: 1px solid var(--line); }
.resource-list a { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 20px 0; color: var(--ink); text-decoration: none; }
.resource-list a:hover { background: #e8f3ef; }
.resource-code { color: var(--green); font: 600 17px var(--mono); padding-top: 3px; }
.resource-list small { display: block; color: #535c63; font-size: 14px; margin-top: 6px; }
.plain-links { padding-left: 20px; }
.plain-links a { display: inline-block; padding: 7px 0; }
.scope-note { border-top: 1px solid var(--line); padding-top: 24px; }
.decision-control { border-left: 3px solid var(--green); padding: 4px 0 4px 18px; margin: 24px 0; }
.decision-control label { display: block; font-weight: 600; margin-bottom: 8px; }
select { width: 100%; min-height: 46px; padding: 8px 32px 8px 10px; font-size: 16px; border: 1px solid #6a747c; border-radius: 3px; color: var(--ink); background: white; }
.decision-result { min-height: 52px; margin: 12px 0 0; }
.decision table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 20px 0; }
.decision caption { text-align: left; font-size: 14px; margin-bottom: 8px; color: #535c63; }
.decision th, .decision td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-size: 15px; }
.decision th:first-child { width: 34%; }
.decision thead { background: #e8edef; }
.decision td p { margin: 6px 0 0; font-size: 15px; }
.decision tr[data-selected] { background: #e8f3ef; box-shadow: inset 3px 0 var(--green); }
.related { display: flex; flex-wrap: wrap; gap: 12px 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.related a { padding: 8px 0; }
.staff-reference .related a { border: 0; background: none; padding: 8px 0; text-decoration: underline; }
.quiz-progress { font-family: var(--mono); font-size: 14px !important; }
.quiz-case { padding-bottom: 24px; }
.quiz-case h2 { margin: 22px 0 16px; }
.quiz-case fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz-case legend { padding: 0; margin-bottom: 14px; font-size: 17px; }
.answer-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin: 8px 0; border: 1px solid #8b949b; border-radius: 3px; background: white; cursor: pointer; }
.answer-option:hover, .answer-option:has(input:checked) { background: #e8f3ef; border-color: var(--green); }
.answer-option:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 3px; }
.answer-option input { flex: 0 0 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); }
.answer-option:has(input:disabled) { cursor: default; }
.case-result { margin: 12px 0; font-weight: 600; }
.case-result:empty { display: none; }
.case-result[data-correct="true"] { color: #1f5b4b; }
.case-result[data-correct="false"] { color: #9a2d17; }
.answer-detail { border-left: 3px solid var(--line); padding-left: 14px; margin-top: 16px; }
.answer-detail summary { cursor: pointer; padding: 10px 0; color: var(--green); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.quiz-actions button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: white; font-size: 16px; cursor: pointer; }
.quiz-actions button.secondary { background: white; color: var(--green); }
.quiz-actions button:hover { background: #143d32; color: white; }
.quiz-actions button:disabled { opacity: .55; cursor: default; }
[hidden] { display: none !important; }
.staff-footer { border-top: 1px solid var(--line); padding: 22px 0 32px; font-size: 14px; }
.staff-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.staff-footer p { margin: 6px 0; }
.staff-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.staff-footer a { padding: 6px 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 20; background: white; padding: 12px; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
@media (max-width: 600px) {
  .staff-reference h1 { font-size: 28px; }
  .staff-reference h2 { font-size: 21px; }
  .top .wrap { gap: 12px; }
  .top .nav { display: flex; gap: 16px; flex-wrap: wrap; }
  .resource-list a { grid-template-columns: 1fr; gap: 6px; }
  .decision th, .decision td { padding: 12px 7px; }
  .decision th:first-child { width: 38%; }
}
@media (max-width: 480px) {
  .decision thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .decision tbody, .decision tr, .decision th, .decision td { display: block; width: 100%; }
  .decision th:first-child { width: 100%; border-bottom: 0; padding-bottom: 0; }
  .decision td { padding-top: 8px; }
}
@media print {
  .top, .staff-footer, .skip-link, .decision-control, .quiz-actions { display: none !important; }
  html, body { background: white; color: black; }
  .wrap { width: 100%; }
  .page { padding: 0; }
  .staff-reference { max-width: none; }
  .quiz-case, tr { break-inside: avoid; }
}
