/* The set page (/bundle/, pages/bundle.php; 2026-10-21). Built on the hub family's layout and cards
   (css/purple-hub.css): a left rail with the PDF and share panels, a white card a day. The purple
   theme's colours, with fallbacks for the classic theme. */
.bd-page { --bd-plum: var(--pv-plum, #341e60); --bd-muted: var(--pv-muted, #6b6385); --bd-violet: var(--pv-violet, #634bf5); }

.bd-head { padding: 0 0 var(--sp-head, 24px); max-width: 760px; }
.bd-kicker { font: 800 11.5px 'DM Sans', sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--bd-violet); margin-bottom: 4px; }
.bd-head h1 { font: 600 32px/1.1 'Fredoka', sans-serif !important; color: var(--bd-plum) !important; margin: 0; overflow-wrap: anywhere; }
.bd-note { font-size: 16px; line-height: 1.5; color: var(--bd-plum); margin: 10px 0 0; overflow-wrap: anywhere; }
.bd-from { font-size: 13px; color: var(--bd-muted); margin: 10px 0 0; }
.bd-from a { color: var(--bd-violet); font-weight: 700; text-decoration: none; }

/* Rail panels */
.bd-print, .bd-share { display: flex; flex-direction: column; gap: 10px; }
.rail .bd-print h3, .rail .bd-share h3 { margin-bottom: 0; }
.bd-sum { font-size: 13.5px; color: var(--bd-plum); margin: 0 4px; }
.bd-short { font-size: 13.5px; color: var(--bd-plum); margin: 0 4px; overflow-wrap: anywhere; }
.bd-short a { color: var(--bd-violet); font-weight: 700; text-decoration: none; }
.bd-ver { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f1edfb; border-radius: 999px; padding: 4px; }
.bd-v { border: 0; background: transparent; border-radius: 999px; padding: 7px 6px; font: 700 12.5px 'DM Sans', sans-serif; color: var(--bd-plum); cursor: pointer; }
.bd-v.on { background: #fff; box-shadow: 0 1px 4px rgba(52,30,96,.15); }
.bd-key { display: flex; align-items: center; gap: 8px; font: 600 13.5px 'DM Sans', sans-serif; color: var(--bd-plum); margin: 0 4px; cursor: pointer; }
.bd-key input { width: 17px; height: 17px; accent-color: var(--bd-violet); margin: 0; }
.bd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; border: 2px solid #e6e0f3; border-radius: 999px; padding: 10px 14px; font: 700 14px/1.3 'DM Sans', sans-serif; color: var(--bd-plum); background: #fff; cursor: pointer; }
.bd-btn:hover { border-color: #cfc3f2; color: var(--bd-violet); }
.bd-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.bd-btn[hidden] { display: none; }
.bd-dl { background: var(--bd-violet); border-color: var(--bd-violet); color: #fff; padding: 12px 14px; font-size: 15px; }
.bd-dl:hover { background: #5139e0; border-color: #5139e0; color: #fff; }
.bd-msg { font-size: 12.5px; color: var(--bd-muted); margin: 0 4px; min-height: 0; }
.bd-msg:empty { display: none; }

/* A day (or the whole set): a white card like the hubs' .kband */
.bd-group { background: #fff; border-radius: 24px; padding: 16px 18px 18px; box-shadow: 0 6px 20px rgba(52,30,96,.05); min-width: 0; }
.bd-group + .bd-group { margin-top: 16px; }
.bd-group .sgrid { --n: 4; }
.sc .bd-w { font-size: 12px; line-height: 1.35; color: var(--bd-plum); padding: 0 4px; }
.sc .bd-u { font-size: 11.5px; line-height: 1.35; color: #c2410c; padding: 0 4px; overflow-wrap: anywhere; }
.bd-lesson { margin: 4px 0 12px; }
.bd-lesson + .bd-lesson, .sgrid + .bd-lesson { margin-top: 18px; }
.bd-lk { font: 800 11px 'DM Sans', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--bd-violet); }
.bd-lesson h3 { font: 600 18px/1.25 'Fredoka', sans-serif !important; margin: 2px 0 0; }
.bd-lesson h3 a { color: var(--bd-plum); text-decoration: none; }
.bd-lesson h3 a:hover { color: var(--bd-violet); }
.bd-lesson p { font-size: 13.5px; color: var(--bd-muted); margin: 2px 0 0; }

/* What the link named that isn't on the site */
.bd-missing { margin-top: 16px; background: #fff7ed; border-radius: 18px; padding: 14px 18px; font-size: 13.5px; color: #7c2d12; }
.bd-missing p { margin: 0 0 6px; font-weight: 700; }
.bd-missing ul { margin: 0; padding-left: 20px; }
.bd-missing li { margin: 3px 0; overflow-wrap: anywhere; }
.bd-missing code { font-size: 12.5px; background: #ffedd5; border-radius: 6px; padding: 1px 6px; }
.bd-missing a { color: #c2410c; font-weight: 700; }

.bd-empty { max-width: 680px; padding: 24px 26px; }
.bd-empty h2 { font: 600 22px 'Fredoka', sans-serif !important; color: var(--bd-plum); margin: 0 0 8px; }
.bd-empty p { font-size: 15px; line-height: 1.55; color: var(--bd-plum); margin: 0 0 10px; }
.bd-empty a { color: var(--bd-violet); font-weight: 700; }

@media (max-width: 1100px) { .bd-group .sgrid { --n: 3 !important; } }
@media (max-width: 760px) {
  .bd-group .sgrid { --n: 2 !important; }
  .bd-head h1 { font-size: 26px !important; }
  /* phones: the PDF panel, then the set, then the share panel */
  .bd-page .rail { display: contents; }
  .bd-page .cols > div { order: 1; }
  .bd-page .bd-share { order: 2; }
}
@media print { .rail, .crumbs, .bd-from { display: none !important; } .cols { display: block !important; } }
