/* case.css — the case-study pages only (cases.mjs; spec STUDIUM-PRZYPADKU-PHP2SHELL-NA-STRONIE, B2, B6 T5).
   Loaded by those pages alone, after styles.css and demo-embed.css, whose classes it reuses (.section, .container,
   .eyebrow, .button, .text-link, .course-nav, .check-list, .faq, .waitlist-section, .demo-player and its states).
   Nothing here may change another page; styles for R2 (the home band, the course-page callout) go into styles.css.
   No inline styles anywhere: the landing CSP has no 'unsafe-inline'. */

/* ── hero: text only and compact, so the stage starts around 550 px ─────────────────────────────────────────── */
.case-hero {
  background: #eef2f3;
  border-bottom: 1px solid var(--line);
}
/* Left-aligned with the breadcrumb and the stage; the text keeps a reading width. */
.case-hero .container.narrow {
  max-width: none;
  padding: 24px 0 26px;
}
.case-hero .container.narrow > * {
  max-width: 780px;
}
.case-hero .eyebrow {
  margin-bottom: 12px;
}
.case-hero h1 {
  font-size: 42px;
  line-height: 1.12;
  max-width: 780px;
  overflow-wrap: break-word;
}
.case-lead {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.65;
  color: #334942;
}
.case-meta {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.case-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 18px;
}
/* Phones: the lab is built for a computer, so the first action becomes "send yourself the link". */
.case-actions--phone {
  display: none;
}
@media (pointer: coarse) and (max-width: 900px) {
  .case-actions--desktop {
    display: none;
  }
  .case-actions--phone {
    display: flex;
  }
}
.case-status {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.case-fiction {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
/* "Facts as of" sits on the fiction line, so the hero stays one line shorter. */
.case-facts-inline {
  white-space: nowrap;
  color: var(--ink);
}
.case-facts {
  font-size: 12px;
  color: var(--muted);
}
.case-facts-inline a,
.case-facts a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── the stage: the full container width, as on the home page ───────────────────────────────────────────────── */
.case-stage.section {
  padding: 32px 0 46px;
}
.case-stage .demo-player[data-demo-state="idle"],
.case-stage .demo-player[data-demo-state="error"] {
  width: 100%;
  margin: 0;
}
.case-stage .demo-poster {
  aspect-ratio: auto;
}
.case-stage .demo-poster-screen {
  aspect-ratio: 16 / 10;
}
.case-stage .demo-poster-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.case-stage .demo-viewport {
  height: min(78dvh, 820px);
}
.case-player .demo-toolbar {
  flex-wrap: wrap;
}
.case-player .demo-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.case-player .case-done {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  background: #fff;
}
/* After the last step the finish button must be readable, not the dimmed full-screen controls. */
.case-player.is-finished:fullscreen .demo-tools,
.case-player.is-finished.is-expanded .demo-tools {
  opacity: 1;
}
/* The deterrent notice, inside the full-screen element so it is seen there too. */
.case-player.has-case-notice .demo-status {
  background: #fff4e0;
  color: #5b3a06;
  border-bottom: 1px solid #e7c98f;
  font-weight: 600;
}
.case-player.has-case-notice:fullscreen .demo-status,
.case-player.has-case-notice.is-expanded .demo-status {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
}
.case-player-preview {
  padding: 40px 24px;
  background: #fff;
  border: 1px dashed #a9c2b8;
  border-radius: var(--radius);
}
.case-stage-notes {
  display: grid;
  gap: 6px;
  max-width: 820px;
  margin-top: 16px;
}
.case-stage-notes p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.case-noscript {
  margin-top: 12px;
  font-size: 14px;
}

/* ── after the lab: an inline panel under the player, never a pop-up ────────────────────────────────────────── */
.case-next {
  margin-top: 24px;
}
.case-next-card {
  padding: 28px;
  background: #fff;
  border: 1px solid #a9c2b8;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px #17362e14;
}
.case-next-card h2 {
  font-size: 28px;
  scroll-margin-top: 140px;
}
.case-next-card > p {
  max-width: 70ch;
  margin-top: 12px;
  font-size: 15px;
}
.case-next-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 20px;
}

/* Two paragraphs beside the heading: align both columns to the top, not to the baseline of the shorter one. */
.case-phases .section-heading,
.case-bridge-section .section-heading {
  align-items: start;
}

/* ── walkthrough ────────────────────────────────────────────────────────────────────────────────────────────── */
.case-role-note {
  font-size: 14px;
}
.case-phase-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-phase-list li {
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.case-phase-number {
  min-width: 30px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--green);
}
.case-phase-list h3 {
  font-size: 16px;
  line-height: 1.4;
}
.case-phase-list p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

/* ── lessons ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.case-lesson-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: case-lesson;
}
.case-lesson-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  counter-increment: case-lesson;
}
.case-lesson-list li::before {
  content: counter(case-lesson);
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* ── the printable checklist (#karta) ────────────────────────────────────────────────────────────────────────── */
.case-checklist-lead {
  margin-top: 14px;
  font-size: 15px;
}
.case-check-items {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: case-check;
}
.case-check-items li {
  position: relative;
  padding: 14px 0 14px 46px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  counter-increment: case-check;
}
.case-check-items li:last-child {
  border-bottom: 1px solid var(--line);
}
.case-check-items li::before {
  content: counter(case-check);
  position: absolute;
  top: 14px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.case-checklist-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: #e9eef6;
  color: #344e6e;
  font-size: 13.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.case-print {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
}
.case-print p {
  margin: 0;
  font-size: 13px;
}

/* ── the bridge to the course: a grid on desktop, stacked on phones ─────────────────────────────────────────── */
.case-bridge-head,
.case-bridge-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 24px;
}
.case-bridge-head {
  padding: 0 20px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.case-bridge {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-bridge-row {
  align-items: start;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.case-bridge-cell {
  min-width: 0;
}
/* Each cell names its column for screen readers; on phones the names become visible labels. */
.case-bridge-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.case-bridge-moment {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.case-bridge-lab {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.case-bridge-wstg {
  display: inline-block;
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}
.case-bridge-chapter {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.case-bridge-date {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.case-bridge-note {
  max-width: 80ch;
  margin-top: 16px;
  font-size: 14px;
}
.case-bridge-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 26px;
}

/* ── the offer, next to the top form #zapis ──────────────────────────────────────────────────────────────────── */
.case-offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.case-offer-copy h2 {
  font-size: 36px;
}
.case-offer-facts {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.case-offer-copy > p:not(.eyebrow):not(.case-offer-facts) {
  margin-top: 16px;
  font-size: 14px;
}
.case-offer .waitlist-form-early {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px #17362e10;
}

/* ── teams and sharing ───────────────────────────────────────────────────────────────────────────────────────── */
.case-teams .container > p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 15px;
}
.case-teams-actions {
  margin-top: 22px;
}
.case-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.case-share-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.case-share .case-status {
  flex-basis: 100%;
  margin: 0;
}

/* ── sources ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.case-sources .container > p:not(.eyebrow):not(.case-facts) {
  margin-top: 14px;
}
.case-sources .case-facts {
  margin-top: 12px;
}
.case-timeline {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--green);
  list-style: none;
}
.case-timeline li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.case-source-list {
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0 0 0 20px;
  font-size: 13.5px;
  line-height: 1.55;
}
.case-source-list a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.case-sources + .faq-section {
  border-top: 1px solid var(--line);
}

/* ── smaller screens ─────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .case-phase-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .case-hero h1 {
    font-size: 36px;
  }
  .case-stage.section {
    padding: 24px 0 36px;
  }
  .case-lesson-list,
  .case-offer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-offer-grid {
    gap: 32px;
  }
  .case-bridge-head {
    display: none;
  }
  .case-bridge-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .case-bridge-label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
  }
}
@media (max-width: 640px) {
  .case-phase-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-next-card,
  .case-offer .waitlist-form-early {
    padding: 20px;
  }
}
@media (max-width: 540px) {
  .case-hero .container.narrow {
    padding: 22px 0 26px;
  }
  .case-hero h1 {
    font-size: 29px;
  }
  .case-lead {
    font-size: 15.5px;
  }
  .case-actions .button {
    font-size: 13px;
  }
  .case-next-card h2,
  .case-offer-copy h2 {
    font-size: 26px;
  }
}

/* ── print: the checklist alone (#karta) ─────────────────────────────────────────────────────────────────────── */
.case-print-meta {
  display: none;
}
@media print {
  body > :not(main),
  main > :not(#karta) {
    display: none !important;
  }
  #karta {
    padding: 0;
    border: 0;
  }
  #karta .container {
    width: 100%;
    max-width: none;
  }
  #karta .case-print {
    display: none !important;
  }
  #karta .case-check-items li {
    break-inside: avoid;
  }
  #karta .case-print-meta {
    display: block;
    margin-top: 12pt;
    font-size: 9pt;
    color: #444;
    overflow-wrap: anywhere;
  }
}

/* ── R3 (marketing audit 29.10.2026): the flagship shown like a bookshop shows the next book ─────────────────────── */
/* The hero: the text on the left, the signpost to Web Security PRO in the right column that used to be empty. */
.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px 56px;
  align-items: center;
  padding: 24px 0 28px;
}
.case-hero-copy > * {
  max-width: 760px;
}
.case-hero-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 44, 41, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.case-hero-card:hover,
.case-hero-card:focus-visible {
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(23, 44, 41, 0.1);
}
.case-hero-card img {
  display: block;
  width: 100%;
  height: auto;
}
.case-hero-card-body {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
}
.case-hero-card-eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-hero-card strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}
.case-hero-card-text {
  color: #334942;
  font-size: 16px;
  line-height: 1.5;
}
.case-hero-card-facts {
  color: var(--muted);
  font-size: 15px;
}
.case-hero-card-facts span:first-child {
  font-weight: 650;
  color: var(--ink);
}
.case-hero-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--green);
  font-size: 16px;
  font-weight: 650;
}
.case-hero-card-link svg {
  width: 18px;
  height: 18px;
}

