/* Print-only 12-month overview. */
.print-root {
  display: none;
}

@media print {
  @page {
    size: letter portrait;
    margin: 10mm 11mm;
  }

  html,
  body {
    background: #fff !important;
    color: #111;
  }

  body > * {
    display: none !important;
  }

  .print-root {
    display: block !important;
    font-family: var(--font-ui);
    font-size: 8.5pt;
    line-height: 1.35;
    color: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-root * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-masthead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8mm;
    padding-bottom: 3mm;
    border-bottom: 1.2pt solid #1c6b58;
  }

  .print-brand {
    display: flex;
    align-items: center;
    gap: 2mm;
    color: #1c6b58;
    font-family: var(--font-display);
    font-size: 12pt;
    font-weight: 600;
  }

  .print-mark {
    width: 7mm;
    height: 7mm;
  }

  .print-title {
    text-align: right;
  }

  .print-title h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17pt;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111;
  }

  .print-title p {
    margin: 1mm 0 0;
    color: #444;
    font-size: 8pt;
  }

  .print-summary {
    margin-top: 3mm;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .print-window {
    color: #1c6b58;
    font-size: 7.5pt;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .print-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3mm;
    margin-top: 2mm;
    padding: 2mm 0;
    border-top: 0.5pt solid #d8d2c7;
    border-bottom: 0.5pt solid #d8d2c7;
  }

  .print-summary-grid span {
    display: block;
    color: #666;
    font-size: 6.2pt;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .print-summary-grid strong {
    display: block;
    margin-top: 0.6mm;
    color: #111;
    font-size: 8pt;
    font-weight: 600;
  }

  .print-split {
    display: flex;
    gap: 0.8mm;
    height: 2.2mm;
    margin-top: 2.5mm;
    border-radius: 2mm;
    overflow: hidden;
  }

  .print-split-a {
    background: #1c6b58;
  }

  .print-split-b {
    background: #b3563b;
  }

  .print-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1mm 5mm;
    margin-top: 1.6mm;
    color: #444;
    font-size: 6.8pt;
  }

  .print-legend span {
    display: inline-flex;
    align-items: center;
    gap: 1.2mm;
  }

  .print-swatch {
    display: inline-block;
    width: 2.6mm;
    height: 2.6mm;
    border-radius: 0.6mm;
  }

  .print-swatch.p-a {
    background: #cfe5dc;
    border: 0.5pt solid #1c6b58;
  }

  .print-swatch.p-b {
    background: #f6ddd1;
    border: 0.5pt solid #b3563b;
  }

  .print-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4mm 5mm;
    margin-top: 4mm;
  }

  .print-month {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-month:nth-child(4n):not(:last-child) {
    break-after: page;
    page-break-after: always;
  }

  .print-month h2 {
    margin: 0 0 1.2mm;
    font-family: var(--font-display);
    font-size: 10pt;
    font-weight: 600;
    color: #111;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .print-table th {
    padding: 0.6mm 0.4mm;
    border-bottom: 0.6pt solid #cfc8bb;
    color: #666;
    font-family: var(--font-ui);
    font-size: 5.7pt;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
  }

  .print-table td {
    position: relative;
    height: 8.2mm;
    padding: 0.7mm 1mm;
    border: 0.5pt solid #e4dfd5;
    vertical-align: top;
    font-size: 7pt;
  }

  .print-table td.p-empty {
    background: #fbfaf7;
    border-color: #eeeae2;
  }

  .print-table td.p-a {
    background: #dcece6;
    color: #0f4d3e;
  }

  .print-table td.p-b {
    background: #f8e3d9;
    color: #853c25;
  }

  .print-table td.p-holiday {
    box-shadow: inset 0 0 0 0.9pt #8f6214;
  }

  .p-num {
    font-size: 7.4pt;
    font-weight: 700;
  }

  .p-owner {
    float: right;
    font-size: 5.2pt;
    font-weight: 600;
    opacity: 0.66;
  }

  .p-star {
    position: absolute;
    right: 0.7mm;
    bottom: 0.4mm;
    color: #8f6214;
    font-size: 7.5pt;
    line-height: 1;
  }

  .print-key {
    margin-top: 5mm;
    padding-top: 3mm;
    border-top: 0.8pt solid #1c6b58;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-key h2 {
    margin: 0 0 2mm;
    font-family: var(--font-display);
    font-size: 11pt;
  }

  .print-key-table {
    width: 100%;
    border-collapse: collapse;
  }

  .print-key-table th {
    padding: 1mm 1.4mm;
    background: #f3f0e9;
    border-bottom: 0.6pt solid #cfc8bb;
    color: #555;
    font-size: 6.4pt;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: left;
    text-transform: uppercase;
  }

  .print-key-table td {
    padding: 1mm 1.4mm;
    border-bottom: 0.4pt solid #e6e1d7;
    font-size: 7pt;
    vertical-align: top;
  }

  .print-key-table td:first-child {
    width: 27%;
    white-space: nowrap;
  }

  .print-key-table td:nth-child(2) {
    width: 23%;
    font-weight: 600;
  }

  .print-note {
    margin-top: 2mm;
    color: #666;
    font-size: 6.8pt;
  }

  .print-foot {
    margin-top: 5mm;
    padding-top: 2mm;
    border-top: 0.5pt solid #cfc8bb;
    color: #555;
    font-size: 6.4pt;
  }

  .print-foot p + p {
    margin-top: 1mm;
  }
}
