/**
 * INM Karta zajęć — Design System „Idziemy na miasto”.
 * Kolory z tokenów core (inm-design-tokens), z wartościami zapasowymi.
 * Kształt: bez zaokrągleń i cieni; fokus: wewnętrzna linia na dole.
 */
.inm-zj {
	--zj-bg: var(--inm-color-bg, #FAFAFA);
	--zj-ink: var(--inm-color-text, #303431);
	--zj-meta: var(--inm-color-meta, #646B65);
	--zj-orange: var(--inm-color-accent, #EF8F10);
	--zj-hover: #F1F6E0;
	--zj-muted: #ECEFE7;
	--zj-soft: #F7F8F3;
	--zj-line: #D5DBD0;
	--zj-lime: #D7E79E;
	--zj-link-hover: #8A4B00;
	--zj-gutter: 16px;
	font-family: Poppins, system-ui, sans-serif;
	color: var(--zj-ink);
	background: var(--zj-bg);
}
.inm-zj *,
.inm-zj *::before,
.inm-zj *::after { box-sizing: border-box; }
.inm-zj a { color: var(--zj-ink); }
.inm-zj a:hover { color: var(--zj-link-hover); }
/* Motyw (Hello Elementor + „Globalne” Elementora: `.elementor-kit-N h1`, `a`,
   `button`) ma selektory 0,1,1. Reguły karty mają co najmniej 0,2,0,
   a zwykłe linki bez klasy dostają podkreślenie z 0,2,1. */
.inm-zj a:not([class]) { color: var(--zj-ink); text-decoration: underline; text-underline-offset: 2px; }
.inm-zj a:not([class]):hover { color: var(--zj-link-hover); }
.inm-zj a:focus-visible,
.inm-zj button:focus-visible { outline: none; box-shadow: inset 0 -3px 0 var(--zj-ink); }
.inm-zj [hidden] { display: none !important; }

/* Pasek prowadzącego */
.inm-zj .inm-zj-ownerbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 8px var(--zj-gutter); background: var(--zj-ink); color: var(--zj-bg); font-size: 14px; }
.inm-zj .inm-zj-ownerbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Przyciski */
.inm-zj .inm-zj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 0; background: var(--zj-muted); color: var(--zj-ink); font: 500 15px/1.2 Poppins, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.inm-zj a.inm-zj-btn { color: var(--zj-ink); }
.inm-zj .inm-zj-btn:hover,
.inm-zj a.inm-zj-btn:hover { background: var(--zj-hover); color: var(--zj-ink); }
.inm-zj .inm-zj-btn--primary,
.inm-zj a.inm-zj-btn--primary { min-height: 52px; padding: 0 24px; background: var(--zj-orange); font-size: 16px; font-weight: 600; }
.inm-zj .inm-zj-btn--primary:hover,
.inm-zj a.inm-zj-btn--primary:hover { background: var(--zj-orange); color: var(--zj-ink); text-decoration: underline; }
.inm-zj .inm-zj-btn--tool { background: var(--zj-bg); }
.inm-zj .inm-zj-btn--tool[aria-pressed="true"] svg { fill: currentColor; }
.inm-zj .inm-zj-btn--soft { min-height: 44px; font-size: 14px; }
.inm-zj .inm-zj-btn--dark,
.inm-zj a.inm-zj-btn--dark { background: var(--zj-ink); color: var(--zj-bg); width: 100%; }
.inm-zj a.inm-zj-btn--dark:hover { background: var(--zj-ink); color: var(--zj-bg); text-decoration: underline; }
.inm-zj a.inm-zj-btn--lime { background: var(--zj-lime); font-weight: 600; min-height: 44px; }

/* Nagłówek */
.inm-zj .inm-zj-hero { position: relative; background: var(--zj-lime); padding: 16px var(--zj-gutter) 52px; }
.inm-zj .inm-zj-crumbs { margin: 0 0 14px; font-size: 13px; }
.inm-zj .inm-zj-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; align-items: start; }
.inm-zj .inm-zj-hero__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; grid-row: 1; }
.inm-zj .inm-zj-hero__photo { margin: 0; grid-column: 2; grid-row: 1; }
.inm-zj .inm-zj-hero__photo img { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 3 / 4; object-fit: cover; object-position: center; border-radius: 0; }
.inm-zj .inm-zj-hero__photo img.inm-brak-zdjecia { object-position: center bottom; }
.inm-zj .inm-zj-hero__edge { position: absolute; left: 0; right: 0; bottom: -1px; display: block; width: 100%; height: 32px; fill: var(--zj-bg); }
.inm-zj .inm-zj-kicker,
.inm-zj .inm-zj-label { margin: 0; color: var(--zj-ink); font-family: Poppins, system-ui, sans-serif; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; }
.inm-zj .inm-zj-label { font-size: 12px; }
.inm-zj .inm-zj-title { margin: 0; padding: 0; color: var(--zj-ink); font-family: "Bebas Neue", Poppins, sans-serif; font-weight: 400; font-size: 52px; line-height: .95; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.inm-zj .inm-zj-badges { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.inm-zj .inm-zj-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; background: var(--zj-ink); color: var(--zj-bg); font-size: 12px; font-weight: 600; }
.inm-zj .inm-zj-badge--muted { background: var(--zj-bg); color: var(--zj-ink); }
.inm-zj .inm-zj-lead { margin: 0; font-size: 16px; line-height: 1.55; max-width: 640px; }
.inm-zj .inm-zj-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Treść */
.inm-zj .inm-zj-body { display: flex; flex-direction: column; gap: 32px; padding: 24px var(--zj-gutter) 96px; }
.inm-zj .inm-zj-main,
.inm-zj .inm-zj-aside { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.inm-zj .inm-zj-section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.inm-zj .inm-zj-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.inm-zj .inm-zj-head > a { font-size: 14px; }
.inm-zj .inm-zj-h2 { margin: 0; padding: 0; color: var(--zj-ink); font-family: "Bebas Neue", Poppins, sans-serif; font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: 0; text-transform: none; }
.inm-zj .inm-zj-h2--small { font-size: 28px; }
.inm-zj .inm-zj-h3,
.inm-zj .inm-zj-event__title,
.inm-zj .inm-zj-list__title,
.inm-zj .inm-zj-who__name { padding: 0; color: var(--zj-ink); font-family: Poppins, system-ui, sans-serif; letter-spacing: normal; text-transform: none; }
.inm-zj .inm-zj-h3 { margin: 8px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.inm-zj .inm-zj-text { font-size: 15px; line-height: 1.65; max-width: 720px; }
.inm-zj .inm-zj-text > :first-child { margin-top: 0; }
.inm-zj .inm-zj-text > :last-child { margin-bottom: 0; }
.inm-zj .inm-zj-text p { margin: 0 0 12px; }
.inm-zj .inm-zj-clamp.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.inm-zj .inm-zj-section > .inm-zj-btn--soft { align-self: flex-start; }
.inm-zj .inm-zj-meta { font-size: 13px; color: var(--zj-meta); }
p.inm-zj-meta { margin: 0; }

.inm-zj .inm-zj-dl { margin: 0; border-top: 1px solid var(--zj-ink); font-size: 14px; }
.inm-zj .inm-zj-dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--zj-line); }
.inm-zj .inm-zj-dl dt { font-size: 12px; font-weight: 600; }
.inm-zj .inm-zj-dl dd { margin: 0; }
.inm-zj .inm-zj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inm-zj .inm-zj-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; background: var(--zj-muted); font-size: 14px; }
.inm-zj a.inm-zj-chip { text-decoration: none; }
.inm-zj a.inm-zj-chip:hover { background: var(--zj-hover); color: var(--zj-ink); }

/* Wydarzenia */
.inm-zj .inm-zj-events { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--zj-ink); }
.inm-zj .inm-zj-event { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--zj-line); }
.inm-zj .inm-zj-date { display: flex; flex-direction: column; line-height: 1; }
.inm-zj .inm-zj-date__wd { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.inm-zj .inm-zj-date__day { font-family: "Bebas Neue", Poppins, sans-serif; font-size: 34px; }
.inm-zj .inm-zj-date__mon { font-size: 12px; }
.inm-zj .inm-zj-event__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inm-zj .inm-zj-event__meta { font-size: 13px; font-weight: 600; }
.inm-zj .inm-zj-event__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.inm-zj .inm-zj-event__title a { text-decoration: none; }
.inm-zj .inm-zj-event__title a:hover { text-decoration: underline; }
.inm-zj .inm-zj-fav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: var(--zj-muted); color: var(--zj-ink); cursor: pointer; }
.inm-zj .inm-zj-fav:hover,
.inm-zj .inm-zj-fav:focus,
.inm-zj .inm-zj-bar__icon:hover,
.inm-zj .inm-zj-bar__icon:focus { background: var(--zj-hover); color: var(--zj-ink); }
.inm-zj button.inm-zj-btn:focus { color: var(--zj-ink); }
.inm-zj .inm-zj-fav[aria-pressed="true"] svg { fill: currentColor; }
.inm-zj .inm-zj-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--zj-line); }
.inm-zj .inm-zj-list li { padding: 10px 0; border-bottom: 1px solid var(--zj-line); font-size: 15px; }

