/* Month screen. Uses the existing tokens; --bc-accent, --bc-accent-soft and --bc-month-wash are set per month
   (data/month-identities.json) on .bc-month, so each month can carry its own accent without a new template. */
.bc-month { --bc-month-wash: #e7ecd9; }
.bc-month-hero { background-image: radial-gradient(70% 90% at 88% 22%, rgb(255 253 242 / 75%) 0, rgb(255 253 242 / 0%) 70%), linear-gradient(158deg, #f4f5ea 0%, var(--bc-month-wash) 100%); }
.bc-month-hero .bc-hero-copy { padding: 2rem 1.5rem; }
.bc-month-hero h1 { margin-block: .75rem 1rem; font-size: clamp(2.75rem, 9vw, 4.25rem); line-height: 1.08; letter-spacing: -.045em; }
.bc-month-year { color: var(--bc-accent); }
.bc-month-motto { margin-block-end: .75rem; font-family: var(--bc-heading); font-style: italic; color: var(--bc-accent); }
.bc-month-motto:lang(hi), .bc-month-motto [lang="hi"] { font-style: normal; }
.bc-month-intro { max-width: 27rem; color: #4d5846; line-height: 1.75; }
.bc-month-focus { margin-block-start: 1.5rem; padding-block-start: 1.25rem; border-block-start: 1px solid rgb(121 99 56 / 25%); }
.bc-month-focus .bc-eyebrow { margin-block-end: .9rem; }
.bc-month-focus .bc-notice { display: flex; align-items: center; gap: .75rem; margin-block: 0; background: rgb(255 253 248 / 70%); border: 1px solid var(--bc-gold-line); color: #4d5846; }
.bc-month-focus .bc-notice .bc-icon { color: var(--bc-gold); }
.bc-month .bc-button { background: var(--bc-accent); background-image: linear-gradient(180deg, color-mix(in srgb, var(--bc-accent) 86%, #fff) 0%, var(--bc-accent) 100%); border-color: color-mix(in srgb, var(--bc-accent) 82%, #000); }
.bc-month .bc-button:hover { background-image: linear-gradient(180deg, color-mix(in srgb, var(--bc-accent) 92%, #000) 0%, color-mix(in srgb, var(--bc-accent) 78%, #000) 100%); }
.bc-month-card { padding: 0; margin-block-start: 1.75rem; overflow: clip; }
.bc-month-toolbar { padding: .75rem .75rem 0; }
.bc-month-nav { display: grid; grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr); align-items: center; gap: .25rem .5rem; }
.bc-month-caption { margin: 0; text-align: center; font-family: var(--bc-heading); font-size: clamp(1.25rem, 4.6vw, 1.625rem); line-height: 1.2; letter-spacing: -.02em; color: var(--bc-ink); }
.bc-month-caption span { color: var(--bc-accent); }
.bc-month-step { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; min-width: 44px; padding: 0 .85rem; border: 1px solid var(--bc-border); border-radius: 999px; background: var(--bc-surface); color: var(--bc-accent) !important; font-size: .875rem; font-weight: 600; text-decoration: none; justify-content: center; }
.bc-month-step .bc-icon { width: 1.1rem; height: 1.1rem; }
.bc-month-step:hover { background: var(--bc-accent-soft); border-color: var(--bc-accent); }
.bc-month-step.is-end { padding: 0; border-color: transparent; background: none; }
.bc-month-prev { justify-self: start; }
.bc-month-next { justify-self: end; }
.bc-month-this-row { margin: .25rem 0 0; text-align: center; }
.bc-month-this { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .75rem; color: var(--bc-muted) !important; font-weight: 500; font-size: .8125rem; }
.bc-month-this .bc-icon { width: 1rem; height: 1rem; }
.bc-month-hint { margin: 0; padding-block: .25rem .5rem; text-align: center; }
@media (max-width: 439px) { .bc-month-step { padding: 0; } .bc-month-step-name { display: none; } }
.bc-month-grid-wrap { padding: .25rem 0 .5rem; }
.bc-month-grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
.bc-month-grid th { padding: .5rem 0 .6rem; text-align: center; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bc-muted); }
.bc-wd-initial { display: inline; }
.bc-wd-long { display: none; }
.bc-day { position: relative; height: 3.5rem; padding: 0; text-align: center; vertical-align: middle; }
.bc-day-link, .bc-day-inner { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 3.5rem; color: var(--bc-ink) !important; text-decoration: none; }
.bc-day-link::before, .bc-day-inner::before { content: ""; position: absolute; inset: 3px; border-radius: 15px; border: 1px solid transparent; }
.bc-day-num { position: relative; z-index: 1; font-family: var(--bc-heading); font-size: 1.0625rem; line-height: 1; }
.bc-day .bc-icon { position: absolute; z-index: 1; inset-inline-end: 9px; inset-block-end: 8px; width: .7rem; height: .7rem; opacity: .75; }
/* Open to revisit: soft sage with the month accent on the number. */
.bc-day.is-available .bc-day-link::before { background: var(--bc-accent-soft); }
.bc-day.is-available .bc-day-num { color: var(--bc-accent); }
.bc-day.is-available .bc-day-link:hover::before { border-color: var(--bc-accent); }
/* Today: solid accent, gold ring; the strongest mark on the grid. */
.bc-day.is-today .bc-day-link::before, .bc-day.is-today .bc-day-inner::before { background: var(--bc-accent); box-shadow: 0 0 0 2px var(--bc-surface), 0 0 0 3.5px var(--bc-gold); }
.bc-day.is-today .bc-day-num { color: #fffdf8; font-weight: 700; }
.bc-day.is-today.is-missing .bc-day-inner::before { background: var(--bc-surface); border: 1px dashed var(--bc-accent); box-shadow: 0 0 0 2px var(--bc-surface), 0 0 0 3.5px var(--bc-gold); }
.bc-day.is-today.is-missing .bc-day-num { color: var(--bc-accent); }
/* Locked: readable number, faint diagonal hatch, dashed edge and a small lock. Not clickable, not broken-looking. */
.bc-day.is-locked .bc-day-inner { color: #666c60 !important; }
.bc-day.is-locked .bc-day-inner::before { border: 1px dashed #d3d4c7; background: repeating-linear-gradient(135deg, rgb(102 108 96 / 0%) 0 5px, rgb(102 108 96 / 7%) 5px 6px); }
/* Arrived but not prepared yet: plain and quiet, different from locked. */
.bc-day.is-missing .bc-day-inner { color: #666c60 !important; }
.bc-day.is-missing .bc-day-inner::before { border: 1px dotted #c3c6b3; }
.bc-day.is-selected .bc-day-link::before, .bc-day.is-selected .bc-day-inner::before { outline: 2px solid var(--bc-gold); outline-offset: 1px; }
.bc-day-link:focus-visible { outline: 3px solid var(--bc-gold); outline-offset: -4px; border-radius: 15px; }
.bc-month-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: .75rem 1.25rem 1.25rem; list-style: none; font-size: .75rem; color: var(--bc-muted); }
.bc-month-legend li { display: inline-flex; align-items: center; gap: .5rem; }
.bc-key { display: inline-block; width: 1rem; height: 1rem; border-radius: 6px; border: 1px solid transparent; }
.bc-key--today { background: var(--bc-accent); box-shadow: 0 0 0 1.5px var(--bc-surface), 0 0 0 2.5px var(--bc-gold); }
.bc-key--open { background: var(--bc-accent-soft); border-color: var(--bc-accent); }
.bc-key--locked { border: 1px dashed #b9baab; background: repeating-linear-gradient(135deg, transparent 0 3px, rgb(102 108 96 / 12%) 3px 4px); }
@media (max-width: 359px) {
  /* Seven 44px touch targets need about 310px; let the calendar card extend into the page gutter. */
  .bc-month-card { margin-inline: calc(50% - 50vw); padding-inline: 0; border-inline: 0; border-radius: 16px; }
  .bc-month-toolbar, .bc-month-legend { padding-inline: .75rem; }
  .bc-month-hero .bc-hero-copy { padding-inline: 1.25rem; }
}
@media (min-width: 480px) {
  .bc-wd-initial { display: none; }
  .bc-wd-long { display: inline; }
}
@media (min-width: 600px) {
  .bc-month-hero { grid-template-columns: 1.2fr 1fr; }
  .bc-month-hero .bc-hero-copy { padding: 2.5rem 0 2.5rem 2.25rem; }
  .bc-month-toolbar { padding: 1rem 1.25rem 0; }
  .bc-month-card { padding: 0 .5rem; }
  .bc-month-grid-wrap { padding-inline: .5rem; }
  .bc-day { height: 4rem; }
  .bc-day-link, .bc-day-inner { min-height: 4rem; }
  .bc-day-num { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  .bc-month-hero .bc-hero-copy { padding: 3rem 1rem 3rem 3rem; }
  .bc-month[data-bc-relation] .bc-month-card { max-width: 46rem; margin-inline: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .bc-month-hero, .bc-month-card { animation: bc-arrive 700ms var(--bc-ease) backwards; }
  .bc-month-card { animation-delay: 140ms; }
  .bc-day-link::before { transition: border-color 180ms var(--bc-ease), background-color 180ms var(--bc-ease); }
}
@media (forced-colors: active) {
  .bc-day.is-today .bc-day-link, .bc-day.is-today .bc-day-inner { outline: 2px solid Highlight; }
  .bc-day.is-locked .bc-day-inner { color: GrayText !important; }
}
@media print { .bc-month-nav { display: none; } }
