@charset "UTF-8";
/* =====================================================================
   OUR KIDS – RAPORT 2026
   Shared stylesheet for:
     /pl/raport-o-szkolnictwie-niepublicznym-2026.php  (report landing, <main class="rp">)
     /pl/raport-2026-udostepnij.php                    (share kit, <body class="ok-share">)

   Load it BEFORE includes/okpl-css-link.php (the site stylesheets), as the
   inline <style> blocks were. Rules that need to beat the site CSS do so
   through specificity (#main …), not load order.

   Colours sampled from the report graphics. Fonts are stand-ins
   (Fraunces ≈ the graphics' headline serif, Lato = body).

   Sections:
     1. Tokens (shared)
     2. Base (shared)
     3. Share kit page   – scoped to .ok-share / its own class names
     4. Report landing   – scoped to .rp / rp-* class names
   ===================================================================== */


/* =====================================================================
   1. TOKENS
   ===================================================================== */
:root {
  --ok-red: #C01F25;        /* brand red: kickers, buttons, links          */
  --ok-red-dark: #9A171C;   /* hover                                        */
  --ok-pink: #E6AAAA;       /* secondary accent                             */
  --ok-ink: #19203C;        /* headings, body text (navy)                   */
  --ok-muted: #5E6480;      /* secondary text                               */
  --ok-bg: #FFFFFF;         /* page background                              */
  --ok-blush: #F3EBE9;      /* tinted sections (report graphics background) */
  --ok-line: #E2D6D3;       /* borders                                      */
  --ok-focus: #19203C;
  --ok-success: #1F7A4D;
  --ok-error: #A3161B;
  --ok-placeholder: #ECDFDC;

  /* Aliases used by the report landing page (same colours, older names) */
  --ok-brand: var(--ok-red);
  --ok-brand-ink: #FFFFFF;  /* text on red */
  --ok-tint: var(--ok-blush);
  --ok-accent: var(--ok-pink);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;
  --radius: 6px;
  --wrap: 1120px;
  color-scheme: light;
}
/* No automatic dark mode: the site's header, footer and global text styles
   are light-only, so following the OS setting gave black text on navy.
   The dark palette below applies only if <html data-theme="dark"> is set. */
:root[data-theme="dark"] {
  --ok-red: #F07A7E; --ok-red-dark: #F59A9D; --ok-pink: #8C4A4D; --ok-ink: #F1ECEB; --ok-muted: #B9B3C4;
  --ok-bg: #14182B; --ok-blush: #1E2338; --ok-line: #323853; --ok-focus: #F1ECEB;
  --ok-success: #5CC98F; --ok-error: #F08A82; --ok-placeholder: #262D4A; color-scheme: dark;
}


/* =====================================================================
   2. BASE (both pages)
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ok-bg); color: var(--ok-ink); font: 400 17px/1.6 var(--font-body); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* =====================================================================
   3. SHARE KIT PAGE (raport-2026-udostepnij.php)
   Element rules are wrapped in :where(.ok-share) so they don't reach the
   report page, while keeping the same (zero-added) specificity they had
   as inline styles – the site stylesheet still wins where it did before.
   ===================================================================== */
:where(.ok-share) img { max-width: 100%; height: auto; display: block; }
:where(.ok-share) a { color: var(--ok-red); }
:where(.ok-share) :focus-visible { outline: 3px solid var(--ok-focus); outline-offset: 2px; }
:where(.ok-share) section { padding: clamp(48px, 7vw, 80px) 0; }
:where(.ok-share) section.tint { background: var(--ok-blush); }
:where(.ok-share) :is(h1, h2) { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 18px; text-wrap: balance; }
:where(.ok-share) h1 { font-size: clamp(34px, 5.4vw, 56px); }
:where(.ok-share) h2 { font-size: clamp(27px, 3.6vw, 38px); }
:where(.ok-share) h4 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; }

/* Heading hierarchy. #main outranks the site stylesheet (foundation-ourkids-pl.css),
   which loads after this file. h2 takes the site's h3 look (Lato bold, #333);
   h4 is the same family, smaller and lighter. */
#main h2 { font-family: "Lato", Helvetica, sans-serif; font-style: normal; font-weight: 700; color: #333;
  font-size: clamp(26px, 3.2vw, 32px); line-height: 1.2; margin: 0 0 18px; }
#main h4 { font-family: "Lato", Helvetica, sans-serif; font-style: normal; font-weight: 400; color: #333;
  font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; margin: 0 0 6px; }