/* Boczna kolumna */
.inm-zj .inm-zj-box { display: flex; flex-direction: column; gap: 10px; }
.inm-zj .inm-zj-box > p { margin: 0; font-size: 14px; line-height: 1.5; }
.inm-zj .inm-zj-box--soft { padding: 18px; background: var(--zj-soft); }
.inm-zj .inm-zj-box--line { padding: 16px; border: 1px solid var(--zj-line); }
.inm-zj .inm-zj-box--line .inm-zj-h3 { margin: 0; }

/* Dolny pasek (telefon) */
.inm-zj .inm-zj-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 6px; padding: 8px var(--zj-gutter); background: var(--zj-bg); border-top: 1px solid var(--zj-line); }
.inm-zj .inm-zj-bar__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 0; background: var(--zj-muted); color: var(--zj-ink); cursor: pointer; }
.inm-zj .inm-zj-bar__icon[aria-pressed="true"] svg { fill: currentColor; }
.inm-zj .inm-zj-bar__main { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; background: var(--zj-orange); font-size: 16px; font-weight: 600; text-decoration: none; }
.inm-zj a.inm-zj-bar__main { color: var(--zj-ink); text-decoration: none; }

/* Na telefonie główna akcja i „Do planu” są w dolnym pasku. */
@media (max-width: 719.98px) {
	.inm-zj .inm-zj-actions .inm-zj-wide { display: none; }
}

