/* v51 — Kalendarz. Biała karta, świetliste mineralne tło, jeden fotograficzny plakat. */
body.view-events>.site-header{position:relative;background:var(--deep);color:var(--white)}
body.view-events #main{--calendar-header:110px}
.calendar-page{
 --cal-ink:#18333f;--cal-muted:#526b72;--cal-gold:#8a6334;--cal-line:#e1e2d9;
 --cal-dark:#10343c;--cal-serif:"Cormorant Garamond",Georgia,serif;--cal-sans:Montserrat,"Segoe UI",sans-serif;
 --cal-gutter:clamp(28px,4.35vw,90px);color-scheme:light;position:relative;color:var(--cal-ink);
 background:radial-gradient(ellipse at 48% 46%,#f7f7ee 0%,#f1f5ee 36%,transparent 73%),radial-gradient(ellipse at 0% 97%,#cee9e5 0%,transparent 48%),linear-gradient(125deg,#dfefed,#eaf3ed 58%,#d1e9e5);
 padding:clamp(24px,3.3vh,39px) var(--cal-gutter) clamp(27px,3.6vh,42px);
 display:flex;flex-direction:column;gap:clamp(22px,2.7vh,32px);font-family:var(--cal-serif);font-weight:500;min-width:0
}
.calendar-page *, .calendar-page *::before,.calendar-page *::after{box-sizing:border-box}
.calendar-page [hidden]{display:none!important}
.calendar-page button,.calendar-page a{-webkit-tap-highlight-color:transparent}
.calendar-page button{cursor:pointer}
.calendar-page button:focus-visible,.calendar-page a:focus-visible,.calendar-page [tabindex]:focus-visible{outline:2px solid #b58b51;outline-offset:3px}
.calendar-page-heading{flex:none;padding:0 0 0 2px}
.calendar-page-heading h1{font:400 clamp(36px,2.9vw,56px)/1.12 var(--cal-serif);letter-spacing:.085em;margin:0;color:var(--cal-ink)}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(0,1fr);gap:clamp(23px,2.25vw,43px);flex:1;min-height:0;align-items:stretch}
.calendar-panel{background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.95);border-radius:13px;padding:clamp(22px,1.9vw,37px);display:flex;flex-direction:column;min-width:0;min-height:0;box-shadow:0 8px 36px #21494c06}
.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex:none;margin-bottom:clamp(19px,2.45vh,29px)}
.month-controls{display:flex;align-items:center;gap:clamp(9px,.8vw,15px);min-width:0;flex:none}
.calendar-toolbar h2{font:500 clamp(22px,1.72vw,33px)/1.15 var(--cal-serif);letter-spacing:.095em;text-transform:uppercase;white-space:nowrap;font-variant-numeric:lining-nums;margin:0}
.today-button{font:500 12px/1.35 var(--cal-sans);color:var(--cal-gold);padding:10px 4px;white-space:nowrap;position:relative;letter-spacing:.025em}
.today-button:hover{color:#5d411f;text-decoration:underline;text-underline-offset:5px}
.month-navigation{display:flex;gap:7px}
.month-button{width:37px;height:37px;border:1px solid #d6ddd6;border-radius:50%;display:grid;place-items:center;padding:0;color:#435b65;background:transparent;transition:background .18s,border-color .18s}
.month-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
.month-button:hover{border-color:#b89a6d;background:#f8f6ee}
.filters{display:flex;align-items:center;justify-content:flex-end;gap:clamp(14px,1.35vw,26px);flex-wrap:wrap}
.filter{font:400 clamp(12px,.83vw,16px)/1.4 var(--cal-sans);color:var(--cal-muted);padding:9px 0;white-space:nowrap;border-bottom:1px solid transparent;background:none}
.filter.is-active{font-weight:500;color:var(--cal-ink);border-color:#b38a4c}
.filter:hover{color:var(--cal-gold)}
.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.weekdays{flex:none}
.weekdays span{text-align:center;padding:0 0 15px;font:500 11px/1.3 var(--cal-sans);letter-spacing:.19em;color:var(--cal-ink)}
.calendar-grid{flex:1;min-height:0;grid-template-rows:repeat(var(--weeks,6),minmax(0,1fr));border-left:1px solid var(--cal-line);border-top:1px solid var(--cal-line);overflow:hidden;border-radius:3px}
.day-cell{position:relative;min-width:0;min-height:0;overflow:hidden;border-right:1px solid var(--cal-line);border-bottom:1px solid var(--cal-line);background:#ffffff45}
.day-cell--outside{background:#e8efea48}
.day-number{position:absolute;z-index:3;top:11px;left:13px;font:500 clamp(19px,1.25vw,24px)/1 var(--cal-serif);pointer-events:none;font-variant-numeric:lining-nums;display:flex;align-items:center;gap:6px}
.day-number-digit{display:grid;place-items:center;min-width:29px;height:31px;padding-top:1px}
.is-today .day-number{top:9px;left:11px}
.is-today .day-number-digit{width:35px;height:35px;min-width:35px;border:1px solid #ac854b;border-radius:50%;padding:0}
.day-today{font:500 11px/1.2 var(--cal-sans);letter-spacing:.07em;color:#795324}
.event-day{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:#21454d center/cover no-repeat;isolation:isolate;text-align:left;transition:filter .18s}
.event-day::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#071b2470,transparent 45%,#071b24c9);z-index:-1}
.event-day:hover{filter:brightness(1.13)}
.event-day:focus-visible{outline-offset:-3px!important}
.has-event .day-number{color:#fff7e9;text-shadow:0 1px 5px #0e222a}
.has-event .day-today{color:#f7dba4;text-shadow:0 1px 4px #071820}
.has-event.is-today .day-number-digit{border-color:#e3ba74}
.has-event::after{content:"";position:absolute;top:15px;right:13px;width:6px;height:6px;border-radius:50%;background:#dfb46f;z-index:3;pointer-events:none}
.is-today.has-event::after{display:none}
.day-cell.is-selected{outline:2px solid #c09a5e;outline-offset:-2px;z-index:1}
.day-cell.is-selected .event-day{box-shadow:inset 0 0 0 2px #c09a5e}
.event-title-small{position:absolute;bottom:10px;left:13px;right:10px;color:#fff8ee;font:500 clamp(14px,1vw,19px)/1.06 var(--cal-serif);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 4px #10242a}
.event-count{position:absolute;right:8px;top:28px;background:#102e36bd;color:#fff;font:500 10px/1.4 var(--cal-sans);padding:2px 5px;border-radius:8px}
.calendar-note:empty{display:none}
/* The photograph is the card, not a thumbnail above a text box. */
.event-details{min-width:0;min-height:0;border-radius:13px;overflow:hidden;color:#f0e9dd;background:var(--cal-dark);border:1px solid #294c51;position:relative;isolation:isolate;box-shadow:0 8px 36px #1a3e4520}
.details-content{height:100%;min-height:0;position:relative;isolation:isolate;display:grid;grid-template-rows:minmax(0,45fr) minmax(0,55fr)}
.details-image-wrap{position:absolute;inset:0;margin:0;overflow:hidden;background:#10343c;z-index:-1}
.details-image{position:absolute;inset:0 0 auto;width:100%;height:77%;object-fit:cover;display:block}
.details-image-wrap::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 0%,transparent 29%,#10343c38 40%,#10343cb8 55%,#10343cf3 70%,#10343c 77%);pointer-events:none}
.details-image.is-missing{opacity:0}
.details-body{grid-row:2;display:flex;flex-direction:column;justify-content:flex-end;min-height:0;padding:0 clamp(28px,2.6vw,50px) clamp(26px,3.5vh,40px);gap:clamp(14px,1.7vh,20px)}
.details-heading{flex:none;min-width:0}
.details-reading{min-height:0;flex:0 1 auto;overflow-y:auto;overscroll-behavior-y:auto;scrollbar-width:thin;scrollbar-color:#b6a38477 transparent;padding-right:10px;margin-right:-10px;scroll-padding-block:10px;position:relative}
.details-reading:focus:not(:focus-visible){outline:none}
.details-kicker{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:0 0 13px;color:#edc58b;font:500 clamp(11px,.78vw,15px)/1.4 var(--cal-sans);letter-spacing:.16em;text-transform:uppercase}
.kicker-dot{font-size:15px;line-height:1}
.details-heading h2{font:400 clamp(34px,2.85vw,55px)/1.04 var(--cal-serif);letter-spacing:-.012em;color:#f5eee3;text-wrap:balance;max-width:21ch;margin:0 0 16px}
.details-meta{display:grid;gap:6px;margin:0;color:#d3dedd;font:400 clamp(13px,.9vw,17px)/1.45 var(--cal-sans)}
.details-meta p:empty{display:none}
.details-location{display:flex;align-items:flex-start;gap:8px}
.details-location svg{width:18px;height:18px;flex:none;stroke:currentColor;stroke-width:1.35;fill:none;stroke-linejoin:round;stroke-linecap:round}
.details-lead,.details-description{font:500 clamp(21px,1.45vw,28px)/1.4 var(--cal-serif);color:#e9e4da;margin:0;max-width:44ch}
.details-lead:empty{display:none}
.details-description{margin-top:12px}
.details-description p{margin:0 0 .75em}
.details-description ul{padding-left:1.15em;margin:0 0 .7em}
.details-description a{color:#e3be83;text-decoration:underline;text-underline-offset:3px}
.description-toggle{display:inline-flex;align-items:center;gap:8px;min-height:29px;color:#e5c28c;font:500 12px/1.4 var(--cal-sans);padding:5px 0;margin:0;border:0;background:none;letter-spacing:.03em}
.description-toggle svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.description-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.description-toggle[aria-expanded=true] span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.description-toggle[aria-expanded=true]{min-width:40px;min-height:40px;justify-content:center;margin-left:auto}
.description-toggle:hover{color:#fae3c2}
.details-actions{flex:none;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.signup-link{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:47px;padding:13px 31px;border-radius:40px;background:#dfb77c;color:#16323a;text-decoration:none;font:500 13px/1.35 var(--cal-sans);letter-spacing:.18em;transition:background .18s}
.signup-link svg{width:20px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round}
.signup-link[href]:hover{background:#f0cf99}
.signup-link[data-demo]{cursor:default}
/* Accepted empty state — same tone, hierarchy and spaciousness as v50. */
.details-empty{padding:clamp(28px,3vw,54px);height:100%;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(ellipse at 90% 15%,#31565a,#10343c 72%)}
.details-empty h2{font:400 clamp(34px,3.5vw,60px)/1.1 var(--cal-serif);margin:0 0 12px;color:#f2eade}
.details-empty p{font:500 23px/1.4 var(--cal-serif);color:#d8e0db}
.same-day{display:grid;gap:4px;margin:9px 0 0;max-height:70px;overflow-y:auto;scrollbar-width:thin}
.same-day button{font:400 12px/1.4 var(--cal-sans);color:#e2e6df;text-align:left;padding:7px 0;border-bottom:1px solid #c6d6d533}
.same-day button[aria-pressed=true]{color:#e5bc7d}
.load-error,.noscript-message{font:400 14px/1.5 var(--cal-sans);color:#783e2d}
@media (min-width:1100px) and (min-height:650px){
 body.view-events #main{height:calc(100dvh - var(--calendar-header));min-height:0}
 .calendar-page{height:100%;min-height:0;overflow:hidden}
}
@media (min-width:1100px) and (max-width:1550px){
 .calendar-toolbar{flex-wrap:wrap;gap:9px}.filters{justify-content:flex-start}.calendar-panel{padding:23px}.calendar-toolbar{margin-bottom:17px}
}
@media (max-height:950px) and (min-width:1100px){
 .calendar-page{gap:22px;padding-top:25px;padding-bottom:29px}.calendar-page-heading h1{font-size:clamp(34px,2.7vw,48px)}
 .calendar-panel{padding:25px 30px}.calendar-toolbar{margin-bottom:20px}.weekdays span{padding-bottom:13px}
 .details-content{grid-template-rows:minmax(0,39fr) minmax(0,61fr)}.details-body{padding:0 32px 28px;gap:15px}.details-kicker{margin-bottom:10px}.details-heading h2{font-size:clamp(33px,2.65vw,47px);margin-bottom:13px}.details-meta{gap:5px}.details-lead,.details-description{font-size:23px}.signup-link{min-height:43px;padding:10px 27px}
 .day-number{top:7px;left:11px}.is-today .day-number{top:5px;left:9px}.event-title-small{bottom:8px;left:12px;font-size:16px}.day-number-digit{height:28px}.is-today .day-number-digit{width:33px;height:33px;min-width:33px}
}
@media (max-height:800px) and (min-width:1100px){
 .calendar-page{padding-top:19px;padding-bottom:23px;gap:17px}.calendar-page-heading h1{font-size:36px}.calendar-panel{padding:20px 24px}.calendar-toolbar{margin-bottom:13px}.weekdays span{padding-bottom:10px}.month-button{width:31px;height:31px}.day-number{top:5px;left:8px;font-size:19px}.is-today .day-number{top:3px;left:6px}.is-today .day-number-digit{width:29px;height:29px;min-width:29px}.day-today{font-size:10px}.event-title-small{bottom:4px;left:8px;font-size:14px}.details-content{grid-template-rows:minmax(0,33fr) minmax(0,67fr)}.details-body{padding:0 25px 23px;gap:11px}.details-heading h2{font-size:36px;margin-bottom:9px}.details-kicker{margin-bottom:8px}.details-lead,.details-description{font-size:21px}.signup-link{min-height:39px;padding:9px 23px}
}
@media(max-width:1099px),(max-height:649px){
 .calendar-layout{grid-template-columns:minmax(0,1fr);gap:22px}.calendar-page{padding:26px clamp(15px,4vw,48px) 36px}.calendar-page-heading{gap:7px}.calendar-toolbar{flex-wrap:wrap;justify-content:space-between}.calendar-grid{grid-auto-rows:minmax(65px,1fr);grid-template-rows:repeat(var(--weeks,6),minmax(76px,10vw))}.event-details{height:auto}.details-content{display:block;min-height:0;padding-top:clamp(190px,42vw,370px)}.details-image{height:100%;object-position:center top}.details-image-wrap::after{background:linear-gradient(180deg,transparent 10%,#10343c40 30%,#10343cf0 67%,#10343c 100%)}.details-reading{overflow:visible;padding-right:0;margin:0}.details-body{padding:22px 24px 28px}.details-empty{min-height:240px}.details-actions{margin-top:8px}
}
@media(max-width:600px){
 .calendar-page-heading h1{font-size:32px;letter-spacing:.055em}.calendar-panel{padding:15px}.month-controls{gap:7px}.month-button{width:29px;height:29px}.calendar-toolbar h2{font-size:23px}.filters{justify-content:flex-start;gap:16px}.filter{font-size:12px}.weekdays span{font-size:9px;letter-spacing:.08em}.calendar-grid{grid-template-rows:repeat(var(--weeks,6),minmax(57px,13vw))}.day-number{top:5px;left:4px;font-size:19px;gap:1px}.day-number-digit{min-width:20px;height:20px}.is-today .day-number{top:3px;left:2px;gap:1px;flex-direction:column;align-items:flex-start}.is-today .day-number-digit{width:24px;height:24px;min-width:24px}.day-today{font-size:8px;letter-spacing:0}.has-event::after{width:4px;height:4px;top:7px;right:5px}.event-title-small{font-size:11px;left:4px;right:3px;bottom:4px}.event-count{font-size:8px;right:3px}.details-heading h2{font-size:38px}
}
@media(prefers-reduced-motion:reduce){.calendar-page *{transition:none!important;scroll-behavior:auto!important}}

/* Reading mode expands inside the existing poster, never the outer page. */
@media (min-width:1100px) and (min-height:650px){
 .details-content:has(.description-toggle[aria-expanded=true]){grid-template-rows:minmax(0,23fr) minmax(0,77fr)}
 .details-content:has(.description-toggle[aria-expanded=true]) .details-reading{flex:1 1 auto}
 .details-content:has(.description-toggle[aria-expanded=true]) .details-image-wrap::after{background:linear-gradient(180deg,transparent 0%,#10343c45 13%,#10343cd9 29%,#10343cf5 56%,#10343c 77%)}
}
