:root {
  color-scheme: light;

  --paper: #f4f5f2;
  --paper-edge: #eceeec;
  --ink: #202428;
  --secondary: #5d646a;
  --rule: #b8bec1;
  --light-rule: #d7dbdc;
  --accent: #263b55;
  --warning: #732a27;
  --outside: #dfe2e1;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--outside);
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  background: var(--outside);
  color: var(--ink);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.manual {
  width: min(100%, 920px);
  min-height: 100dvh;

  margin: 0 auto;

  padding:
    max(4rem, env(safe-area-inset-top))
    4.8rem
    max(3rem, env(safe-area-inset-bottom));

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.012),
      transparent 1.5%,
      transparent 98.5%,
      rgba(0, 0, 0, 0.012)
    ),
    var(--paper);

  box-shadow:
    0 0 0 1px rgba(42, 48, 52, 0.08),
    0 16px 45px rgba(28, 34, 38, 0.11);
}

.cover {
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

.company {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.company span {
  display: block;

  margin-top: 0.25rem;

  color: var(--secondary);

  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.cover-rule {
  width: 100%;
  height: 5px;

  margin: 1.2rem 0 5.8rem;

  background: var(--accent);
}

.document-type {
  margin: 0;

  color: var(--secondary);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.cover h1 {
  margin: 1.1rem 0 0;

  font-size: clamp(4.5rem, 12vw, 8.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.subtitle {
  margin: 0.9rem 0 0;

  color: var(--accent);

  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.classification {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;

  margin-top: auto;

  border: 1px solid var(--rule);

  background: var(--rule);

  font-family:
    "Courier New",
    monospace;

  font-size: 0.76rem;
}

.classification div {
  padding: 0.75rem;

  background: var(--paper);
}

.classification span {
  display: block;

  margin-bottom: 0.22rem;

  color: var(--secondary);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.notice {
  margin: 5rem 0;
  padding: 1.4rem 1.5rem;

  border: 1px solid var(--rule);
}

.notice strong,
.note strong,
.caution strong,
.warning strong {
  display: block;

  margin-bottom: 0.4rem;

  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.notice p,
.note p,
.caution p,
.warning p {
  margin: 0;
}

.contents {
  margin: 5rem 0 7rem;

  border-top: 3px solid var(--ink);
}

.contents h2 {
  margin: 0;
  padding: 0.75rem 0;

  border-bottom: 1px solid var(--rule);

  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.contents ol {
  margin: 0;
  padding: 0;

  list-style: none;
}

.contents li {
  border-bottom: 1px solid var(--light-rule);
}

.contents a {
  display: grid;
  grid-template-columns: 2rem 1fr;

  padding: 0.55rem 0;

  text-decoration: none;

  font-size: 0.8rem;
}

.contents a::before {
  content: counter(list-item, decimal-leading-zero);

  color: var(--secondary);

  font-family:
    "Courier New",
    monospace;
}

.contents a:hover {
  color: var(--accent);
}

.section {
  margin: 0 0 6rem;
  scroll-margin-top: 2rem;
}

.section-heading {
  display: flex;
  align-items: stretch;

  margin-bottom: 2rem;

  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--rule);
}

.section-heading > span {
  display: grid;
  place-items: center;

  width: 3.2rem;

  border-right: 1px solid var(--rule);

  color: var(--accent);

  font-family:
    "Courier New",
    monospace;

  font-size: 1.2rem;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;

  padding: 0.85rem 1rem;

  font-size: 1rem;
  letter-spacing: 0.12em;
}

.section > p {
  margin: 0 0 1.25rem;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 1rem;
  line-height: 1.7;
}

.note,
.caution,
.warning {
  margin: 2rem 0;
  padding: 1rem 1.2rem;

  border-left: 4px solid var(--accent);

  background: #ecefed;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.82rem;
}

.caution {
  border-color: #9a6a27;
}

.warning {
  border-color: var(--warning);
}

.figure {
  margin: 6rem 0;

  break-inside: avoid;
}

.figure figcaption {
  margin-bottom: 1rem;

  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.45rem;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.figure svg {
  display: block;

  width: 100%;
  height: auto;
}

.case,
.meter {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.meter-scale {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.needle {
  stroke: var(--warning);
  stroke-width: 2.2;
}

.pivot {
  fill: var(--ink);
}

.knob {
  fill: #f1f2ef;
  stroke: var(--ink);
  stroke-width: 2;
}

.pointer {
  stroke: var(--ink);
  stroke-width: 3;
}

.jack {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.button {
  fill: #e1e4e1;
  stroke: var(--ink);
  stroke-width: 2;
}

.lamp {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.panel-text {
  fill: var(--ink);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.callout line {
  stroke: var(--secondary);
  stroke-width: 1;
}

.callout circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.callout text {
  fill: var(--ink);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 13px;
  font-weight: 700;
}

.legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 2rem;

  margin: 1.5rem 0 0;
  padding-left: 1.8rem;

  font-size: 0.75rem;
}

.technical-table {
  width: 100%;

  border-collapse: collapse;

  font-size: 0.78rem;
}

.technical-table th {
  padding: 0.55rem 0.65rem;

  border: 1px solid var(--rule);

  background: #e6e9e7;

  text-align: left;

  font-size: 0.61rem;
  letter-spacing: 0.09em;
}

.technical-table td {
  padding: 0.7rem 0.65rem;

  border: 1px solid var(--rule);

  vertical-align: top;
}

.technical-table td:first-child {
  width: 24%;

  font-family:
    "Courier New",
    monospace;

  font-weight: 700;
}

.procedure {
  margin: 1.8rem 0;
  padding-left: 2.8rem;

  counter-reset: procedure;
  list-style: none;
}

.procedure li {
  position: relative;

  margin-bottom: 1rem;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  line-height: 1.65;

  counter-increment: procedure;
}

.procedure li::before {
  content: counter(procedure);

  position: absolute;
  left: -2.8rem;
  top: 0.02rem;

  display: grid;
  place-items: center;

  width: 1.65rem;
  height: 1.65rem;

  border: 1px solid var(--secondary);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.66rem;
  font-weight: 700;
}

.procedure.compact li {
  margin-bottom: 0.55rem;
}

.calibration-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;

  margin: 2rem 0;
}

.calibration-layout h3 {
  margin: 0 0 1rem;

  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.meter-reference {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;

  font-family:
    "Courier New",
    monospace;

  font-size: 0.7rem;
}

.scale {
  position: relative;

  height: 2.5rem;

  border-top: 2px solid var(--ink);
}

.scale::before,
.scale::after {
  content: "";

  position: absolute;
  top: -6px;

  width: 1px;
  height: 10px;

  background: var(--ink);
}

.scale::before {
  left: 0;
}

.scale::after {
  right: 0;
}

.scale i {
  position: absolute;
  top: -6px;
  left: 39%;

  width: 22%;
  height: 10px;

  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);

  background: rgba(38, 59, 85, 0.12);
}

.scale b {
  position: absolute;
  top: 0.7rem;
  left: 50%;

  transform: translateX(-50%);

  color: var(--accent);

  font-size: 0.6rem;
}

.record-example {
  margin: 2rem 0;

  border: 1px solid var(--rule);
}

.record-example > span {
  display: block;

  padding: 0.5rem 0.7rem;

  border-bottom: 1px solid var(--rule);

  background: #e7eae8;

  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.record-example pre {
  margin: 0;

  overflow-x: auto;

  padding: 1rem;

  background: transparent;

  font-family:
    "Courier New",
    monospace;

  font-size: 0.72rem;
  line-height: 1.65;
}

.blocks {
  display: grid;
  grid-template-columns:
    minmax(100px, 1fr)
    auto
    minmax(100px, 1fr)
    auto
    minmax(100px, 1fr)
    auto
    minmax(100px, 1fr);

  align-items: center;
  gap: 0.7rem;
}

.blocks div {
  padding: 1.3rem 0.7rem;

  border: 1.5px solid var(--ink);

  text-align: center;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.blocks span {
  color: var(--secondary);
}

.reference-path {
  width: 31%;

  margin: 2rem auto 0;

  border-top: 1px solid var(--secondary);

  padding-top: 0.45rem;

  text-align: center;

  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.reference-path i {
  display: block;

  margin-top: 0.25rem;

  color: var(--secondary);

  font-style: normal;
}

.troubleshooting td:first-child {
  width: 25%;
}

.troubleshooting td:nth-child(2) {
  width: 32%;
}

.specifications {
  margin: 0;

  border-top: 1px solid var(--rule);
}

.specifications > div {
  display: grid;
  grid-template-columns: 40% 1fr;

  border-bottom: 1px solid var(--rule);
}

.specifications dt,
.specifications dd {
  padding: 0.7rem 0.5rem;
}

.specifications dt {
  color: var(--secondary);

  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.specifications dd {
  margin: 0;

  font-family:
    "Courier New",
    monospace;

  font-size: 0.75rem;
}

.revision {
  margin-top: 8rem;

  border-top: 3px solid var(--ink);
}

.revision h2 {
  margin: 0;

  padding: 0.75rem 0;

  font-size: 0.72rem;
  letter-spacing: 0.13em;
}

.revision table {
  width: 100%;

  border-collapse: collapse;

  font-size: 0.68rem;
}

.revision th,
.revision td {
  border: 1px solid var(--rule);

  padding: 0.5rem;

  text-align: left;
}

.revision th {
  background: #e7e9e7;

  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.document-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;

  margin-top: 5rem;
  padding-top: 1rem;

  border-top: 1px solid var(--rule);

  color: var(--secondary);

  font-family:
    "Courier New",
    monospace;

  font-size: 0.57rem;
}

.document-footer > :last-child {
  text-align: right;
}

[data-contact] {
  appearance: none;

  border: 0;
  border-bottom: 1px solid var(--secondary);

  padding: 0 0 0.08rem;

  background: transparent;
  color: inherit;

  font-family:
    "Courier New",
    monospace;

  font-size: inherit;

  cursor: pointer;
}

[data-contact]:hover,
[data-contact]:focus-visible {
  color: var(--ink);
}

@media (max-width: 700px) {
  body {
    background: var(--paper);
  }

  .manual {
    width: 100%;
    min-height: 100dvh;

    padding:
      max(2rem, env(safe-area-inset-top))
      1.25rem
      max(2rem, env(safe-area-inset-bottom));

    box-shadow: none;
  }

  .cover {
    min-height: min(720px, 92dvh);
  }

  .cover-rule {
    margin-bottom: 4rem;
  }

  .classification {
    grid-template-columns: 1fr;
  }

  .classification div + div {
    border-top: 1px solid var(--rule);
  }

  .section {
    margin-bottom: 4.5rem;
  }

  .section-heading > span {
    width: 2.6rem;
  }

  .section-heading h2 {
    padding-left: 0.75rem;

    font-size: 0.85rem;
  }

  .legend {
    grid-template-columns: 1fr;
  }

  .calibration-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .technical-table {
    font-size: 0.7rem;
  }

  .technical-table th,
  .technical-table td {
    padding: 0.55rem 0.45rem;
  }

  .blocks {
    grid-template-columns: 1fr;
  }

  .blocks > span {
    transform: rotate(90deg);

    text-align: center;
  }

  .reference-path {
    width: 70%;
  }

  .specifications > div {
    grid-template-columns: 1fr;
  }

  .specifications dt {
    padding-bottom: 0.1rem;
  }

  .specifications dd {
    padding-top: 0.1rem;
  }

  .document-footer {
    grid-template-columns: 1fr;
    justify-items: center;

    text-align: center;
  }

  .document-footer > :last-child {
    text-align: center;
  }
}

@media print {
  body {
    background: white;
  }

  .manual {
    width: auto;

    padding: 0;

    box-shadow: none;
  }

  [data-contact] {
    display: none;
  }
}
