:root {
  --red: #e30613;
  --red-dark: #b8000a;
  --ink: #151515;
  --muted: #62666d;
  --bg: #f5f6f7;
  --surface: #ffffff;
  --soft: #eceff2;
  --card: #ffffff;
  --border: #dfe2e6;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.09);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.07);
  --radius: 20px;
  --display: "Arial Black", Impact, Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;
  --header-height: 78px;
  color-scheme: light;
}

html[data-jl-theme="dark"] {
  --ink: #f3f4f6;
  --muted: #b4b8bf;
  --bg: #080808;
  --surface: #0e0e0f;
  --soft: #141416;
  --card: #19191c;
  --border: #2e3035;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.48);
  --shadow-small: 0 10px 30px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.58; }
body.admin-bar .jl-header { top: 32px; }
body.admin-bar { --header-height: 110px; }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.wp-site-blocks { min-height: 100vh; overflow-x: clip; }
.jl-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.jl-section { padding: clamp(48px, 5.5vw, 72px) 0; }
.jl-soft { background: var(--soft); }
.jl-center { margin-top: 30px; text-align: center; }
.jl-kicker { display: block; color: var(--red); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.jl-intro { max-width: 880px; margin: 0 0 30px; color: var(--muted); font-size: 1.08rem; }
/*
 * Align section kickers/headings/intros on the same left edge.
 * Gutenberg constrained layout + block gap can inset .jl-section-head (~30px)
 * or center narrower .jl-intro blocks — both look like "text under heading drifts".
 */
.jl-page-content .jl-section > .jl-section-head,
.jl-page-content .jl-section > .jl-family-intro,
.jl-page-content .jl-section > .jl-intro,
.jl-page-content .jl-section > p.jl-intro,
.jl-page-content .jl-section-head + .jl-intro,
.jl-page-content .jl-section-head + p,
.jl-page-content .jl-family-intro > p:not(.jl-kicker),
.jl-page-content .jl-family-intro > .jl-intro,
.jl-page-content .jl-family-intro > h2,
.jl-page-content .jl-family-intro > .jl-kicker,
.jl-page-content .jl-family-intro > p.jl-kicker {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left;
}
.jl-page-content .jl-section > .jl-section-head,
.jl-page-content .jl-section > .jl-family-intro {
  width: 100%;
  max-width: 100%;
}
.jl-page-content .jl-section > .jl-intro,
.jl-page-content .jl-section > p.jl-intro,
.jl-page-content .jl-section-head + .jl-intro,
.jl-page-content .jl-section-head + p,
.jl-page-content .jl-family-intro > p:not(.jl-kicker),
.jl-page-content .jl-family-intro > .jl-intro {
  max-width: min(880px, 100%);
}
.jl-small-note { margin-top: 20px; color: var(--muted); font-size: 0.92rem; }
.jl-small-note a { color: var(--red); font-weight: 800; }
.jl-section-head { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; margin-bottom: 26px; }
.jl-section-head h2 { max-width: 920px; margin: 0; font: 900 clamp(2.15rem, 4.5vw, 4.25rem) / 0.98 var(--display); letter-spacing: -0.045em; text-transform: uppercase; }
.jl-section-head > a { flex: 0 0 auto; color: var(--red); font-size: 0.76rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.jl-section-head > a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* CTA chrome belongs on anchors and Gutenberg links — never on .wp-block-button wrappers. */
a.jl-button,
a.jl-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
a.jl-button { background: var(--red); border-color: var(--red); color: #fff; }
a.jl-button:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
a.jl-button-outline { background: transparent; border-color: var(--border); color: var(--ink); }
a.jl-button-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
a.jl-button-small { min-height: 42px; padding-inline: 15px; }
a.jl-button-outline-light { border-color: rgba(255,255,255,.48); color: #fff; }
a.jl-button-outline-light:hover { background: #fff; border-color: #fff; color: #111; }
.jl-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.jl-header { position: sticky; top: 0; z-index: 1000; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 4px 18px rgba(0,0,0,.04); }
.jl-header-inner { min-height: 78px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.jl-brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; text-decoration: none; }
.jl-brand-logo { width: auto; height: 58px; object-fit: contain; }
.jl-brand-copy {
  display: inline-block;
  white-space: nowrap;
  font: 900 16px / 1 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.jl-desktop-nav { min-width: 0; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.6vw, 23px); }
.jl-desktop-nav a { font-size: 0.69rem; font-weight: 900; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.jl-desktop-nav a:hover { color: var(--red); }
.jl-actions { display: flex; align-items: center; gap: 9px; }
.jl-theme-toggle, .jl-menu-toggle, .jl-menu-close, .jl-copy-button, .jl-slider-controls button { border: 1px solid var(--border); background: var(--card); color: var(--ink); cursor: pointer; }
.jl-theme-toggle { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 10px; font-size: 0.75rem; font-weight: 800; }
.jl-menu-toggle { display: none; width: 44px; height: 42px; padding: 9px; border-radius: 10px; }
.jl-menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }
.jl-mobile-menu { display: none; position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.55); }
.jl-mobile-menu.is-open { display: block; }
/* Keep drawer below WP admin bar when logged in (bar sits above theme z-index). */
body.admin-bar .jl-mobile-menu { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .jl-mobile-menu { top: 46px; }
}
.jl-mobile-menu-panel { width: min(420px, 92vw); height: 100%; margin-left: auto; padding: 20px; background: var(--surface); box-shadow: -18px 0 50px rgba(0,0,0,.28); overflow-y: auto; }
.jl-mobile-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.jl-menu-close { width: 44px; height: 44px; border-radius: 10px; font-size: 1.7rem; line-height: 1; }
.jl-mobile-menu nav { display: grid; margin: 16px 0 24px; }
.jl-mobile-menu nav a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--border); font-weight: 900; text-decoration: none; }
.jl-mobile-menu-panel > .jl-button { width: 100%; }

/* Homepage hero — same inset shell + card pattern as .jl-page-hero-grid. */
.jl-family-hero { padding: 0; }
.jl-page-content .wp-block-columns.jl-family-hero-inner,
.jl-family-hero-inner {
  display: grid !important;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0 !important;
  align-items: stretch;
  min-height: 610px;
  width: 100%;
  max-width: 100%;
  margin-inline: 0 !important;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.jl-family-hero-copy,
.jl-family-hero-inner > .wp-block-column:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5.5vw, 74px);
  min-width: 0;
}
.jl-family-hero-inner > .wp-block-column:last-child {
  padding: 0 !important;
  min-width: 0;
  margin: 0;
}
.jl-family-hero-copy h1 { margin: 12px 0 24px; font: 900 clamp(3.1rem, 6.6vw, 6.6rem) / 0.87 var(--display); letter-spacing: -0.06em; text-transform: uppercase; }
.jl-family-hero-copy h1 em { color: var(--red); font-style: normal; }
.jl-family-hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.jl-family-hero-photo { min-height: 610px; }
.jl-family-hero-inner .jl-family-hero-photo,
.jl-family-hero-inner .wp-block-image,
.jl-family-hero-inner figure {
  margin: 0 !important;
  height: 100%;
  border-radius: 0;
}
.jl-family-hero-inner .jl-family-hero-photo img,
.jl-family-hero-inner .wp-block-image img,
.jl-family-hero-inner figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 610px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Values and family */
.jl-family-values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.jl-family-values article, .jl-giving-grid article { min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-small); }
.jl-family-values h3, .jl-giving-grid h3 { margin: 0 0 8px; font-size: 1.14rem; }
.jl-family-values p, .jl-giving-grid p { margin: 0; color: var(--muted); }
/* Icons above titles; size = 2/3 of the mid size used in 7.0.17–18. */
:is(.jl-family-values, .jl-giving-grid, .jl-parent-link-grid, .jl-offer-grid, .jl-coop-benefit-grid) .jl-card-icon,
:is(.jl-family-values, .jl-giving-grid, .jl-offer-grid, .jl-coop-benefit-grid) article > span:first-of-type {
  display: block;
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.13vw, 1.77rem);
  line-height: 1;
}
:is(.jl-family-values, .jl-giving-grid, .jl-parent-link-grid, .jl-offer-grid, .jl-coop-benefit-grid) .jl-card-icon img.emoji {
  width: 1em;
  height: 1em;
}
.jl-family-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 960px;
}
.jl-family-intro h2 { margin: 8px 0 18px; font: 900 clamp(2.4rem, 5vw, 5rem) / 0.95 var(--display); letter-spacing: -0.045em; text-transform: uppercase; }
.jl-family-intro > p:not(.jl-kicker) { color: var(--muted); font-size: 1.1rem; }
.jl-family-intro > .jl-kicker,
.jl-family-intro > p.jl-kicker { color: var(--red); }
.jl-giving-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; margin-top: 34px; }
.jl-family-quote { max-width: 1030px; margin: 42px auto; padding: 30px 36px; border: 1px solid var(--border); border-left: 7px solid var(--red); border-radius: 0 20px 20px 0; background: var(--card); box-shadow: var(--shadow-small); font: 900 clamp(1.2rem, 2.2vw, 1.9rem) / 1.3 var(--display); text-align: center; }
.jl-family-gallery { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 16px; }
.jl-family-gallery figure { position: relative; min-height: 300px; margin: 0; border-radius: 20px; overflow: hidden; }
.jl-family-gallery img { width: 100%; height: 100%; object-fit: cover; }
.jl-family-gallery figcaption, .jl-home-gallery figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px 12px; border-radius: 11px; background: rgba(0,0,0,.68); color: #fff; font-weight: 900; }

