/* Responsive holiday calendar, category filters and accessible details dialog. */
.nds-holiday-countdown {
  --holiday-ink: #1d2b25;
  --holiday-muted: #748078;
  --holiday-line: #e4ebe5;
  --holiday-green: #23775a;
  --holiday-deep: #174e3b;
  color: var(--holiday-ink);
  font-family: inherit;
}
.nds-holiday-countdown *,
.nds-holiday-countdown *::before,
.nds-holiday-countdown *::after { box-sizing: border-box; }
.holiday-dashboard { padding: clamp(19px, 3vw, 31px); border: 1px solid #e6ece6; border-radius: 26px; background: #fff; box-shadow: 0 20px 58px rgba(25, 55, 39, .08); }
.holiday-dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.holiday-dashboard-head h2 { margin: 7px 0 0; font-size: clamp(22px, 3vw, 29px); line-height: 1.2; letter-spacing: -.045em; }
.holiday-dashboard-head p { max-width: 540px; margin: 6px 0 0; color: var(--holiday-muted); font-size: 12px; line-height: 1.6; }
.holiday-dashboard-kicker { color: var(--holiday-green); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.holiday-today-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #e4ece5; border-radius: 10px; color: #63746a; background: #f8faf8; font-size: 10px; font-weight: 700; white-space: nowrap; }
.holiday-today-pill svg { width: 14px; height: 14px; color: var(--holiday-green); }
.holiday-next-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; overflow: hidden; min-height: 160px; padding: 24px 27px; border-radius: 19px; color: #fff; background: linear-gradient(115deg, #174e3b 0%, #23775a 100%); }
.holiday-next-card::after { content: ""; position: absolute; top: -86px; right: 120px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.025), 0 0 0 48px rgba(255,255,255,.018); pointer-events: none; }
.holiday-next-copy, .holiday-next-counter { position: relative; z-index: 1; }
.holiday-next-label { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.holiday-next-label svg { width: 15px; height: 15px; }
.holiday-next-title { margin: 10px 0 5px; font-size: clamp(22px, 3vw, 30px); line-height: 1.18; letter-spacing: -.045em; }
.holiday-next-date { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.holiday-next-counter { display: flex; align-items: baseline; justify-content: flex-end; gap: 9px; min-width: 170px; text-align: right; }
.holiday-next-number { color: #fff; font-size: clamp(52px, 7vw, 76px); line-height: .9; font-weight: 790; letter-spacing: -.075em; }
.holiday-next-unit { max-width: 80px; color: rgba(255,255,255,.77); font-size: 12px; line-height: 1.3; text-align: left; }
.holiday-cards-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 25px 0 13px; }
.holiday-cards-head h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.holiday-cards-head span { color: #89958d; font-size: 10px; }
.holiday-filter-heading { margin: 20px 0 9px; color: #627168; font-size: 11px; font-weight: 750; }
.holiday-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.holiday-filter { appearance: none; min-height: 34px; padding: 7px 11px; border: 1px solid #e0e8e1; border-radius: 999px; color: #627168; background: #fff; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.holiday-filter:hover { border-color: #aacbb4; color: var(--holiday-deep); background: #f7fbf7; }
.holiday-filter.is-active { border-color: var(--holiday-green); color: #fff; background: var(--holiday-green); box-shadow: 0 4px 10px rgba(35,119,90,.16); }
.holiday-filter:focus-visible, .holiday-card:focus-visible, .holiday-dialog-close:focus-visible { outline: 3px solid #8dbb9b; outline-offset: 3px; }
.holiday-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.holiday-card { appearance: none; display: flex; flex-direction: column; align-items: stretch; width: 100%; min-height: 190px; padding: 15px; border: 1px solid var(--holiday-line); border-radius: 15px; color: inherit; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.holiday-card:hover { transform: translateY(-2px); border-color: #bed7c4; box-shadow: 0 8px 22px rgba(25,55,39,.06); }
.holiday-card.is-next { border-color: #9bc6a8; background: linear-gradient(155deg, #fbfefb, #f0f7f1); }
.holiday-card.is-selected { border-color: var(--holiday-green); background: linear-gradient(155deg, #f2faf3, #e8f4ea); box-shadow: 0 0 0 2px rgba(35,119,90,.12), 0 8px 22px rgba(25,55,39,.06); }
.holiday-card.is-selected .holiday-card-hint { color: var(--holiday-green); }
.holiday-card[hidden] { display: none !important; }
.holiday-card-date-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 8px; min-height: 21px; }
.holiday-card-date { color: #738078; font-size: 10px; font-weight: 700; }
.holiday-card-date-status { flex: 0 0 auto; padding: 3px 6px; border-radius: 6px; color: #5b667c; background: #f1f4fa; font-size: 8px; line-height: 1.2; font-weight: 800; }
.holiday-card-date-status.is-approximate { color: #86612f; background: #fff5e5; }
.holiday-unofficial-tag { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid #f0dbc9; border-radius: 999px; color: #8a5d3f; background: #fff6ef; font-size: 8px; line-height: 1.15; font-weight: 750; }
.holiday-card-badge { flex: 0 0 auto; padding: 4px 6px; border-radius: 6px; color: #fff; background: var(--holiday-green); font-size: 8px; line-height: 1.2; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.holiday-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.holiday-category-tag { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 7px; border: 1px solid #e8eee8; border-radius: 999px; color: #607067; background: #f7faf7; font-size: 8px; line-height: 1.15; font-weight: 750; }
.category-official { color: #286247; border-color: #d7eadc; background: #eff7f0; }
.category-orthodox { color: #755b32; border-color: #efe3ce; background: #fbf5ea; }
.category-islamic { color: #2c6c5b; border-color: #d3ebe3; background: #eff9f5; }
.category-buddhist { color: #896236; border-color: #f2dfc5; background: #fff7ed; }
.category-jewish { color: #536b92; border-color: #dce5f4; background: #f3f6fb; }
.category-slavic { color: #795680; border-color: #eadbed; background: #fbf4fb; }
.category-memorial { color: #6a6262; border-color: #e7e1e1; background: #f7f4f4; }
.category-professional { color: #3e5f87; border-color: #d9e5f2; background: #f0f5fb; }
.holiday-card-title { display: block; margin: 10px 0 5px; color: var(--holiday-ink); font-size: 13px; line-height: 1.35; font-weight: 760; letter-spacing: -.02em; }
.holiday-card-period { display: block; color: #929d95; font-size: 9px; line-height: 1.45; }
.holiday-card-count { display: flex; align-items: baseline; gap: 5px; margin-top: auto; padding-top: 12px; color: var(--holiday-green); }
.holiday-card-count strong { font-size: 21px; line-height: 1; font-weight: 780; letter-spacing: -.05em; }
.holiday-card-count span { color: #738078; font-size: 9px; }
.holiday-card-count.is-today strong { font-size: 13px; letter-spacing: -.02em; }
.holiday-card-hint { display: block; margin-top: 8px; color: #7d8c82; font-size: 9px; font-weight: 700; }
.holiday-source-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; padding: 12px 14px; border-radius: 11px; color: #718077; background: #f5f8f5; font-size: 10px; line-height: 1.6; }
.holiday-source-note svg { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 1px; color: #7ca28a; }
.holiday-source-note a { color: #4e7960; text-underline-offset: 2px; }
.holiday-noscript { margin: 12px 0 0; padding: 12px; border-radius: 10px; color: #865e16; background: #fff8e9; font-size: 12px; }
.holiday-page-hero { padding: 55px 0 30px; }
.holiday-page-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .44fr); align-items: center; gap: 35px; }
.holiday-page-title { max-width: 750px; margin: 14px 0 14px; font-size: clamp(40px, 5.5vw, 60px); line-height: 1.05; letter-spacing: -.06em; }
.holiday-page-title em { color: var(--green); font-style: normal; }
.holiday-page-intro { max-width: 680px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.holiday-hero-art { position: relative; display: grid; place-items: center; min-height: 208px; border: 1px solid #e4ece5; border-radius: 23px; background: radial-gradient(circle at 65% 34%, #e2f1e5, #f5f8f5 63%); }
.holiday-hero-art-card { width: min(80%, 235px); padding: 19px; border: 1px solid rgba(255,255,255,.9); border-radius: 17px; background: rgba(255,255,255,.9); box-shadow: 0 14px 35px rgba(25,55,39,.11); transform: rotate(-3deg); }
.holiday-art-top { display: flex; align-items: center; justify-content: space-between; color: #718077; font-size: 9px; font-weight: 700; }
.holiday-art-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--green); background: #e9f4eb; }
.holiday-art-mark svg { width: 15px; height: 15px; }
.holiday-art-month { margin: 14px 0 4px; color: var(--ink); font-size: 18px; font-weight: 760; letter-spacing: -.04em; }
.holiday-art-event { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px; border-radius: 8px; color: #4c6e58; background: #eff6f0; font-size: 9px; }
.holiday-art-event i { width: 6px; height: 6px; border-radius: 50%; background: #62a27a; }
.holiday-page-shell { padding: 0 0 15px; }
.holiday-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.holiday-info-card { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.holiday-info-card h3 { margin: 12px 0 6px; font-size: 14px; letter-spacing: -.02em; }
.holiday-info-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.holiday-info-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--green); background: var(--green-soft); }
.holiday-info-icon svg { width: 17px; height: 17px; }

/* Plain HTML overlay (not <dialog>) works consistently in WordPress and sandboxed previews. */
.holiday-dialog { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 16px; overflow-y: auto; border: 0; border-radius: 0; color: var(--holiday-ink); background: rgba(14, 30, 21, .68); box-shadow: none; }
.holiday-dialog[hidden] { display: none !important; }
.holiday-dialog.is-open { display: flex; }
.holiday-modal-open { overflow: hidden; }
.holiday-dialog-panel { position: relative; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; margin: auto; padding: clamp(22px, 5vw, 34px); border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: #fff; box-shadow: 0 24px 80px rgba(14, 34, 23, .24); }
.holiday-dialog-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e5ece6; border-radius: 11px; color: #52645a; background: #f7faf7; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.holiday-dialog-close:hover { color: #174e3b; background: #eef6ef; }
.holiday-dialog-categories { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 43px; }
.holiday-dialog-date { margin: 18px 0 7px; color: #728078; font-size: 11px; line-height: 1.55; }
.holiday-dialog-title { max-width: 500px; margin: 0; color: #1d2b25; font-size: clamp(25px, 5vw, 34px); line-height: 1.16; letter-spacing: -.045em; }
.holiday-dialog-summary { margin: 14px 0 0; color: #596a60; font-size: 14px; line-height: 1.75; }
.holiday-dialog-countdown { display: inline-flex; margin-top: 17px; padding: 8px 11px; border-radius: 9px; color: #276348; background: #eef7ef; font-size: 11px; font-weight: 800; }
.holiday-dialog-facts { margin-top: 23px; padding: 18px 19px; border: 1px solid #e6eee6; border-radius: 15px; background: #f8fbf8; }
.holiday-dialog-facts h3 { margin: 0 0 10px; font-size: 13px; }
.holiday-dialog-facts ul { display: grid; gap: 9px; margin: 0; padding-left: 19px; color: #596a60; font-size: 12px; line-height: 1.65; }
.holiday-dialog-facts li::marker { color: #4e9467; }
.holiday-dialog-status { margin: 14px 0 0; padding: 11px 13px; border-left: 3px solid #7f9bc6; border-radius: 0 9px 9px 0; color: #526584; background: #f3f6fb; font-size: 11px; line-height: 1.6; }
.holiday-dialog-status[hidden] { display: none; }
.holiday-dialog-note { margin: 14px 0 0; padding: 11px 13px; border-left: 3px solid #d5a25c; border-radius: 0 9px 9px 0; color: #725a39; background: #fcf7ee; font-size: 11px; line-height: 1.6; }
.holiday-dialog-note[hidden] { display: none; }

@media (max-width: 1000px) {
  .holiday-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holiday-page-hero-inner { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
}
@media (max-width: 700px) {
  .holiday-page-hero { padding: 38px 0 22px; }
  .holiday-page-hero-inner { display: block; }
  .holiday-page-title { font-size: clamp(38px, 10vw, 52px); }
  .holiday-page-intro { font-size: 14px; }
  .holiday-hero-art { display: none; }
  .holiday-dashboard { padding: 17px 13px; border-radius: 21px; }
  .holiday-dashboard-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .holiday-next-card { grid-template-columns: 1fr; gap: 18px; padding: 19px; }
  .holiday-next-counter { justify-content: flex-start; min-width: 0; text-align: left; }
  .holiday-next-number { font-size: 58px; }
  .holiday-next-unit { max-width: none; }
  .holiday-card-grid { gap: 9px; }
  .holiday-card { min-height: 186px; padding: 13px; }
  .holiday-card-title { font-size: 12px; }
  .holiday-cards-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .holiday-info-grid { grid-template-columns: 1fr; }
  .holiday-filter { min-height: 36px; }
}
@media (max-width: 390px) {
  .holiday-card-grid { grid-template-columns: 1fr; }
  .holiday-card { min-height: 0; }
  .holiday-dialog-panel { padding: 23px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-filter, .holiday-card { transition: none; }
  .holiday-card:hover { transform: none; }
}
