/* MK Brand Book 2027 — opt-in shared core v0.15.
 * Public visitors receive no styling changes. CSS is activated only with
 * body:is(.mkb27-preview,.mkb27-public), added by MU-plugin for an authenticated admin preview.
 * New templates should use .mkb27 (component classes below) once reviewed.
 * Source colours: blue #27519B / gold #E9B538 / black / white.
 */

/* The shared tokens remain local to explicit brand components or admin preview. */
.mkb27,
body:is(.mkb27-preview,.mkb27-public) {
  --mkb27-blue: #27519B;
  --mkb27-gold: #E9B538;
  --mkb27-ink: #000000;
  --mkb27-white: #FFFFFF;
  --mkb27-muted: rgba(0,0,0,.75);
  --mkb27-soft: rgba(0,0,0,.03);
  --mkb27-border: rgba(0,0,0,.13);
  --mkb27-navy-surface: linear-gradient(rgba(0,0,0,.20),rgba(0,0,0,.20)),#27519B;
  --mkb27-font: "Manrope", Arial, Helvetica, sans-serif;
}

/* Portable new-page component kit; will not affect legacy templates by default. */
.mkb27 { font-family: var(--mkb27-font); color: var(--mkb27-ink); }
.mkb27, .mkb27 * { box-sizing: border-box; }
.mkb27 .mkb27-kicker {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--mkb27-navy-surface);
  color: var(--mkb27-gold);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mkb27 .mkb27-title {
  margin: 10px 0 18px;
  color: var(--mkb27-blue);
  font: 800 clamp(28px,3vw,41px)/1.16 var(--mkb27-font);
  letter-spacing: -.03em;
}
.mkb27 .mkb27-dark {
  background: linear-gradient(130deg,rgba(0,0,0,0),rgba(0,0,0,.28)),#27519B;
  color: var(--mkb27-white);
}
.mkb27 .mkb27-dark .mkb27-title { color: var(--mkb27-white); }
.mkb27 .mkb27-card {
  border: 1px solid var(--mkb27-border);
  border-radius: 16px;
  padding: clamp(18px,3vw,28px);
  background: var(--mkb27-white);
}
.mkb27 .mkb27-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--mkb27-blue);
  color: var(--mkb27-white);
  font: 700 15px/1.3 var(--mkb27-font);
  text-decoration: none;
}
.mkb27 .mkb27-button:focus-visible,
.mkb27 a:focus-visible { outline: 3px solid var(--mkb27-gold); outline-offset: 3px; }

