/* Technical report of the EA7KLX station. The palette follows the drawing
   conventions of the report itself: blue dimension lines, red clamps and
   markers, green earth connections. */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
}

/* Greek block only: the ohm sign in the cable and antenna data. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-greek-400-normal.woff2') format('woff2');
  unicode-range: U+0370-03FF;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-semi-condensed-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;

  --paper: #eef1f5;
  --sheet: #ffffff;
  --ink: #16202e;
  --muted: #566273;
  --rule: #c5cdd8;
  --rule-soft: #dfe4eb;
  --cota: #0a3fa8;
  --mark: #c4281c;
  --earth: #1c6b3c;
  --drop: #7a2fb5;

  --area: #fbe9d8;
  --neighbour: #f3f4f6;
  --street: #e3e6ea;
  --water: #d9e6f3;
  --room: #e3f3e3;
  --office: #fff5cc;
  --zone-in: #ebf2fb;
  --zone-in-line: #6f93c4;
  --zone-in-ink: #2f5187;
  --zone-out: #fdf1e3;
  --zone-out-line: #d59a5c;
  --zone-out-ink: #8a5216;
  --earth-fill: #e9f4ea;

  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Barlow Semi Condensed', 'DIN Alternate', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;

  --column: 44rem;
  --sidebar: 16.5rem;
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1829;
    --sheet: #12233a;
    --ink: #e7edf5;
    --muted: #9fb0c6;
    --rule: #34496a;
    --rule-soft: #22344f;
    --cota: #9dbdff;
    --mark: #ff8f7f;
    --earth: #7fd6a3;
    --drop: #cf9cf5;

    --area: #2b3443;
    --neighbour: #18293f;
    --street: #0e1c30;
    --water: #1b3a5c;
    --room: #1d4032;
    --office: #453c1c;
    --zone-in: #152b49;
    --zone-in-line: #5479ad;
    --zone-in-ink: #a9c4ee;
    --zone-out: #33281c;
    --zone-out-line: #a8773f;
    --zone-out-ink: #f0c08c;
    --earth-fill: #173526;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-variant-numeric: lining-nums;
}

a {
  color: var(--cota);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--sheet);
  font-family: var(--sans);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Cover ---------- */

.cover {
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}

.cover-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 3.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 24rem);
  gap: 3rem;
  align-items: end;
}

.cover-kind {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--muted);
}

.cover h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  max-width: 24ch;
  text-wrap: balance;
}

.callsign {
  margin: 1.75rem 0 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(4.2rem, 11.5vw, 8.75rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--cota);
}

.cover-request {
  margin: 1.5rem 0 0;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 34rem;
}

.cover-download {
  margin: 1.5rem 0 0;
}

.cover-download a {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--cota);
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
}

.cover-download a:hover {
  background: var(--cota);
  color: var(--sheet);
}

.cover-drawing {
  margin: 0;
}

.cover-drawing svg {
  display: block;
  width: 100%;
  height: auto;
  font-size: 19px;
}

.cover-drawing .dw-cota-total {
  font-size: 27px;
}

.cover-data {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem 2rem;
}

.cover-data div {
  min-width: 0;
}

.cover-data dt {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--muted);
}

.cover-data dd {
  margin: 0.1rem 0 0;
}

/* ---------- Reference note ---------- */

.reference-note {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem 2rem 0;
}

.reference-note-body {
  border-left: 4px solid var(--cota);
  background: var(--sheet);
  padding: 1.1rem 1.4rem;
  max-width: 62rem;
}

.reference-note p {
  margin: 0;
  max-width: 68ch;
}

.reference-note p + p {
  margin-top: 0.6rem;
}

/* Marks a value removed from the published copy. The hatch says "blanked
   out", the text says what the reader has to put there. */
.omitted {
  display: inline-block;
  padding: 0 0.45em;
  border: 1px dashed var(--muted);
  border-radius: 3px;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 5px,
    color-mix(in srgb, var(--muted) 14%, transparent) 5px 6px
  );
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Layout ---------- */

.layout {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.3;
}

