/* Дни рождения класса: плакат 4 × 3 месяца на альбомном листе, листы месяцев 2 на лист (для стенда), карточки 2 на лист.
   Ряды делят высоту поровну (minmax(0, 1fr)), строки имён не переносятся — длинное имя обрезается многоточием на плакате. */
#bd-list { width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid #ddd3c2; border-radius: 10px; resize: vertical; }
#bd-class { width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid #ddd3c2; border-radius: 10px; }
.bd-emo { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; line-height: 1; }
.bd-blank span { display: block; flex: 1; border-bottom: 1.2px solid #999; height: 1.1em; }
/* плакат (голый альбомный лист) */
.bd-pwrap { width: 100%; height: 100%; padding: 10mm 12mm 9mm; display: flex; flex-direction: column; }
.bd-pt { flex: none; font: 600 26pt/1.1 var(--head); color: var(--brand-dark, #e8622d); text-align: center; }
.bd-ps { flex: none; font: 12pt/1.3 var(--body); color: #555; text-align: center; margin: 1mm 0 4mm; }
.bd-poster { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 3.5mm; }
.bd-m { min-height: 0; border: 1.6px solid var(--c); border-radius: 4mm; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.bd-mh { flex: none; background: var(--c); color: #fff; font: 600 13pt/1 var(--head); padding: 1.8mm 3mm; display: flex; align-items: center; gap: 2mm; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.bd-ml { flex: 1; min-height: 0; margin: 0; padding: 1.6mm 3mm; list-style: none; display: flex; flex-direction: column; gap: 0.6mm; }
.bd-ml li { display: flex; gap: 2mm; align-items: baseline; font: 10.5pt/1.25 var(--body); white-space: nowrap; min-width: 0; }
.bd-ml li span { overflow: hidden; text-overflow: ellipsis; }
.bd-ml li b { flex: none; min-width: 5.5mm; text-align: right; color: #555; }
.bd-ml.bd-tight li { font-size: 9.5pt; line-height: 1.15; }
.bd-ml .bd-blank { height: 6mm; }
.bd-more { color: #777; font-style: italic; }
/* список */
.bd-list { width: 184mm; max-width: 100%; align-self: flex-start; column-count: 3; column-gap: 6mm; }
.bd-lm { break-inside: avoid; margin-bottom: 4mm; }
.bd-lh { background: var(--c); color: #fff; font: 600 12pt/1 var(--head); padding: 1.6mm 3mm; border-radius: 2mm; margin-bottom: 1.2mm; }
.bd-lr { font: 10.5pt/1.35 var(--body); padding-left: 2mm; }
/* листы месяцев (голый лист) */
.bd-months { width: 100%; height: 100%; padding: 12mm 13mm; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10mm; }
.bd-card { min-height: 0; border: 2.4mm solid var(--c); border-radius: 8mm; padding: 6mm 9mm; display: flex; flex-direction: column; gap: 4mm; overflow: hidden; }
.bd-ct { flex: none; font: 600 34pt/1 var(--head); color: color-mix(in srgb, var(--c) 72%, #222); text-align: center; display: flex; justify-content: center; align-items: center; gap: 5mm; }
.bd-ct .bd-emo { font-size: 26pt; }
.bd-cl { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, auto); justify-content: center; grid-auto-rows: min-content; gap: 2.4mm; align-content: center; }
.bd-cl.bd-two { justify-content: stretch; grid-template-columns: 1fr 1fr; column-gap: 8mm; }
.bd-br { display: flex; gap: 4mm; align-items: baseline; font: 17pt/1.2 var(--body); white-space: nowrap; min-width: 0; }
.bd-br span { overflow: hidden; text-overflow: ellipsis; }
.bd-br b { flex: none; min-width: 10mm; text-align: right; color: color-mix(in srgb, var(--c) 72%, #222); font-family: var(--head); }
.bd-cl.bd-three { justify-content: stretch; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 5mm; gap: 1.6mm 5mm; }
.bd-small .bd-br { font-size: 13pt; }
.bd-three .bd-br { font-size: 11pt; gap: 2mm; }
.bd-three .bd-br b { min-width: 6mm; }
.bd-br.bd-blank { height: 9mm; }
.bd-none { text-align: center; color: #aaa; font: italic 13pt/1 var(--body); }
/* карточки (голый лист) */
.bd-wishes { width: 100%; height: 100%; padding: 12mm 13mm; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10mm; }
.bd-wish { min-height: 0; border: 1.6mm dashed var(--c); border-radius: 8mm; padding: 6mm 10mm; display: flex; flex-direction: column; align-items: center; justify-content: space-around; text-align: center; overflow: hidden; }
.bd-wish.bd-empty { border: 0; }
.bd-wd { display: flex; gap: 6mm; font-size: 24pt; }
.bd-wh { font: 600 30pt/1.1 var(--head); color: color-mix(in srgb, var(--c) 72%, #222); }
.bd-wn { font: 700 36pt/1.15 var(--head); color: #333; max-width: 100%; overflow-wrap: anywhere; }
.bd-wn.bd-blank { width: 70%; display: flex; height: 16mm; }
.bd-wdate { font: 15pt/1.2 var(--body); color: #555; }
.bd-wf { display: flex; gap: 3mm; align-items: flex-end; width: 80%; font: 12pt/1.2 var(--body); color: #666; }
.bd-line { flex: 1; border-bottom: 1.2px solid #999; height: 1.1em; }
