/* A shared calendar folio: red date rail and white reading surface. */
.holiday-dialog-open { overflow: hidden; scrollbar-gutter: stable; }
.holiday-dialog {
    --holiday-brand: #bb2838;
    --holiday-ink: #342d30;
    --holiday-muted: #80777b;
    --holiday-line: #ece6e8;
    --holiday-accent: #bb2838;
    --holiday-sidebar: 230px;
    position: fixed;
    width: min(1020px, calc(100vw - 80px));
    max-height: calc(100dvh - 64px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--holiday-ink);
    overflow: hidden;
    font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    box-shadow: 0 30px 100px #2c17203d, 0 6px 24px #2c172014;
}
.holiday-dialog::backdrop { background: #29232766; backdrop-filter: blur(3px); }
.holiday-dialog[open] { display: flex; flex-direction: column; }
.holiday-dialog [hidden] { display: none; }
.holiday-dialog-controls { position: absolute; z-index: 2; top: 18px; right: 20px; left: calc(var(--holiday-sidebar) + 32px); display: flex; align-items: center; gap: 14px; pointer-events: none; }
.holiday-dialog-controls button { pointer-events: auto; }
.holiday-dialog-close, .holiday-dialog-back { display: flex; align-items: center; justify-content: center; height: 32px; padding: 0; border: 0; border-radius: 4px; background: #fff; color: #84787e; font-family: inherit; font-size: 18px; flex-shrink: 0; transition: background-color .18s, color .18s; }
.holiday-dialog-close { width: 32px; margin-left: auto; }
.holiday-dialog-back { gap: 10px; padding-inline: 4px 10px; font-size: 17px; }
.holiday-dialog-back span { font-size: 13px; line-height: 22px; }
.holiday-dialog-close:hover, .holiday-dialog-back:hover { color: var(--holiday-brand); background: #fbf0f2; }
.holiday-dialog :is(button, select):focus-visible { outline: 2px solid #bb2838; outline-offset: 3px; }
.holiday-year-select:focus-visible { outline-color: #fff0f2; }
.holiday-dialog-content { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d1c2c7 transparent; }
.holiday-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.holiday-directory { display: grid; grid-template-columns: var(--holiday-sidebar) minmax(0, 1fr); min-height: 602px; }
.holiday-directory-sidebar { display: flex; flex-direction: column; padding: 42px 30px 30px; background: var(--holiday-brand); color: #fff; }
.holiday-directory-sidebar h3 { max-width: 150px; margin: 0; font-size: 24px; font-weight: 600; line-height: 1.5; letter-spacing: .5px; }
.holiday-directory-sidebar h3 span { display: block; }
.holiday-directory-subtitle { margin: 10px 0 0; color: #ffe1e5; font-size: 13px; line-height: 22px; }
.holiday-year-control { position: relative; margin-top: 38px; }
.holiday-year-select { display: flex; align-items: baseline; gap: 7px; width: 100%; padding: 8px 12px; border: 1px solid #ffffff52; border-radius: 6px; background: #ffffff0a; color: #fff; font-family: inherit; font-size: 30px; font-weight: 300; line-height: 38px; text-align: left; font-variant-numeric: tabular-nums; transition: background-color .18s, border-color .18s; }
.holiday-year-select:hover, .holiday-year-select[aria-expanded="true"] { border-color: #ffffff9c; background: #ffffff14; }
.holiday-year-unit { font-size: 16px; font-weight: 400; line-height: 24px; }
.holiday-year-select > i { align-self: center; margin-left: auto; color: #ffe1e5; font-size: 11px; transition: transform .18s; }
.holiday-year-select[aria-expanded="true"] > i { transform: rotate(180deg); }
.holiday-year-select:disabled { border-color: transparent; background: transparent; cursor: default; }
.holiday-year-select:disabled > i { display: none; }
.holiday-year-options { position: absolute; z-index: 3; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; border: 1px solid #eee3e5; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px #6416212b, 0 2px 6px #64162114; }
.holiday-year-options button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--holiday-ink); font-family: inherit; font-size: 15px; font-weight: 400; line-height: 22px; text-align: left; font-variant-numeric: tabular-nums; }
.holiday-year-options button > i { color: var(--holiday-brand); font-size: 16px; visibility: hidden; }
.holiday-year-options button[aria-selected="true"] { background: #fbebee; color: var(--holiday-brand); font-weight: 600; }
.holiday-year-options button[aria-selected="true"] > i { visibility: visible; }
.holiday-year-options button:hover, .holiday-year-options button:focus-visible { background: #f8f2f3; }
.holiday-year-options button:focus-visible { outline: 1px solid var(--holiday-brand); outline-offset: -2px; }
.holiday-list-count { margin-top: 20px; color: #ffe1e5; font-size: 12px; line-height: 22px; }
.holiday-directory-caption { margin: auto 0 0; padding-top: 40px; color: #ffe1e5; font-size: 12px; line-height: 22px; }
.holiday-directory-main { min-width: 0; padding: 38px 38px 28px; }
.holiday-directory-title { margin: 0 0 16px; padding-right: 36px; color: var(--holiday-ink); font-size: 23px; font-weight: 600; line-height: 34px; }
.holiday-ledger { columns: 2; column-gap: 38px; list-style: none; margin: 0; padding: 0; }
.holiday-ledger > li { break-inside: avoid; margin: 0; padding: 0; border-bottom: 1px solid var(--holiday-line); }
.holiday-list-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 10px; align-items: center; gap: 14px; width: 100%; min-height: 74px; padding: 14px 0; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; transition: background-color .18s; }
.holiday-list-item:hover { background: #fdf6f7; }
.holiday-list-item .holiday-date { display: block; white-space: nowrap; line-height: 28px; align-self: start; }
.holiday-list-item .holiday-date-number { color: var(--holiday-ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 24px; font-weight: 400; letter-spacing: -.7px; line-height: 29px; font-variant-numeric: tabular-nums; }
.holiday-list-item.is-featured .holiday-date-number { color: var(--holiday-brand); }
.holiday-list-summary { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.holiday-list-item .holiday-name { color: var(--holiday-ink); font-size: 15px; font-weight: 600; line-height: 24px; overflow-wrap: anywhere; }
.holiday-list-item .holiday-status { color: var(--holiday-muted); font-size: 12px; font-weight: 400; line-height: 20px; }
.holiday-list-item.is-statutory .holiday-status { color: var(--holiday-accent); }
.holiday-list-arrow { color: #a28b92; font-size: 10px; opacity: 0; transform: translateX(-3px); transition: opacity .18s, transform .18s; }
.holiday-list-item:is(:hover, :focus-visible) .holiday-list-arrow { opacity: 1; transform: none; }
.holiday-source-note { margin: 22px 0 0; color: var(--holiday-muted); font-size: 12px; line-height: 21px; }
.holiday-dialog[data-view="detail"] { --holiday-sidebar: 210px; width: min(800px, calc(100vw - 80px)); }
.holiday-detail { display: grid; grid-template-columns: var(--holiday-sidebar) minmax(0, 1fr); min-height: 466px; }
.holiday-detail-calendar-panel { padding: 82px 32px 40px; background: var(--holiday-brand); color: #fff; }
.holiday-detail-calendar { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.holiday-detail-calendar > small { color: #ffe1e5; font-size: 14px; line-height: 24px; }
.holiday-detail-calendar > span { font-family: "Segoe UI", Arial, sans-serif; font-size: 84px; font-weight: 300; line-height: 1; letter-spacing: -3px; }
.holiday-detail-calendar::after { content: ""; width: 36px; height: 2px; margin-top: 14px; background: #f3b0b8; }
.holiday-kind { display: block; margin-top: 24px; color: #ffe1e5; font-size: 13px; line-height: 24px; }
.holiday-detail-body { min-width: 0; padding: 76px 38px 38px; }
.holiday-detail-identity { margin-bottom: 28px; }
.holiday-detail-name { margin: 0; color: var(--holiday-ink); font-size: 30px; font-weight: 600; line-height: 42px; letter-spacing: .3px; overflow-wrap: anywhere; }
.holiday-russian { margin: 8px 0 0; color: #88777d; font-size: 15px; line-height: 24px; overflow-wrap: anywhere; }
.holiday-detail-section { padding-top: 22px; border-top: 1px solid var(--holiday-line); }
.holiday-detail-section + .holiday-detail-section { margin-top: 24px; }
.holiday-detail-section h4 { margin: 0 0 10px; color: var(--holiday-muted); font-size: 12px; font-weight: 400; line-height: 20px; }
.holiday-description { margin: 0; color: var(--holiday-ink); font-size: 15px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.holiday-detail-status { margin: 0 0 10px; color: var(--holiday-ink); font-size: 17px; font-weight: 600; line-height: 26px; }
.holiday-detail-status.is-statutory { color: var(--holiday-accent); }
.holiday-rest-note { margin: 0; color: var(--holiday-muted); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .holiday-dialog * { transition: none !important; } }