.toc summary {
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc > details > ol {
  padding-top: 0.6rem;
}

.toc li a {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  padding: 0.28rem 0;
  color: var(--ink);
  text-decoration: none;
}

.toc li a:hover {
  color: var(--cota);
}

.toc li a span:first-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.toc ol ol {
  padding-left: 2.1rem;
  font-size: 0.9375rem;
}

.toc ol ol a {
  grid-template-columns: 2.3rem 1fr;
  padding: 0.2rem 0;
  color: var(--muted);
}

.toc .toc-annexes {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule-soft);
}

.report {
  min-width: 0;
  max-width: var(--column);
}

/* ---------- Report typography ---------- */

.report section {
  padding-bottom: 1rem;
}

.report section + section {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.report h2,
.report h3 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: baseline;
  text-wrap: balance;
}

.report h2 {
  font-size: 1.875rem;
  margin-bottom: 1.1rem;
}

.report h3 {
  font-size: 1.3125rem;
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
}

.report h2 .num,
.report h3 .num {
  color: var(--cota);
  font-variant-numeric: tabular-nums;
}

.report p {
  margin: 0 0 0.9rem;
  hanging-punctuation: first;
}

.report ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.report li {
  margin-bottom: 0.3rem;
  padding-left: 0.2rem;
}

.report li::marker {
  color: var(--muted);
}

/* ---------- Tables ---------- */

.table-wrap {
  margin: 1.2rem 0 1.5rem;
  overflow-x: auto;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}

caption {
  caption-side: bottom;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: left;
}

th,
td {
  padding: 0.6rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--rule-soft);
}

thead th {
  border-top: 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--muted);
}

tbody th {
  width: 34%;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
}

.table-results tbody th {
  width: 52%;
}

.table-results td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Formulas ---------- */

