/* P24 | Tego dnia w historii: samodzielne style, niezależne od motywu. */
.p24h {
  --p24h-navy: #091a30;
  --p24h-navy-2: #102d4d;
  --p24h-burgundy: #781f2b;
  --p24h-gold: #edc46d;
  --p24h-text: #f7f9fd;
  --p24h-muted: #cfdae9;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 1.4rem auto;
  padding: clamp(20px, 3.7vw, 40px);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(237, 196, 109, .35);
  border-radius: 17px;
  background: linear-gradient(123deg, #091b33 3%, #0d2845 68%, #1c233c 100%);
  box-shadow: 0 15px 35px rgba(3, 13, 26, .2);
  color: var(--p24h-text);
  font-family: inherit;
  line-height: 1.55;
}
.p24h, .p24h * { box-sizing: border-box; }
.p24h__glow {
  pointer-events: none;
  position: absolute;
  z-index: -1;
  top: -170px; right: -145px;
  width: 470px; height: 470px;
  background: radial-gradient(circle, rgba(120,31,43,.30) 0%, rgba(120,31,43,.10) 45%, transparent 72%);
}
.p24h::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--p24h-gold), var(--p24h-burgundy) 65%, #4b5a74);
  pointer-events: none;
}
.p24h h2, .p24h h3, .p24h p { margin: 0; color: inherit; }
.p24h__head { display: flex; align-items: center; gap: 25px; justify-content: space-between; flex-wrap: wrap; }
.p24h__heading { flex: 1 1 310px; min-width: 0; }
.p24h__eyebrow { display: flex; gap: 8px; align-items: center; color: var(--p24h-gold) !important; font-size: 11px; font-weight: 800; letter-spacing: .115em; line-height: 1.7; }
.p24h__eyebrow span { display: inline-block; width: 16px; height: 3px; border-radius: 3px; background: currentColor; flex: 0 0 auto; }
.p24h .p24h__heading h2 { margin: 9px 0 7px; color: #fff; font-size: clamp(23px, 3vw, 34px); font-weight: 850; line-height: 1.17; letter-spacing: -.027em; text-transform: uppercase; }
.p24h__heading h2 span { color: var(--p24h-gold); }
.p24h__lead { font-size: 14px; color: var(--p24h-muted) !important; }
.p24h__count { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 18px; min-width: 135px; border: 1px solid rgba(237, 196, 109, .40); border-radius: 10px; background: rgba(6, 21, 43, .36); text-align: center; }
.p24h__count strong { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; color: var(--p24h-gold); font-weight: 850; font-variant-numeric: tabular-nums; }
.p24h__count span { font-size: 10px; margin-top: 5px; color: #e2e9f2; letter-spacing: .04em; font-weight: 700; }
.p24h__toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; padding: 13px; background: rgba(6, 15, 30, .50); border: 1px solid rgba(255, 255, 255, .16); border-radius: 11px; }
.p24h button { font-family: inherit; cursor: pointer; transition: background .17s ease, border-color .17s ease, transform .17s ease; }
.p24h button:focus-visible, .p24h [data-p24-jump]:focus-visible { outline: 3px solid var(--p24h-gold); outline-offset: 3px; }
.p24h__arrow { appearance: none; width: 45px; height: 45px; flex: 0 0 45px; display: inline-flex; align-items: center; justify-content: center; color: var(--p24h-text); background: #223953; border: 1px solid rgba(255,255,255,.29); border-radius: 9px; padding: 0; font-size: 23px; line-height: 1; }
.p24h__arrow:hover { background: var(--p24h-burgundy); border-color: var(--p24h-gold); transform: translateY(-1px); }
.p24h__datewrap { min-width: 0; flex: 1 1 200px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.p24h__datelabel { font-size: 9px; letter-spacing: .11em; font-weight: 800; color: var(--p24h-gold); }
.p24h__date { color: #fff; font-size: clamp(17px, 2.1vw, 24px); line-height: 1.25; font-weight: 800; }
.p24h__weekday { color: var(--p24h-muted); font-size: 12px; }
.p24h__today { appearance: none; margin-left: auto; min-height: 44px; background: rgba(120,31,43,.37); border: 1px solid rgba(237,196,109,.5); border-radius: 8px; color: #fff; padding: 9px 16px; font-weight: 750; font-size: 13px; }
.p24h__today:hover { background: var(--p24h-burgundy); }
.p24h__today:disabled { opacity: .5; cursor: default; }
.p24h__status { padding: 16px 6px; font-size: 14px; color: var(--p24h-muted); }
.p24h__status:empty { display: none; }
.p24h__events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.p24h__event { padding: 19px 19px 17px; min-width: 0; border: 1px solid rgba(237,196,109,.25); border-radius: 10px; background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.022)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.p24h__eventtop { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 12px; flex-wrap: wrap; }
.p24h__eventyear { display: inline-block; padding: 4px 11px; border-radius: 6px; background: var(--p24h-burgundy); color: #fff; font-weight: 850; letter-spacing: .03em; font-size: 13px; }
.p24h__anniv { font-size: 12px; color: var(--p24h-gold); font-weight: 700; }
.p24h .p24h__event h3 { color: #fff; font-size: clamp(17px, 1.85vw, 20px); font-weight: 800; line-height: 1.34; margin: 0 0 8px; }
.p24h__event p { color: #e4ebf3 !important; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.p24h__empty { grid-column: 1 / -1; padding: 25px 22px; border-radius: 11px; text-align: center; border: 1px dashed rgba(237,196,109,.36); background: rgba(6,20,36,.33); }
.p24h__empty strong { display: block; color: var(--p24h-gold); font-size: 18px; margin-bottom: 7px; }
.p24h__empty p { font-size: 14px; color: var(--p24h-muted) !important; }
.p24h__next { margin: 15px 0 0; padding: 12px 15px; border-left: 3px solid var(--p24h-gold); background: rgba(255,255,255,.055); border-radius: 0 7px 7px 0; font-size: 13px; color: var(--p24h-muted); }
.p24h__next[hidden] { display: none; }
.p24h__next strong { color: var(--p24h-gold); }
.p24h__next button { appearance: none; border: 0; padding: 2px 3px; margin-left: 8px; color: #fff; text-decoration: underline; text-underline-offset: 3px; background: none; font-size: 13px; font-weight: 700; }
.p24h__next button:hover { color: var(--p24h-gold); }
.p24h__footer { margin-top: 23px; }
.p24h__divider { width: 100%; height: 1px; margin-bottom: 13px; background: linear-gradient(90deg, rgba(237,196,109,.75), rgba(237,196,109,.08)); }
.p24h__footer p { color: #bbc9db !important; font-size: 11.5px; line-height: 1.65; }
.p24h__footer p strong { color: #eee6cf; font-weight: 800; }
.p24h__retry { margin-top: 12px; padding: 9px 14px; border: 1px solid rgba(237,196,109,.6); border-radius: 7px; background: var(--p24h-burgundy); color: #fff; font-weight: 700; }
@media (max-width: 720px) {
  .p24h { padding: 20px 16px 23px; border-radius: 12px; }
  .p24h__count { display: none; }
  .p24h .p24h__heading h2 { font-size: clamp(22px, 6.2vw, 30px); }
  .p24h__events { grid-template-columns: minmax(0, 1fr); }
  .p24h__toolbar { padding: 10px; gap: 7px; }
  .p24h__datewrap { flex: 1 1 130px; }
  .p24h__today { margin-left: 0; flex: 1 1 100%; }
  .p24h__event { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .p24h button { transition: none; }
}