/* Karta zajęć */
.inm-zj .inm-zj-hero__grid.is-solo { grid-template-columns: minmax(0, 1fr); }
.inm-zj .inm-zj-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--zj-ink); }
.inm-zj .inm-zj-fact { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 0; min-width: 0; }
.inm-zj .inm-zj-fact:nth-child(2n) { padding: 10px 0 10px 12px; border-left: 1px solid var(--zj-ink); }
.inm-zj .inm-zj-fact:nth-child(n+3) { border-top: 1px solid var(--zj-ink); }
.inm-zj .inm-zj-fact:last-child:nth-child(odd) { grid-column: 1 / -1; padding-right: 0; }
.inm-zj .inm-zj-fact dt { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.inm-zj .inm-zj-fact dd { margin: 0; }
.inm-zj .inm-zj-fact__value { font-size: 18px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.inm-zj .inm-zj-fact--where .inm-zj-fact__value,
.inm-zj .inm-zj-fact--teacher .inm-zj-fact__value { font-size: 15px; }
.inm-zj .inm-zj-fact__value a { text-decoration: none; }
.inm-zj .inm-zj-fact__value a:hover { text-decoration: underline; }
.inm-zj .inm-zj-fact__sub { font-size: 13px; }
.inm-zj .inm-zj-btn--ghost { background: transparent; }
.inm-zj .inm-zj-btn--soft[aria-pressed="true"] svg { fill: currentColor; }
.inm-zj .inm-zj-note { margin: 0; font-size: 13px; }
.inm-zj .inm-zj-who { padding: 18px 16px; background: var(--zj-soft); }
.inm-zj .inm-zj-who__name { margin: 0; font-size: 16px; font-weight: 600; }
.inm-zj .inm-zj-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--zj-ink); }
.inm-zj .inm-zj-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--zj-line); font-size: 14px; line-height: 1.5; }
.inm-zj .inm-zj-step__num { grid-row: span 2; font-family: "Bebas Neue", Poppins, sans-serif; font-size: 30px; line-height: 1; }
.inm-zj .inm-zj-step__title { font-weight: 600; }
.inm-zj .inm-zj-list__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.inm-zj .inm-zj-list__title a { text-decoration: none; }
.inm-zj .inm-zj-list__title a:hover { text-decoration: underline; }
.inm-zj .inm-zj-list li { display: flex; flex-direction: column; gap: 2px; }
.inm-zj .inm-zj-more { padding: 20px 16px; background: var(--zj-soft); }
.inm-zj .inm-zj-chips { margin: 0; }
.inm-zj .inm-zj-place { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.inm-zj a.inm-zj-place__name { font-size: 16px; font-weight: 600; text-decoration: none; }
.inm-zj a.inm-zj-place__name:hover { text-decoration: underline; }
.inm-zj .inm-zj-contact { margin: 0; padding-top: 10px; border-top: 1px solid var(--zj-ink); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.inm-zj .inm-zj-contact a { text-decoration: underline; }

.inm-zj-notice { padding: 12px 16px; background: var(--zj-soft, #F7F8F3); font-size: 14px; }

/* Szerszy ekran */
@media (min-width: 720px) {
	.inm-zj { --zj-gutter: 32px; }
	.inm-zj .inm-zj-hero__grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; }
	.inm-zj .inm-zj-title { font-size: 72px; }
	.inm-zj .inm-zj-bar { display: none; }
	.inm-zj .inm-zj-facts { grid-template-columns: repeat(var(--zj-facts, 3), minmax(0, 1fr)); max-width: 860px; }
	.inm-zj .inm-zj-fact,
	.inm-zj .inm-zj-fact:nth-child(2n),
	.inm-zj .inm-zj-fact:nth-child(n+3),
	.inm-zj .inm-zj-fact:last-child:nth-child(odd) { grid-column: auto; padding: 14px 20px 6px; border-top: 0; border-left: 1px solid var(--zj-ink); }
	.inm-zj .inm-zj-fact:first-child { padding-left: 0; border-left: 0; }
	.inm-zj .inm-zj-fact__value { font-size: 22px; }
	.inm-zj .inm-zj-fact--where .inm-zj-fact__value,
	.inm-zj .inm-zj-fact--teacher .inm-zj-fact__value { font-size: 17px; }
	.inm-zj .inm-zj-steps { border-top: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
	.inm-zj .inm-zj-step { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-bottom: 0; background: var(--zj-soft); }
	.inm-zj .inm-zj-step__num { font-size: 40px; }
	.inm-zj .inm-zj-who,
	.inm-zj .inm-zj-more { padding: 24px; }
	.inm-zj .inm-zj-body { padding-bottom: 80px; }
}
@media (min-width: 1024px) {
	.inm-zj { --zj-gutter: 64px; }
	.inm-zj .inm-zj-hero { padding: 24px var(--zj-gutter) 100px; }
	.inm-zj .inm-zj-hero__edge { height: 64px; }
	.inm-zj .inm-zj-hero__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
	.inm-zj .inm-zj-title { font-size: 88px; }
	.inm-zj .inm-zj-lead { font-size: 17px; }
	.inm-zj .inm-zj-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding-top: 40px; align-items: start; }
	.inm-zj .inm-zj-main { gap: 56px; }
	.inm-zj .inm-zj-aside { gap: 32px; }
	.inm-zj .inm-zj-h2 { font-size: 34px; }
	.inm-zj .inm-zj-h2--small { font-size: 28px; }
	.inm-zj .inm-zj-text { font-size: 17px; line-height: 1.7; }
	.inm-zj .inm-zj-clamp.is-clamped { -webkit-line-clamp: 6; }
	.inm-zj .inm-zj-dl > div { grid-template-columns: 104px minmax(0, 1fr); }
	.inm-zj .inm-zj-event { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; }
	.inm-zj .inm-zj-date__day { font-size: 38px; }
	.inm-zj .inm-zj-event__title { font-size: 17px; }
	.inm-zj .inm-zj-fav { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
	.inm-zj { scroll-behavior: smooth; }
}
