/* THE AUDIT — worksheet. Print-first: black on white, US Letter, no colour
   dependency, real ruled fill-in lines instead of rows of underscores. */

:root {
  --ink: #111111;
  --rule: #000000;
  --soft: #555555;
  --hair: #bbbbbb;
}

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

body {
  margin: 0;
  background: #e9edf3;
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11pt;
  line-height: 1.45;
}

.sheet {
  background: #fff;
  width: 8.5in;
  max-width: 100%;
  margin: 1.5rem auto;
  padding: 0.7in 0.75in;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}

/* ---------- headings ---------- */

.sheet-head {
  border-bottom: 2px solid var(--rule);
  padding-bottom: 0.7rem;
  margin-bottom: 1.4rem;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20pt;
  line-height: 1.1;
  margin: 0 0 0.3rem;
}

.sheet-head p { margin: 0; color: var(--soft); font-size: 10pt; }

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 14pt;
  margin: 0 0 0.15rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 11.5pt;
  margin: 1rem 0 0.35rem;
}

section { margin: 0 0 1.6rem; break-inside: auto; }

.intro { margin: 0 0 0.9rem; color: var(--soft); font-size: 10pt; }

p { margin: 0 0 0.6rem; }

/* ---------- fill-in blocks ---------- */

.block {
  border: 1px solid var(--hair);
  padding: 0.5rem 0.7rem 0.6rem;
  margin: 0 0 0.55rem;
  break-inside: avoid;
}

.block-title {
  font-weight: 600;
  font-size: 10pt;
  margin: 0 0 0.45rem;
}

.field { margin: 0 0 0.55rem; }

.field:last-child { margin-bottom: 0; }

.field .label {
  display: block;
  font-size: 9.5pt;
  color: var(--soft);
  margin-bottom: 0.1rem;
}

/* the writing line itself */
.line {
  display: block;
  border-bottom: 1px solid var(--rule);
  height: 1.15rem;
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.row > .field { flex: 1 1 10rem; margin-bottom: 0.55rem; }

.circle {
  font-size: 9.5pt;
  color: var(--ink);
}

/* ---------- checkbox lists ---------- */

ul.checks {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  columns: 2;
  column-gap: 1.4rem;
}

ul.checks.one-col { columns: 1; }

ul.checks li {
  break-inside: avoid;
  margin: 0 0 0.35rem;
  padding-left: 1.25rem;
  position: relative;
  font-size: 10pt;
}

ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 0.72em;
  height: 0.72em;
  border: 1px solid var(--rule);
}

ul.plain {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
  font-size: 10pt;
}

ul.plain li { margin: 0 0 0.25rem; }

ol.steps {
  margin: 0 0 0.8rem;
  padding-left: 1.3rem;
}

ol.steps li { margin: 0 0 0.4rem; }

/* ---------- callouts ---------- */

.rule-of-thumb {
  border-left: 3px solid var(--rule);
  padding: 0.4rem 0 0.4rem 0.7rem;
  margin: 0.6rem 0 0.9rem;
  font-size: 10pt;
}

.rule-of-thumb strong { font-weight: 600; }

.scope {
  border: 1px solid var(--rule);
  padding: 0.7rem;
  font-size: 10.5pt;
  line-height: 2.1;
}

.blank {
  display: inline-block;
  border-bottom: 1px solid var(--rule);
  min-width: 7rem;
}

.blank.short { min-width: 4rem; }

/* ---------- days ---------- */

.days { list-style: none; margin: 0 0 0.9rem; padding: 0; }
.days li { margin: 0 0 0.3rem; font-size: 10pt; }
.days .when { font-weight: 600; }

/* ---------- footer ---------- */

.sheet-foot {
  border-top: 1px solid var(--rule);
  margin-top: 1.2rem;
  padding-top: 0.6rem;
  font-size: 9pt;
  color: var(--soft);
}

.sheet-foot p { margin: 0 0 0.2rem; }
.sheet-foot a { color: inherit; }

.backlink {
  display: block;
  width: 8.5in;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  font-size: 10pt;
}

/* ---------- print ---------- */

@page {
  size: letter;
  margin: 0.6in;
}

@media print {
  body { background: #fff; font-size: 10.5pt; }
  .sheet {
    width: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .backlink { display: none; }
  h2 { break-after: avoid; }
  h3 { break-after: avoid; }
  a { text-decoration: none; color: inherit; }
}
