/* Medoridge — clinic administration handbook */

:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --paper-deep: #efece4;
  --sheet: #ffffff;
  --ink: #1b2826;
  --muted: #4c5b58;
  --teal: #0f5257;
  --teal-deep: #0a3b3f;
  --teal-wash: #e2ecea;
  --rule: #cdd6d2;
  --rule-strong: #8fa5a0;
  --control: #6b807b;
  --coral: #a8402b;
  --coral-wash: #f8e9e4;
  --flag: #6b4e00;
  --flag-wash: #fff4cc;
  --focus: #0a3b3f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.35rem; }

p, ul, ol { margin: 0 0 1em; }

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--teal-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Review-only markers (local build) */
.review-banner {
  background: var(--flag-wash);
  color: var(--flag);
  border-bottom: 1px solid #e3cf86;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.review-banner p { margin: 0; }

.pending {
  display: inline;
  background: var(--flag-wash);
  color: var(--flag);
  border: 1px dashed #c9a93a;
  padding: 0.05em 0.35em;
  font-family: var(--sans);
  font-size: 0.92em;
  font-weight: 600;
  white-space: normal;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { width: 1.6rem; height: 1.6rem; }
.wordmark small {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.25rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.95rem;
}
.site-nav a { color: var(--ink); text-decoration: none; padding: 0.35rem 0; display: inline-block; }
.site-nav a:hover { color: var(--teal); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; }
.site-nav .nav-enquire { color: var(--teal); font-weight: 600; }

@media (min-width: 56rem) {
  .site-header { position: sticky; top: 0; z-index: 10; }
}

/* Opening */
.opening {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}

.opening .wrap {
  display: grid;
  gap: 2.5rem;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  max-width: var(--measure);
  color: var(--ink);
}

.scope-note {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: var(--measure);
  border-left: 3px solid var(--rule-strong);
  padding-left: 0.9rem;
  margin-top: 1.5rem;
}

.service-index {
  border-top: 3px solid var(--teal);
  background: var(--sheet);
  padding: 1.25rem 1.5rem 1.5rem;
  align-self: start;
}
.service-index h2 {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.service-index ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  counter-reset: svc;
}
.service-index li {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 2rem 1fr;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.service-index li::before {
  content: counter(svc, upper-alpha);
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--teal);
}
.service-index a { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.service-index li p { grid-column: 2; margin: 0.15rem 0 0; font-size: 0.95rem; color: var(--muted); }

.button {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--teal-deep); color: #fff; text-decoration: none; }

@media (min-width: 56rem) {
  .opening .wrap { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 4rem; }
}

/* Chapters with margin numbers */
.chapter {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--rule);
}
.chapter > .wrap { display: grid; gap: 0.5rem 2rem; }

.chapter-no {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--teal);
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--teal);
  width: 3rem;
}

.chapter-intro { max-width: var(--measure); color: var(--muted); }

@media (min-width: 56rem) {
  .chapter > .wrap { grid-template-columns: 8rem minmax(0, 1fr); }
  .chapter-no { font-size: 1.25rem; width: 4rem; }
}

/* Problems */
.situations { list-style: none; padding: 0; margin: 2rem 0 0; }
.situations li {
  display: grid;
  gap: 0.5rem 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.situations li:last-child { border-bottom: 1px solid var(--rule); }
.situations h3 { font-style: italic; font-weight: 500; margin: 0; }
.situations p { margin: 0 0 0.5rem; max-width: var(--measure); }
.situations .addressed { font-size: 0.92rem; color: var(--muted); }

@media (min-width: 56rem) {
  .situations li { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

.label-illustrative {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule-strong);
  padding: 0.1rem 0.45rem;
  margin-bottom: 0.25rem;
}

/* Services */
.service {
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}
.service:first-of-type { margin-top: 1.5rem; }

.service-head { display: flex; gap: 1rem; align-items: baseline; }
.service-letter {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--teal);
}

.service-body { display: grid; gap: 2rem; }

.service-body h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem;
}