#main h4.card__label { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--ok-red); margin: 0; }
#main .rules h4 { margin-top: 18px; }
#main h2.subhead { margin: 56px 0 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.site-placeholder { background: var(--ok-blush); color: var(--ok-muted); text-align: center; font-size: 13px; padding: 14px 16px; border-bottom: 1px dashed var(--ok-line); }
.kicker { font: 700 14px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ok-red); margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); max-width: 720px; }
.measure { max-width: 760px; }
.muted { color: var(--ok-muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 2px solid var(--ok-red);
  background: var(--ok-red); color: #fff; font: 700 15px/1.2 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--ok-red-dark); border-color: var(--ok-red-dark); }
.btn--ghost { background: transparent; color: var(--ok-red); }
.btn--ghost:hover { background: var(--ok-red); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn__meta { font-weight: 400; opacity: .85; font-size: 13px; }
.btn.is-done { background: var(--ok-ink); border-color: var(--ok-ink); color: var(--ok-bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__cover { max-width: 360px; justify-self: center; box-shadow: 0 18px 40px rgba(25, 32, 60, .25); transform: rotate(2deg); border-radius: 2px; }
.hero__cta { margin-top: 26px; }

/* two-column text */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.audience { margin: 0 0 26px; padding-left: 20px; }
.audience li { margin: 6px 0; }

/* link box + share buttons */
.linkbox { display: flex; gap: 10px; max-width: 760px; margin: 8px 0 22px; }
.linkbox input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); border-radius: var(--radius); padding: 0 14px; font: 15px/1 ui-monospace, Consolas, monospace; }
.share { display: flex; flex-wrap: wrap; gap: 10px; }
.share .btn { min-width: 128px; }
.js-native { display: none; }
.js-native.is-supported { display: inline-flex; }
.hint { font-size: 14px; color: var(--ok-muted); min-height: 1.4em; margin-top: 8px; }

/* copy-ready posts */
/* Outlined white box holding a whole section's content (used instead of a
   full-width tinted band, e.g. #teksty) */
.panel { border: 2px solid var(--ok-line); border-radius: calc(var(--radius) * 2); padding: clamp(24px, 4vw, 44px); background: var(--ok-bg); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--ok-bg); border: 0px solid var(--ok-line) !important; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.card__label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ok-red); margin: 0; }
.post__text { white-space: pre-line; font-size: 15px; line-height: 1.55; flex: 1; background: var(--ok-blush); border-radius: var(--radius); padding: 16px; overflow-wrap: anywhere; }
.card .btn { align-self: flex-start; }

/* graphics + chart cards: bordered box, caption fills the remaining height
   so the download buttons line up along the bottom of each row. */
.dl-all { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 36px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.gfx { margin: 0; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--ok-line); border-radius: var(--radius); padding: 14px; background: var(--ok-bg); }
.gfx__img { display: block; border: 1px solid var(--ok-line); border-radius: var(--radius); overflow: hidden; background: var(--ok-blush); }
.gfx__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .25s; }
.gfx__img:hover img { transform: scale(1.02); }
.gfx--wide .gfx__img img { aspect-ratio: 16 / 9; }
.gfx figcaption { flex: 1; display: flex; flex-direction: column; }
.gfx p { margin: 0 0 10px; font-size: 14px; color: var(--ok-muted); line-height: 1.45; }
.dl-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gfx .dl-row { margin-top: auto; }
.dl { flex: 1 1 0; min-width: 72px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 6px 8px; border: 1.5px solid var(--ok-red);
  border-radius: var(--radius); text-decoration: none; color: var(--ok-red); line-height: 1.15; text-align: center; }
