/* ALMS Esport 1.3 — granat i błękit sekcji, złote akcenty organu prowadzącego (Uniwersytet WSEI). */
:root {
    color-scheme: dark;
    --alms-navy: #002A5B; --alms-deep: #001A38; --alms-night: #00142C; --alms-ink: #000E1E;
    --alms-panel: #073565; --alms-blue: #2581C4; --alms-cyan: #6EC1E4;
    --alms-gold: #DDB671; --alms-gold-dark: #A77D1E;
    --alms-white: #F7FBFF; --alms-muted: #B9CBE0; --alms-line: rgba(110,193,228,.18);
    --alms-display: 'Chakra Petch', 'Barlow', system-ui, sans-serif;
    --alms-header-h: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--alms-header-h) + 16px); }
body { margin: 0; background: var(--alms-deep); min-height: 100vh; -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0; }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--alms-gold); outline-offset: 3px; }
.alms-wrap { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Przyciski ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button__link { border-radius: 6px; font-weight: 700; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.wp-block-button__link:hover { background: #E8C98E; border-color: #E8C98E; color: var(--alms-deep); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--alms-white); border: 1px solid var(--alms-cyan); font-weight: 600; padding: 13px 22px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(110,193,228,.12); color: var(--alms-white); border-color: #A5DEF3; }
.wp-block-button.is-style-link > .wp-block-button__link { background: none; border: 0; padding: 0; color: var(--alms-cyan); font-weight: 700; }
.wp-block-button.is-style-link > .wp-block-button__link:hover { color: var(--alms-white); }
.alms-btn-lg > .wp-block-button__link { font-size: 17px; padding: 15px 26px; }
.wp-block-button.is-style-outline.alms-btn-lg > .wp-block-button__link { padding: 15px 26px; }

/* ---------- Pasek organu prowadzącego + nagłówek ---------- */
.alms-site-header { position: sticky; top: -45px; z-index: 50; }
body.admin-bar .alms-site-header { top: -13px; }
.alms-topbar { background: var(--alms-ink); border-bottom: 1px solid rgba(221,182,113,.35); }
.alms-topbar-inner { min-height: 44px; gap: 12px; font-size: 13px; color: var(--alms-muted); }
.alms-topbar-school { margin: 0; }
.alms-topbar-owner { display: flex; align-items: center; gap: 10px; color: var(--alms-muted); white-space: nowrap; }
.alms-topbar-owner img { height: 26px; width: auto; display: block; }
.alms-topbar-owner:hover { color: var(--alms-white); }
.alms-header { background: var(--alms-night); border-bottom: 1px solid var(--alms-line); }
.alms-header-inner { min-height: var(--alms-header-h); gap: 16px; }
.alms-brand { display: flex; align-items: center; gap: 14px; color: var(--alms-white); flex-shrink: 0; }
.alms-brand img { width: 48px; height: 48px; display: block; }
.alms-brand span { font-family: var(--alms-display); font-weight: 700; font-size: 20px; letter-spacing: .06em; white-space: nowrap; }
.alms-brand:hover { color: var(--alms-white); }
.alms-header-nav { gap: 10px; align-items: center; }
.alms-menu { font-weight: 600; font-size: 15px; }
.alms-menu .wp-block-navigation__container { gap: 4px; }
.alms-menu .wp-block-navigation-item__content { display: block; padding: 10px 14px; color: var(--alms-muted); border-radius: 6px; }
.alms-menu .wp-block-navigation-item__content:hover, .alms-menu .current-menu-item > .wp-block-navigation-item__content { color: var(--alms-white); background: rgba(110,193,228,.08); }
.alms-menu .wp-block-navigation__responsive-container-open, .alms-menu .wp-block-navigation__responsive-container-close { color: var(--alms-white); }
.wp-block-navigation.alms-menu:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open { background: var(--alms-night); color: var(--alms-white); padding: 24px; }
.alms-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; }
.alms-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 6px; font-size: 22px; font-family: var(--alms-display); }
.alms-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: var(--alms-white); padding: 10px 0; }
.alms-header-actions { flex-shrink: 0; }
.alms-header-actions .wp-block-button__link { padding: 11px 18px; font-size: 15px; white-space: nowrap; }