.deliverables { padding-left: 1.2rem; max-width: var(--measure); }
.deliverables li { margin-bottom: 0.4rem; }
.deliverables li::marker { color: var(--teal); }

.service-aside figure { margin: 0 0 1.5rem; background: var(--sheet); border: 1px solid var(--rule); padding: 1rem; }
@media (max-width: 30rem) { .service-aside figure { padding: 0.5rem; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); } }
.service-aside figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

.in-practice {
  border-left: 3px solid var(--teal);
  padding: 0.25rem 0 0.25rem 1rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0;
}
.in-practice span {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

details {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 1.5rem;
  max-width: var(--measure);
}
summary {
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--teal);
}
summary:hover { color: var(--teal-deep); }
details[open] summary { border-bottom: 1px dashed var(--rule); margin-bottom: 0.75rem; }
details ul { padding-left: 1.2rem; }

.service-limit { font-size: 0.92rem; color: var(--muted); max-width: var(--measure); margin-top: 1.25rem; }

@media (min-width: 56rem) {
  .service-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; }
}

/* Diagram drawing */
.diagram text { font-family: var(--sans); font-size: 14px; fill: var(--ink); }
.diagram .t-strong { font-weight: 600; }
.diagram .t-muted { fill: var(--muted); font-size: 13px; }
.diagram .box { fill: var(--sheet); stroke: var(--rule-strong); stroke-width: 1.25; }
.diagram .box-key { fill: var(--teal-wash); stroke: var(--teal); stroke-width: 1.5; }
.diagram .line { stroke: var(--teal); stroke-width: 1.5; fill: none; }
.diagram .line-soft { stroke: var(--rule-strong); stroke-width: 1.25; fill: none; stroke-dasharray: 4 4; }
.diagram .dot { fill: var(--teal); }
.diagram .arrow { fill: var(--teal); }

/* Engagement steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: step; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--teal); padding-top: 0.9rem; }
.steps li::before {
  content: "Step " counter(step);
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { font-size: 0.97rem; margin: 0; }

@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }

/* Resource teaser */
.resource-teaser { display: grid; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.sheet-preview {
  background: var(--sheet);
  border: 1px solid var(--rule);
  box-shadow: 6px 6px 0 var(--paper-deep);
  padding: 1.25rem 1.25rem 1.5rem;
  max-width: 22rem;
  font-size: 0.85rem;
}
.sheet-preview p { margin: 0 0 0.75rem; font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.sheet-preview ul { list-style: none; padding: 0; margin: 0; }
.sheet-preview li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.sheet-preview li::before {
  content: "";
  flex: 0 0 0.85rem;
  height: 0.85rem;
  border: 1.5px solid var(--rule-strong);
  margin-top: 0.2rem;
}
.resource-parts { padding-left: 1.2rem; max-width: var(--measure); }
.resource-parts li { margin-bottom: 0.35rem; }

@media (min-width: 56rem) { .resource-teaser { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; } }

/* About */
.about-grid { display: grid; gap: 2rem; margin-top: 1rem; }
.about-grid p { max-width: var(--measure); }
.not-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.not-list li { padding: 0.65rem 0 0.65rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.not-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.25rem;
  width: 0.8rem;
  border-top: 2px solid var(--rule-strong);
}
.about-grid h3 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 56rem) { .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3.5rem; } }

/* Contact */
.contact { background: var(--teal-wash); border-bottom: 0; }
.contact-grid { display: grid; gap: 2rem; margin-top: 1rem; }
.contact-grid p { max-width: var(--measure); }
.include-list { padding-left: 1.2rem; }
.include-list li { margin-bottom: 0.35rem; }

