/* Calendar, printable of the month and partner kits (scripts/partners.mjs).
   Loaded only on those pages; uses the tokens from style.css. */
.cal-sub, .kit-dl, .potm-now { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; max-width: 860px; }
.cal-sub h2, .kit-dl h2, .potm-now h2 { margin-top: 0; }
.cal-sub p, .kit-dl p { margin: .5em 0; }
.cal-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.cal-sub code { overflow-wrap: anywhere; font-size: .9rem; background: var(--sun-field); padding: 2px 6px; border-radius: 6px; }

.cal-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 8px; }
.cal-f-lab { font-weight: 700; margin-right: 4px; }
.chip-btn { min-height: 44px; padding: 6px 16px; font-size: .95rem; border-color: var(--line-2); }
.chip-btn[aria-pressed="true"] { --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink); }
html:not(.js) .cal-filter { display: none; }

.cal-month h2 { border-bottom: 3px solid var(--sun); padding-bottom: 4px; }
.cal-season { color: var(--muted); margin: 4px 0 12px; }
.ev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ev { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.ev[hidden] { display: none; }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--sun-soft); border-radius: 12px; height: 64px; }
.ev-d { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.ev-w { font-size: .85rem; color: var(--muted); font-weight: 700; }
.ev h3 { margin: 0 0 4px; font-size: 1.15rem; }
.ev p { margin: 4px 0; }
.ev-when { font-weight: 600; }
.ev-cc { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.cc { display: inline-block; font-size: .75rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--ink); letter-spacing: .02em; }
.cc-nz, .cc-au { background: var(--green-soft); color: var(--green); }
.ev-note { color: var(--muted); font-size: .95rem; }
.ev-links, .ev-prints { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ev-links a, .ev-prints a, .ev-guide a { display: inline-flex; align-items: center; min-height: 44px; }
.ev-hub { font-weight: 800; }
.ev-soon { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 10px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-dark); font-weight: 700; font-size: .9rem; }
.ev-also { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ev-lab { font-weight: 700; }
.ev-src { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.ev-src a { color: var(--muted); }
.cal-notes { max-width: 760px; margin-top: 40px; }
@media (max-width: 560px) {
  .ev { grid-template-columns: 1fr; }
  .ev-date { flex-direction: row; gap: 8px; height: auto; padding: 4px 12px; justify-content: flex-start; width: max-content; }
  .ev-d { font-size: 1.15rem; }
}

/* Printable of the month */
.potm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.potm-lab { font-weight: 700; margin: 0 0 6px; }
.nl-preview { border: 2px dashed var(--line-2); border-radius: 12px; padding: 12px 16px; background: #fff; }
.nl-preview p { margin: .5em 0; }
.copy { margin: 10px 0 14px; }
.copy label { display: block; font-weight: 700; margin-bottom: 4px; }
.copy textarea { width: 100%; font: .85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 10px; border: 2px solid var(--line-2); border-radius: 10px; background: var(--sun-field); color: var(--ink); resize: vertical; }
.copy-btn { margin-top: 8px; }
.copy-ok { margin-left: 10px; color: var(--green); font-weight: 700; }
.potm-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.potm-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.potm-row.is-now { border-color: var(--sun); box-shadow: 0 0 0 2px var(--sun); }
.potm-row h3 { margin: 0 0 4px; }
.potm-row p { margin: 4px 0; }
.potm-row details { margin-top: 6px; }
.potm-row summary { cursor: pointer; font-weight: 700; color: var(--sky); min-height: 44px; display: flex; align-items: center; }
.potm-thumb { display: block; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px; align-self: start; }
.potm-thumb img { display: block; width: 100%; height: auto; }
.now { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); vertical-align: 3px; margin-left: 4px; }
@media (max-width: 760px) {
  .potm-grid { grid-template-columns: 1fr; }
  .potm-row { grid-template-columns: 1fr; }
  .potm-thumb { max-width: 160px; }
}

/* Partner kits */
.kit-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.kit-card { display: flex; flex-direction: column; gap: 6px; height: 100%; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); text-decoration: none; }
.kit-card:hover { border-color: var(--coral); }
.kit-art { display: block; background: var(--sun-field); border-radius: 12px; padding: 10px; }
.kit-art img { display: block; width: 100%; max-height: 220px; object-fit: contain; }
.kit-t { font-weight: 800; font-size: 1.15rem; line-height: 1.25; color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.kit-s { color: var(--muted); }
.kit-how ol { padding-left: 1.3em; }
.kit-how li { margin: .5em 0; }
.partners .prose { max-width: 760px; }