/* Adapter 1 — Współpraca (WordPress page 911415). Preview mode ONLY.
 * This page has its own inline <style>. We use greater specificity than
 * the legacy CSS, without touching its content or forms.
 */
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap {
  --navy: #27519B;
  --accent: #27519B;
  --ink: #000000;
  --muted: rgba(0,0,0,.75);
  --line: rgba(0,0,0,.13);
  --soft: rgba(0,0,0,.03);
  font-family: var(--mkb27-font);
  color: var(--mkb27-ink);
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap :is(h1,h2,h3,p,a,span,strong,.mkw-kicker) {
  font-family: var(--mkb27-font);
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap :is(h1,h2) { color: var(--mkb27-blue); }
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-card h3 { color: #000000; }
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-proof strong { color: var(--mkb27-blue); }
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-hero {
  background: linear-gradient(rgba(0,0,0,.02),rgba(0,0,0,.02)),#FFFFFF;
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-kicker {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--mkb27-navy-surface);
  color: var(--mkb27-gold);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .12em;
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-btn.primary {
  background: var(--mkb27-blue);
  color: #FFFFFF;
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-btn.secondary {
  border-color: var(--mkb27-blue);
  color: var(--mkb27-blue);
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-topic {
  border-left-color: var(--mkb27-blue);
  color: #000000;
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-band {
  background: linear-gradient(130deg,rgba(0,0,0,0),rgba(0,0,0,.28)),#27519B;
  color: #FFFFFF;
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-band h2 { color: #FFFFFF; }
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-band .mkw-kicker {
  color: #E9B538 !important; /* override one hard-coded legacy style attribute */
  border: 1px solid rgba(233,181,56,.55);
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-band p,
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-step :is(b,span) { color: #FFFFFF; }
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-cta h2 { color: var(--mkb27-blue); }
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) a[href*="/property/"],
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) a[href*="/property/"] * {
  color: #27519B !important; /* legacy rule has !important */
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) a[href*="/property/"] {
  border-color: #E9B538 !important;
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) a[href*="/property/"]::before,
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) a[href*="/property/"]::after {
  border-color: #E9B538 !important;
}
html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap a:focus-visible {
  outline: 3px solid #E9B538;
  outline-offset: 3px;
}
html body.page-id-911415.mkb27-preview::after {
  content: "PODGLĄD 2027 · ADMIN";
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 2147483000;
  padding: 9px 13px;
  border-radius: 8px;
  border: 2px solid #E9B538;
  background: #27519B;
  color: #FFFFFF;
  font: 700 12px/1.3 "Manrope", Arial, sans-serif;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,.24);
}
@media (max-width: 640px) {
  html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-kicker {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-actions .mkw-btn {
    min-height: 44px;
  }
  html body.page-id-911415.mkb27-preview::after { font-size: 10px; right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html body.page-id-911415:is(.mkb27-preview,.mkb27-public) .mkw-wrap .mkw-btn { transition: none; }
}

/* Adapter 2 — Forum Liderów (WordPress page 912307).
 * Opt-in styling for owned page elements only. Hero photo, partners'
 * images/logos, and mk-forms functional elements are not replaced.
 * The source page has inline !important colours on eyebrow labels,
 * hence a narrowly targeted important override.
 */
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn {
  --navy: #27519B;
  --blue: #27519B;
  --gold: #E9B538;
  --ink: #000000;
  --muted: rgba(0,0,0,.74);
  --line: rgba(0,0,0,.13);
  font-family: var(--mkb27-font);
  color: var(--mkb27-ink);
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn :is(h1,h2,h3,p,li,a,span,.eyebrow,.btn) {
  font-family: var(--mkb27-font);
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .hero {
  /* Keep the original event hero photograph, replace only tint. */
  background: linear-gradient(110deg,rgba(39,81,155,.96),rgba(39,81,155,.76)),
    url("https://marekkloc.pl/wp-content/uploads/2026/09/konferencja-2026-hero-optimized.webp") center/cover no-repeat;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .hero :is(h1,p:not(.eyebrow)) { color: #FFFFFF; }
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn section .eyebrow {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: var(--mkb27-navy-surface);
  color: #E9B538 !important; /* necessary: source page hardcodes inline colour */
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .12em;
  overflow-wrap: anywhere;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .hero .eyebrow {
  border: 1px solid rgba(233,181,56,.55);
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .section-heading {
  color: var(--mkb27-blue);
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .edition h3 { color: #000000; }
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .tag { color: var(--mkb27-blue); }
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn :is(.intro,.edition p,.edition .date,.partner p,.partner li,.small-note) {
  color: rgba(0,0,0,.78);
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .pillar,
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .partner {
  background: rgba(0,0,0,.03);
  border-color: var(--mkb27-border);
  color: #000000;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .edition {
  border-color: var(--mkb27-border);
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .edition-media-soon {
  background: linear-gradient(135deg,rgba(0,0,0,.12),rgba(0,0,0,.45)),#27519B;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .btn-gold {
  background: #E9B538;
  color: #000000 !important;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .btn-blue {
  background: #27519B;
  color: #FFFFFF !important;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .text-link {
  color: #27519B !important;
  border-bottom-color: #E9B538;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn :is(a,.btn):focus-visible {
  outline: 3px solid #E9B538;
  outline-offset: 3px;
}
/* Do not override .mk-forms or its submit/input styles: form regression QA pending. */
html body.page-id-912307.mkb27-preview::after {
  content: "PODGLĄD 2027 · ADMIN";
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 2147483000;
  padding: 9px 13px;
  border-radius: 8px;
  border: 2px solid #E9B538;
  background: #27519B;
  color: #FFFFFF;
  font: 700 12px/1.3 "Manrope", Arial, sans-serif;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,.24);
}
@media (max-width: 540px) {
  html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn section .eyebrow {
    white-space: normal;
    max-width: 100%;
  }
  html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .actions .btn {
    min-height: 44px;
  }
  html body.page-id-912307.mkb27-preview::after {
    font-size: 10px;
    right: 8px;
    bottom: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .btn { transition: none; }
}

/* Form colour alignment — Forum Liderow admin preview only.
 * Confirmed from NBiuro mk-forms source: the heading is .mk-forms__title
 * and the privacy notice contains an <a> in .mk-forms__privacy.
 * Do not change input, validation, consent text, form submission or notices.
 */
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .flrn-form-wrap .mk-forms .mk-forms__title {
  color: #27519B;
  font-family: var(--mkb27-font);
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .flrn-form-wrap .mk-forms .mk-forms__privacy a {
  color: #27519B;
  text-decoration: underline;
  text-underline-offset: .15em;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .flrn-form-wrap .mk-forms .mk-forms__privacy a:hover {
  color: #27519B;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .flrn-form-wrap .mk-forms .mk-forms__submit {
  background: #27519B !important; /* Existing page stylesheet sets old blue with !important. */
  color: #FFFFFF !important;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .flrn-form-wrap .mk-forms :is(.mk-forms__submit,.mk-forms__privacy a):focus-visible {
  outline: 3px solid #E9B538;
  outline-offset: 3px;
}

/* Footer contact details — Forum Liderów; only in admin-only preview.
 * Keep real mailto: and tel: links unchanged. */
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .bottom a[href^="mailto:"],
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .bottom a[href^="tel:"] {
  color: #27519B;
  text-decoration: underline;
  text-decoration-color: #27519B;
  text-underline-offset: .16em;
}
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .bottom a[href^="mailto:"]:focus-visible,
html body.page-id-912307:is(.mkb27-preview,.mkb27-public) .flrn .bottom a[href^="tel:"]:focus-visible {
  outline: 3px solid #E9B538;
  outline-offset: 3px;
}

/* Adapter 3 — Pulpit MK360, page 911221, admin-preview only.
 * CSS only. Do not alter/filter data-audience, [hidden], aria-pressed,
 * the card links, JS handlers, or the functional calculator pages.
 * Demonstration/status tags retain their semantic design.
 */
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub {
  --navy: #27519B;
  --blue: #27519B;
  --gold: #E9B538;
  --ink: #000000;
  --muted: rgba(0,0,0,.74);
  --line: rgba(0,0,0,.13);
  --soft: rgba(0,0,0,.03);
  color: var(--mkb27-ink);
  font-family: var(--mkb27-font);
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub :is(h1,h2,h3,p,a,button,span,small,.eyebrow,.mk-tools-kicker) {
  font-family: var(--mkb27-font);
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-hero {
  background: linear-gradient(130deg,rgba(0,0,0,0),rgba(0,0,0,.28)),#27519B;
  color: #FFFFFF;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-hero::after {
  background: rgba(233,181,56,.10);
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-hero :is(h1,p) {
  color: #FFFFFF;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-kicker,
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tool-card > .eyebrow {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--mkb27-navy-surface);
  color: #E9B538;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-hero .mk-tools-kicker {
  border: 1px solid rgba(233,181,56,.55);
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub :is(.mk-quick,.mk-tools-intro,.mk-tools-note) h2,
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tool-card h2 {
  color: #27519B;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tool-card {
  border-color: var(--mkb27-border);
  background: #FFFFFF;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tool-card.featured {
  background: linear-gradient(rgba(0,0,0,.02),rgba(0,0,0,.02)),#FFFFFF;
  border-color: rgba(39,81,155,.30);
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-grid > .mk-tool-card:not(.featured):not(.coming-soon)::before {
  color: #27519B;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub :is(.mk-tool-card,.mk-tools-intro,.mk-tools-note) p,
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-count {
  color: rgba(0,0,0,.74);
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-quick a,
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tool-link,
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tool-tags span {
  color: #27519B !important; /* Legacy links use !important. */
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tool-filters button {
  color: #27519B;
  background: #FFFFFF;
  border-color: rgba(39,81,155,.30);
  min-height: 44px;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tool-filters button[aria-pressed="true"] {
  background: #27519B;
  border-color: #27519B;
  color: #FFFFFF;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tool-filters button:focus-visible,
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub a:focus-visible {
  outline: 3px solid #E9B538;
  outline-offset: 3px;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-cta {
  background: linear-gradient(130deg,rgba(0,0,0,0),rgba(0,0,0,.28)),#27519B;
  color: #FFFFFF;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-cta :is(h2,p) {
  color: #FFFFFF;
}
html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-cta a {
  background: #E9B538;
  color: #000000 !important;
}
html body.page-id-911221.mkb27-preview::after {
  content: "PODGLĄD 2027 · ADMIN";
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 2147483000;
  padding: 9px 13px;
  border-radius: 8px;
  border: 2px solid #E9B538;
  background: #27519B;
  color: #FFFFFF;
  font: 700 12px/1.3 "Manrope",Arial,sans-serif;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,.24);
}
@media (max-width: 820px) {
  html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-hero {
    padding: 42px 28px;
  }
  html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-kicker,
  html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tool-card > .eyebrow {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 480px) {
  html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub .mk-tools-hero {
    padding: 32px 22px;
  }
  html body.page-id-911221.mkb27-preview::after { font-size: 10px; right: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html body.page-id-911221:is(.mkb27-preview,.mkb27-public) .mk-tools-hub :is(.mk-tool-card,.mk-tool-filters button) {
    transition: none;
  }
}