.address-block {
  background: var(--sheet);
  border-top: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.address-block h3 { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.address-block p { margin: 0; }
.address-block .pending { display: inline-block; margin-top: 0.25rem; }
.address-block .address-note { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; }

.warning {
  background: var(--coral-wash);
  border-left: 4px solid var(--coral);
  padding: 1rem 1.25rem;
}
.warning h3 { font-family: var(--sans); font-size: 1rem; color: var(--coral); margin-bottom: 0.4rem; }
.warning p { margin: 0; font-size: 0.97rem; }

.contact-intro .warning { margin: 1.5rem 0; }
.contact-intro .address-block { margin-bottom: 0; }

@media (min-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 3.5rem; } }

/* Enquiry form */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.preview-flag {
  background: var(--flag-wash);
  color: var(--flag);
  border: 1px dashed #c9a93a;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.enquiry-form {
  background: var(--sheet);
  border-top: 3px solid var(--teal);
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 1.75rem;
}
.enquiry-form h3 { margin-bottom: 0.3rem; }
.form-required-note { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .req { color: var(--coral); }
.field .optional { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.field-hint { font-size: 0.9rem; color: var(--muted); margin: -0.1rem 0 0.45rem; }

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--control);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
  min-height: 2.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--teal); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--teal);
}

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field [aria-invalid="true"] { border-color: var(--coral); border-width: 2px; padding: calc(0.65rem - 1px) calc(0.75rem - 1px); }
.field-error {
  color: var(--coral);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0.4rem 0 0;
}
.field-error::before { content: "Error: "; }

.field-count { font-size: 0.85rem; color: var(--muted); text-align: right; margin: 0.3rem 0 0; }
.field-count.is-near { color: var(--coral); font-weight: 600; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error-summary {
  border: 2px solid var(--coral);
  background: var(--coral-wash);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
}
.error-summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.error-summary h4 { font-family: var(--sans); font-size: 1rem; color: var(--coral); margin: 0 0 0.4rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.error-summary a { color: var(--coral); font-weight: 600; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; }
.form-actions .button { border: 0; font: inherit; font-weight: 600; cursor: pointer; min-height: 2.9rem; }
.form-actions .button:disabled { background: var(--rule-strong); color: var(--ink); cursor: not-allowed; }
.form-privacy { font-size: 0.88rem; color: var(--muted); margin: 0; }

.form-status:empty { display: none; }
.form-status { margin-top: 1.25rem; padding: 0.8rem 1rem; font-size: 0.97rem; border-left: 4px solid var(--rule-strong); background: var(--paper); }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-status.is-preview { border-left-color: #c9a93a; background: var(--flag-wash); color: var(--flag); }
.form-status.is-success { border-left-color: var(--teal); background: var(--teal-wash); color: var(--teal-deep); }
.form-status.is-error { border-left-color: var(--coral); background: var(--coral-wash); color: var(--coral); }

.form-noscript { background: var(--sheet); border-left: 3px solid var(--rule-strong); padding: 0.8rem 1rem; margin-top: 1rem; }

/* Footer */
.site-footer { padding: 2rem 0 2.5rem; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--rule); }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer p { margin: 0; max-width: 46rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  margin-top: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
}
.footer-legal a { color: var(--muted); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--teal); }

@media (max-width: 30rem) {
  .footer-legal { flex-direction: column; gap: 0.4rem; }
}

@media (min-width: 56rem) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}