.formula {
  margin: 1.1rem 0 1.3rem;
  padding: 0.35rem 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.katex {
  font-size: 1.08em;
}

.formula .katex-display {
  margin: 0;
}

/* ---------- Figures ---------- */

figure {
  margin: 1.75rem 0 2rem;
}

.sheet {
  background: var(--sheet);
  border: 1px solid var(--ink);
}

.sheet-drawing {
  overflow-x: auto;
  padding: 0.75rem;
}

.sheet-drawing svg {
  display: block;
  width: 100%;
  min-width: 34rem;
  height: auto;
  margin: 0 auto;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

figcaption {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

figcaption strong {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
}

/* Title block under each plan, as on a drawing sheet. */
.title-block {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  margin: 0;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
}

.title-block div {
  padding: 0.45rem 0.9rem;
  border-right: 1px solid var(--ink);
}

.title-block div:last-child {
  border-right: 0;
}

.title-block dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.title-block dd {
  margin: 0;
  font-weight: 600;
}

/* A photograph or map withheld from the published copy. */
.withheld {
  border: 1px dashed var(--muted);
  border-radius: 4px;
  padding: 1.3rem 1.5rem;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 9px,
    color-mix(in srgb, var(--muted) 9%, transparent) 9px 10px
  );
}

.withheld-kind {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
}

.withheld p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Signature ---------- */

.signature {
  margin-top: 3.5rem;
  width: min(100%, 19rem);
  border-top: 1px solid var(--ink);
  padding-top: 0.6rem;
}

.signature p {
  margin: 0 0 0.25rem;
}

.page-footer {
  border-top: 1px solid var(--rule);
  background: var(--sheet);
}

.page-footer p {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Drawings ---------- */

.dw-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.dw {
  font-family: var(--sans);
  font-size: 15px;
  fill: var(--ink);
}

.dw-blocks {
  font-size: 16px;
}

.dw-blocks .dw-note {
  font-size: 15px;
}

.dw-line {
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

polygon.dw-line.dw-heavy,
line.dw-line.dw-heavy {
  fill: none;
  stroke-width: 3;
}

.dw-line.dw-thin {
  stroke-width: 0.9;
}

path.dw-line {
  fill: none;
}

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

.dw-area {
  fill: var(--area);
}

.dw-neighbour {
  fill: var(--neighbour);
  stroke: var(--muted);
}

.dw-street {
  fill: var(--street);
}

.dw-water {
  fill: var(--water);
}

.dw-room {
  fill: var(--room);
  stroke: var(--earth);
  stroke-width: 1.4;
  stroke-dasharray: 6 4;
}

.dw-office {
  fill: var(--office);
  stroke: var(--muted);
  stroke-width: 1.2;
  stroke-dasharray: 6 4;
}

.dw-hatch {
  fill: url(#dw-hatch);
}

.dw-dashed {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 5 4;
}

.dw-mast {
  fill: var(--muted);
}

.dw-antenna {
  fill: var(--sheet);
}

.dw-mark {
  fill: var(--mark);
}

.dw-mark-line {
  fill: none;
  stroke: var(--mark);
  stroke-width: 1.4;
}

.dw-mark-ring {
  fill: none;
  stroke: var(--mark);
  stroke-width: 1.4;
  stroke-dasharray: 3 2.5;
}

.dw-mark-text {
  fill: var(--mark);
}

.dw-tv {
  fill: var(--ink);
}

.dw-callout {
  fill: var(--sheet);
  stroke: var(--mark);
  stroke-width: 1.2;
}

.dw-callout-plain {
  fill: var(--sheet);
  stroke: var(--ink);
  stroke-width: 0.9;
}

.dw-leader {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.8;
}

.dw-ext {
  fill: none;
  stroke: var(--cota);
  stroke-width: 0.6;
  stroke-dasharray: 2 3;
  opacity: 0.75;
}

.dw-cota line,
.dw-tick-mark {
  fill: none;
  stroke: var(--cota);
  stroke-width: 1.2;
}

.dw-cota-text {
  fill: var(--cota);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  paint-order: stroke;
  stroke: var(--sheet);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.dw-cota-total {
  font-size: 22px;
}

.dw-halo {
  paint-order: stroke;
  stroke: var(--sheet);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.dw-label {
  font-weight: 600;
}

.dw-note {
  font-size: 0.87em;
  fill: var(--muted);
}

.dw-note.dw-mark-text {
  fill: var(--mark);
}

.dw-cable {
  fill: none;
  stroke: var(--earth);
  stroke-width: 3.2;
  stroke-linejoin: round;
}

.dw-cable-text,
.dw-note.dw-cable-text,
.dw-earth-text,
.dw-earth-text .dw-note,
.dw-note.dw-earth-text {
  fill: var(--earth);
}

.dw-cable-drop {
  fill: var(--drop);
}

.dw-note.dw-drop-text {
  fill: var(--drop);
}

.dw-cable-wall {
  stroke: var(--cota);
  stroke-width: 3.2;
}

.dw-note.dw-wall-text {
  fill: var(--cota);
}

.dw-zone-in {
  fill: var(--zone-in);
  stroke: var(--zone-in-line);
  stroke-width: 1.4;
  stroke-dasharray: 7 5;
}

.dw-zone-out {
  fill: var(--zone-out);
  stroke: var(--zone-out-line);
  stroke-width: 1.4;
  stroke-dasharray: 7 5;
}

.dw-zone-in-text {
  fill: var(--zone-in-ink);
  font-weight: 600;
  font-size: 17px;
}

.dw-zone-out-text {
  fill: var(--zone-out-ink);
  font-weight: 600;
  font-size: 17px;
}

.dw-box rect {
  fill: var(--sheet);
  stroke: var(--ink);
  stroke-width: 1.8;
}

.dw-box-title {
  font-weight: 600;
  font-size: 20px;
}

.dw-flow line,
.dw-arrow-head {
  stroke: var(--ink);
  stroke-width: 1.6;
}

.dw-arrow-head {
  fill: var(--ink);
  stroke: none;
}

.dw-earth-line line,
.dw-earth-line path {
  fill: none;
  stroke: var(--earth);
  stroke-width: 2.4;
}

.dw-earth-line .dw-earth-dashed {
  stroke-width: 1.8;
  stroke-dasharray: 7 5;
}

.dw-arrow-head-earth {
  fill: var(--earth);
}

.dw-earth-box rect {
  fill: var(--earth-fill);
  stroke: var(--earth);
  stroke-width: 1.6;
}

.dw-hatch-line {
  stroke: var(--muted);
  stroke-width: 0.8;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 62rem) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-top: 2rem;
  }

  .toc {
    position: static;
    max-height: none;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 0.9rem 1.1rem;
  }

  .toc summary {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .toc summary::after {
    content: '+';
    float: right;
    color: var(--muted);
  }

  .toc details[open] summary::after {
    content: '−';
  }

  .toc details[open] summary {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--rule);
  }

  .report {
    max-width: none;
  }
}

@media (max-width: 46rem) {
  body {
    font-size: 1rem;
  }

  .cover-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 2.25rem 1.25rem 2rem;
    gap: 2rem;
  }

  .cover-drawing {
    max-width: 17rem;
  }

  .cover-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.25rem;
  }

  .omitted {
    white-space: normal;
  }

  .reference-note,
  .layout {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .page-footer p {
    padding: 1.25rem;
  }

  .report h2 {
    font-size: 1.5625rem;
  }

  tbody th {
    width: 40%;
  }

  th,
  td {
    padding: 0.55rem 0.75rem;
  }

  .title-block {
    grid-template-columns: 1fr 1fr;
  }

  .title-block div:nth-child(2n) {
    border-right: 0;
  }

  .title-block div:nth-child(n + 3) {
    border-top: 1px solid var(--ink);
  }
}

/* ---------- Print: this is also the stylesheet of the downloadable PDF ---------- */

@page {
  size: A4;
  margin: 24mm 20mm 20mm;

  @top-left {
    content: 'Memoria técnica descriptiva';
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 9pt;
    color: #566273;
    border-bottom: 0.4pt solid #566273;
    padding-bottom: 2mm;
    margin-bottom: 5mm;
  }

  @top-right {
    content: 'Estación fija de radioaficionado EA7KLX';
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 9pt;
    color: #566273;
    border-bottom: 0.4pt solid #566273;
    padding-bottom: 2mm;
    margin-bottom: 5mm;
  }

  @bottom-center {
    content: counter(page);
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 9pt;
    color: #566273;
  }
}

@page :first {
  @top-left {
    content: none;
    border: 0;
  }

  @top-right {
    content: none;
    border: 0;
  }

  @bottom-center {
    content: none;
  }
}

@media print {
  html {
    font-size: 10.5pt;
  }

  body {
    background: #fff;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .skip-link,
  .cover-download,
  .page-footer {
    display: none;
  }

  .cover {
    border: 0;
    break-after: page;
  }

  .cover-inner {
    padding: 22mm 0 0;
    min-height: 235mm;
    grid-template-columns: minmax(0, 1fr) 72mm;
    grid-template-rows: auto 1fr;
    gap: 10mm;
    align-items: start;
  }

  .cover h1 {
    font-size: 25pt;
  }

  .callsign {
    font-size: 78pt;
    margin-top: 14mm;
  }

  .cover-data {
    align-self: end;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-note {
    padding: 0;
  }

  .reference-note-body {
    max-width: none;
    border: 0.4pt solid var(--rule);
    border-left: 4px solid var(--cota);
  }

  .reference-note p {
    max-width: none;
  }

  .layout {
    display: block;
    max-width: none;
    padding: 8mm 0 0;
  }

  .toc {
    position: static;
    max-height: none;
    overflow: visible;
    break-after: page;
    font-size: 10.5pt;
  }

  .toc > details > ol:first-of-type {
    columns: 2;
    column-gap: 10mm;
  }

  .toc li {
    break-inside: avoid;
  }

  .report {
    max-width: none;
  }

  .report section + section {
    margin-top: 9mm;
    padding-top: 7mm;
  }

  .report h2 {
    font-size: 18pt;
  }

  .report h3 {
    font-size: 13pt;
    margin-top: 7mm;
  }

  .report h2,
  .report h3 {
    break-after: avoid;
  }

  .report p {
    orphans: 3;
    widows: 3;
  }

  a {
    color: var(--cota);
  }

  .table-wrap {
    overflow: visible;
  }

  tr,
  figure,
  .formula,
  .withheld,
  .signature {
    break-inside: avoid;
  }

  .formula {
    overflow: visible;
  }

  .sheet-drawing {
    overflow: visible;
  }

  .sheet-drawing svg {
    min-width: 0;
  }

  #anexo-a,
  #anexo-b,
  #anexo-c,
  #anexo-d {
    break-before: page;
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }

  #anexo-c .sheet-drawing svg {
    max-height: 175mm;
  }
}