.dl b { font-size: 13px; }
.dl span { font-size: 11px; color: var(--ok-muted); }
.dl:hover { background: var(--ok-red); color: #fff; }
.dl:hover span { color: #fff; }
.subhead { margin: 56px 0 6px; }

/* key numbers */
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fact { background: var(--ok-bg); border-top: 4px solid var(--ok-red); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.fact__num { font: 600 34px/1.05 var(--font-display); color: var(--ok-red); }
.fact__txt { flex: 1; }
.fact small { color: var(--ok-muted); font-size: 13px; line-height: 1.4; }
.fact .btn { align-self: flex-start; margin-top: 6px; }
.cite { margin-top: 26px; font-size: 15px; }

/* tag us / rules / contact */
.social { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.tags { font-weight: 700; color: var(--ok-red); overflow-wrap: anywhere; }
.rules ul { margin: 8px 0 0; padding-left: 20px; }
.rules li { margin: 5px 0; }
.contact { text-align: center; }
.contact .lead { margin: 0 auto 24px; }
.contact .btn-row { justify-content: center; }
.thanks { font: 600 clamp(22px, 3vw, 28px)/1.25 var(--font-display); margin: 48px 0 0; }

@media (max-width: 860px) {
  .hero, .cols { grid-template-columns: 1fr; }
  .hero__cover { max-width: 240px; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .panel { padding: 18px 14px; }
  .wrap { padding: 0 16px; }
  .cards, .facts { grid-template-columns: 1fr; }
  .linkbox { flex-direction: column; }
  .share .btn { flex: 1 1 calc(50% - 10px); min-width: 0; }
  .js-native.is-supported { flex-basis: 100%; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .gallery--wide { grid-template-columns: 1fr; }
  .dl { min-width: 0; padding: 6px 4px; }
  .gfx { padding: 10px; }
}
@media (max-width: 380px) { .gallery { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gfx__img img { transition: none; } }


/* =====================================================================
   4. REPORT LANDING PAGE (raport-o-szkolnictwie-niepublicznym-2026.php)
   Layout: report cover beside the thesis, then content blocks, then the
   download form, then media footer. Everything is under .rp / rp-*.
   ===================================================================== */
.rp {
  /* This page keeps its own corner radius and headline serif */
  --radius: 10px;
  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
}
.rp [hidden] { display: none !important; }
.rp a { color: var(--ok-brand); }
.rp a:focus-visible, .rp button:focus-visible, .rp input:focus-visible { outline: 3px solid var(--ok-accent); outline-offset: 2px; }
.rp h1, .rp h2, .rp h3 { line-height: 1.15; text-wrap: balance; font-style: normal; }
.rp p { margin: 0; }
.rp-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.rp-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.rp-section--tint { background: var(--ok-tint); }
.rp-prose { max-width: 66ch; display: grid; gap: 1rem; }
/* Tinted panel inside the site-width wrapper (white page around it), used
   for the intro copy. The section drops its own vertical padding because
   the hero above and the section below already provide the spacing. */
.rp-section--panel { padding-block: 0; }
.rp-panel { background: var(--ok-tint); border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem); }
.rp-panel .rp-prose { margin-inline: auto; }
.rp-eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok-muted); }
.rp-h2 {  font-family: "Lato", Helvetica, sans-serif; font-style: normal; font-weight: 700; color: #333;
  font-size: clamp(26px, 3.2vw, 32px); line-height: 1.2; margin: 0 0 18px;  }

/* ---------- Cover images (dashed placeholder until an <img> is added) ---------- */
.rp-cover { aspect-ratio: 210 / 297; max-width: 100%; border-radius: 4px; background: var(--ok-placeholder);
  border: 2px dashed var(--ok-line); display: grid; place-items: center; text-align: center; padding: 1rem;
  font-size: .8125rem; font-weight: 600; color: var(--ok-muted); box-shadow: 0 18px 40px -18px rgba(10, 30, 60, .45); }
.rp-cover:has(img) { padding: 0; border: 0; background: none; }
.rp-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* ---------- Hero ---------- */
.rp-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.rp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 300px); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.rp-hero__text { display: grid; gap: 1.25rem; min-width: 0; }
.rp-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -.01em; }
.rp-sub { font-size: clamp(1.125rem, 2vw, 1.3rem); font-style: italic; color: var(--ok-muted); }
.rp-lead { font-size: 1.15rem; max-width: 60ch; }
.rp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.rp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem;
  border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; border: 2px solid var(--ok-brand); }
.rp-btn--primary { background: var(--ok-brand); color: var(--ok-brand-ink) !important; }
.rp-btn--primary:hover { filter: brightness(1.08); }
.rp-btn--ghost { background: transparent; color: var(--ok-brand); }
.rp-btn--ghost:hover { background: var(--ok-tint); }
.rp-hero__cover { justify-self: center; width: 100%; max-width: 300px; transform: rotate(2deg); }

/* ---------- Key numbers ---------- */
.rp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ok-line); border: 1px solid var(--ok-line); border-radius: var(--radius); overflow: hidden; }
.rp-stat { background: var(--ok-bg); padding: 1.25rem 1.25rem 1.4rem; display: grid; gap: .35rem; align-content: start; }
.rp-stat__num { font-family: var(--font-display); font-weight: 900; color: var(--ok-brand); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.rp-stat__num mark { background: linear-gradient(transparent 62%, var(--ok-tint) 62%); color: inherit; padding: 0 .1em; }
.rp-stat__txt { font-size: .95rem; color: var(--ok-muted); line-height: 1.45; }
.rp-source { margin-top: .9rem; font-size: .8125rem; color: var(--ok-muted); }

/* ---------- Two formats ---------- */
.rp-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.rp-format { border: 1px solid var(--ok-line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .6rem; align-content: start; background: var(--ok-bg); }
.rp-format__tag { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok-brand); }
.rp-format h3 { font-size: 1.3rem; }
.rp-format a { font-weight: 700; text-decoration: none; }
.rp-format a:hover { text-decoration: underline; }

/* ---------- What's inside ---------- */
.rp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.rp-col h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.rp-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.rp-col li { position: relative; padding-left: 1.6rem; }
.rp-col li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; border-radius: 2px; background: var(--ok-accent); }
.rp-free { margin-top: 2rem; font-weight: 700; font-size: 1.1rem; }