/* The course card, right after the lab. */
.case-course {
  padding: 56px 0;
}
.case-course .eyebrow {
  margin-bottom: 14px;
}
.case-course-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
/* The whole cover, never cropped: its own title and "OWASP WSTG · 132 LABS" line are part of the message. The
   letterbox takes the cover's edge colour, so the column reads as one dark panel. */
.case-course-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b3328;
}
.case-course-body {
  padding: 32px 36px;
}
.case-course-body h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}
.case-course-promise {
  margin-top: 14px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.6;
}
.case-course-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.case-course-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}
.case-course-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
}
.case-course-facts small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.case-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 24px;
}
.case-course-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* The course outcomes, then the WSTG table folded for those who want it. */
.case-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.case-outcomes li {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.case-outcomes strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}
.case-outcomes span {
  display: block;
  margin-top: 6px;
  color: #334942;
  font-size: 17px;
  line-height: 1.55;
}
.case-bridge-fold,
.case-phase-more,
.case-sources-fold {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.case-bridge-fold > summary,
.case-phase-more > summary,
.case-sources-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  color: var(--green);
  font-size: 17px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.case-bridge-fold > summary::-webkit-details-marker,
.case-phase-more > summary::-webkit-details-marker,
.case-sources-fold > summary::-webkit-details-marker {
  display: none;
}
.case-bridge-fold > summary svg,
.case-phase-more > summary svg,
.case-sources-fold > summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}
.case-bridge-fold[open] > summary svg,
.case-phase-more[open] > summary svg,
.case-sources-fold[open] > summary svg {
  transform: rotate(45deg);
}
.case-bridge-fold > :not(summary),
.case-sources-fold > :not(summary) {
  margin-inline: 20px;
}
.case-bridge-fold[open],
.case-sources-fold[open] {
  padding-bottom: 18px;
}
.case-phase-more > .case-phase-list {
  margin: 0 20px 20px;
}
.case-bridge-all {
  margin-top: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .case-bridge-fold > summary svg,
  .case-phase-more > summary svg,
  .case-sources-fold > summary svg {
    transition: none;
  }
}

