/* Alireta Extras. Colours come from the Alireta theme, then NewsFlow's colour scheme, then safe defaults. */
.al-list, .al-card, .al-form, .al-give, .al-contact {
	--al-x-brand: var(--wp--preset--color--brand, var(--nf-brand, #1e63d6));
	--al-x-on-brand: var(--wp--preset--color--brand-contrast, var(--nf-brand-on, #ffffff));
	--al-x-base: var(--wp--preset--color--base, #ffffff);
	--al-x-text: var(--wp--preset--color--contrast, inherit);
	--al-x-head: var(--wp--preset--color--heading, var(--nf-brand-deep, inherit));
	--al-x-muted: var(--wp--preset--color--muted, #5b6575);
	--al-x-soft: var(--wp--preset--color--surface, var(--nf-brand-pale, #f3f6fb));
	--al-x-line: var(--wp--preset--color--border, var(--nf-brand-soft, #dbe4f0));
}
.al-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.al-grid > :only-child { max-width: 420px; }
.al-card { background: var(--al-x-base); color: var(--al-x-text); border: 1px solid var(--al-x-line); border-radius: 14px; padding: 1.1rem; box-sizing: border-box; min-width: 0; }
.al-grid .al-card { display: flex; flex-direction: column; }
.al-grid .al-card > a > img, .al-grid .al-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; margin-bottom: .75rem; }
.al-card-title { font-size: 1.15rem; margin: .35rem 0; line-height: 1.3; }
.al-card-title a { color: var(--al-x-head); text-decoration: none; }
.al-card-title a:hover { text-decoration: underline; }
.al-grid .al-actions { margin-top: auto; padding-top: .5rem; }
.al-price { font-weight: 800; font-size: 1.15rem; color: var(--al-x-head); margin: .25rem 0; }
.al-price del { font-weight: 400; font-size: .95rem; }
.al-meta { list-style: none; padding: 0; margin: .5rem 0; color: var(--al-x-muted); font-size: .93rem; }
.al-meta li { padding: .12rem 0; }
.al-muted { color: var(--al-x-muted); }
.al-badge { display: inline-block; align-self: flex-start; background: var(--al-x-soft); color: var(--al-x-head); border-radius: 999px; padding: .15rem .65rem; font-size: .8rem; font-weight: 700; }
.al-btn, .al-form button { display: inline-block; background: var(--al-x-brand); color: var(--al-x-on-brand); border: 0; border-radius: 10px; padding: .7rem 1.15rem; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; margin: 0 .35rem .35rem 0; }
.al-btn:hover, .al-form button:hover, .al-btn:focus { filter: brightness(.92); color: var(--al-x-on-brand); }
.al-btn-light { background: var(--al-x-soft); color: var(--al-x-head); }
.al-btn-light:hover { color: var(--al-x-head); }
.al-form label { display: block; font-weight: 600; margin: .8rem 0 .3rem; }
.al-form input, .al-form select, .al-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: .7rem .8rem; border: 1px solid var(--al-x-line); border-radius: 10px; font: inherit; background: var(--al-x-base); color: var(--al-x-text); }
.al-form textarea { min-height: 140px; }
.al-form .al-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.al-form .al-submit { margin-top: 1rem; }
.al-form .al-two { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.al-notice { padding: .8rem 1rem; border-radius: 10px; background: var(--al-x-soft); color: var(--al-x-head); margin: 0 0 1rem; font-weight: 600; border-left: 4px solid var(--al-x-brand); }
.al-notice.is-error { border-left-color: #b42318; }
.al-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; align-items: stretch; }
.al-filters input, .al-filters select { flex: 1 1 160px; width: auto; }
.al-filters button { margin: 0; }
.al-pages { margin-top: 1.25rem; text-align: center; }
.al-quote blockquote { margin: 0 0 .75rem; font-size: 1.05rem; }
.al-quote figcaption { font-size: .95rem; }
.al-stars { color: #b7791f; letter-spacing: .1em; margin: 0 0 .4rem; }
.al-contact { list-style: none; padding: 0; margin: 0; }
.al-contact li { padding: .2rem 0; overflow-wrap: anywhere; }
.al-item-details { margin-bottom: 1.5rem; }
.al-item-form { margin-top: 2rem; }
.al-acct { font-size: 1.2rem; font-weight: 800; letter-spacing: .04em; color: var(--al-x-head); }
.al-members-links { padding-left: 1.1rem; }
.al-login-form p { margin: 0 0 .5rem; }
.al-login-form input[type=text], .al-login-form input[type=password] { width: 100%; box-sizing: border-box; padding: .7rem .8rem; border: 1px solid var(--al-x-line); border-radius: 10px; font: inherit; }
.al-login-form input[type=submit] { background: var(--al-x-brand); color: var(--al-x-on-brand); border: 0; border-radius: 10px; padding: .7rem 1.15rem; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 600px) {
	.al-actions .al-btn, .al-form button { display: block; width: 100%; text-align: center; margin: 0 0 .5rem; box-sizing: border-box; }
	.al-filters input, .al-filters select, .al-filters button { flex-basis: 100%; }
}
/* Selling: plans, progress, lessons, tickets */
.al-plans { margin-bottom: .5rem; }
.al-plan { display: flex; flex-direction: column; gap: .2rem; cursor: pointer; }
.al-plan input { width: auto; align-self: flex-start; accent-color: var(--al-x-brand); }
.al-plan:has(input:checked) { border-color: var(--al-x-brand); box-shadow: 0 0 0 2px var(--al-x-brand) inset; }
.al-progress { height: 10px; background: var(--al-x-soft); border-radius: 999px; overflow: hidden; margin: .25rem 0 1rem; }
.al-progress span { display: block; height: 100%; background: var(--al-x-brand); }
.al-progress-label { margin: 0; font-weight: 600; }
.al-lessons { padding-left: 1.3rem; }
.al-lessons li { padding: .2rem 0; }
.al-tick { color: var(--al-x-brand); font-weight: 800; }
.al-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.25rem; }
.al-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.al-lesson-foot { margin-top: 1.5rem; }
.al-lesson-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.al-codes .al-badge { font-size: 1rem; letter-spacing: .05em; margin: 0 .3rem .3rem 0; }
.al-order { max-width: 640px; }