/* ---------- Download: report pack + form ---------- */
.rp-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.rp-dl__pack { display: grid; gap: 2rem; justify-items: center; }
.rp-dl__covers { position: relative; width: min(100%, 360px); aspect-ratio: 360 / 330; }
.rp-dl__covers .rp-cover { position: absolute; width: 58%; }
.rp-dl__c1 { left: 0; top: 0; transform: rotate(-4deg); z-index: 2; }
.rp-dl__c2 { right: 0; top: 8%; transform: rotate(5deg); }
.rp-dl__list { width: min(100%, 400px); display: grid; gap: .75rem; }
.rp-dl__list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.rp-dl__list li { display: grid; gap: .15rem; padding-left: 1.6rem; position: relative; }
.rp-dl__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 2px; background: var(--ok-brand); }
.rp-dl__list span { font-size: .9rem; color: var(--ok-muted); }
.rp-formcard { background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.25rem; scroll-margin-top: 1.5rem; min-width: 0; }
.rp-formcard__title { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.rp-formcard h3 { font-size: 1.3rem; }
.rp-formcard__meta { font-size: .95rem; color: var(--ok-muted); margin-top: .6rem; }
.rp-form { display: grid; gap: 1rem; }
.rp-field { display: grid; gap: .35rem; }
.rp-field label { font-weight: 700; font-size: .95rem; }
.rp-field input { font: inherit; color: var(--ok-ink); background: var(--ok-bg); min-height: 48px; padding: .6rem .85rem; border: 1.5px solid var(--ok-line); border-radius: 8px; width: 100%; }
.rp-field input:focus { border-color: var(--ok-brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok-brand) 25%, transparent); }
.rp-field input[aria-invalid="true"] { border-color: var(--ok-error); }
.rp-err { font-size: .875rem; color: var(--ok-error); }
.rp-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; font-size: .875rem; line-height: 1.5; color: var(--ok-muted); }
.rp-consent input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--ok-brand); }
.rp-privacy { font-size: .8125rem; line-height: 1.5; color: var(--ok-muted); font-style: italic; }
.rp-form .rp-btn { width: 100%; }
.rp-success { border: 1.5px solid var(--ok-success); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .9rem; }
.rp-success p { color: var(--ok-ink); }
.rp-success__title { font-family: var(--font-display); font-weight: 900; color: var(--ok-success); font-size: 1.2rem; }

/* ---------- Footer: media + citation ---------- */
.rp-media { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.rp-media__links { display: grid; gap: .75rem; }
.rp-media__links a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border: 1px solid var(--ok-line); border-radius: var(--radius); text-decoration: none; font-weight: 700; background: var(--ok-bg); }
.rp-media__links a:hover { border-color: var(--ok-brand); }
.rp-media__links span { font-weight: 400; color: var(--ok-muted); font-size: .9rem; display: block; }
.rp-cite { border-left: 3px solid var(--ok-accent); padding-left: 1rem; display: grid; gap: .5rem; font-size: .95rem; }
.rp-cite q { font-style: italic; }
.rp-cite q::before, .rp-cite q::after { content: none; }

@media (max-width: 860px) {
  .rp-hero__grid { grid-template-columns: 1fr; }
  .rp-hero__cover { max-width: 220px; order: -1; transform: none; }
  .rp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-dl, .rp-formats, .rp-cols, .rp-media { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .rp-btn { transition: filter .15s, background-color .15s; }
}
