/* Dial record-keeping guides: /dial/printable-dose-log/, /dial/injection-site-rotation/,
   and their localized copies. Loaded after shared.css. */

.dial-guide-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0.25rem 0 1.75rem;
}

.dial-guide-boundary {
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid var(--spot);
  background: var(--spot-soft);
  border-radius: 0 8px 8px 0;
  font-size: 0.9375rem;
}

article .dial-guide-boundary {
  color: var(--ink-soft);
}

.dial-guide-table-scroll {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.dial-guide-table-scroll:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.dial-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--body-text);
}

.dial-guide-table caption {
  caption-side: top;
  text-align: start;
  padding: 0.75rem 0.85rem 0.25rem;
  font-weight: 600;
  color: var(--ink);
}

.dial-guide-table th,
.dial-guide-table td {
  border-top: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: start;
  vertical-align: top;
}

.dial-guide-table th + th,
.dial-guide-table td + td {
  border-inline-start: 1px solid var(--border-soft);
}

.dial-guide-table thead th {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 600;
}

.dial-guide-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.dial-guide-table--blank td {
  height: 2.6rem;
  min-width: 4.5rem;
}

.dial-guide-table--blank td.dial-guide-tick {
  min-width: 2.2rem;
}

.dial-guide-table--record td:not(:first-child) {
  min-width: 8rem;
}

@media (max-width: 600px) {
  .dial-guide-table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .dial-guide-table--stack tr,
  .dial-guide-table--stack tbody th,
  .dial-guide-table--stack td {
    display: block;
  }

  .dial-guide-table--stack tbody th {
    background: var(--bg-alt);
  }

  .dial-guide-table--stack td + td {
    border-inline-start: none;
  }

  .dial-guide-table--stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
  }
}

.dial-guide-cite {
  white-space: nowrap;
  color: var(--muted);
}

.dial-guide-figure {
  margin: 1.25rem auto 1rem;
  max-width: 340px;
}

.dial-guide-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.dial-guide-figure figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

.dial-body-outline {
  fill: var(--bg-alt);
  stroke: var(--border);
  stroke-width: 2;
}

.dial-body-zone {
  fill: var(--accent-light);
  stroke: var(--accent);
  stroke-width: 2;
}

.dial-body-zone--back {
  stroke-dasharray: 5 4;
}

.dial-body-navel {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}

.dial-body-keepout {
  fill: none;
  stroke: var(--spot);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.dial-body-number {
  fill: var(--ink);
  font-family:
    'Inter Tight',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}

.dial-body-side {
  fill: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  text-anchor: middle;
  letter-spacing: 0.06em;
}

.dial-guide-table abbr {
  text-decoration: none;
}

.dial-guide-legend {
  columns: 2 14rem;
  column-gap: 1.5rem;
}

.dial-guide-print {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}

.dial-guide-print:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
}

.dial-guide-print:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.dial-guide-sheet-footer {
  font-size: 0.75rem;
  color: var(--muted);
}

.dial-guide-sources li {
  font-size: 0.9375rem;
}

.dial-guide-more {
  border-top: 1px solid var(--border);
  margin-top: 2.25rem;
  padding-top: 1.25rem;
}

@media print {
  @page {
    size: landscape;
    margin: 12mm;
  }

  :root {
    --bg: #fff;
    --bg-alt: #f1f1f1;
    --surface: #fff;
    --border: #555;
    --border-soft: #888;
    --ink: #000;
    --ink-soft: #000;
    --body-text: #000;
    --muted: #333;
    --accent: #000;
    --accent-light: #e9e9e9;
    --spot: #000;
    --spot-soft: #fff;
  }

  body {
    background: #fff;
  }

  nav,
  footer,
  .skip-link,
  .dial-guide-print,
  .dial-guide-screen-only {
    display: none !important;
  }

  main {
    padding: 0 !important;
  }

  article {
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: none;
  }

  .dial-guide-article--sheet > :not(.dial-guide-sheet) {
    display: none;
  }

  .dial-guide-sheet h2 {
    margin-top: 0;
  }

  .dial-guide-table-scroll {
    overflow: visible;
    border-color: #555;
  }

  .dial-guide-table {
    font-size: 10pt;
  }

  .dial-guide-table thead {
    display: table-header-group;
  }

  .dial-guide-table tr {
    break-inside: avoid;
  }

  .dial-guide-table--blank td {
    height: 11mm;
  }

  .dial-guide-figure {
    break-inside: avoid;
    max-width: 62mm;
    margin: 0 0 4mm;
  }

  .dial-guide-sheet-footer {
    margin-top: 3mm;
  }

  .dial-guide-sheet--rotation {
    display: grid;
    grid-template-columns: 56mm 1fr;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 6mm;
  }

  .dial-guide-sheet--rotation > h2 {
    grid-column: 1 / -1;
  }

  .dial-guide-sheet--rotation .dial-guide-figure {
    grid-column: 1;
    grid-row: 2;
    max-width: 56mm;
  }

  .dial-guide-sheet--rotation .dial-guide-figure figcaption {
    font-size: 7.5pt;
  }

  .dial-guide-sheet--rotation .dial-guide-legend {
    grid-column: 1;
    grid-row: 3;
    columns: 1;
    font-size: 8.5pt;
    line-height: 1.35;
  }

  .dial-guide-sheet--rotation .dial-guide-legend li {
    margin-bottom: 0.5mm;
  }

  .dial-guide-sheet--rotation .dial-guide-table-scroll {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: start;
    margin-top: 0;
  }

  .dial-guide-sheet--rotation .dial-guide-sheet-footer {
    grid-column: 1 / -1;
  }

  .dial-guide-sheet--rotation .dial-guide-table--blank td {
    height: 10.5mm;
  }
}