/* ---------- Typografia sekcji ---------- */
.alms-kicker { margin: 0 0 8px; font-family: var(--alms-display); font-weight: 600; letter-spacing: .18em; font-size: 13px; text-transform: uppercase; color: var(--alms-cyan); }
.alms-kicker--gold { color: var(--alms-gold); }
.alms-h2 { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; }
.alms-section-note { margin: 0; max-width: 440px; color: var(--alms-muted); }
.alms-section { padding: 88px 0 72px; position: relative; }
.alms-section--night { background: var(--alms-night); padding: 72px 0; }
.alms-section--navy { background: var(--alms-navy); padding: 88px 0; }
.alms-section--gold-top { border-top: 4px solid var(--alms-gold); }
.alms-stack { display: flex; flex-direction: column; gap: 32px; }
.alms-stack-sm { display: flex; flex-direction: column; gap: 16px; }
.alms-stack-sm > * { margin: 0; }
.alms-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.alms-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; align-items: start; }
.alms-two--end { align-items: end; }
.alms-two > * { margin: 0; }

/* ---------- Hero ---------- */
.alms-hero-v2 { position: relative; overflow: hidden; background: var(--alms-navy); border-bottom: 4px solid var(--alms-gold); }
.alms-hero-deco { position: absolute; inset: 0; pointer-events: none; }
.alms-hero-panel { position: absolute; right: -120px; top: -80px; width: 640px; height: 640px; background: var(--alms-panel); transform: rotate(18deg); border-radius: 48px; }
.alms-chevron--big { position: absolute; left: -40px; bottom: -70px; width: 260px; height: 312px; opacity: .55; }
.alms-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.alms-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.alms-hero-copy > * { margin: 0; }
.alms-hero-copy .alms-kicker { font-size: 14px; margin: 0; }
.alms-hero-h1 { font-size: clamp(42px, 7vw, 88px); line-height: .95; letter-spacing: -.01em; }
.alms-hl { background: none; color: var(--alms-cyan); padding: 0; }
.alms-hero-lead { max-width: 560px; font-size: 19px; color: var(--alms-muted); }
.alms-hero-cta { margin-top: 6px; }
.alms-stats { display: flex; gap: 36px; flex-wrap: wrap; margin: 18px 0 0; padding-top: 22px; border-top: 1px solid rgba(110,193,228,.2); }
.alms-stats div { margin: 0; }
.alms-stats dt { font-family: var(--alms-display); font-weight: 700; font-size: 34px; line-height: 1; }
.alms-stats dd { margin: 0; font-size: 14px; color: var(--alms-muted); }
.alms-hero-art { display: flex; justify-content: center; }
.alms-hero-card { position: relative; width: 380px; height: 380px; max-width: 100%; display: flex; align-items: center; justify-content: center; background: var(--alms-deep); border: 2px solid rgba(110,193,228,.35); border-radius: 36px; transform: rotate(-6deg); }
.alms-hero-card img { width: 300px; height: 300px; transform: rotate(6deg); }
.alms-chevron--card { position: absolute; right: -26px; top: -30px; width: 70px; height: 84px; transform: rotate(6deg); }
.alms-season-badge { position: absolute; left: -18px; bottom: 34px; padding: 8px 14px; background: var(--alms-gold); color: var(--alms-deep); font-family: var(--alms-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; transform: rotate(6deg); }

/* ---------- Gry ---------- */
.alms-games { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.alms-game { --game: var(--alms-cyan); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 24px 24px; background: var(--alms-navy); border-radius: 12px; overflow: hidden; }
.alms-game::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--game); }
.alms-game--cs2 { --game: #FFB454; } .alms-game--valorant { --game: #FF7189; } .alms-game--lol { --game: #69B7FF; } .alms-game--fc { --game: #7BD89B; }
.alms-game > * { margin: 0; }
.alms-game h3 { font-size: 30px; color: var(--game); line-height: 1.05; }
.alms-game p { color: var(--alms-muted); font-size: 15px; flex-grow: 1; }
.alms-slots { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.alms-slots li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; background: var(--alms-deep); border-radius: 6px; }
.alms-slots strong { white-space: nowrap; }
.alms-coach { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 24px; background: var(--alms-navy); border-radius: 12px; border-left: 6px solid var(--alms-gold); }
.alms-coach-avatar { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: var(--alms-panel); display: flex; align-items: center; justify-content: center; font-family: var(--alms-display); font-weight: 700; font-size: 24px; color: var(--alms-gold); }
.alms-coach-text { flex: 1 1 260px; }
.alms-coach-text p { margin: 0; font-size: 15px; color: var(--alms-muted); }
.alms-coach-text .alms-coach-name { font-family: var(--alms-display); font-weight: 700; font-size: 20px; color: var(--alms-white); }

/* ---------- Najbliższe terminy (blok kalendarza w wersji skróconej) ---------- */
.alms-front .alms-calendar--compact { font-size: 15px; }
.alms-front .alms-calendar--compact .alms-event-list { display: flex; flex-direction: column; gap: 10px; }
.alms-front .alms-calendar--compact .alms-event { grid-template-columns: 150px minmax(0,1fr); gap: 18px; align-items: center; margin: 0; padding: 16px 20px 16px 26px; border: 0; border-radius: 10px; background: var(--alms-navy); }
.alms-front .alms-calendar--compact .alms-event-time { gap: 2px; font-size: 13px; text-transform: capitalize; }
.alms-front .alms-calendar--compact .alms-event-time time { font-family: var(--alms-display); font-size: 20px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.alms-front .alms-calendar--compact .alms-event-body h3 { font-family: 'Barlow', system-ui, sans-serif; font-size: 18px; margin: 6px 0 2px; }
.alms-front .alms-calendar--compact .alms-event-location { font-size: 14px; margin: 0; }
.alms-front .alms-calendar--compact .alms-event-repeat, .alms-front .alms-calendar--compact .alms-event-note { display: none; }
.alms-front .alms-calendar--compact .alms-game-tag { font-size: 11px; }
.alms-front .alms-calendar--compact .alms-calendar-all { display: none; }
.alms-front .alms-calendar-empty { background: var(--alms-navy); border-color: rgba(110,193,228,.3); }

/* ---------- Turnieje i cele ---------- */
.alms-card { background: var(--alms-navy); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.alms-card > * { margin: 0; }
.alms-card-title { font-size: 24px; margin: 0; }
.alms-card-head { gap: 12px; align-items: center; }
.alms-card-note { font-size: 14px; color: var(--alms-muted); }
.alms-pill { display: inline-block; margin: 0; padding: 6px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; background: rgba(110,193,228,.16); color: var(--alms-cyan); }
.alms-pill--gold { background: rgba(221,182,113,.16); color: var(--alms-gold); }
.alms-teaser-list { display: flex; flex-direction: column; gap: 10px; }
.alms-teaser-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px; background: var(--alms-deep); border-radius: 8px; color: var(--alms-white); }
.alms-teaser-item:hover { color: var(--alms-white); outline: 1px solid rgba(110,193,228,.45); }
.alms-teaser-item strong { display: block; }
.alms-teaser-item small { display: block; font-size: 14px; color: var(--alms-muted); }
.alms-phase { flex-shrink: 0; font-style: normal; padding: 6px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; background: rgba(110,193,228,.16); color: var(--alms-cyan); }
.alms-phase--planned { background: rgba(221,182,113,.16); color: var(--alms-gold); }
.alms-phase--completed { background: rgba(185,203,224,.12); color: var(--alms-muted); }
.alms-teaser-empty { margin: 0; padding: 16px; border: 1px dashed rgba(110,193,228,.3); border-radius: 8px; color: var(--alms-muted); }
.alms-goals, .alms-steps { list-style: none; margin: 0; padding: 0; counter-reset: alms-step; }
.alms-goals { display: flex; flex-direction: column; gap: 10px; }
.alms-goals li { counter-increment: alms-step; position: relative; padding: 16px 16px 16px 66px; background: var(--alms-deep); border-radius: 8px; font-size: 14px; color: var(--alms-muted); }
.alms-goals li::before { content: counter(alms-step, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--alms-display); font-weight: 700; font-size: 22px; color: var(--alms-gold); }
.alms-goals strong { display: block; font-size: 16px; color: var(--alms-white); }

/* ---------- Rekrutacja ---------- */
.alms-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.alms-steps li { counter-increment: alms-step; display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--alms-deep); border-radius: 12px; color: var(--alms-muted); font-size: 15px; }
.alms-steps li::before { content: counter(alms-step, decimal-leading-zero); font-family: var(--alms-display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--alms-gold); }
.alms-steps strong { font-size: 21px; color: var(--alms-white); line-height: 1.2; }
.alms-form { background: var(--alms-deep); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.alms-form h3 { margin: 0; font-size: 26px; }
.alms-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.alms-field { margin: 0; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.alms-field label span, .alms-field legend span { font-weight: 400; color: var(--alms-muted); }
.alms-form input[type="text"], .alms-form input[type="email"], .alms-form textarea { width: 100%; padding: 13px 14px; border-radius: 6px; border: 1px solid #2E5E8E; background: var(--alms-navy); color: var(--alms-white); font: inherit; font-weight: 400; }
.alms-form textarea { resize: vertical; min-height: 96px; }
.alms-form input::placeholder, .alms-form textarea::placeholder { color: #7F9BBA; }
.alms-form [aria-invalid="true"] { border-color: #FF8A8A; box-shadow: 0 0 0 1px #FF8A8A; }

fieldset.alms-gamepick { border: 0; padding: 0; display: block; }
fieldset.alms-gamepick legend { padding: 0; margin-bottom: 10px; }
.alms-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.alms-chip { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 6px; background: var(--alms-navy); font-weight: 500; cursor: pointer; }
.alms-chip:has(input:checked) { outline: 1px solid var(--alms-gold); background: rgba(221,182,113,.12); }
.alms-form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--alms-gold); margin: 0; flex-shrink: 0; }
.alms-consent { margin: 0; font-size: 14px; color: var(--alms-muted); }
.alms-consent label { display: flex; align-items: flex-start; gap: 10px; }
.alms-consent input { margin-top: 3px !important; }
.alms-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alms-form-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.alms-form button[type="submit"] { padding: 15px 28px; border: 0; border-radius: 6px; background: var(--alms-gold); color: var(--alms-deep); font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.alms-form button[type="submit"]:hover { background: #E8C98E; }
.alms-form button[disabled] { opacity: .6; cursor: progress; }
.alms-form-status { margin: 0; font-size: 15px; color: var(--alms-muted); }
.alms-form-status[data-kind="error"] { color: #FFA1A1; }
.alms-form-status[data-kind="ok"] { color: #9BE3B4; font-weight: 600; font-size: 17px; }

/* ---------- Aktualności ---------- */
.alms-latest-grid { gap: 20px; margin: 0; padding: 0; }
.alms-latest-grid > li { min-width: 0; }
.alms-latest-card { height: 100%; background: var(--alms-navy); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid var(--alms-panel); }
.alms-latest-image { margin: 0; }
.alms-latest-image img { display: block; width: 100%; object-fit: cover; }
.alms-latest-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.alms-latest-meta { gap: 6px; font-size: 13px; color: var(--alms-cyan); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.alms-latest-meta > * { margin: 0; }
.alms-latest-meta a { color: inherit; }
.alms-latest-meta .wp-block-post-terms + .wp-block-post-date::before { content: '· '; }
.alms-latest-title { margin: 0; font-family: 'Barlow', system-ui, sans-serif; font-size: 21px; line-height: 1.25; }
.alms-latest-title a { color: var(--alms-white); }
.alms-latest-title a:hover { color: var(--alms-cyan); }
.alms-latest-excerpt { margin: 0; color: var(--alms-muted); font-size: 15px; }
.alms-latest-excerpt p { margin: 0; }
.alms-latest-excerpt .wp-block-post-excerpt__more-text { margin-top: 8px; }
.alms-pinned .alms-latest-card { border-top-color: var(--alms-gold); }

/* ---------- Stopka ---------- */
.alms-footer { background: var(--alms-night); border-top: 1px solid var(--alms-line); padding: 48px 0 40px; }
.alms-footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; align-items: start; }
.alms-footer-grid > * { margin: 0; }
.alms-footer-brand { display: flex; gap: 14px; align-items: center; }
.alms-footer-brand img { width: 56px; height: 56px; }
.alms-footer-brand strong { display: block; font-family: var(--alms-display); letter-spacing: .06em; }
.alms-footer-brand span, .alms-footer-address { font-size: 14px; color: var(--alms-muted); }
.alms-footer-address { font-size: 15px; }
.alms-footer-links { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.alms-footer-owner { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(221,182,113,.35); }
.alms-footer-owner a { display: flex; align-items: center; gap: 18px; }
.alms-footer-owner a span { font-size: 13px; letter-spacing: .14em; font-family: var(--alms-display); font-weight: 600; color: var(--alms-gold); }
.alms-footer-owner img { height: 44px; width: auto; }
.alms-footer-owner p { margin: 0; font-size: 13px; color: var(--alms-muted); }

/* ---------- Podstrony (kalendarz, turnieje, wpisy) ---------- */
.alms-main { max-width: 1200px; margin: 0 auto; padding: 48px 32px 72px; }
.alms-eyebrow { margin: 0; color: var(--alms-cyan); font-family: var(--alms-display); font-size: 13px; line-height: 1.55; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
.alms-page-title { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; margin: 0 0 22px; }
.alms-archive > .alms-page-title { margin-top: 8px; }
.alms-section-title { margin: 0 0 12px; }
.alms-section-heading { margin: 0; font-size: 24px; line-height: 1.3; }
.alms-accent { color: var(--alms-cyan); }
.alms-lead { margin: 0; max-width: 690px; color: var(--alms-muted); line-height: 1.6; }
.alms-post-grid { gap: 20px; padding: 0; margin: 0; }
.alms-post-grid > li { min-width: 0; height: 100%; }
.alms-news-card, .alms-single-card { height: 100%; padding: 22px; border-radius: 12px; background: var(--alms-navy); border-top: 4px solid var(--alms-panel); }
.alms-pinned .alms-news-card { border-top-color: var(--alms-gold); }
.alms-pinned .alms-post-title::before { content: '📌 '; }
.alms-post-image { margin: 0 0 14px; }
.alms-post-image img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 8px; }
.alms-post-title { margin: 0; font-family: 'Barlow', system-ui, sans-serif; font-size: 21px; line-height: 1.3; }
.alms-post-title a { color: var(--alms-white); }
.alms-post-title a:hover { color: var(--alms-cyan); }
.alms-post-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.alms-post-category, .alms-post-date { display: inline-flex; padding: 4px 8px; border-radius: 4px; background: rgba(110,193,228,.14); color: var(--alms-cyan); font-size: 12px; line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.alms-post-category a { color: inherit; }
.alms-news-content { color: #D7E4F0; font-size: 15px; line-height: 1.65; margin-top: 14px; overflow-wrap: anywhere; }
.alms-news-content > * { margin-top: 0; margin-bottom: 1em; }
.alms-news-content > :last-child { margin-bottom: 0; }
.alms-author-row { gap: 4px; color: #8EA9C4; font-size: 13px; margin-top: 14px; }
.alms-author-row p, .alms-author-row .wp-block-post-author-name { margin: 0; }
.alms-pagination { gap: 12px; margin-top: 24px; }
.alms-empty { padding: 28px; text-align: center; border: 1px dashed rgba(110,193,228,.3); border-radius: 12px; color: var(--alms-muted); background: rgba(0,42,91,.5); }
.alms-single > .wp-block-buttons { margin-bottom: 20px; }
.alms-single-card { padding: 32px; max-width: 860px; margin: 0 auto; }
.alms-single-image { margin: 22px 0; }
.alms-single-image img { width: 100%; height: auto; border-radius: 8px; }
.alms-single-content, .alms-page-content { color: #D7E4F0; font-size: 17px; overflow-wrap: anywhere; }
.alms-single-content > * { margin-top: 0; margin-bottom: 1em; }
.alms-single-content a, .alms-page-content a { color: var(--alms-cyan); text-decoration: underline; text-underline-offset: 3px; }
.wp-block-post-content img { max-width: 100%; height: auto; }
/* Starsza treść strony głównej (strona 11) — gdyby była wyświetlana w innym szablonie. */
.alms-hero { gap: 24px; margin: 0 0 28px; }
.alms-hero-main, .alms-hero-side { width: 100%; border-radius: 12px; background: var(--alms-navy); padding: 28px; }
.alms-hero-side { border-top: 4px solid var(--alms-gold); }
.alms-hero-title { font-size: clamp(34px,6vw,66px); line-height: .96; margin: 12px 0 16px; }

/* ---------- Edytor ---------- */
.editor-styles-wrapper { color: var(--alms-white); background: var(--alms-deep); }
.editor-styles-wrapper .alms-site-header { position: relative; top: 0; }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
    .alms-topbar-school { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .alms-menu .wp-block-navigation-item__content { padding: 10px 9px; }
}
@media (max-width: 980px) {
    .alms-games { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .alms-hero-grid { grid-template-columns: minmax(0,1fr); padding-top: 64px; padding-bottom: 72px; }
    /* Tablet: wilk obok tekstu (dwie kolumny), mniejsza karta. */
    .alms-hero-grid { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 28px; }
    .alms-hero-card { width: 250px; height: 250px; border-radius: 28px; }
    .alms-hero-card img { width: 196px; height: 196px; }
    .alms-chevron--card { right: -16px; top: -18px; width: 44px; height: 52px; }
    .alms-season-badge { left: -12px; bottom: 20px; padding: 6px 10px; font-size: 12px; }
    .alms-hero-panel { width: 420px; height: 420px; right: -220px; }
}
@media (max-width: 781px) {
    :root { --alms-header-h: 66px; }
    body.admin-bar .alms-site-header { top: -45px; }
    .alms-brand img { width: 40px; height: 40px; }
    .alms-brand span { font-size: 17px; }
    .alms-header-actions .wp-block-button__link { padding: 9px 12px; font-size: 14px; }
    .alms-topbar-owner span { display: none; }
}
@media (max-width: 720px) {
    .alms-wrap, .alms-main { padding-left: 16px; padding-right: 16px; }
    .alms-games, .alms-two, .alms-steps, .alms-form-grid, .alms-footer-grid { grid-template-columns: minmax(0,1fr); }
    .alms-latest-grid { grid-template-columns: minmax(0,1fr) !important; }
    .alms-section { padding: 64px 0 56px; }
    .alms-section--night, .alms-section--navy { padding: 56px 0; }
    .alms-hero-lead { font-size: 17px; }
    .alms-chevron--big { display: none; }
    .alms-hero-grid { grid-template-columns: minmax(0,1fr); }
    .alms-hero-copy { position: relative; z-index: 1; }
    .alms-hero-art { position: absolute; top: 18px; right: -70px; z-index: 0; pointer-events: none; }
    .alms-hero-card { width: 300px; height: 300px; background: none; border: 0; box-shadow: none !important; transform: rotate(-8deg) !important; opacity: .16; }
    .alms-hero-card img { width: 300px; height: 300px; }
    .alms-chevron--card, .alms-season-badge { display: none; }
    .alms-stats { gap: 24px; }
    .alms-card, .alms-form { padding: 20px; }
    .alms-front .alms-calendar--compact .alms-event { grid-template-columns: minmax(0,1fr); gap: 6px; }
    .alms-front .alms-calendar--compact .alms-event-time { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: baseline; }
    .alms-front .alms-calendar--compact .alms-event-time time { font-size: 20px; }
}
@media (max-width: 480px) {
    .alms-brand span { display: none; }
    .alms-topbar-inner { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wp-block-button__link { transition: none; }
}
.alms-form [hidden] { display: none !important; }
.alms-calendar-filter.is-loading, .alms-tour-filter.is-loading { opacity: .6; pointer-events: none; }

/* ---------- Treść wpisów: czytelność (1.4.1, redakcja) ---------- */
.alms-single-content { line-height: 1.7; }
.alms-single-content h2 { color: var(--alms-white); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin: 1.6em 0 .5em; }
.alms-single-content ul, .alms-single-content ol { padding-left: 1.2em; }
.alms-single-content li + li { margin-top: .3em; }
.alms-single-content .wp-block-image, .alms-single-content .wp-block-gallery { margin: 1.6em 0; }
.alms-single-content .wp-block-image img, .alms-single-content .wp-block-gallery img { border-radius: 8px; }
.alms-single-content .wp-block-file { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 8px; background: rgba(110,193,228,.08); border: 1px solid rgba(110,193,228,.25); }
.alms-single-content .wp-block-file a:first-child { flex: 1 1 240px; }
/* Edytor wpisu: te same odstępy co na stronie (motyw ma globalnie blockGap: 0) */
.editor-styles-wrapper .wp-block-post-content.is-root-container { font-size: 17px; line-height: 1.7; color: #D7E4F0; max-width: 796px; margin-left: auto; margin-right: auto; }
.editor-styles-wrapper .wp-block-post-content.is-root-container > * + * { margin-block-start: 1em; }
.editor-styles-wrapper .wp-block-post-content.is-root-container h2 { color: var(--alms-white); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin-block-start: 1.6em; margin-block-end: .5em; }
.editor-styles-wrapper .wp-block-post-content.is-root-container img { border-radius: 8px; }

/* ---------- Redakcja: ramka „W skrócie” i cytat (20.10) ---------- */
.alms-w-skrocie { margin: 1.4em 0 1.8em; padding: 16px 20px; border-radius: 10px; background: rgba(221,182,113,.08); border: 1px solid rgba(221,182,113,.25); border-left: 4px solid var(--alms-gold, #DDB671); }
.alms-w-skrocie .alms-w-skrocie__tytul { margin: 0 0 .4em; font-size: .85em; letter-spacing: .08em; text-transform: uppercase; color: var(--alms-gold, #DDB671); }
.alms-w-skrocie ul { list-style: none; margin: 0; padding: 0 !important; }
.alms-w-skrocie li + li { margin-top: .35em; }
.alms-single-content .wp-block-quote, .editor-styles-wrapper .wp-block-quote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--alms-gold, #DDB671); font-size: 1.12em; font-style: italic; }
.alms-single-content .wp-block-quote cite, .editor-styles-wrapper .wp-block-quote cite { display: block; margin-top: .4em; font-size: .8em; font-style: normal; opacity: .75; }
.alms-single-content .wp-block-quote cite::before, .editor-styles-wrapper .wp-block-quote cite::before { content: "— "; }