/* Groups, locations, parent hub */
.jl-group-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jl-group-grid article, .jl-group-detail-grid article { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-small); }
.jl-group-grid h3, .jl-group-detail-grid h3 { margin: 13px 0 9px; font: 900 1.45rem / 1 var(--display); text-transform: uppercase; }
.jl-group-grid p, .jl-group-detail-grid p { margin: 0; color: var(--muted); }
.jl-badge { display: inline-block; padding: 6px 9px; border-radius: 999px; font-size: .63rem; font-weight: 900; text-transform: uppercase; }
.jl-badge.green { background: #dff6e3; color: #16722b; }
.jl-badge.orange { background: #fff0d5; color: #955800; }
.jl-badge.gray { background: #ececef; color: #50545a; }
html[data-jl-theme="dark"] .jl-badge.green { background: #123d20; color: #b7f4c7; }
html[data-jl-theme="dark"] .jl-badge.orange { background: #4a2c06; color: #ffd99a; }
html[data-jl-theme="dark"] .jl-badge.gray { background: #33343a; color: #e7e7ea; }
.jl-location-panel { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; margin-top: 22px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--soft); }
.jl-location-panel h3 { margin: 0 0 5px; font: 900 2rem / 1 var(--display); text-transform: uppercase; }
.jl-location-panel p { margin: 0; color: var(--muted); }
.jl-location-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.jl-location-tags span { padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: .83rem; font-weight: 800; }
.jl-parent-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.jl-parent-hub-grid > a { min-width: 0; padding: 25px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-small); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.jl-parent-hub-grid > a:hover { border-color: var(--red); transform: translateY(-2px); }
.jl-parent-hub-grid span { font-size: 1.9rem; }
.jl-parent-hub-grid h3 { margin: 12px 0 6px; }
.jl-parent-hub-grid p { margin: 0; color: var(--muted); }

/* Story — single card; force grid over Gutenberg columns flex. */
.jl-page-content .wp-block-columns.jl-story-grid,
.jl-story-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0 !important;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin-inline: 0 !important;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.jl-story-photo { min-height: 480px; background: url('../images/gallery-radosc-trening.jpg') center / cover no-repeat; }
/* Text column = .jl-story-copy or any column with a heading; image columns stay flush. */
.jl-page-content .jl-story-grid > .wp-block-column.jl-story-copy,
.jl-page-content .jl-story-grid > .wp-block-column:has(h2),
.jl-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 64px);
  min-width: 0;
}
.jl-page-content .jl-story-grid > .wp-block-column:has(> .wp-block-image),
.jl-page-content .jl-story-grid > .wp-block-column:has(> figure) {
  padding: 0 !important;
  min-width: 0;
  margin: 0;
}
.jl-page-content .jl-story-grid > .wp-block-column:has(> .wp-block-image) .wp-block-image,
.jl-page-content .jl-story-grid > .wp-block-column:has(> .wp-block-image) figure,
.jl-page-content .jl-story-grid > .wp-block-column:has(> figure) .wp-block-image,
.jl-page-content .jl-story-grid > .wp-block-column:has(> figure) figure {
  margin: 0;
  height: 100%;
}
.jl-page-content .jl-story-grid img,
.jl-story-grid > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.jl-story-copy h2,
.jl-page-content .jl-story-grid > .wp-block-column:has(h2) h2 {
  margin: 10px 0 20px;
  font: 900 clamp(2.2rem, 4.5vw, 4.3rem) / .96 var(--display);
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.jl-story-copy > .jl-kicker,
.jl-story-copy > p.jl-kicker,
.jl-page-content .jl-story-grid .jl-kicker {
  color: var(--red);
}
.jl-story-copy > p:not(.jl-kicker),
.jl-page-content .jl-story-grid > .wp-block-column:has(h2) > p:not(.jl-kicker) {
  color: var(--muted);
}
.jl-checks { display: grid; gap: 9px; margin: 22px 0 26px; }
.jl-checks span { font-weight: 800; }

/* Events */
.jl-event-preview-grid, .jl-event-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.jl-event-preview-grid article, .jl-event-list article { min-width: 0; border: 1px solid var(--border); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-small); overflow: hidden; }
.jl-event-preview-grid img, .jl-event-list img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; object-position: center; background: #111; }
.jl-event-preview-grid article > div, .jl-event-list-body { padding: 24px; }
.jl-event-preview-grid h3, .jl-event-list h2 { margin: 12px 0 9px; font-size: 1.34rem; line-height: 1.18; }
.jl-event-preview-grid p, .jl-event-list p { color: var(--muted); }
.jl-event-preview-grid .jl-button-outline, .jl-event-list .jl-button-outline { width: 100%; margin-top: 6px; }

/* Cooperation */
.jl-cooperation-home-grid { display: grid; grid-template-columns: 1.1fr .95fr .95fr; gap: 18px; }
.jl-partner-card { min-width: 0; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-small); overflow: hidden; }
.jl-partner-card img { width: min(260px, 75%); max-height: 120px; margin: 0 auto 30px; object-fit: contain; }
.jl-partner-label { display: inline-block; margin-bottom: 8px; color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.jl-partner-card h3 { margin: 0 0 8px; font: 900 1.8rem / 1 var(--display); text-transform: uppercase; }
.jl-partner-card p { margin: 0; color: var(--muted); }
.jl-maddax-card { background: linear-gradient(145deg, #111, #3a080c); color: #fff; }
.jl-maddax-card p { color: #eee; }
.jl-maddax-card .jl-partner-label { color: #ffb7bd; }
.jl-offer-card { background: linear-gradient(145deg, var(--surface), var(--soft)); }

/* Trainers and gallery */
.jl-trainers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.jl-trainers-grid article { min-width: 0; border: 1px solid var(--border); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-small); overflow: hidden; }
.jl-trainers-grid img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.jl-trainers-grid article > div { padding: 22px; }
.jl-trainers-grid h3 { margin: 0 0 3px; font: 900 1.24rem / 1.05 var(--display); text-transform: uppercase; }
.jl-role { margin: 0 0 12px; color: var(--red); font-weight: 900; }
.jl-trainers-grid p:last-child { margin-bottom: 0; color: var(--muted); }
.jl-home-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.jl-home-gallery figure { position: relative; min-width: 0; margin: 0; border-radius: 18px; overflow: hidden; }
.jl-home-gallery figure.jl-gallery-wide { grid-column: span 2; }
.jl-home-gallery img { width: 100%; height: 100%; object-fit: cover; }
.jl-gallery-pro img[role="button"] { cursor: zoom-in; }

/* Press */
.jl-press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.jl-press-grid article { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-press-source { margin-bottom: 12px; color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.jl-press-grid h3 { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.35; }
.jl-press-grid a { color: var(--red); font-size: .78rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.jl-press-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contact */
.jl-final-cta {
  max-width: 1050px;
  margin: 0 auto 28px;
  padding: clamp(36px, 5vw, 58px);
  border-radius: 26px;
  background: linear-gradient(135deg, #111, #39070b);
  color: #fff;
  text-align: left;
}
.jl-final-cta h2 { margin: 8px 0 16px; font: 900 clamp(2.5rem, 5vw, 5rem) / .92 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.jl-final-cta > p,
.jl-final-cta p { max-width: 760px; margin: 0 0 24px; color: #efefef; }
.jl-final-cta .jl-kicker { color: #ff9299; }
.jl-final-cta .jl-contact-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
.jl-final-cta .jl-contact-links > p,
.jl-final-cta .jl-contact-links > .wp-block-paragraph { margin: 0; }
.jl-final-cta .jl-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.jl-final-cta .jl-contact-links a:hover { background: rgba(255,255,255,.1); }
.jl-final-cta .wp-block-buttons.jl-cta-row,
.jl-final-cta .wp-block-buttons.jl-center,
.jl-final-cta .jl-cta-row {
  justify-content: flex-start;
  text-align: left;
  margin-top: 8px;
}
.jl-signup-box { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-signup-box h2, .jl-signup-box h3 { margin: 6px 0 8px; }
.jl-signup-box > p:not(.jl-kicker) { margin: 0; color: var(--muted); }
.jl-signup-box > .jl-kicker,
.jl-signup-box > p.jl-kicker { color: var(--red); margin: 0; }
.jl-signup-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* Footer */
.jl-footer { padding: 58px 0 0; border-top: 1px solid var(--border); background: var(--surface); }
.jl-footer .jl-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.jl-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.jl-footer h3 { margin: 0 0 14px; font-size: .82rem; text-transform: uppercase; }
.jl-footer-grid > div:not(.jl-footer-about) { display: flex; flex-direction: column; align-items: flex-start; }
.jl-footer a { margin: 0 0 8px; color: var(--muted); text-decoration: none; }
.jl-footer a:hover { color: var(--red); }
.jl-footer-menu { display: flex; flex-direction: column; align-items: flex-start; list-style: none; margin: 0; padding: 0; width: 100%; }
.jl-footer-menu li { margin: 0; padding: 0; width: 100%; }
.jl-footer-menu a { display: block; }
.jl-footer-about p { max-width: 330px; color: var(--muted); }
.jl-footer .jl-brand { margin-bottom: 16px; color: var(--ink); }
.jl-copyright { margin-top: 42px; padding: 18px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.jl-bottom-nav { display: none; }

/* Subpage hero and anchor nav */
.jl-subpage { min-height: 60vh; }
.jl-page-hero { padding: 36px 0 0; }
.jl-page-content .wp-block-columns.jl-page-hero-grid,
.jl-page-hero-grid {
  display: grid !important;
  grid-template-columns: 1fr .85fr;
  gap: 0 !important;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin-inline: 0 !important;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.jl-page-hero-grid > div,
.jl-page-hero-grid > .wp-block-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 66px);
  min-width: 0;
}
.jl-page-hero-grid > .wp-block-column:last-child {
  padding: 0;
}
.jl-page-hero h1 { max-width: 760px; margin: 10px 0 20px; font: 900 clamp(2.7rem, 5.5vw, 5.4rem) / .93 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
/* Partnerstwo / oferta: slightly smaller H1 so long Polish words fit the hero column. */
body.jl-page-oferta .jl-page-hero h1,
body.jl-page-oferta .jl-page-content > .wp-block-group.jl-page-hero h1 {
  font-size: clamp(2.45rem, 4.85vw, 4.85rem);
  line-height: .95;
}
/* Galeria hero: slightly smaller H1 so long Polish lines fit the column. */
body.jl-page-galeria .jl-page-hero h1,
body.jl-page-galeria .jl-page-content > .wp-block-group.jl-page-hero h1 {
  font-size: clamp(2.45rem, 4.85vw, 4.85rem);
  line-height: .95;
}
.jl-page-hero > .jl-kicker,
.jl-page-hero .jl-kicker { color: var(--red); }
.jl-page-hero p:not(.jl-kicker) { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.jl-page-hero img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
/* Sub-section pill nav removed sitewide (broken Gutenberg markup; Home never used it). */
.jl-anchor-nav { display: none !important; }

/* Training page */
.jl-group-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.jl-group-detail-grid article { position: relative; }
.jl-group-detail-grid ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.jl-group-detail-grid li { margin: 5px 0; }
.jl-group-icon { position: absolute; top: 22px; right: 24px; font-size: 2rem; }
.jl-info-banner { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin-top: 22px; padding: 24px; border-left: 6px solid var(--red); border-radius: 0 16px 16px 0; background: var(--soft); }
.jl-info-banner strong { font: 900 1.05rem var(--display); text-transform: uppercase; }
.jl-info-banner span { color: var(--muted); }
.jl-location-city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.jl-location-city-grid article { padding: 26px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-location-city-grid h3 { margin: 0 0 16px; font: 900 1.35rem var(--display); text-transform: uppercase; }
.jl-location-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.jl-location-button-grid .jl-location-button {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 52px;
}

/* Parent page */
.jl-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.jl-faq-grid details { border: 1px solid var(--border); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-small); overflow: hidden; }
.jl-faq-grid summary { position: relative; padding: 20px 50px 20px 20px; cursor: pointer; font-weight: 900; list-style: none; }
.jl-faq-grid summary::-webkit-details-marker { display: none; }
.jl-faq-grid summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 1.4rem; }
.jl-faq-grid details[open] summary::after { content: '−'; }
.jl-faq-grid details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.jl-faq-grid details a { color: var(--red); font-weight: 800; }
.jl-doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.jl-doc-grid a { display: flex; min-height: 150px; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-small); text-decoration: none; }
.jl-doc-grid a:hover { border-color: var(--red); }
.jl-doc-grid b { font-size: 1.05rem; }
.jl-doc-grid span { color: var(--red); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
/* Payment card is a single chrome wrapper; the 2-col layout lives on nested Gutenberg columns. */
.jl-payment-card,
.jl-payment-card-v2 {
  display: block;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.jl-payment-card h2 {
  margin: 7px 0 12px;
  max-width: 100%;
  font: 900 clamp(1.85rem, 3.2vw, 2.9rem) / 1.05 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.jl-payment-card > .jl-kicker,
.jl-payment-card .jl-kicker { color: var(--red); }
.jl-payment-card p:not(.jl-kicker) { color: var(--muted); }
.jl-page-content .jl-payment-card > .wp-block-columns,
.jl-payment-card > .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: 36px !important;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
}
.jl-payment-card > .wp-block-columns > .wp-block-column {
  min-width: 0;
  max-width: 100%;
}
.jl-payment-data { display: grid; gap: 12px; }
.jl-payment-data p { margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--soft); }
.jl-payment-data small, .jl-tax-data small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.jl-payment-data strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.jl-copy-button { justify-self: start; min-height: 42px; padding: 0 14px; border-radius: 10px; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.jl-copy-button:hover { border-color: var(--red); color: var(--red); }
.jl-tax-card { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: center; padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.jl-tax-card h2 { margin: 7px 0 12px; font: 900 clamp(2rem, 4vw, 3.7rem) / 1 var(--display); text-transform: uppercase; }
.jl-tax-card p { color: var(--muted); }
.jl-tax-data { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.jl-tax-data p { min-width: 210px; margin: 0; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--soft); }
.jl-tax-data strong { color: var(--ink); font-size: 1.08rem; }
.jl-tax-image { display: block; border-radius: 16px; background: #111; box-shadow: var(--shadow-small); overflow: hidden; }
.jl-tax-image img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.jl-org-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.jl-org-grid article { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-org-grid article > span { font-size: 1.8rem; }
.jl-org-grid h3 { margin: 10px 0 7px; }
.jl-org-grid p { margin: 0; color: var(--muted); }
.jl-org-grid a { display: inline-block; margin-top: 14px; color: var(--red); font-size: .78rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.jl-checklist { margin-top: 20px; padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--soft); }
.jl-checklist h3 { margin: 0 0 16px; font: 900 1.35rem var(--display); text-transform: uppercase; }
.jl-checklist > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jl-checklist span { font-weight: 800; }
.jl-contact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.jl-contact-strip > p { margin: 0; display: flex; min-width: 0; }
.jl-contact-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

/* Cooperation page */
.jl-partnership-feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: center; padding: 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.jl-partnership-logo { min-height: 270px; display: grid; place-items: center; padding: 30px; border-radius: 18px; background: #fff; }
.jl-partnership-logo img { max-width: 90%; max-height: 190px; object-fit: contain; }
.jl-partnership-copy p { color: var(--muted); }
.jl-partnership-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.jl-partnership-points span { position: relative; padding: 12px 12px 12px 35px; border: 1px solid var(--border); border-radius: 12px; background: var(--soft); font-size: .9rem; font-weight: 800; }
.jl-partnership-points span::before { content: '✓'; position: absolute; left: 12px; color: var(--red); }
.jl-maddax-feature { position: relative; min-height: 430px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 28px; padding: clamp(30px, 5vw, 60px); border-radius: 24px; background: linear-gradient(145deg, #111, #3b070b); color: #fff; overflow: hidden; }
.jl-maddax-feature p { max-width: 760px; color: #ededed; }
.jl-maddax-feature h3 { margin: 8px 0 18px; font: 900 clamp(2.2rem, 4vw, 4.2rem) / .96 var(--display); text-transform: uppercase; }
.jl-partner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.jl-maddax-mark { justify-self: center; color: rgba(255,255,255,.1); font: 900 clamp(4rem, 10vw, 8rem) / 1 var(--display); transform: rotate(-8deg); }
.jl-coop-offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jl-coop-offer-grid article { padding: 25px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-coop-offer-grid article > span { font-size: 2rem; }
.jl-coop-offer-grid h3 { margin: 12px 0 8px; }
.jl-coop-offer-grid p { margin: 0; color: var(--muted); }
.jl-coop-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.jl-coop-tags span { padding: 10px 13px; border-radius: 999px; background: var(--soft); font-size: .78rem; font-weight: 900; }
.jl-press-grid-four { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Events archive and single */
.jl-event-archive, .jl-event-single { padding: 64px 0 90px; }
.jl-event-archive > .jl-shell > h1, .jl-event-content h1 { margin: 9px 0 18px; font: 900 clamp(2.8rem, 6vw, 5.7rem) / .94 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.jl-event-list { margin-top: 32px; }
.jl-event-single-grid { display: grid; grid-template-columns: minmax(280px, .72fr) 1.28fr; gap: 40px; align-items: start; margin-top: 30px; }
.jl-event-poster { position: sticky; top: 104px; }
.jl-event-poster img { display: block; width: 100%; height: auto; max-height: 780px; object-fit: contain; border-radius: 20px; background: #111; box-shadow: var(--shadow); }
.jl-event-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.jl-event-meta span { padding: 9px 12px; border-radius: 999px; background: var(--soft); font-weight: 800; }
.jl-event-content > * { max-width: 850px; }
.jl-event-content h2 { margin-top: 38px; }
.jl-event-content img { height: auto; border-radius: 14px; }
.jl-event-docs { display: grid; gap: 10px; margin: 22px 0; }
.jl-event-docs a { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-weight: 800; text-decoration: none; }
.jl-event-docs a:hover { border-color: var(--red); color: var(--red); }
.jl-empty-state { margin-top: 30px; padding: 34px; border: 1px dashed var(--border); border-radius: 18px; color: var(--muted); text-align: center; }
/* Aktualności: same card grid as events; never opt into mobile carousel. */
.jl-news-list { margin-top: 32px; }
.navigation.pagination { margin-top: 30px; }
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination a.page-numbers:hover {
  border-color: var(--red);
  color: var(--red);
}
.navigation.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* 404 */
.jl-not-found { display: grid; min-height: 72vh; place-items: center; padding: 60px 0; }
.jl-404-card { max-width: 820px; margin: auto; padding: clamp(34px, 6vw, 72px); border: 1px solid var(--border); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.jl-404-card img { width: 110px; margin-bottom: 18px; }
.jl-404-card h1 { margin: 9px 0 18px; font: 900 clamp(2.6rem, 6vw, 5.4rem) / .94 var(--display); text-transform: uppercase; }
.jl-404-card p { color: var(--muted); }
.jl-404-card .jl-cta-row { justify-content: center; }
.jl-404-card blockquote { margin: 32px 0 0; color: var(--red); font-weight: 900; }

/* Lightbox */
.jl-lightbox { display: none; position: fixed; inset: 0; z-index: 2000; padding: 70px 24px 30px; background: rgba(0,0,0,.9); place-items: center; }
.jl-lightbox.is-open { display: grid; }
.jl-lightbox img { max-width: min(1120px, 94vw); max-height: 78vh; object-fit: contain; }
.jl-lightbox p { margin: 14px 0 0; color: #fff; font-weight: 800; text-align: center; }
.jl-lightbox button { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font-size: 1.8rem; cursor: pointer; }

/* Slider controls retained for editable content */
.jl-slider-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.jl-slider-controls button { width: 42px; height: 42px; border-radius: 10px; }
.jl-slider-dots { display: flex; gap: 6px; }
.jl-slider-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--border); }
.jl-slider-dots button.active { background: var(--red); }

/* Focus and reduced motion */
:focus-visible { outline: 3px solid rgba(227,6,19,.4); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 1180px) {
  .jl-desktop-nav { display: none; }
  .jl-menu-toggle { display: block; }
  .jl-header-inner { grid-template-columns: auto 1fr auto; }
  .jl-actions { justify-self: end; }
  .jl-family-values, .jl-giving-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jl-group-grid, .jl-trainers-grid, .jl-coop-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .jl-footer-about { grid-row: span 2; }
}

@media (max-width: 920px) {
  body.admin-bar .jl-header { top: 46px; }
  body.admin-bar { --header-height: 124px; }
  .jl-family-hero-inner,
  .jl-page-content .wp-block-columns.jl-family-hero-inner,
  .jl-page-content .wp-block-columns.jl-page-hero-grid,
  .jl-page-hero-grid,
  .jl-page-content .wp-block-columns.jl-story-grid,
  .jl-story-grid {
    grid-template-columns: 1fr !important;
  }
  .jl-family-hero-photo,
  .jl-family-hero-inner .jl-family-hero-photo img,
  .jl-family-hero-inner .wp-block-image img,
  .jl-family-hero-inner figure img {
    min-height: 310px;
  }
  .jl-page-hero img { min-height: 280px; max-height: 420px; }
  .jl-page-content .jl-story-grid img,
  .jl-story-grid > img { min-height: 260px; max-height: 420px; }
  .jl-family-gallery { grid-template-columns: 1fr 1fr; }
  .jl-family-gallery figure:first-child { grid-column: span 2; }
  .jl-location-panel, .jl-info-banner { grid-template-columns: 1fr; }
  .jl-story-photo { min-height: 390px; }
  .jl-event-preview-grid, .jl-event-list, .jl-parent-hub-grid, .jl-press-grid, .jl-press-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Events + Aktualności: vertical stack on phones (no mobile carousel). */
  .jl-event-list,
  .jl-news-list { grid-template-columns: 1fr; }
  .jl-cooperation-home-grid { grid-template-columns: 1fr 1fr; }
  .jl-cooperation-home-grid article:first-child { grid-column: span 2; }
  .jl-home-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-group-detail-grid, .jl-location-city-grid, .jl-location-button-grid, .jl-faq-grid { grid-template-columns: 1fr; }
  .jl-doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-payment-card,
  .jl-tax-card,
  .jl-partnership-feature,
  .jl-maddax-feature { grid-template-columns: 1fr; }
  .jl-page-content .jl-payment-card > .wp-block-columns,
  .jl-payment-card > .wp-block-columns,
  .jl-page-content .wp-block-columns.jl-tax-layout,
  .jl-tax-layout {
    grid-template-columns: 1fr !important;
  }
  .jl-partnership-logo { min-height: 210px; }
  .jl-maddax-mark { display: none; }
  .jl-org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-checklist > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-contact-strip { grid-template-columns: 1fr; }
  .jl-event-single-grid { grid-template-columns: 1fr; }
  .jl-event-poster { position: static; max-width: 620px; }
  .jl-signup-box { grid-template-columns: 1fr; }
  .jl-signup-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .jl-shell { width: min(100% - 32px, 1240px); }
  .jl-section { padding: 44px 0; }
  .jl-header-inner { min-height: 70px; gap: 10px; }
  .jl-brand-logo { width: auto; height: 48px; }
  .jl-brand-copy { font-size: 14px; }
  .jl-theme-toggle [data-jl-theme-label] { display: none; }
  .jl-theme-toggle { width: 42px; justify-content: center; padding: 0; }
  .jl-section-head { align-items: flex-start; flex-direction: column; }
  .jl-section-head > a { white-space: normal; }
  .jl-family-hero-inner { min-height: 0; border-radius: 20px; }
  .jl-family-hero-copy { padding: 34px 23px; }
  .jl-family-hero-copy h1 { font-size: clamp(2.65rem, 15vw, 4.25rem); }
  .jl-family-hero-photo { min-height: 310px; }
  .jl-family-values, .jl-giving-grid, .jl-group-grid, .jl-trainers-grid, .jl-event-preview-grid, .jl-event-list, .jl-parent-hub-grid, .jl-press-grid, .jl-press-grid-four, .jl-cooperation-home-grid, .jl-coop-offer-grid, .jl-org-grid { grid-template-columns: 1fr; }
  .jl-cooperation-home-grid article:first-child { grid-column: auto; }
  .jl-family-gallery { grid-template-columns: 1fr; }
  .jl-family-gallery figure:first-child { grid-column: auto; }
  .jl-family-gallery figure { min-height: 235px; }
  .jl-family-quote { padding: 24px 20px; }
  .jl-location-panel, .jl-payment-card, .jl-tax-card, .jl-partnership-feature { padding: 22px; }
  .jl-location-tags span { font-size: .76rem; }
  .jl-story-photo { min-height: 300px; }
  .jl-story-copy,
  .jl-page-content .jl-story-grid > .wp-block-column.jl-story-copy,
  .jl-page-content .jl-story-grid > .wp-block-column:has(h2) { padding: 28px 22px; }
  .jl-home-gallery { grid-auto-rows: 190px; gap: 10px; }
  .jl-home-gallery figure.jl-gallery-wide { grid-column: span 2; }
  .jl-final-cta { padding: 34px 22px; text-align: left; }
  .jl-final-cta .jl-contact-links {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .jl-final-cta .jl-contact-links > p,
  .jl-final-cta .jl-contact-links > .wp-block-paragraph {
    display: flex;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin: 0;
  }
  .jl-final-cta .jl-contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    text-align: center;
  }
  .jl-final-cta .wp-block-buttons.jl-cta-row,
  .jl-final-cta .wp-block-buttons.jl-center {
    justify-content: center;
    align-items: center;
  }
  .jl-signup-box { padding: 22px; }
  .jl-signup-actions { display: grid; grid-template-columns: 1fr; }
  .jl-page-hero { padding-top: 16px; }
  .jl-page-hero-grid { border-radius: 20px; }
  .jl-page-hero-grid > div,
  .jl-page-hero-grid > .wp-block-column:first-child { padding: 34px 23px; }
  .jl-page-hero-grid > .wp-block-column:last-child { padding: 0; }
  .jl-page-hero h1 { font-size: clamp(2.5rem, 13vw, 4.3rem); }
  .jl-page-hero img { min-height: 300px; }
  .jl-anchor-nav { top: 70px; }
  body.admin-bar .jl-anchor-nav { top: 116px; }
  .jl-doc-grid { grid-template-columns: 1fr; }
  .jl-tax-data { display: grid; }
  .jl-tax-data p { min-width: 0; }
  .jl-tax-image img { aspect-ratio: 16 / 10; }
  .jl-checklist > div { grid-template-columns: 1fr; }
  .jl-partnership-points { grid-template-columns: 1fr; }
  .jl-footer { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .jl-footer-grid { grid-template-columns: 1fr 1fr; }
  .jl-footer-about { grid-column: span 2; grid-row: auto; }
  .jl-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -8px 30px rgba(0,0,0,.09); }
  .jl-bottom-nav a { display: grid; justify-items: center; gap: 2px; color: var(--muted); text-decoration: none; }
  .jl-bottom-nav span { font-size: 1.05rem; }
  .jl-bottom-nav small { font-size: .61rem; font-weight: 900; }
}

@media (max-width: 420px) {
  .jl-footer-grid { grid-template-columns: 1fr; }
  .jl-footer-about { grid-column: auto; }
  .jl-home-gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .jl-home-gallery figure.jl-gallery-wide { grid-column: auto; }
}

/* =========================================================
   Judo Lion 6.2 — completed subpages, media and UX fixes
   ========================================================= */

/* Robust wrapping and anchors */
main [id] { scroll-margin-top: calc(var(--header-height) + 28px); }
h1, h2, h3, p, a, span, strong, li { overflow-wrap: break-word; }
.jl-section-head > div, .jl-page-hero-grid > div, .jl-story-copy, .jl-event-content { min-width: 0; }
a.jl-button,
a.jl-button-outline,
.wp-block-button,
.wp-block-button__link.wp-element-button { max-width: 100%; }
.jl-event-image-link { display: block; text-decoration: none; }
.jl-event-list h2 a { text-decoration: none; }
.jl-event-list h2 a:hover { color: var(--red); }

/* High-quality hero/photo selection */
.jl-story-photo { background-image: url('../images/gallery-radosc-trening.jpg'); background-position: center 32%; }
.jl-first-training-photo { min-height: 480px; }
.jl-about-coach-photo { min-height: 520px; background: url('../images/gallery-trener-grupa.jpg') center / cover no-repeat; }
.jl-page-hero img { object-position: center; }
.jl-page-hero-training img { object-position: center 35%; }
.jl-page-hero-parent img { object-position: center 42%; }
.jl-page-hero-coaches img { object-position: center 42%; }
.jl-page-hero-gallery img { object-position: center 36%; }
.jl-page-hero-about img { object-position: center; filter: grayscale(.15); }

/* Family gallery — no small thumbnails stretched on desktop */
.jl-family-gallery figure { min-height: 0; aspect-ratio: 4 / 3; }
.jl-family-gallery figure:first-child { aspect-ratio: 16 / 10; }
.jl-family-gallery img { display: block; }
.jl-family-story-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.jl-family-story-gallery figure { position: relative; min-height: 280px; margin: 0; border-radius: 18px; overflow: hidden; }
.jl-family-story-gallery img { width: 100%; height: 100%; object-fit: cover; }
.jl-family-story-gallery figcaption { position: absolute; inset: auto 12px 12px; padding: 9px 11px; border-radius: 10px; background: rgba(0,0,0,.7); color: #fff; font-weight: 900; }
.jl-giving-grid-wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* About page */
.jl-two-column-copy { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 7vw, 92px); align-items: start; }
.jl-two-column-copy h2 { margin: 8px 0 0; font: 900 clamp(2.4rem, 5vw, 5rem) / .95 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.jl-two-column-copy p { color: var(--muted); }
.jl-lead { color: var(--ink) !important; font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.55; }
.jl-path { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.jl-path li { display: grid; grid-template-columns: 62px 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-path li > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 900 1.2rem var(--display); }
.jl-path h3 { margin: 1px 0 5px; font-size: 1.2rem; }
.jl-path p { margin: 0; color: var(--muted); }

/* Trainers page */
.jl-coach-principles, .jl-development-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.jl-coach-principles article, .jl-development-grid article { min-width: 0; padding: 25px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-coach-principles article > span, .jl-development-grid article > span { display: block; margin-bottom: 13px; font-size: 1.9rem; }
.jl-coach-principles h3, .jl-development-grid h3 { margin: 0 0 7px; }
.jl-coach-principles p, .jl-development-grid p { margin: 0; color: var(--muted); }
.jl-coach-profile-list { display: grid; gap: 26px; }
.jl-coach-profile { display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr; gap: 0; min-height: 430px; border: 1px solid var(--border); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.jl-coach-profile-reverse { grid-template-columns: 1.3fr minmax(260px, .7fr); }
.jl-coach-profile-reverse img { grid-column: 2; grid-row: 1; }
.jl-coach-profile-reverse > div { grid-column: 1; grid-row: 1; }
.jl-coach-profile img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; object-position: top center; }
.jl-coach-profile > div { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(30px, 5vw, 58px); }
.jl-coach-profile h2 { margin: 4px 0 12px; font: 900 clamp(2.1rem, 4vw, 4rem) / .96 var(--display); text-transform: uppercase; }
.jl-coach-profile p { color: var(--muted); }
.jl-coach-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jl-coach-tags span { padding: 8px 11px; border-radius: 999px; background: var(--soft); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.jl-photo-quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.jl-photo-quote img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; object-position: center; }
.jl-photo-quote blockquote { display: flex; flex-direction: column; justify-content: center; gap: 14px; margin: 0; padding: clamp(34px, 6vw, 70px); }
.jl-photo-quote blockquote span { color: var(--muted); font-size: 1.08rem; }
.jl-photo-quote blockquote strong { font: 900 clamp(2rem, 4vw, 4rem) / .98 var(--display); text-transform: uppercase; }

/* Gallery page — uniform square thumbnails (no masonry / wide-tall tetris). */
.jl-masonry-gallery,
.jl-page-content .wp-block-gallery.jl-masonry-gallery,
.wp-block-gallery.jl-masonry-gallery {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  grid-auto-flow: row !important;
  flex-wrap: unset !important;
  align-items: stretch !important;
  gap: 14px !important;
}
.jl-emotion-gallery,
.jl-page-content .wp-block-gallery.jl-emotion-gallery,
.wp-block-gallery.jl-emotion-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: auto !important;
  grid-auto-flow: row !important;
  flex-wrap: unset !important;
  align-items: stretch !important;
  gap: 14px !important;
}
.jl-masonry-gallery figure,
.jl-masonry-gallery > .wp-block-image,
.jl-emotion-gallery figure,
.jl-emotion-gallery > .wp-block-image,
.wp-block-gallery.jl-masonry-gallery > .wp-block-image,
.wp-block-gallery.jl-masonry-gallery > figure,
.wp-block-gallery.jl-emotion-gallery > .wp-block-image,
.wp-block-gallery.jl-emotion-gallery > figure {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  flex: none !important;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  grid-column: auto !important;
  grid-row: auto !important;
}
.jl-masonry-gallery figure.wide,
.jl-masonry-gallery figure.tall,
.jl-emotion-gallery figure:last-child,
.wp-block-gallery.jl-masonry-gallery > .wp-block-image.wide,
.wp-block-gallery.jl-masonry-gallery > .wp-block-image.tall,
.wp-block-gallery.jl-emotion-gallery > .wp-block-image:last-child {
  grid-column: auto !important;
  grid-row: auto !important;
}
.jl-masonry-gallery figcaption,
.jl-emotion-gallery figcaption {
  position: absolute;
  inset: auto 12px 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-weight: 900;
}
.jl-masonry-gallery a,
.jl-emotion-gallery a,
.wp-block-gallery.jl-masonry-gallery a,
.wp-block-gallery.jl-emotion-gallery a {
  display: block;
  width: 100%;
  height: 100%;
}
.jl-masonry-gallery img,
.jl-emotion-gallery img,
.wp-block-gallery.jl-masonry-gallery img,
.wp-block-gallery.jl-emotion-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Training page additions */
.jl-development-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jl-location-note { display: grid; grid-template-columns: 180px 1fr; gap: 22px; margin-top: 20px; padding: 22px 24px; border-left: 6px solid var(--red); border-radius: 0 16px 16px 0; background: var(--soft); }
.jl-location-note strong { font: 900 1rem var(--display); text-transform: uppercase; }
.jl-location-note p { margin: 0; color: var(--muted); }

/* Parent page additions and fixes */
.jl-payment-tips { display: grid; gap: 7px; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.jl-payment-tips b { color: var(--ink); }
.jl-tax-image img { aspect-ratio: auto; max-height: 560px; object-fit: contain; object-position: center; background: #fff; }
.jl-parent-support { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: stretch; }
.jl-parent-support > div { padding: clamp(28px, 5vw, 54px); border: 1px solid var(--border); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-parent-support h2 { margin: 8px 0 16px; font: 900 clamp(2.2rem, 4.5vw, 4.4rem) / .98 var(--display); text-transform: uppercase; }
.jl-parent-support p { color: var(--muted); }
.jl-parent-support blockquote { margin: 24px 0; padding: 20px 22px; border-left: 5px solid var(--red); background: var(--soft); font-weight: 900; }
.jl-parent-support > img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-small); }
.jl-payment-data strong { font-variant-numeric: tabular-nums; letter-spacing: .015em; }
.jl-contact-strip a { overflow-wrap: anywhere; }

/* Cooperation page additions */
.jl-partnership-feature > div:last-child { min-width: 0; }
.jl-partnership-feature > div:last-child > p { color: var(--muted); }
.jl-coop-offer-grid ul { margin: 15px 0 0; padding-left: 19px; color: var(--muted); }
.jl-coop-offer-grid li { margin: 5px 0; }
.jl-partner-card { color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.jl-partner-card:hover { border-color: var(--red); transform: translateY(-3px); }
.jl-maddax-card:hover { color: #fff; }
.jl-press-grid article { display: flex; min-height: 220px; flex-direction: column; }
.jl-press-grid article a { margin-top: auto; }

/* Event pages */
.jl-archive-hero { max-width: 970px; }
.jl-archive-hero h1 { margin: 9px 0 18px; font: 900 clamp(2.8rem, 6vw, 5.7rem) / .94 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.jl-event-place { margin: -2px 0 12px !important; font-weight: 800; }
.jl-back-link { display: inline-flex; margin-bottom: 4px; color: var(--red); font-size: .8rem; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.jl-back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.jl-event-content h1 { overflow-wrap: anywhere; }
.jl-event-rich-content { color: var(--muted); }
.jl-event-rich-content h2, .jl-event-rich-content h3 { color: var(--ink); }
.jl-event-rich-content ul, .jl-event-rich-content ol { padding-left: 22px; }
.jl-event-rich-content a.jl-button,
.jl-event-rich-content .wp-block-button.jl-button > .wp-block-button__link.wp-element-button { color: #fff; }
.jl-event-downloads { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--border); }
.jl-event-help { margin-top: 42px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--soft); }
.jl-event-help h2 { margin-top: 0; }
.jl-event-help p { color: var(--muted); }

/* 404 — subtle tatami grid */
.jl-not-found {
  background-image:
    linear-gradient(rgba(227,6,19,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,6,19,.035) 1px, transparent 1px);
  background-size: 42px 42px;
}
.jl-404-card { position: relative; overflow: hidden; }
.jl-404-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 7px; background: var(--red); }

/* Mobile and tablet corrections */
@media (max-width: 1180px) {
  .jl-coach-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-family-story-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-giving-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .jl-two-column-copy, .jl-photo-quote, .jl-parent-support { grid-template-columns: 1fr; }
  .jl-photo-quote img { min-height: 380px; }
  .jl-coach-profile, .jl-coach-profile-reverse { grid-template-columns: minmax(220px, .75fr) 1.25fr; }
  .jl-coach-profile-reverse img { grid-column: 1; }
  .jl-coach-profile-reverse > div { grid-column: 2; }
  .jl-masonry-gallery,
  .wp-block-gallery.jl-masonry-gallery,
  .jl-emotion-gallery,
  .wp-block-gallery.jl-emotion-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .jl-development-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jl-parent-support > img { min-height: 360px; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .jl-family-hero-copy h1, .jl-page-hero h1, .jl-section-head h2, .jl-family-intro h2, .jl-final-cta h2, .jl-story-copy h2, .jl-two-column-copy h2, .jl-parent-support h2 { hyphens: none; overflow-wrap: normal; word-break: normal; }
  .jl-family-values article, .jl-giving-grid article, .jl-group-grid article, .jl-development-grid article, .jl-coach-principles article { padding: 22px; }
  .jl-family-story-gallery, .jl-giving-grid-wide, .jl-coach-principles, .jl-development-grid { grid-template-columns: 1fr; }
  .jl-family-story-gallery figure { min-height: 260px; }
  .jl-path li { grid-template-columns: 48px 1fr; padding: 18px; }
  .jl-path li > span { width: 44px; height: 44px; }
  .jl-coach-profile, .jl-coach-profile-reverse { grid-template-columns: 1fr; min-height: 0; }
  .jl-coach-profile-reverse img, .jl-coach-profile-reverse > div { grid-column: 1; grid-row: auto; }
  .jl-coach-profile img { min-height: 360px; max-height: 500px; }
  .jl-coach-profile > div { padding: 28px 23px; }
  .jl-photo-quote img { min-height: 320px; }
  /* Galeria mobile: even 2-up square thumbnails (no WP flex pills / carousel). */
  .jl-masonry-gallery,
  .jl-page-content .wp-block-gallery.jl-masonry-gallery,
  .jl-gallery-pro.jl-masonry-gallery,
  .wp-block-gallery.jl-masonry-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    overflow: visible;
    scroll-snap-type: none;
  }
  .jl-masonry-gallery figure.wide,
  .jl-masonry-gallery figure.tall,
  .wp-block-gallery.jl-masonry-gallery > .wp-block-image.wide,
  .wp-block-gallery.jl-masonry-gallery > .wp-block-image.tall {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .jl-masonry-gallery > figure,
  .jl-masonry-gallery > .wp-block-image,
  .wp-block-gallery.jl-masonry-gallery > .wp-block-image,
  .wp-block-gallery.jl-masonry-gallery > figure {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }
  .jl-emotion-gallery,
  .jl-page-content .wp-block-gallery.jl-emotion-gallery,
  .jl-gallery-pro.jl-emotion-gallery,
  .wp-block-gallery.jl-emotion-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 10px !important;
    overflow: visible;
    scroll-snap-type: none;
  }
  .jl-emotion-gallery figure,
  .jl-emotion-gallery figure:last-child,
  .wp-block-gallery.jl-emotion-gallery > .wp-block-image,
  .wp-block-gallery.jl-emotion-gallery > figure {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    grid-column: auto !important;
    border-radius: 14px;
  }
  .jl-masonry-gallery figcaption,
  .jl-emotion-gallery figcaption {
    inset: auto 8px 8px;
    padding: 7px 9px;
    font-size: .72rem;
    line-height: 1.25;
  }
  .jl-location-note { grid-template-columns: 1fr; }
  .jl-parent-support > img { min-height: 300px; }
  .jl-payment-data strong { font-size: .94rem; }
  .jl-event-single-grid { gap: 28px; }
  .jl-event-content h1 { font-size: clamp(2.35rem, 13vw, 4.2rem); }
  .jl-event-poster img { max-height: none; }
  .jl-404-card h1 { font-size: clamp(2.2rem, 13vw, 4rem); }
}

@media (max-width: 420px) {
  .jl-header-inner { grid-template-columns: minmax(0, auto) 1fr auto; }
  .jl-brand-copy { font-size: 13px; }
  .jl-family-hero-copy,
  .jl-page-hero-grid > div,
  .jl-page-hero-grid > .wp-block-column:first-child { padding-inline: 20px; }
  .jl-page-hero-grid > .wp-block-column:last-child { padding-inline: 0; }
  .jl-family-gallery figure:first-child { aspect-ratio: 4 / 3; }
  .jl-contact-strip a { text-align: left; }
}

/* Generic WordPress pages and news posts */
.jl-generic-page { padding: 54px 0 90px; }
.jl-generic-content { max-width: 960px; margin: 0 auto; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.jl-generic-content > h1 { margin: 8px 0 24px; font: 900 clamp(2.6rem, 5.5vw, 5rem) / .95 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.jl-generic-featured { margin: 28px 0; border-radius: 18px; overflow: hidden; }
.jl-generic-featured img { display: block; width: 100%; height: auto; }
.jl-rich-content { color: var(--muted); }
.jl-rich-content h2, .jl-rich-content h3, .jl-rich-content h4 { color: var(--ink); }
.jl-rich-content img { height: auto; border-radius: 14px; }
.jl-post-date { margin-top: -12px; color: var(--muted); font-size: .9rem; }

/* =========================================================
   v6.3 — CTA, accessibility and responsive UX audit fixes
   ========================================================= */

/* Keyboard access and predictable anchors */
.jl-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.jl-skip-link:focus { transform: translateY(0); }
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}
[id] { scroll-margin-top: calc(var(--header-height) + 76px); }
img { display: block; height: auto; }
/*
 * Keep emoji inline. Sources:
 * - WP: img.emoji / img.wp-smiley
 * - Facebook paste: <img src="…fbcdn…/emoji.php…" height="16" width="16">
 * Gallery / hero / cards stay display:block via figure / block wrappers.
 */
img.emoji,
img.wp-smiley,
img[src*="emoji.php"],
img[src*="fbcdn.net/images/emoji"],
.wp-block-paragraph > img,
.wp-block-heading > img,
.wp-block-list-item > img,
p > img,
h1 > img, h2 > img, h3 > img, h4 > img, h5 > img, h6 > img,
li > img {
  display: inline !important;
  width: 1em;
  height: 1em;
  max-width: 1em;
  margin: 0 0.07em;
  vertical-align: -0.15em;
  border: 0;
  box-shadow: none;
  background: none;
  padding: 0;
  object-fit: contain;
}

/* Homepage hero is now a real, responsive image instead of a CSS background. */
figure.jl-family-hero-photo { margin: 0; min-height: 610px; overflow: hidden; }
figure.jl-family-hero-photo img { width: 100%; height: 100%; min-height: 610px; object-fit: cover; object-position: center; }
/* Cover blocks add a default dim overlay — keep hero photos natural. */
.jl-family-hero .wp-block-cover__background.has-background-dim,
.jl-family-hero .wp-block-cover__background.has-background-dim-60,
.jl-family-hero .wp-block-cover__background.has-background-dim-50,
.jl-family-hero .wp-block-cover__background.has-background-dim-40,
.jl-family-hero .wp-block-cover__background.has-background-dim-30,
.jl-family-hero .wp-block-cover__background.has-background-dim-20,
.jl-family-hero .wp-block-cover__background.has-background-dim-10 {
  opacity: 0 !important;
}
.jl-family-hero .wp-block-cover {
  min-height: 420px;
  padding: 0;
  border-radius: 0;
}
.jl-family-hero .wp-block-cover__inner-container:empty,
.jl-family-hero .wp-block-cover__inner-container > p:empty {
  display: none;
}

/* Repeated calls to action without visual noise. */
.jl-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-left: 6px solid var(--red);
  border-radius: 0 18px 18px 0;
  background: var(--card);
  box-shadow: var(--shadow-small);
}
.jl-inline-cta > div:first-child { display: grid; gap: 4px; min-width: 0; }
.jl-inline-cta strong { font-size: 1.05rem; }
.jl-inline-cta span { color: var(--muted); }
.jl-inline-actions, .jl-dual-actions, .jl-event-card-actions, .jl-event-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.jl-inline-cta-dark { border-left-color: #fff; background: linear-gradient(135deg, #171717, #43070c); color: #fff; }
.jl-inline-cta-dark span { color: #ededed; }
.jl-anchor-nav a.jl-anchor-signup { margin-left: auto; background: var(--red); color: #fff; }
.jl-anchor-nav a.jl-anchor-signup:hover { background: var(--red-dark); }

/* Persistent desktop CTA; mobile uses the bottom navigation. */
.jl-floating-signup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.26);
  text-decoration: none;
}
.jl-floating-signup > span:first-child { font-size: 1.35rem; }
.jl-floating-signup > span:last-child { display: grid; line-height: 1.08; }
.jl-floating-signup strong { font-size: .83rem; text-transform: uppercase; }
.jl-floating-signup small { margin-top: 3px; font-size: .7rem; opacity: .9; }
.jl-floating-signup:hover { background: var(--red-dark); transform: translateY(-2px); }

/* Event cards and event details. */
.jl-event-card-actions { margin-top: 16px; }
.jl-event-card-actions > a { flex: 1 1 135px; }
.jl-event-top-actions { margin: 22px 0 30px; }
.jl-event-cross-cta {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-small);
}
.jl-event-cross-cta h2 { margin-top: 0; }
.jl-event-cross-cta p { color: var(--muted); }
.jl-event-sticky-signup { display: none; }

/* 404: clear routes back to useful content. */
.jl-404-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
  text-align: left;
}
.jl-404-links a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--soft);
  font-weight: 800;
  text-decoration: none;
}
.jl-404-links a:hover { border-color: var(--red); color: var(--red); }

/* Smaller typography and better wrapping for cards, links and account data. */
.jl-button, .jl-button-outline, .jl-anchor-nav a, .jl-contact-links a { overflow-wrap: anywhere; }
.jl-payment-data strong { overflow-wrap: anywhere; }
.jl-group-detail-grid ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.jl-group-detail-grid li { margin: 5px 0; }
.jl-group-icon { margin-bottom: 10px; font-size: 2rem; }
.jl-music-link { margin-top: 16px; }

/* Dark mode keeps cards and controls readable. */
html[data-jl-theme="dark"] .jl-skip-link { background: #fff; color: #111; }
html[data-jl-theme="dark"] .jl-inline-cta:not(.jl-inline-cta-dark) { background: #19191c; }
html[data-jl-theme="dark"] .jl-404-links a { background: #19191c; }

@media (hover: hover) {
  :is(a.jl-button, a.jl-button-outline):hover,
  .wp-block-button__link.wp-element-button:hover,
  .jl-floating-signup:hover,
  .jl-partner-card:hover { will-change: transform; }
}

@media (max-width: 1050px) {
  .jl-floating-signup { right: 14px; bottom: 14px; }
  .jl-anchor-nav a.jl-anchor-signup { margin-left: 0; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .jl-floating-signup { display: none; }
  .jl-inline-cta { align-items: stretch; flex-direction: column; padding: 22px; }
  .jl-inline-cta :is(a.jl-button, a.jl-button-outline),
  .jl-inline-cta .wp-block-button,
  .jl-inline-cta .wp-block-button__link.wp-element-button { width: 100%; }
  .jl-inline-actions, .jl-dual-actions, .jl-event-card-actions, .jl-event-top-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .jl-anchor-nav .jl-shell { padding-inline: 16px; }
  .jl-anchor-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .jl-bottom-nav a { min-height: 54px; align-content: center; border-radius: 12px; }
  .jl-bottom-nav .jl-bottom-signup { margin-top: -17px; background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(227,6,19,.32); }
  .jl-bottom-nav .jl-bottom-signup span { font-size: 1.35rem; }
  .jl-event-sticky-signup {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 880;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--red);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
  }
  .jl-event-single { padding-bottom: 155px; }
  .jl-404-links { grid-template-columns: 1fr; }
  figure.jl-family-hero-photo, figure.jl-family-hero-photo img { min-height: 360px; }
}

@media (max-width: 480px) {
  a.jl-button,
  a.jl-button-outline,
  .wp-block-buttons .wp-block-button,
  .wp-block-buttons .wp-block-button__link.wp-element-button { width: 100%; min-height: 48px; }
  .jl-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .jl-cta-row > a.jl-button,
  .jl-cta-row > a.jl-button-outline { width: min(100%, 420px); }
  .wp-block-buttons.jl-cta-row,
  .wp-block-buttons.jl-dual-actions,
  .wp-block-buttons.jl-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .wp-block-buttons.jl-cta-row > .wp-block-button,
  .wp-block-buttons.jl-dual-actions > .wp-block-button,
  .wp-block-buttons.jl-center > .wp-block-button {
    flex: 1 1 100%;
    width: min(100%, 420px);
    max-width: 420px;
  }
  .wp-block-buttons.jl-cta-row > .wp-block-button.jl-button,
  .wp-block-buttons.jl-dual-actions > .wp-block-button.jl-button,
  .wp-block-buttons.jl-center > .wp-block-button.jl-button { order: -1; }
  .jl-theme-toggle [data-jl-theme-label] { display: none; }
  .jl-theme-toggle { width: 44px; justify-content: center; padding: 0; }
  /* Home hero CTAs stay side-by-side even when other CTA rows stack. */
  .jl-family-hero-copy .wp-block-buttons.jl-cta-row {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 8px;
  }
  .jl-family-hero-copy .wp-block-buttons.jl-cta-row > .wp-block-button {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .jl-family-hero-copy .wp-block-buttons.jl-cta-row .wp-block-button__link.wp-element-button {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    font-size: clamp(0.7rem, 3vw, 0.84rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Dark palette: lighter red for small text, darker red for white-on-red controls. */
html[data-jl-theme="dark"] {
  --red: #ff6670;
  --red-dark: #ff8a91;
}
html[data-jl-theme="dark"] :is(
  a.jl-button,
  .wp-block-button.jl-button > .wp-block-button__link.wp-element-button,
  .wp-block-button:not(.is-style-outline):not(.jl-button-outline) > .wp-block-button__link.wp-element-button,
  .jl-floating-signup,
  .jl-anchor-nav a.jl-anchor-signup,
  .jl-bottom-nav .jl-bottom-signup,
  .jl-event-sticky-signup
) {
  background: #c6000d;
  border-color: #c6000d;
  color: #fff;
}
html[data-jl-theme="dark"] :is(
  a.jl-button,
  .wp-block-button.jl-button > .wp-block-button__link.wp-element-button,
  .wp-block-button:not(.is-style-outline):not(.jl-button-outline) > .wp-block-button__link.wp-element-button,
  .jl-floating-signup,
  .jl-anchor-nav a.jl-anchor-signup,
  .jl-event-sticky-signup
):hover {
  background: #b8000a;
  border-color: #b8000a;
  color: #fff;
}

/* Preserve the emotional impact of the hero without forcing one-word desktop lines. */
.jl-family-hero-copy h1 { font-size: clamp(3rem, 5.7vw, 5.65rem); line-height: .9; }
@media (max-width: 680px) {
  .jl-family-hero-copy h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
}

/* WCAG 2.2 target-size alignment for compact controls. */
.jl-theme-toggle,
.jl-menu-toggle,
.jl-copy-button,
.jl-button-small {
  min-height: 44px;
}
.jl-menu-toggle { height: 44px; }

/* Future-proof carousel controls: large hit areas with compact visual dots. */
.jl-slider-controls button { width: 44px; height: 44px; }
.jl-slider-dots button {
  position: relative;
  width: 24px;
  height: 24px;
  background: transparent;
}
.jl-slider-dots button::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  transform: translate(-50%, -50%);
}
.jl-slider-dots button.active::after { background: var(--red); }
.jl-slider-dots button.active { background: transparent; }


/* Music section: visible playlist, manual playback and responsive embed. */
.jl-music-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(227, 6, 19, .12), transparent 32%),
    linear-gradient(135deg, #111 0%, #1b1b1e 58%, #2a0c0f 100%);
  color: #fff;
}
.jl-music-section .jl-kicker { color: #ff9299; }
.jl-music-section h2,
.jl-music-section p { color: #fff; }
.jl-music-section .jl-music-copy > p { color: rgba(255,255,255,.78); }
.jl-music-section .wp-block-buttons.jl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.jl-music-section .wp-block-button { margin: 0; }
.jl-music-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.jl-music-copy h2, .jl-music-copy h3 { margin: 8px 0 18px; }
.jl-music-copy p { max-width: 62ch; }
.jl-youtube-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: #0b0b0d;
  box-shadow: 0 24px 65px rgba(0,0,0,.34);
}
.jl-youtube-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.jl-youtube-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jl-youtube-card > p { display: grid; gap: 4px; margin: 0; padding: 16px 18px 18px; color: #fff; }
.jl-youtube-card > p span { color: rgba(255,255,255,.68); font-size: .9rem; }
.jl-music-story {
  margin-top: clamp(44px, 7vw, 86px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--soft);
}
.jl-music-story .jl-youtube-card { border-color: var(--border); }
html[data-jl-theme="dark"] .jl-music-story { background: #171719; }
@media (max-width: 900px) {
  .jl-music-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .jl-music-story { padding: 18px; border-radius: 18px; }
  .jl-youtube-card { border-radius: 16px; }
}


/* =========================================================
   Judo Lion 6.5 — restored Google Forms and dual music access
   ========================================================= */
.jl-quick-forms {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  gap: 26px;
  align-items: center;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--card), var(--soft));
  box-shadow: var(--shadow-small);
}
.jl-quick-forms h3 { margin: 6px 0 8px; font: 900 clamp(1.7rem, 3vw, 2.6rem) / 1 var(--display); text-transform: uppercase; }
.jl-quick-forms p { margin: 0; color: var(--muted); }
.jl-form-groups { display: grid; gap: 18px; min-width: 0; }
.jl-form-group { min-width: 0; }
.jl-form-group > strong { display: block; margin-bottom: 9px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.jl-form-group .jl-signup-actions { justify-content: flex-start; }
.jl-signup-box-stacked {
  grid-template-columns: 1fr;
  justify-items: start;
  align-items: start;
  gap: 14px;
}
.jl-signup-box-stacked > h2,
.jl-signup-box-stacked > .jl-kicker,
.jl-signup-box-stacked > p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left;
  max-width: 880px;
}
.jl-signup-box-stacked > .jl-form-card-grid,
.jl-signup-box-stacked > .jl-signup-actions {
  width: 100%;
  max-width: 100%;
}
.jl-signup-box-stacked .jl-signup-actions > a,
.jl-quick-forms .jl-signup-actions > a { flex: 1 1 220px; }
html[data-jl-theme="dark"] .jl-quick-forms { background: linear-gradient(135deg, #19191c, #202024); }

@media (max-width: 900px) {
  .jl-quick-forms,
  .jl-signup-box-stacked { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .jl-quick-forms { padding: 22px 18px; }
  .jl-form-group .jl-signup-actions { display: grid; grid-template-columns: 1fr; }
  .jl-form-group .jl-signup-actions > a { width: 100%; }
}


/* =========================================================
   Judo Lion 6.6 — typography, spacing, signup links and 404
   ========================================================= */

/* Never split Polish words in headings, navigation or buttons. */
:where(h1, h2, h3, h4, h5, h6, .jl-button, .jl-button-outline, .jl-anchor-nav a, .jl-contact-links a, .jl-bottom-nav a, .jl-mobile-menu a, .jl-desktop-nav a) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
:where(h1, h2, h3, h4, h5, h6) {
  text-wrap: balance;
}
:where(p, li, blockquote, figcaption) {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}
/* Long technical values may break, ordinary words may not. */
.jl-payment-data strong,
.jl-tax-data strong,
.jl-contact-strip a[href^="mailto:"],
.jl-footer a[href^="mailto:"],
.jl-rich-content a:not(.jl-button):not(.jl-button-outline),
.jl-event-rich-content a:not(.jl-button):not(.jl-button-outline) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Clearer rhythm and more comfortable line spacing. */
body { line-height: 1.65; }
.jl-section { padding-block: clamp(48px, 5.5vw, 72px); }
/* Consecutive sections share one gap instead of stacking full top+bottom padding. */
.jl-page-content > .wp-block-group.jl-section + .wp-block-group.jl-section {
  padding-top: clamp(28px, 3.5vw, 44px);
}
.jl-section-head { align-items: flex-start; margin-bottom: clamp(26px, 4vw, 40px); }
.wp-block-group.jl-section-head.is-layout-flex,
.jl-section-head.is-layout-flex {
  flex-direction: column !important;
  align-items: flex-start !important;
  flex-wrap: nowrap;
  gap: 10px;
}
.jl-section-head h2 { line-height: 1.04; letter-spacing: -0.035em; margin-top: 0; }
.jl-section-head > .jl-kicker,
.jl-section-head > p.jl-kicker { margin: 0; }
.jl-family-hero-copy h1 { line-height: .94; letter-spacing: -0.045em; }
.jl-page-hero h1,
.jl-final-cta h2,
.jl-two-column-copy h2,
.jl-parent-support h2,
.jl-archive-hero h1,
.jl-event-content h1,
.jl-generic-content > h1 { line-height: 1.02; letter-spacing: -0.035em; }
.jl-family-intro h2,
.jl-story-copy h2,
.jl-coach-profile h2,
.jl-photo-quote blockquote strong { line-height: 1.03; }
.jl-page-hero p,
.jl-family-hero-copy > p,
.jl-intro,
.jl-lead { line-height: 1.65; }
.jl-rich-content > * + *,
.jl-event-rich-content > * + * { margin-top: 1.05em; }
.jl-rich-content :where(h2, h3, h4),
.jl-event-rich-content :where(h2, h3, h4) { margin-top: 1.7em; margin-bottom: .65em; }

/* Buttons wrap only between words and keep a comfortable hit area. */
a.jl-button,
a.jl-button-outline,
.wp-block-button__link.wp-element-button {
  min-height: 48px;
  padding: 12px 20px;
  line-height: 1.25;
  text-wrap: balance;
}
.jl-cta-row { row-gap: 12px; column-gap: 14px; }
.jl-anchor-nav a { white-space: nowrap; }
.jl-anchor-nav .jl-shell { overscroll-behavior-inline: contain; }
.jl-contact-strip a { line-height: 1.35; }

/* Complete Page Not Found experience in the visual language of the club. */
.jl-not-found {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(36px, 6vw, 78px) 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(227, 6, 19, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 6, 19, .055) 1px, transparent 1px);
  background-size: 46px 46px;
}
.jl-404-stage {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.jl-404-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(227, 6, 19, .54), transparent 32%),
    linear-gradient(145deg, #0b0b0c 0%, #171719 62%, #42080d 100%);
}
.jl-404-visual::before,
.jl-404-visual::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .08);
  transform: rotate(45deg);
}
.jl-404-visual::after { width: 54%; border-color: rgba(227, 6, 19, .34); }
.jl-404-number {
  position: absolute;
  inset: 24px 0 auto;
  color: rgba(255, 255, 255, .08);
  font: 900 clamp(8rem, 18vw, 15rem) / .8 var(--display);
  letter-spacing: -.08em;
  text-align: center;
}
.jl-404-lion-wrap {
  display: grid;
  width: min(58%, 260px);
  aspect-ratio: 417 / 512;
  place-items: center;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: rgba(0,0,0,.28);
  box-shadow: 0 22px 60px rgba(0,0,0,.42);
  backdrop-filter: blur(8px);
  padding: 10px;
}
.jl-404-lion { width: 88%; height: auto; filter: drop-shadow(0 14px 26px rgba(0,0,0,.44)); }
.jl-404-ippon {
  position: absolute;
  bottom: 54px;
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 900 .78rem / 1 var(--display);
  letter-spacing: .15em;
}
.jl-404-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 5.2vw, 74px);
}
.jl-404-copy h1 {
  max-width: 760px;
  margin: 10px 0 20px;
  font: 900 clamp(2.7rem, 5.4vw, 5.45rem) / 1 var(--display);
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.jl-404-copy > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.04rem; }
.jl-404-copy > p + p { margin-top: 12px; }
.jl-404-lead { color: var(--ink) !important; font-size: clamp(1.08rem, 1.8vw, 1.3rem) !important; }
.jl-404-actions { margin-top: 28px; }
.jl-404-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  text-align: left;
}
.jl-404-links a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--soft);
  text-decoration: none;
}
.jl-404-links a > span:first-child { font-size: 1.35rem; }
.jl-404-links a > span:last-child { display: grid; min-width: 0; }
.jl-404-links strong { line-height: 1.2; }
.jl-404-links small { margin-top: 3px; color: var(--muted); line-height: 1.25; }
.jl-404-copy blockquote {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--red);
  font-weight: 900;
}
html[data-jl-theme="dark"] .jl-404-links a { background: #19191c; }

@media (max-width: 920px) {
  .jl-404-stage { grid-template-columns: 1fr; }
  .jl-404-visual { min-height: 360px; }
  .jl-404-number { font-size: clamp(7rem, 28vw, 12rem); }
  .jl-404-lion-wrap { width: min(46%, 220px); }
  .jl-404-ippon { bottom: 30px; }
}

@media (max-width: 680px) {
  .jl-section-head h2 { font-size: clamp(2rem, 10.5vw, 3.25rem); }
  .jl-family-hero-copy h1 { font-size: clamp(2.55rem, 12vw, 4rem); line-height: .97; }
  .jl-page-hero h1,
  .jl-event-content h1,
  .jl-archive-hero h1,
  .jl-generic-content > h1 { font-size: clamp(2.25rem, 11vw, 3.8rem); line-height: 1.03; }
  .jl-anchor-nav a { white-space: nowrap; }
  .jl-404-stage { border-radius: 20px; }
  .jl-404-visual { min-height: 300px; }
  .jl-404-copy { padding: 30px 22px 34px; }
  .jl-404-copy h1 { font-size: clamp(2.3rem, 11.5vw, 3.7rem); line-height: 1.03; }
  .jl-404-links { grid-template-columns: 1fr; }
  .jl-404-actions { display: grid; grid-template-columns: 1fr; }
}

/* Specificity-safe overrides for legacy wrapping rules. */
h1, h2, h3, h4, h5, h6,
.jl-event-content h1,
.jl-family-hero-copy h1,
.jl-page-hero h1,
.jl-section-head h2,
.jl-family-intro h2,
.jl-final-cta h2,
.jl-story-copy h2,
.jl-two-column-copy h2,
.jl-parent-support h2,
.jl-coach-profile h2,
.jl-archive-hero h1,
.jl-generic-content > h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.jl-button,
.jl-button-outline,
.jl-button *,
.jl-button-outline *,
.jl-anchor-nav a,
.jl-contact-links a,
.jl-desktop-nav a,
.jl-mobile-menu a,
.jl-bottom-nav a,
.jl-floating-signup,
.jl-floating-signup * {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.jl-contact-strip a:not([href^="mailto:"]) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* =========================================================
   Judo Lion 6.7 — partners, athletes, mobile sliders,
   contextual galleries and final UX/spacing pass
   ========================================================= */

/* Global text safety: wrap at spaces, never inside normal Polish words. */
:where(body, main, section, article, div, p, li, span, strong, b, small, a, button, label, summary, figcaption, dt, dd) {
  word-break: normal;
  hyphens: none;
}
:where(p, li, blockquote, figcaption, dd) {
  overflow-wrap: normal;
}
:where(a[href^="mailto:"], a[href^="http"], .jl-payment-data strong, .jl-tax-data strong, .jl-technical-value) {
  overflow-wrap: anywhere;
}
.jl-section p,
.jl-section li { max-width: 78ch; }
.jl-copy-narrow { max-width: 880px; }
.jl-copy-narrow > p { font-size: clamp(1rem, 1.35vw, 1.13rem); }
.jl-back-link { display: inline-flex; margin-bottom: 18px; color: var(--red); font-weight: 900; text-decoration: none; }
/* Light outline on permanently dark panels (music / final CTA / inline dark / jl-on-dark). */
:is(.jl-music-section, .jl-final-cta, .jl-inline-cta-dark) :is(
  a.jl-button-outline,
  .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button,
  .wp-block-button.jl-button-outline > .wp-block-button__link.wp-element-button
),
a.jl-button-outline.jl-on-dark,
.wp-block-button.jl-on-dark > .wp-block-button__link.wp-element-button {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  background: rgba(255,255,255,.04);
}
:is(.jl-music-section, .jl-final-cta, .jl-inline-cta-dark) :is(
  a.jl-button-outline,
  .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button,
  .wp-block-button.jl-button-outline > .wp-block-button__link.wp-element-button
):hover,
a.jl-button-outline.jl-on-dark:hover,
.wp-block-button.jl-on-dark > .wp-block-button__link.wp-element-button:hover {
  border-color: #fff;
  background: #fff;
  color: #111;
}
:is(.jl-music-section, .jl-final-cta, .jl-inline-cta-dark) :is(
  a.jl-button,
  .wp-block-button.jl-button > .wp-block-button__link.wp-element-button,
  .wp-block-button:not(.is-style-outline):not(.jl-button-outline) > .wp-block-button__link.wp-element-button
) {
  color: #fff;
}
.jl-anchor-alias { position: relative; top: calc(-1 * var(--header-height) - 80px); }

/* Opt-in mobile slider chrome (class jl-mobile-slider / data-mobile-slider). Hidden on desktop. */
.jl-mobile-slider-controls { display: none; }
@media (max-width: 760px) {
  [data-mobile-slider].jl-mobile-slider-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid-auto-rows: auto !important;
    gap: 14px !important;
    width: calc(100% + 24px);
    margin-right: -24px;
    padding: 2px 24px 14px 0;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0 24px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  [data-mobile-slider].jl-mobile-slider-track::-webkit-scrollbar { display: none; }
  [data-mobile-slider].jl-mobile-slider-track > .jl-mobile-slide {
    flex: 0 0 min(84vw, 340px) !important;
    width: min(84vw, 340px) !important;
    min-width: 0 !important;
    max-width: none !important;
    grid-column: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .jl-home-gallery.jl-mobile-slider-track,
  .jl-family-gallery.jl-mobile-slider-track,
  .jl-mini-gallery.jl-mobile-slider-track { grid-auto-rows: auto !important; }
  .jl-home-gallery.jl-mobile-slider-track > figure,
  .jl-family-gallery.jl-mobile-slider-track > figure,
  .jl-mini-gallery.jl-mobile-slider-track > figure {
    flex-basis: min(88vw, 420px) !important;
    width: min(88vw, 420px) !important;
    aspect-ratio: 4 / 3;
  }
  .jl-home-gallery.jl-mobile-slider-track > figure img,
  .jl-family-gallery.jl-mobile-slider-track > figure img,
  .jl-mini-gallery.jl-mobile-slider-track > figure img { width: 100%; height: 100%; object-fit: cover; }
  .jl-mobile-slider-controls {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
  }
  .jl-slider-arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-size: 1.25rem;
    cursor: pointer;
  }
  .jl-slider-arrow:disabled { opacity: .3; cursor: default; }
  .jl-slider-dots { display: flex; justify-content: center; gap: 7px; min-width: 0; overflow: hidden; }
  .jl-slider-dots button {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--muted) 40%, transparent);
  }
  .jl-slider-dots button.is-active { width: 22px; border-radius: 999px; background: var(--red); }
}

/* Contextual lightbox. */
body.jl-lightbox-open { overflow: hidden; }
.jl-gallery-pro img[role="button"] { cursor: zoom-in; }
.jl-gallery-pro img[role="button"]:focus-visible { outline: 4px solid var(--red); outline-offset: 3px; }
.jl-lightbox {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
}
.jl-lightbox.is-open { display: grid; }
.jl-lightbox-backdrop { position: absolute; inset: 0; background: rgba(4,4,6,.92); backdrop-filter: blur(8px); }
.jl-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) 58px;
  grid-template-rows: minmax(0,1fr) auto;
  gap: 14px;
  width: min(1180px, 96vw);
  height: min(860px, 92svh);
  padding: 56px 18px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: #101013;
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
  color: #fff;
}
.jl-lightbox-dialog figure { grid-column: 2; display: grid; grid-template-rows: minmax(0,1fr) auto; margin: 0; min-width: 0; min-height: 0; text-align: center; }
.jl-lightbox-dialog figure img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.jl-lightbox-dialog figcaption { min-height: 28px; padding-top: 10px; color: #ddd; }
.jl-lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.jl-lightbox-nav {
  align-self: center;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
.jl-lightbox-prev { grid-column: 1; grid-row: 1; }
.jl-lightbox-next { grid-column: 3; grid-row: 1; }
.jl-lightbox-meta { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between; gap: 20px; color: #ddd; font-size: .9rem; }
.jl-lightbox :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 680px) {
  .jl-lightbox { padding: 0; }
  .jl-lightbox-dialog { width: 100vw; height: 100svh; padding: 58px 12px 14px; border: 0; border-radius: 0; grid-template-columns: 48px minmax(0,1fr) 48px; }
  .jl-lightbox-nav { width: 44px; height: 44px; }
  .jl-lightbox-dialog figcaption { font-size: .88rem; }
}

/* Partnership overview and detail pages. */
.jl-partner-card { display: flex; flex-direction: column; min-height: 390px; color: inherit; text-decoration: none; }
.jl-partner-card > img { width: 100%; height: 112px; padding: 12px; object-fit: contain; border-radius: 14px; background: #fff; }
.jl-partner-card .jl-partner-logo { height: 94px; }
.jl-partner-card strong { margin-top: auto; padding-top: 20px; color: var(--red); }
.jl-maddax-card strong { color: #fff; }
.jl-partner-icon { display: grid; width: 84px; height: 84px; place-items: center; border-radius: 18px; background: var(--soft); font-size: 2.2rem; }
.jl-coop-process,
.jl-coop-benefit-grid,
.jl-offer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
/* Gutenberg columns + leftover slider class must still stack as a process grid. */
.jl-page-content .wp-block-columns.jl-coop-process,
.wp-block-columns.jl-coop-process,
.jl-coop-process.jl-mobile-slider,
.jl-coop-process[data-mobile-slider],
.jl-page-content .wp-block-columns.jl-coop-benefit-grid,
.wp-block-columns.jl-coop-benefit-grid,
.jl-coop-benefit-grid.jl-mobile-slider,
.jl-coop-benefit-grid[data-mobile-slider] {
  display: grid !important;
  gap: 18px !important;
  overflow: visible;
  scroll-snap-type: none;
}
.jl-coop-process > .wp-block-column,
.jl-coop-process > .jl-mobile-slide,
.jl-coop-benefit-grid > .wp-block-column,
.jl-coop-benefit-grid > .jl-mobile-slide,
.jl-coop-benefit-grid > article {
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  scroll-snap-align: unset;
}
.jl-offer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.jl-coop-process article,
.jl-coop-benefit-grid article,
.jl-offer-grid article {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-small);
}
.jl-coop-process article > b { display: block; margin-bottom: 16px; color: var(--red); font: 900 2rem/1 var(--display); }
.jl-coop-benefit-grid article > span,
.jl-offer-grid article > span:not(.jl-card-icon) { font-size: 2rem; }
/* Offer cards use .jl-card-icon like Home — keep that size, not the 2rem span rule. */
.jl-offer-grid .jl-card-icon { font-size: clamp(1.5rem, 2.13vw, 1.77rem); }
.jl-coop-process h3,
.jl-coop-benefit-grid h3,
.jl-offer-grid h3 { margin: 12px 0 8px; }
.jl-coop-process p,
.jl-coop-benefit-grid p,
.jl-offer-grid p { margin: 0; color: var(--muted); }
.jl-coop-hero { padding: 40px 0 0; }
.jl-coop-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
  gap: 44px;
  align-items: center;
  min-height: 540px;
  padding: clamp(38px,6vw,76px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg,var(--surface),var(--soft));
  box-shadow: var(--shadow);
}
.jl-coop-hero h1 { margin: 10px 0 18px; font: 900 clamp(3rem,6vw,6rem)/.94 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.jl-coop-hero p { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.jl-coop-logo-panel { display: grid; min-height: 320px; place-items: center; align-content: center; gap: 22px; padding: 34px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-small); }
.jl-coop-logo-panel img { max-width: 90%; max-height: 190px; object-fit: contain; }
.jl-coop-logo-panel span { padding: 8px 13px; border-radius: 999px; background: var(--soft); color: #111; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.jl-madax-hero .jl-coop-hero-grid { background: linear-gradient(135deg,#101014,#2e080c); color: #fff; }
.jl-madax-hero p { color: #e8e8e8; }
.jl-dark-panel { background: #fff; }
.jl-mini-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.jl-mini-gallery figure { position: relative; margin: 0; min-height: 280px; overflow: hidden; border-radius: 20px; }
.jl-mini-gallery img { width: 100%; height: 100%; object-fit: cover; }
.jl-mini-gallery figcaption,
.jl-home-gallery figcaption,
.jl-family-gallery figcaption { position: absolute; inset: auto 0 0; padding: 34px 18px 16px; background: linear-gradient(transparent,rgba(0,0,0,.8)); color: #fff; font-weight: 800; }
.jl-company-profile { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 40px; align-items: center; }
.jl-company-profile > img,
.jl-company-profile .wp-block-image img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); display: block; }
.jl-link-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.jl-link-cards > a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-small);
}
.jl-link-cards a > span { grid-row: 1 / 3; font-size: 1.7rem; }
.jl-link-cards strong { font-size: 1.05rem; }
.jl-link-cards small { color: var(--muted); }
.jl-coop-detail .jl-section.jl-soft .jl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 8px;
}
.jl-coop-brief { max-width: 920px; margin: auto; padding: clamp(30px,5vw,58px); border: 1px solid var(--border); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }

/* Parent page components. */
.jl-parent-feature { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 38px; align-items: center; }
.jl-parent-feature > img { width: 100%; max-height: 680px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.jl-first-steps,
.jl-page-content .wp-block-columns.jl-first-steps {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
  margin: 26px 0;
  width: 100%;
}
.jl-first-steps article { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.jl-first-steps article > b,
.jl-first-steps article > p:first-child strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.jl-first-steps article > p:first-child { margin: 0 0 4px; }
.jl-first-steps h3 { margin: 12px 0 6px; font-size: 1rem; }
.jl-first-steps p { margin: 0; color: var(--muted); font-size: .92rem; }
.jl-first-steps article > p:first-child { color: inherit; }
.jl-document-library { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.jl-document-library > a { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 14px; align-items: center; min-height: 108px; padding: 20px; border: 1px solid var(--border); border-radius: 17px; background: var(--card); color: inherit; text-decoration: none; box-shadow: var(--shadow-small); }
.jl-doc-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: var(--soft); font-size: 1.5rem; }
.jl-document-library > a > span:nth-child(2) { display: grid; min-width: 0; }
.jl-document-library small { margin-top: 4px; color: var(--muted); }
.jl-document-library em { color: var(--red); font-style: normal; font-weight: 900; white-space: nowrap; }
.jl-payment-card-v2 { /* layout handled above — keep class for legacy markup hooks */ }
.jl-copy-secondary { margin-top: 0; }
.jl-page-content .wp-block-columns.jl-tax-layout,
.jl-tax-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 36px !important;
  align-items: start;
  width: 100%;
  margin-inline: 0 !important;
}
.jl-tax-layout > .wp-block-column { min-width: 0; }
.jl-tax-data { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.jl-tax-data > p { position: relative; display: grid; gap: 5px; margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.jl-tax-data small { color: var(--muted); font-weight: 800; }
.jl-tax-data strong { padding-right: 65px; font-size: clamp(1.1rem,2vw,1.45rem); }
.jl-copy-mini { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--soft); color: var(--ink); font-weight: 800; cursor: pointer; }
/* Live markup is plain <li><strong>Title.</strong> body…</li> — do not force a 44px number column. */
.jl-tax-steps { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: none; }
.jl-tax-steps li {
  display: block;
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  background: color-mix(in srgb, var(--soft) 70%, transparent);
  color: var(--muted);
  line-height: 1.55;
}
.jl-tax-steps li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}
.jl-tax-steps li > strong:first-child {
  display: inline;
  color: var(--ink);
  font-weight: 900;
}
.jl-tax-steps h3 { margin: 0 0 3px; font-size: 1rem; color: var(--ink); }
.jl-tax-steps p { margin: 0; color: var(--muted); }
.jl-tax-note { margin-top: 22px; padding: 18px; border-radius: 14px; background: #fff3d6; color: #4a3500; }
html[data-jl-theme="dark"] .jl-tax-note { background: #342704; color: #ffe9a8; }
.jl-tax-poster { display: grid; gap: 10px; color: var(--red); font-weight: 900; text-align: center; text-decoration: none; }
.jl-tax-poster img { width: 100%; max-height: 860px; object-fit: contain; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.jl-parent-schedule { display: grid; gap: 15px; }
.jl-schedule-item { display: grid; grid-template-columns: 170px minmax(0,1fr) auto; gap: 22px; align-items: start; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-schedule-date { display: grid; gap: 10px; }
.jl-schedule-date > span { font-weight: 900; }
.jl-schedule-main h3 { margin: 0 0 7px; }
.jl-schedule-main h3 a { color: inherit; text-decoration: none; }
.jl-schedule-main > p { margin: 0 0 12px; color: var(--muted); }
.jl-important-note { margin: 14px 0; padding: 14px 16px; border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; background: var(--soft); }
.jl-schedule-resources { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 14px; }
.jl-schedule-resources > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jl-schedule-resources strong { margin-right: 5px; }
.jl-schedule-resources a { padding: 7px 10px; border-radius: 8px; background: var(--soft); color: var(--red); font-size: .82rem; font-weight: 900; text-decoration: none; }
.jl-schedule-resources span { color: var(--muted); }
.jl-form-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.jl-form-card-grid article { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-form-card-grid article > span { font-size: 2rem; }
.jl-form-card-grid h3 { margin: 12px 0 8px; }
.jl-form-card-grid p { color: var(--muted); }
.jl-form-card-grid .jl-button { margin-top: auto; }

/* Event status and templates. */
.jl-event-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.jl-event-status { display: inline-flex; width: fit-content; padding: 7px 10px; border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.jl-event-status.is-upcoming { background: #dcf7e7; color: #0b6532; }
.jl-event-status.is-soldout { background: #fff0cd; color: #8a5200; }
.jl-event-status.is-finished { background: #ececef; color: #595962; }
html[data-jl-theme="dark"] .jl-event-status.is-upcoming { background: #103b26; color: #b5f4d0; }
html[data-jl-theme="dark"] .jl-event-status.is-soldout { background: #49330a; color: #ffe19b; }
html[data-jl-theme="dark"] .jl-event-status.is-finished { background: #333339; color: #d6d6dc; }
.jl-event-card.is-status-finished .jl-event-poster img { filter: saturate(.35); }
.jl-disabled-action { display: inline-flex; align-items: center; padding: 11px 14px; border-radius: 10px; background: var(--soft); color: var(--muted); font-weight: 900; }
.jl-event-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.jl-event-legend span { display: inline-flex; gap: 8px; align-items: center; }
.jl-event-legend i { width: 11px; height: 11px; border-radius: 50%; }
.jl-event-legend i.is-upcoming { background: #28a65a; }
.jl-event-legend i.is-soldout { background: #e9a21a; }
.jl-event-legend i.is-finished { background: #81818a; }
.jl-event-detail-hero { padding: 40px 0 0; }
.jl-event-detail-grid { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); gap: clamp(30px,5vw,70px); align-items: center; padding: clamp(28px,5vw,60px); border: 1px solid var(--border); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.jl-event-detail-grid figure { display: grid; margin: 0; min-height: 480px; place-items: center; border-radius: 20px; background: #111; overflow: hidden; }
.jl-event-detail-grid figure img { width: 100%; height: 100%; max-height: 720px; object-fit: contain; }
.jl-event-detail-grid h1 { margin: 14px 0; font: 900 clamp(2.7rem,5.7vw,5.7rem)/.96 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.jl-event-lead { font-size: 1.12rem; color: var(--muted); }
.jl-event-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.jl-event-facts div { padding: 16px; border-radius: 14px; background: var(--soft); }
.jl-event-facts dt { color: var(--muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.jl-event-facts dd { margin: 4px 0 0; font-weight: 900; }
.jl-event-signup-block { margin-top: 22px; }
.jl-event-signup-block > strong { display: block; margin-bottom: 10px; }
.jl-status-message { margin-top: 22px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--soft); font-weight: 800; }
.jl-event-content-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 44px; align-items: start; }
.jl-event-side-card { display: grid; gap: 10px; margin-bottom: 16px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-event-side-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.jl-event-side-card a { color: var(--red); font-weight: 800; text-decoration: none; }

/* Trainer and athlete design. */
/* Story card layout is defined earlier; do not reintroduce gap/flex conflicts here. */
.jl-trainer-profiles { display: grid; gap: 34px; }
.jl-trainer-profile { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 38px; align-items: center; padding: clamp(24px,4vw,42px); border: 1px solid var(--border); border-radius: 26px; background: var(--card); box-shadow: var(--shadow-small); }
.jl-trainer-profile.is-reversed { grid-template-columns: minmax(0,1.28fr) minmax(280px,.72fr); }
.jl-trainer-profile.is-reversed > img { order: 2; }
.jl-trainer-profile > img { width: 100%; max-height: 560px; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 20px; }
.jl-trainer-profile h3 { margin: 8px 0 12px; font: 900 clamp(2rem,4vw,3.7rem)/.98 var(--display); text-transform: uppercase; }
.jl-trainer-lead { color: var(--ink); font-size: 1.13rem; font-weight: 800; }
.jl-trainer-profile p:not(.jl-trainer-lead) { color: var(--muted); }
.jl-trainer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jl-trainer-tags span { padding: 7px 10px; border-radius: 999px; background: var(--soft); font-size: .75rem; font-weight: 900; }
.jl-athlete-intro { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 30px; align-items: center; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--card); }
.jl-athlete-intro h3 { margin-top: 0; }
.jl-age-guide { display: flex; flex-wrap: wrap; gap: 7px; max-width: 260px; justify-content: flex-end; }
.jl-age-guide span { padding: 8px 10px; border-radius: 9px; background: var(--red); color: #fff; font-weight: 900; }
.jl-athlete-tools { display: grid; grid-template-columns: minmax(220px,1fr) minmax(180px,.5fr) auto; gap: 14px; align-items: end; margin: 24px 0; }
.jl-athlete-tools label { display: grid; gap: 7px; font-size: .8rem; font-weight: 900; }
.jl-athlete-tools input,
.jl-athlete-tools select { min-height: 48px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--ink); font: inherit; }
.jl-athlete-tools p { margin: 0 0 12px; color: var(--muted); }
.jl-athlete-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}
.jl-athlete-pager[hidden] { display: none !important; }
.jl-athlete-pager button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.jl-athlete-pager button:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
.jl-athlete-pager button:disabled {
  opacity: .45;
  cursor: default;
}
.jl-athlete-pager-status {
  min-width: 7.5rem;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
}
.jl-athlete-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.jl-athlete-card { min-width: 0; border: 1px solid var(--border); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-small); overflow: hidden; }
.jl-athlete-card[hidden] { display: none !important; }
.jl-athlete-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.jl-athlete-card img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.jl-athlete-card > a > div:last-child { padding: 20px; }
.jl-athlete-card h3,
.jl-athlete-card h2 { margin: 10px 0 6px; font-size: 1.2rem; }
.jl-athlete-card p { color: var(--muted); }
.jl-athlete-card strong { color: var(--red); }
.jl-athlete-placeholder { display: grid; width: 100%; aspect-ratio: 4/5; place-items: center; align-content: center; gap: 12px; background: linear-gradient(145deg,var(--soft),var(--surface)); color: var(--muted); }
.jl-athlete-placeholder img { width: 110px; height: auto; aspect-ratio: auto; object-fit: contain; }
.jl-athlete-empty { grid-column: 1/-1; display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 24px; align-items: center; padding: 30px; border: 1px dashed var(--border); border-radius: 20px; }
.jl-athlete-empty > img { width: 100%; }
.jl-privacy-note,
.jl-privacy-card { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--soft); color: var(--muted); }
.jl-athlete-profile-hero { padding: 40px 0 0; }
.jl-athlete-profile-grid { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 48px; align-items: center; padding: clamp(28px,5vw,58px); border: 1px solid var(--border); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.jl-athlete-profile-image > img { width: 100%; max-height: 680px; aspect-ratio: 4/5; object-fit: cover; border-radius: 22px; }
.jl-athlete-profile-copy { min-width: 0; }
.jl-athlete-profile-grid h1 {
  margin: 12px 0;
  max-width: 100%;
  font: 900 clamp(2.1rem, 4.2vw, 4.25rem) / .96 var(--display);
  letter-spacing: -.04em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.jl-athlete-meta { color: var(--red); font-weight: 900; }
.jl-athlete-lead { font-size: 1.15rem; color: var(--muted); }
.jl-athlete-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 44px; align-items: start; }
.jl-athlete-content-grid.is-results-only,
.jl-athlete-content-grid.is-achievements-only { grid-template-columns: 1fr; }
.jl-athlete-content-grid.is-results-only .jl-achievement-card,
.jl-athlete-content-grid.is-results-only .jl-starts-card,
.jl-athlete-content-grid.is-achievements-only .jl-achievement-card { max-width: none; }
.jl-athlete-side { display: grid; gap: 18px; }
.jl-athlete-jm { margin: 16px 0 0; }
.jl-athlete-jm .jl-button-outline { display: inline-flex; }
.jl-achievement-card { padding: 24px; border-radius: 20px; background: linear-gradient(145deg,#111,#3b080d); color: #fff; }
.jl-achievement-card h2 { margin-top: 0; }
.jl-achievement-card ul { padding-left: 20px; }
.jl-starts-card { padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-small); }
.jl-starts-card h2 { margin-top: 0; }
.jl-starts-card ul { padding-left: 20px; margin: 0; color: var(--muted); }

/* FAQ page — Gutenberg hero is flat children (no .jl-shell); lay out with CSS grid. */
.jl-page-content > .wp-block-group.jl-faq-hero,
.jl-faq-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px 48px;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(40px, 5vw, 64px) max(24px, calc((100% - 1240px) / 2));
  background: linear-gradient(135deg, #111, #3b080d);
  color: #fff;
  box-sizing: border-box;
}
.jl-page-content > .wp-block-group.jl-faq-hero.is-layout-constrained > *,
.jl-faq-hero.is-layout-constrained > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
.jl-faq-hero > .jl-kicker,
.jl-faq-hero > h1,
.jl-faq-hero > p,
.jl-faq-hero > .jl-cta-row,
.jl-faq-hero > .wp-block-buttons {
  grid-column: 1;
}
.jl-faq-hero > .jl-faq-search {
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: center;
  width: 100%;
  max-width: none;
  margin: 0;
}
.jl-faq-hero .jl-shell {
  display: contents;
}
.jl-faq-hero > .jl-kicker,
.jl-faq-hero > p.jl-kicker {
  margin: 0;
  color: #ffb4bc;
}
.jl-faq-hero h1 {
  margin: 10px 0 18px;
  font: 900 clamp(2.6rem, 5.5vw, 5.6rem) / .93 var(--display);
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: #fff;
}
.jl-faq-hero > p:not(.jl-kicker) {
  max-width: 34rem;
  margin: 0;
  color: #eee;
  font-size: 1.08rem;
}
.jl-faq-hero > .jl-cta-row,
.jl-faq-hero > .wp-block-buttons {
  margin-top: 8px;
}
.jl-faq-hero .jl-faq-search,
.jl-faq-search {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  background: rgba(255, 255, 255, .1);
  box-shadow: none;
  color: #fff;
}
.jl-faq-hero .jl-faq-search label,
.jl-faq-search label {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-weight: 900;
}
.jl-faq-hero .jl-faq-search input,
.jl-faq-search input {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
  box-sizing: border-box;
}
.jl-faq-hero .jl-faq-search p,
.jl-faq-search p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
}
.jl-faq-grid details[hidden] { display: none; }
.jl-section[hidden] { display: none !important; }

/* Responsive layouts. */
@media (max-width: 1080px) {
  .jl-coop-process,
  .jl-page-content .wp-block-columns.jl-coop-process,
  .jl-coop-benefit-grid,
  .jl-page-content .wp-block-columns.jl-coop-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .jl-offer-grid,
  .jl-form-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .jl-athlete-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .jl-schedule-item { grid-template-columns: 145px minmax(0,1fr); }
  .jl-schedule-item > .jl-button-outline { grid-column: 2; width: fit-content; }
}
@media (max-width: 920px) {
  .jl-coop-hero-grid,
  .jl-page-content .wp-block-columns.jl-page-hero-grid,
  .jl-page-hero-grid,
  .jl-parent-feature,
  .jl-tax-layout,
  .jl-company-profile,
  .jl-page-content .wp-block-columns.jl-story-grid,
  .jl-story-grid,
  .jl-athlete-profile-grid,
  .jl-event-detail-grid,
  .jl-page-content > .wp-block-group.jl-faq-hero,
  .jl-faq-hero {
    grid-template-columns: 1fr !important;
  }
  .jl-faq-hero > .jl-faq-search {
    grid-column: 1;
    grid-row: auto;
  }
  .jl-coop-logo-panel { min-height: 240px; }
  .jl-trainer-profile,
  .jl-trainer-profile.is-reversed { grid-template-columns: 280px minmax(0,1fr); }
  .jl-trainer-profile.is-reversed > img { order: 0; }
  .jl-event-content-layout,
  .jl-athlete-content-grid { grid-template-columns: 1fr; }
  .jl-event-content-layout aside,
  .jl-athlete-content-grid aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .jl-athlete-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .jl-link-cards { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .jl-shell { width: min(100% - 32px, 1240px); }
  .jl-section { padding-block: 44px; }
  .jl-footer { padding-inline: 0; }
  .jl-footer .jl-shell,
  .jl-footer .jl-copyright {
    width: min(100% - 32px, 1240px);
    margin-inline: auto;
    box-sizing: border-box;
  }
  .jl-coop-hero { padding-top: 18px; }
  .jl-coop-hero-grid { min-height: 0; gap: 28px; padding: 30px 22px; border-radius: 20px; }
  .jl-coop-hero h1,
  .jl-faq-hero h1,
  .jl-event-detail-grid h1 { font-size: clamp(2.35rem,12vw,4rem); line-height: .98; }
  .jl-athlete-profile-grid h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); line-height: .98; letter-spacing: -.045em; }
  .jl-coop-process,
  .jl-page-content .wp-block-columns.jl-coop-process,
  .jl-coop-benefit-grid,
  .jl-page-content .wp-block-columns.jl-coop-benefit-grid,
  .jl-offer-grid,
  .jl-form-card-grid,
  .jl-document-library,
  .jl-first-steps,
  .jl-tax-data,
  .jl-mini-gallery,
  .jl-event-facts,
  .jl-athlete-grid { grid-template-columns: 1fr !important; }
  .jl-trainer-profile,
  .jl-trainer-profile.is-reversed { grid-template-columns: 1fr; gap: 22px; padding: 20px; }
  .jl-trainer-profile > img { max-height: 480px; }
  .jl-parent-feature > img { max-height: 480px; }
  .jl-document-library > a { grid-template-columns: 44px minmax(0,1fr); }
  .jl-document-library em { grid-column: 2; }
  .jl-tax-data strong { padding-right: 0; }
  .jl-copy-mini { position: static; transform: none; width: fit-content; margin-top: 5px; }
  .jl-schedule-item { grid-template-columns: 1fr; padding: 20px; }
  .jl-schedule-item > .jl-button-outline { grid-column: 1; }
  .jl-schedule-resources { display: grid; gap: 13px; }
  .jl-schedule-resources > div { align-items: flex-start; }
  .jl-athlete-intro { grid-template-columns: 1fr; }
  .jl-age-guide { justify-content: flex-start; max-width: none; }
  .jl-athlete-tools { grid-template-columns: 1fr; }
  .jl-athlete-tools p { margin: 0; }
  .jl-athlete-empty { grid-template-columns: 74px minmax(0,1fr); padding: 20px; }
  .jl-event-content-layout aside,
  .jl-athlete-content-grid aside { grid-template-columns: 1fr; }
  .jl-event-detail-grid { padding: 22px; }
  .jl-event-detail-grid figure { min-height: 340px; }
  .jl-faq-hero {
    padding: 34px max(18px, calc((100% - 1240px) / 2));
    gap: 22px;
  }
  .jl-faq-search { padding: 20px; }
  .jl-inline-cta { align-items: flex-start; }
  .jl-inline-cta .jl-cta-row { width: 100%; }
  .jl-inline-cta .jl-cta-row > a { flex: 1 1 100%; }
}