/* Document pages (privacy, audit) */
.doc { padding: clamp(2rem, 5vw, 3.5rem) 0 3.5rem; }
.doc-head { max-width: 46rem; margin-bottom: 2rem; }
.doc-meta { font-size: 0.92rem; color: var(--muted); }
.doc-body { max-width: var(--measure); }
.doc-body h2 { font-size: 1.45rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.doc-body ul { padding-left: 1.2rem; }
.doc-body li { margin-bottom: 0.35rem; }

.summary-box { background: var(--sheet); border-left: 3px solid var(--teal); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.summary-box p:last-child { margin-bottom: 0; }

/* Audit sheet */
.audit { max-width: 52rem; }
.audit h2 { font-size: 1.4rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 2px solid var(--teal); }
.audit h2 span { color: var(--teal); }
.audit .part-intro { max-width: var(--measure); color: var(--muted); }

.fill-fields { display: grid; gap: 0.25rem 2rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.fill-fields li { display: flex; gap: 0.75rem; align-items: flex-end; padding: 0.7rem 0 0.15rem; }
.fill-fields span { white-space: nowrap; font-weight: 600; font-size: 0.95rem; }
.fill-fields li::after { content: ""; flex: 1; border-bottom: 1px solid var(--ink); min-width: 4rem; }
@media (min-width: 40rem) { .fill-fields { grid-template-columns: 1fr 1fr; } }

.audit-note {
  border-left: 4px solid var(--coral);
  background: var(--coral-wash);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  max-width: var(--measure);
}

.how-to { padding-left: 1.3rem; max-width: var(--measure); }
.how-to li { margin-bottom: 0.35rem; }

.table-scroll { overflow-x: auto; margin: 1rem 0; }
.table-scroll:focus-visible { outline-offset: 0; }

.audit table { width: 100%; border-collapse: collapse; background: var(--sheet); font-size: 0.92rem; }
.audit th, .audit td { border: 1px solid var(--rule-strong); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; }
.audit thead th { background: var(--teal-wash); font-size: 0.82rem; }
.audit td.box-cell { text-align: center; width: 3.6rem; }
.audit .box {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--ink);
  vertical-align: middle;
}
.audit .check-no { width: 2.5rem; color: var(--teal); font-family: var(--serif); }
.audit .blank-row td { height: 2.4rem; }
.audit .example-row td { font-style: italic; color: var(--muted); }
.audit-checks { min-width: 0; }
@media (max-width: 30rem) { .audit-checks td.box-cell { width: 2.4rem; padding-left: 0.2rem; padding-right: 0.2rem; } .audit-checks th, .audit-checks td { padding: 0.45rem 0.35rem; } }
.audit-register { min-width: 44rem; }
.audit-find { min-width: 40rem; }
.audit-actions { min-width: 30rem; }

.audit-foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--muted); }
.print-hint { font-size: 0.95rem; color: var(--muted); }
.print-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Print */
@media print {
  @page { margin: 14mm 14mm 16mm; }

  :root { --paper: #fff; --sheet: #fff; --teal-wash: #f1f4f3; --coral-wash: #fff; }
  body { font-size: 10.5pt; line-height: 1.45; background: #fff; color: #000; }

  .skip-link, .review-banner, .site-nav, .print-hint, .no-print { display: none !important; }
  .audit-page .site-footer { display: none; }
  .site-footer ul { display: none; }
  .print-only { display: block; }
  .site-header { position: static; border-bottom: 1px solid #000; }
  .site-header .wrap, .wrap { padding: 0; max-width: none; }
  .wordmark { font-size: 13pt; }

  a { color: #000; text-decoration: none; }
  .doc-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }

  .doc { padding: 6mm 0 0; }
  h1 { font-size: 20pt; }
  .audit h2 { font-size: 13pt; margin-top: 7mm; border-top-color: #000; break-after: avoid; }
  .audit h2 span { color: #000; }

  .table-scroll { overflow: visible; }
  .audit table { font-size: 9pt; min-width: 0 !important; }
  .audit th, .audit td { border-color: #555; padding: 1.6mm 2mm; }
  .audit thead { display: table-header-group; }
  .audit tr { break-inside: avoid; }
  .audit .blank-row td { height: 9mm; }
  .audit .box { border-color: #000; }
  .audit-note { border-left-color: #000; }
  .fill-fields { grid-template-columns: 1fr 1fr; }

  .audit section { break-inside: auto; }
  .pending { border: 1px dashed #000; background: none; color: #000; }
}
