/* Travel consent letter. Uses the site's colour tokens from style.css. */
.cn-sec { margin: 0 0 18px; }
.cn-sec h2 { font-size: 1.1rem; margin: 1.2rem 0 .6rem; }
.cn-form .hint { color: var(--muted); font-size: .88rem; margin: 3px 0 0; }
.cn-destnote .notice { font-size: .92rem; }
.cn-destnote .cn-note p, .cn-dest .cn-note p { margin: 0 0 .5rem; }
.cn-dest h3 { margin-top: 1rem; }
.cn-destnote .cn-dest, .cn-destnote h3 { margin: 0; }
.cn-letter { background: #fff; color: #000; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0; overflow-x: auto; }
.cn-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .82rem; line-height: 1.4; color: #000; margin: 0; }
.cn-table td { vertical-align: top; padding: 6px 8px 6px 0; border-bottom: 0; }
.cn-table.cols2 td:nth-child(2) { padding-left: 10px; padding-right: 0; border-left: 1px solid #999; }
.cn-table .cn-title { font-weight: 700; font-size: 1rem; }
.cn-table .cn-head { font-weight: 600; }
.cn-line { border-bottom: 1px solid #000; height: 34px; margin-top: 14px; }
.cn-signlabel { font-size: .75rem; }
.cn-certbox { border: 1px dashed #666; height: 70px; margin-top: 4px; }
/* narrow screens: the two languages stack inside each row, so the letter never scrolls sideways (print stays side by side) */
@media screen and (max-width: 559px) {
  .cn-table, .cn-table tbody, .cn-table tr, .cn-table td { display: block; width: auto; }
  .cn-table.cols2 td:nth-child(2) { padding: 0 0 6px 10px; border-left: 3px solid #bbb; margin-bottom: 8px; }
  .cn-table td { padding: 4px 0; overflow-wrap: anywhere; }
}
.cn-closing { break-inside: avoid; page-break-inside: avoid; }
@media print {
  @page { size: A4; margin: 14mm; }
  main > .wrap > :not(#cn-result) { display: none !important; }
  .cn-letter { border: 0; padding: 0; overflow: visible; margin: 0; }
  .cn-table { font-size: 9.5pt; line-height: 1.35; }
  .cn-table td { padding: 4px 8px 4px 0; }
  .cn-table.cols2 td:nth-child(2) { padding-left: 10px; }
  .cn-table tr { break-inside: avoid; page-break-inside: avoid; }
  .cn-closing { break-before: avoid; break-inside: avoid; page-break-inside: avoid; }
  .cn-line { height: 26px; margin-top: 8px; }
  .cn-certbox { height: 56px; }
}