/* One lab of the course, as a poster that opens it on the course page. */
.case-teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
}
.case-teaser-poster {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.case-teaser-poster img {
  display: block;
  width: 100%;
  height: auto;
}
.case-teaser-copy h2 {
  font-size: 34px;
  line-height: 1.15;
}
.case-teaser-copy > p:not(.eyebrow) {
  margin-top: 14px;
  color: #334942;
  font-size: 18px;
  line-height: 1.6;
}
.case-teaser-copy .button {
  margin-top: 22px;
}

/* Type scale: 53% of the words were set below 15 px; running text is now 17–20 px, nothing meaningful under 14 px. */
.case-hero h1 {
  font-size: 46px;
}
.case-lead {
  font-size: 20px;
  line-height: 1.6;
}
.case-meta,
.case-status {
  font-size: 15px;
}
.case-fiction,
.case-facts {
  font-size: 14px;
}
.case-stage-notes p {
  font-size: 15px;
}
.case-noscript {
  font-size: 16px;
}
.case-next-card > p {
  font-size: 17px;
}
.case-phases .section-heading p,
.case-lessons .section-heading p {
  font-size: 18px;
}
.case-role-note {
  font-size: 16px;
}
.case-phase-list h3 {
  font-size: 19px;
}
.case-phase-list p {
  font-size: 17px;
  line-height: 1.55;
}
.case-lesson-list li {
  font-size: 18px;
}
.case-checklist-lead,
.case-check-items li {
  font-size: 17px;
}
.case-checklist-note,
.case-print p {
  font-size: 15px;
}
.case-bridge-head {
  font-size: 12px;
}
.case-bridge-moment,
.case-bridge-lab {
  font-size: 16px;
}
.case-bridge-wstg {
  font-size: 13px;
}
.case-bridge-chapter {
  font-size: 15px;
}
.case-bridge-date {
  font-size: 14px;
}
.case-bridge-note {
  font-size: 16px;
}
.case-offer-facts,
.case-offer-copy > p:not(.eyebrow):not(.case-offer-facts) {
  font-size: 16px;
}
.case-offer .check-list li {
  font-size: 17px;
}
.case-teams .container > p:not(.eyebrow) {
  font-size: 17px;
}
.case-share-label {
  font-size: 14px;
}
.case-timeline li {
  font-size: 16px;
}
.case-source-list {
  font-size: 15px;
}
#pytania .faq summary {
  font-size: 18px;
}
#pytania .faq p {
  font-size: 17px;
}
@media (max-width: 900px) {
  .case-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Narrow screens: the signpost keeps its words and drops the cover, which a thumbnail column can only crop. */
  .case-hero-card {
    max-width: 560px;
  }
  .case-hero-card img {
    display: none;
  }
  .case-course-card,
  .case-teaser-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-course-card > img {
    height: auto;
  }
  .case-course-body {
    padding: 24px 20px;
  }
  .case-course-body h2 {
    font-size: 32px;
  }
  .case-course-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .case-teaser-copy h2 {
    font-size: 28px;
  }
}
@media (max-width: 820px) {
  .case-hero h1 {
    font-size: 38px;
  }
}
@media (max-width: 760px) {
  .case-outcomes {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 540px) {
  .case-hero h1 {
    font-size: 31px;
  }
  .case-lead {
    font-size: 18px;
  }
  .case-actions .button {
    font-size: 15px;
  }
  .case-hero-card strong {
    font-size: 21px;
  }
  .case-hero-card-text {
    font-size: 15px;
  }
}

/* ── Real course-lab screens instead of the LMS cover (owner 29.10.2026) ───────────────────────────────────────── */
.case-course-card {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.case-course-shot {
  display: grid;
  align-content: center;
  gap: 12px;
  margin: 0;
  padding: 22px;
  background: #13241f;
}
.case-course-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.case-course-shot figcaption {
  color: #cfe3de;
  font-size: 14px;
  line-height: 1.5;
}
.case-course-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.case-course-meta span:last-child {
  color: var(--green);
  font-weight: 650;
}
.case-hero-card img {
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .case-course-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-course-shot {
    padding: 14px;
  }
}

/* ── R6 (30.10.2026): safety notices and the checklist as a PDF ────────────────────────────────────────────────────
   Owner: nobody should copy the lab's patching or detection steps to production and blame the site. One amber-edged
   note under the player and one on the checklist (also in print and in the PDF); the FAQ and the lab's own guides say
   the same. The PDF is this page's print view (case-checklist-pdf.mjs): a brand line, the checklist, a QR code to the
   free lab and, on page 2, the sources. Print-only blocks carry .case-print-only, never the hidden attribute (styles.css
   forces [hidden] to display:none !important). Fonts: self-hosted OFL faces under their own family names, so the
   screen keeps the site's stack and no Apple system font is embedded in a public PDF (INTER-LICENSE, GELASIO-LICENSE). */
@font-face {
  font-family: "CS Print Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("print-inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "CS Print Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("print-inter-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "CS Print Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("print-inter-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "CS Print Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("print-inter-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "CS Print Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("print-gelasio-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "CS Print Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("print-gelasio-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.case-print-only {
  display: none;
}
.case-stage-notes .case-stage-safety {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-left: 3px solid #a36915;
  border-radius: 0 4px 4px 0;
  background: #fbf5ea;
  color: #4a3a1f;
}
.case-stage-safety svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: #a36915;
}
.case-checklist-notice {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 3px solid #a36915;
  border-radius: 0 4px 4px 0;
  background: #fbf5ea;
  color: #4a3a1f;
  font-size: 15px;
  line-height: 1.6;
}

@media print {
  @page {
    margin: 14mm 16mm;
  }
  #karta,
  #karta * {
    font-family: "CS Print Sans", Arial, sans-serif;
  }
  #karta h2,
  #karta .case-print-sources h3 {
    font-family: "CS Print Serif", Georgia, serif;
    font-weight: 400;
  }
  #karta .case-print-only {
    display: block;
  }
  #karta .case-print-brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12pt;
    margin: 0 0 10pt;
    padding-bottom: 6pt;
    border-bottom: 1.5pt solid #155947;
    color: #155947;
    font-size: 9pt;
  }
  #karta .case-print-logo {
    color: #172c29;
    font-size: 13pt;
    font-weight: 700;
  }
  /* "Do pobrania" reads oddly on a sheet already downloaded; the brand line names the sheet instead. */
  #karta .eyebrow {
    display: none;
  }
  #karta h2 {
    margin: 0;
    font-size: 19pt;
    line-height: 1.2;
  }
  #karta .case-checklist-lead,
  #karta .case-checklist-notice {
    margin-top: 6pt;
    font-size: 9.5pt;
    line-height: 1.45;
  }
  #karta .case-checklist-notice {
    padding: 4pt 8pt;
    border-left-width: 2pt;
    background: none;
  }
  #karta .case-check-items {
    margin-top: 8pt;
  }
  #karta .case-check-items li {
    padding: 6pt 0 6pt 26pt;
    font-size: 10pt;
    line-height: 1.4;
  }
  #karta .case-check-items li::before {
    top: 6pt;
    width: 15pt;
    height: 15pt;
    border-width: 1.2pt;
    font-size: 8pt;
  }
  #karta .case-checklist-note {
    margin-top: 8pt;
    padding: 5pt 8pt;
    border: 1pt solid #c9d4e3;
    background: none;
    font-size: 9pt;
  }
  #karta .case-print-qr {
    display: flex;
    align-items: center;
    gap: 12pt;
    margin-top: 10pt;
    padding: 8pt 10pt;
    border: 1.5pt solid #155947;
    border-radius: 4pt;
    break-inside: avoid;
  }
  #karta .case-print-qr-code {
    flex: none;
    width: 30mm;
    height: 30mm;
  }
  #karta .case-print-qr p {
    margin: 0;
    font-size: 10pt;
    line-height: 1.45;
  }
  #karta .case-print-qr strong {
    display: block;
    margin-top: 2pt;
    color: #155947;
    font-size: 14pt;
  }
  #karta .case-print-meta {
    margin-top: 8pt;
    font-size: 8pt;
  }
  #karta .case-print-sources {
    break-before: page;
  }
  #karta .case-print-sources h3 {
    margin: 0 0 8pt;
    font-size: 15pt;
  }
  #karta .case-print-sources ol {
    margin: 0;
    padding-left: 16pt;
  }
  #karta .case-print-sources li {
    margin: 0 0 5pt;
    font-size: 8.5pt;
    line-height: 1.4;
    break-inside: avoid;
  }
  #karta .case-print-sources a {
    color: #172c29;
    text-decoration: none;
  }
  #karta .case-print-sources a::after {
    content: " " attr(href);
    color: #52615e;
    overflow-wrap: anywhere;
  }
}
