/* Uses BrightTrace's existing page palette and type roles. */
.bt-first-then-page .bt-template-hero { padding: 105px 0 12px; background: none; border: 0; }
.bt-first-then-page .bt-breadcrumbs ol { margin-bottom: 14px; }
.bt-first-then-page .bt-template-title { margin: 0 0 12px; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.08; }
.bt-first-then-page .bt-template-answer { font-size: 1.05rem; }
.bt-first-then-page .bt-board-editor { padding: 18px 0 48px; }
.bt-first-then-page .bt-board-editor h2 { margin: 0 0 8px; font-size: 1.5rem; }
.bt-board-editor p { max-width: 760px; }
.bt-board-settings { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; padding: 0; border: 0; }
.bt-board-settings label { font-weight: 600; }
.bt-board-settings select, .bt-board-card input { font: 1rem/1.4 var(--font-body); }
.bt-board-settings select { min-height: 44px; padding: 6px; }
.bt-board-sheet { max-width: 1000px; }
.bt-board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.bt-board-card { min-width: 0; padding: 18px; border: 2px solid #204b39; border-radius: 8px; background: #fff; }
.bt-board-card[hidden], .bt-board-image[hidden] { display: none !important; }
.bt-first-then-page .bt-board-card h3 { margin: 0 0 10px; color: #102b1f; font-size: 1.6rem; }
.bt-board-content { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 110px; padding: 8px; border: 1px dashed #758279; }
.bt-board-image { display: block; max-width: 45%; max-height: 140px; width: auto; height: auto; object-fit: contain; }
.bt-board-print-text { min-width: 0; color: #111; font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; }
.bt-board-card fieldset { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.bt-board-card label { display: block; margin-top: 12px; color: #202820; font-weight: 600; }
.bt-board-card input { display: block; box-sizing: border-box; width: 100%; min-width: 0; margin-top: 5px; }
.bt-board-card input[type="text"] { min-height: 44px; padding: 8px; border: 1px solid #6c756e; }
.bt-board-card input[type="file"] { font-size: .9rem; }
.bt-board-print { margin-top: 22px; padding: 12px 20px; border: 1px solid #204b39; border-radius: 4px; color: #fff; background: #204b39; font: 600 1rem/1.3 var(--font-body); cursor: pointer; }
.bt-board-print:disabled { opacity: .6; cursor: not-allowed; }
.bt-board-print-note { margin-top: 12px; }
.bt-board-settings :focus-visible, .bt-board-card :focus-visible, .bt-board-print:focus-visible { outline: 3px solid #174e38; outline-offset: 2px; }
.bt-board-faq h3:not(:first-of-type) { margin-top: 24px; }
@page letter-board { size: letter portrait; margin: 10mm; }
@page a4-board { size: A4 portrait; margin: 10mm; }
@media print {
  body.bt-first-then-page { background: #fff; color: #000; }
  .bt-first-then-page > .skip-link, .bt-first-then-page > .navbar, .bt-first-then-page > .footer,
  .bt-first-then-page .bt-template-hero, .bt-first-then-page main > section:not(.bt-board-editor),
  .bt-first-then-page .bt-board-editor h2, .bt-first-then-page .bt-board-editor p,
  .bt-first-then-page noscript, .bt-first-then-page .bt-board-settings, .bt-first-then-page .bt-board-print,
  .bt-first-then-page .bt-board-card fieldset { display: none !important; }
  .bt-first-then-page .bt-board-editor { padding: 0; border: 0; }
  .bt-first-then-page .bt-container { width: 100%; margin: 0; }
  .bt-board-sheet { max-width: none; page: letter-board; }
  .bt-board-sheet[data-paper="a4"] { page: a4-board; }
  .bt-board-grid { display: flex; flex-direction: column; gap: 4mm; height: 240mm; }
  .bt-board-card { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 4mm; border: .6mm solid #000; border-radius: 0; break-inside: avoid; }
  .bt-first-then-page .bt-board-card h3 { margin: 0 0 2mm; color: #000; font: bold 22pt/1.1 sans-serif; }
  .bt-board-content { flex: 1; min-height: 0; padding: 0; border: 0; }
  .bt-board-image { max-width: 38%; max-height: 100%; }
  .bt-board-print-text { color: #000; font: bold 24pt/1.15 sans-serif; }
}
