/* ALMS Adwent - kalendarz adwentowy (granat i złoto jak motyw alms-szkola, w obu trybach granatowe tło) */
.alms-adw {
	--adw-gold: #DDB671;
	--adw-cream: #FBF6EA;
	--adw-ink: #001A38;
	--adw-muted: var(--wp--preset--color--on-primary-muted, #C9D6E5);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 2.5rem);
	margin-top: 1.25rem;
	padding: clamp(1.25rem, 3.2vw, 2.5rem);
	border: 1px solid transparent;
	border-radius: 28px;
	color: #FFFFFF;
	overflow: hidden;
	background:
		radial-gradient(1.4px 1.4px at 12% 22%, rgb(255 255 255 / .55) 50%, transparent 51%) 0 0 / 340px 340px,
		radial-gradient(1px 1px at 70% 12%, rgb(255 255 255 / .45) 50%, transparent 51%) 0 0 / 260px 260px,
		radial-gradient(1.2px 1.2px at 40% 70%, rgb(255 255 255 / .35) 50%, transparent 51%) 0 0 / 420px 420px,
		var(--wp--preset--color--primary-2, #002A5B);
}
.alms-adw, .alms-adw *, .alms-adw-ov, .alms-adw-ov * { box-sizing: border-box; }
.alms-adw[hidden] { display: none; }
:root[data-theme="dark"] .alms-adw { border-color: var(--wp--preset--color--border, #22385A); }
@media (min-width: 900px) {
	.alms-adw { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); align-items: start; }
}
.alms-adw__kicker { margin: 0 0 .35rem; color: var(--adw-gold); font-weight: 800; font-size: .875rem; }
.alms-adw__h {
	margin: 0; color: #FFFFFF;
	font-family: var(--wp--preset--font-family--display, inherit); font-weight: 800;
	font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; text-wrap: balance;
}
.alms-adw__lead { margin: .75rem 0 0; color: var(--adw-muted); max-width: 40ch; }
.alms-adw__st { margin: 1rem 0 0; font-weight: 700; color: #FFFFFF; }
.alms-adw__st:empty { display: none; }
.alms-adw__note {
	margin: 1rem 0 0; padding: .6rem .8rem; border-radius: 12px;
	background: rgb(221 182 113 / .16); border: 1px dashed var(--adw-gold); color: #FFFFFF; font-size: .875rem;
}
.alms-adw__note[hidden] { display: none; }

.alms-adw__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1vw, 10px); }
.alms-adw__dh { text-align: center; font-size: .8125rem; font-weight: 800; color: var(--adw-muted); }
.alms-adw__we {
	grid-column: 1 / -1; text-align: center; font-size: .8125rem; line-height: 1.4;
	color: rgb(201 214 229 / .75); border-top: 1px dashed rgb(255 255 255 / .18); padding-top: 3px;
}
.alms-adw__t {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 4px;
	min-height: clamp(64px, 7vw, 92px); margin: 0; padding: clamp(6px, 1vw, 12px);
	border: 1px solid rgb(255 255 255 / .14); border-radius: 14px;
	background: linear-gradient(160deg, rgb(255 255 255 / .11), rgb(255 255 255 / .03));
	color: #FFFFFF; font: inherit; text-align: left; overflow: hidden;
}
button.alms-adw__t { cursor: pointer; appearance: none; transition: transform .15s ease; }
.alms-adw__n { font-family: var(--wp--preset--font-family--display, inherit); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1; }
.alms-adw__t small { font-size: .8125rem; line-height: 1.25; color: var(--adw-muted); }
.alms-adw__t.is-empty { visibility: hidden; }
.alms-adw__t.is-lock { opacity: .55; }
.alms-adw__t.is-lock svg { position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; fill: currentColor; opacity: .8; }
.alms-adw__t.is-off { background: none; border-style: dashed; opacity: .5; }
.alms-adw__t.is-open {
	border-color: var(--adw-gold);
	box-shadow: inset 0 0 0 1px var(--adw-gold), 0 0 20px rgb(221 182 113 / .35);
	animation: alms-adw-glow 2.6s ease-in-out infinite;
}
.alms-adw__t.is-open small { color: var(--adw-gold); font-weight: 800; }
.alms-adw__t.is-open:hover { transform: translateY(-2px); }
.alms-adw__t.is-done { background: var(--adw-cream); color: var(--adw-ink); border-color: var(--adw-gold); }
.alms-adw__t.is-done .alms-adw__n { font-family: inherit; font-size: .8125rem; color: #8A5A00; }
.alms-adw__t.is-done b { font-family: var(--wp--preset--font-family--display, inherit); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1; }
.alms-adw__t.is-done small {
	color: #3D4B5E; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.alms-adw__t.is-today { outline: 2px solid var(--adw-gold); outline-offset: 3px; }
.alms-adw__t:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
@keyframes alms-adw-glow { 50% { box-shadow: inset 0 0 0 1px var(--adw-gold), 0 0 32px rgb(221 182 113 / .65); } }
@media (max-width: 600px) {
	.alms-adw { border-radius: 22px; }
	.alms-adw__t { min-height: 56px; border-radius: 10px; }
	.alms-adw__t small { display: none !important; }
	.alms-adw__t.is-lock svg { top: 5px; right: 5px; width: 11px; height: 11px; }
}

/* Okno z wynikiem */
html.alms-adw-lock { overflow: hidden; }
.alms-adw-ov { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgb(0 10 25 / .72); }
.alms-adw-ov[hidden] { display: none; }
.alms-adw-card {
	width: min(420px, 100%); padding: 26px 22px; text-align: center;
	background: #FBF6EA; color: #001A38; border: 2px solid #DDB671; border-radius: 22px;
	box-shadow: 0 24px 60px rgb(0 0 0 / .35);
}
.alms-adw-card p { margin: 0; }
.alms-adw-card__k { font-size: .875rem; font-weight: 800; color: #8A5A00; }
.alms-adw-card__l { margin-top: .75rem !important; font-weight: 700; color: #3D4B5E; }
.alms-adw-card__l:empty { display: none; }
.alms-adw-card__c {
	margin: .25rem 0 .5rem !important; color: #001A38;
	font-family: var(--wp--preset--font-family--display, inherit); font-weight: 800; font-size: clamp(3.5rem, 16vw, 5rem); line-height: 1.05;
}
.alms-adw-card__c.is-roll { color: #8A93AB; }
.alms-adw-card__c.is-wait { color: #8A5A00; }
.alms-adw-card__p { min-height: 2.8em; font-size: 1.125rem; font-weight: 800; line-height: 1.35; }
.alms-adw-card__p.is-hidden { visibility: hidden; }
.alms-adw-card__x {
	width: 100%; min-height: 48px; margin-top: 1rem; border: 0; border-radius: 999px; cursor: pointer;
	background: #001A38; color: #FFFFFF; font: inherit; font-weight: 800;
}
.alms-adw-card__x:focus-visible { outline: 3px solid #DDB671; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.alms-adw__t.is-open { animation: none; }
	button.alms-adw__t { transition: none; }
	.alms-adw__t.is-open:hover { transform: none; }
}
