:root {
  --template-paper: #f6f1e5;
  --template-white: #fffdf7;
  --template-ink: #101510;
  --template-ink-soft: #50564f;
  --template-forest: #1b4d3e;
  --template-forest-dark: #10372c;
  --template-amber: #d6911c;
  --template-line: #c9c1a8;
  --template-font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --template-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --template-gutter: clamp(18px, 4vw, 44px);
  --template-wide: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(27, 77, 62, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 77, 62, .045) 1px, transparent 1px),
    var(--template-paper);
  background-size: 26px 26px;
  color: var(--template-ink);
  font-family: var(--template-font);
  font-size: 17px;
  line-height: 1.58;
}

a {
  color: inherit;
}

.template-wrap {
  width: min(var(--template-wide), calc(100% - (2 * var(--template-gutter))));
  margin-inline: auto;
}

.template-hero {
  padding: clamp(40px, 5vw, 68px) 0;
  border-top: 1px solid var(--template-line);
  border-bottom: 2px solid var(--template-ink);
}

.template-hero__grid {
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
}

.template-eyebrow,
.template-label {
  margin: 0 0 15px;
  color: var(--template-forest);
  font-family: var(--template-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .085em;
  line-height: 1.4;
  text-transform: uppercase;
}

.template-hero h1 {
  max-width: 15ch;
  margin: 0 0 24px;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.template-hero__deck {
  max-width: 720px;
  margin: 0;
  color: var(--template-ink-soft);
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: -.018em;
  line-height: 1.38;
}

.template-hero__side {
  padding: clamp(22px, 3vw, 32px);
  background: var(--template-forest);
  color: var(--template-paper);
  border: 2px solid var(--template-ink);
  box-shadow: 7px 7px 0 var(--template-ink);
}

.template-hero__side .template-label {
  color: #b8d5c8;
}

.template-hero__side strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(21px, 2.5vw, 28px);
  letter-spacing: -.02em;
  line-height: 1.18;
}

.template-hero__side p:last-child {
  margin: 0;
  color: #e2ebe5;
  font-size: 15px;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.template-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--template-forest);
  color: var(--template-paper);
  border: 2px solid var(--template-ink);
  box-shadow: 4px 4px 0 var(--template-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.template-button:hover,
.template-button:focus-visible {
  background: var(--template-forest-dark);
}

.template-button--secondary {
  background: var(--template-white);
  color: var(--template-ink);
}

.template-main {
  padding: clamp(46px, 6vw, 72px) 0;
}

.template-intro {
  display: grid;
  gap: 28px 60px;
  margin-bottom: 38px;
}

.template-intro h2 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.04em;
  line-height: 1.03;
}

.template-intro p {
  max-width: 660px;
  margin: 0;
  color: var(--template-ink-soft);
}

.report-sheet {
  padding: clamp(22px, 4vw, 42px);
  background: var(--template-white);
  border: 2px solid var(--template-ink);
  box-shadow: 9px 9px 0 var(--template-ink);
}

.report-sheet__head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--template-ink);
}

.report-sheet__head h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 40px);
  letter-spacing: -.035em;
  line-height: 1.05;
}

.report-sheet__head p {
  margin: 0;
  color: var(--template-ink-soft);
  font-family: var(--template-mono);
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--template-ink);
  border-left: 1px solid var(--template-ink);
}

.report-field {
  min-height: 74px;
  padding: 10px;
  border-right: 1px solid var(--template-ink);
  border-bottom: 1px solid var(--template-ink);
}

.report-field--wide {
  grid-column: span 2;
}

.report-field strong,
.report-block h3 {
  display: block;
  margin: 0 0 8px;
  color: var(--template-forest);
  font-family: var(--template-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.3;
  text-transform: uppercase;
}

.report-line {
  display: block;
  min-height: 18px;
  border-bottom: 1px solid #989b94;
}

.report-sheet__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.report-block {
  min-height: 118px;
  padding: 10px;
  border: 1px solid var(--template-ink);
}

.report-block--full {
  grid-column: 1 / -1;
  min-height: 92px;
}

.report-lines {
  display: grid;
  gap: 8px;
}

.report-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 12px;
}

.report-table th,
.report-table td {
  height: 34px;
  padding: 6px;
  border: 1px solid var(--template-ink);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  color: var(--template-forest);
  font-family: var(--template-mono);
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.report-sheet__note {
  margin: 12px 0 0;
  color: var(--template-ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.template-explanation {
  padding: clamp(46px, 6vw, 72px) 0;
  border-top: 1px solid var(--template-line);
}

.template-explanation__grid {
  display: grid;
  gap: 24px;
}

.template-explanation h2 {
  max-width: 17ch;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.04em;
  line-height: 1.03;
}

.template-explanation p {
  max-width: 720px;
  color: var(--template-ink-soft);
}

.template-checklist {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--template-ink);
  list-style: none;
}

.template-checklist li {
  padding: 18px 20px;
  background: var(--template-white);
}

.template-checklist strong {
  display: block;
  margin-bottom: 5px;
}

.template-checklist p {
  margin: 0;
  font-size: 15px;
}

.template-limit {
  margin-top: 30px;
  padding: 22px;
  background: #f7e7c2;
  border: 2px solid var(--template-ink);
}

.template-limit h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.template-limit p {
  margin: 0;
}

.template-next {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.template-next a {
  padding: 20px;
  background: var(--template-white);
  border: 2px solid var(--template-ink);
  color: var(--template-forest);
  font-weight: 700;
  text-decoration: none;
}

.template-next a:hover,
.template-next a:focus-visible {
  box-shadow: 4px 4px 0 var(--template-amber);
}

@media (min-width: 760px) {
  .template-hero__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  }

  .template-intro,
  .template-explanation__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    align-items: start;
  }

  .template-next {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .report-sheet {
    overflow-x: auto;
  }

  .report-sheet__inner {
    min-width: 680px;
  }
}

@page {
  size: A4 portrait;
  margin: 8mm;
}

@media print {
  body {
    min-width: 0;
    background: #fff;
    font-size: 9pt;
  }

  .global-header,
  .global-breadcrumbs,
  .global-footer,
  .template-hero,
  .template-intro,
  .template-explanation {
    display: none !important;
  }

  .template-main,
  .template-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .report-sheet {
    width: 100%;
    padding: 6mm;
    border: 1.5pt solid #000;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-sheet__head h2 {
    font-size: 20pt;
  }

  .report-field {
    min-height: 15mm;
    padding: 2.2mm;
  }

  .report-block {
    min-height: 25mm;
    padding: 2.2mm;
  }

  .report-block--full {
    min-height: 19mm;
  }

  .report-table {
    margin-top: 3mm;
    font-size: 8pt;
  }

  .report-table th,
  .report-table td {
    height: 8mm;
    padding: 1.5mm;
  }

  .inspection-template .report-block {
    min-height: 30mm;
  }

  .inspection-template .report-block--full {
    min-height: 24mm;
  }

  .inspection-template .report-table th,
  .inspection-template .report-table td {
    height: 10mm;
  }
}
