/* ============================================================
   Military holidays and observances page
   Loaded after brand.css on /military-holidays-and-observances.html only.
   Uses the brand tokens from brand.css; no new colors or fonts.

   Month cards use the site's .card. The rows inside copy the
   dashboard's booking rows (Assets/css/dashboard.css, .booking-line
   and .booking-date-block): a cobalt date block, name and one line
   underneath, a tag on the right, thin rules between rows.
   ============================================================ */

.nowrap { white-space: nowrap; }

/* ---------- Hero extras ---------- */
.hero-kicker {
  display: inline-block;
  margin: 0 0 22px;
  padding: 2px 14px 0;
  border: 3px solid var(--cream);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: .1em;
  transform: rotate(-3deg);
}

/* ---------- Month cards ---------- */
.month-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 820px;
  margin: 40px auto 0;
}
.month-card { container-type: inline-size; padding: 22px 24px 10px; }
.month-card-title {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #E0D8C6;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blue);
}

/* ---------- Rows (dashboard booking-line pattern) ---------- */
.obs-lines { list-style: none; margin: 0; padding: 0; }
.obs-line {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 2px;
  border-bottom: 3px solid #E4DFD4;
}
.obs-line:last-child { border-bottom: 0; }

.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 64px;
  padding: 9px 0 8px;
  background: var(--blue);
  color: var(--cream);
  text-align: center;
}
.date-block-month {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}
.date-block-day {
  padding-top: 3px;
  font-family: var(--font-disp);
  font-size: 2.6rem;
  line-height: .9;
}
/* Past dates: muted block, same treatment the dashboard uses for refunded sales */
.obs-line.is-past .date-block { background: var(--paper); color: var(--ink); }

.obs-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.obs-title { font-size: 1.15rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.obs-sub { font-size: .97rem; line-height: 1.45; color: #4A5872; text-wrap: pretty; }

.obs-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.obs-tag {
  display: inline-block;
  padding: 4px 10px 3px;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Narrow cards: tag drops under the text, lined up with it */
@container (max-width: 600px) {
  .obs-line { flex-wrap: wrap; align-items: flex-start; row-gap: 8px; gap: 8px 14px; }
  .obs-main { flex: 1 1 calc(100% - 80px); }
  .obs-end { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-left: 78px; min-width: 0; }
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 0;
}
.filter-bar button {
  min-height: 46px;
  padding: 0 18px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-disp);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.filter-bar button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.filter-bar button[aria-pressed="true"] { background: var(--blue); color: var(--cream); }
.filter-status { margin-top: 16px; text-align: center; font-size: .95rem; font-weight: 600; }
.filter-empty { margin-top: 32px; text-align: center; font-weight: 600; }

/* ---------- Short "how it is observed" note under a date ---------- */
.obs-note { margin-top: 4px; font-size: .9rem; font-weight: 600; color: var(--ink); }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .month-card { padding: 18px 16px 6px; }
  .month-card-title { font-size: 2.1rem; }
  .date-block { width: 56px; }
  .date-block-day { font-size: 2.1rem; }
  .obs-title { font-size: 1.02rem; }
  .obs-sub { font-size: .9rem; }
  .filter-bar { gap: 10px; }
  .filter-bar button { font-size: 1.2rem; padding: 0 14px; flex: 1 1 auto; }
}
@media (max-width: 600px) {
  @container (max-width: 600px) {
    .obs-main { flex-basis: calc(100% - 70px); }
    .obs-end { padding-left: 70px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .filter-bar button { transition: none; }
}

@media print {
  .filter-bar, .filter-status { display: none !important; }
  .month-card { break-inside: avoid; box-shadow: none; }
}
