:root {
  --cma-navy: #102d4d;
  --cma-navy-soft: #284661;
  --cma-coral: #ef5b4c;
  --cma-coral-dark: #d94b3f;
  --cma-teal: #5f9992;
  --cma-cream: #f5f0e4;
  --cma-paper: #fffdf8;
  --cma-line: #d8d4c9;
  --cma-muted: #5e6b78;
  --cma-white: #ffffff;
  --cma-shadow: 0 18px 45px rgba(16, 45, 77, 0.10);
  --cma-radius: 18px;
  --cma-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cma-paper);
  color: var(--cma-navy);
  font-family: "Inter", "Aptos", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cma-coral-dark);
}

img,
iframe,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cma-coral);
  outline-offset: 4px;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--cma-navy);
  color: var(--cma-white);
}

.container {
  width: min(calc(100% - 40px), var(--cma-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--cma-line);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  color: var(--cma-navy);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.brand-mark span {
  background: var(--cma-navy);
}

.brand-mark span:nth-child(2) {
  border-radius: 50%;
  background: var(--cma-coral);
}

.brand-mark span:nth-child(4) {
  background: var(--cma-teal);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--cma-muted);
  font-size: 0.72rem;
}

.menu-toggle {
  display: none;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid var(--cma-line);
  border-radius: 10px;
  background: var(--cma-white);
  color: var(--cma-navy);
  cursor: pointer;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a {
  position: relative;
  padding-block: 14px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-menu a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--cma-coral);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 18%, rgba(95, 153, 146, 0.24), transparent 22rem),
    linear-gradient(135deg, var(--cma-cream), var(--cma-paper));
}

.hero-inner {
  display: grid;
  min-height: 630px;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 7vw, 100px);
  padding-block: 76px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cma-teal);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.page-header h1,
.entry-header h1 {
  margin: 0;
  color: var(--cma-navy);
  font-family: "Manrope", "Aptos Display", sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.3rem);
}

.hero-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--cma-navy-soft);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid var(--cma-coral);
  border-radius: 10px;
  background: var(--cma-coral);
  color: var(--cma-white);
  font-weight: 800;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  border-color: var(--cma-coral-dark);
  background: var(--cma-coral-dark);
  color: var(--cma-white);
  transform: translateY(-2px);
}

.button.secondary {
  border-color: var(--cma-navy);
  background: transparent;
  color: var(--cma-navy);
}

.button.secondary:hover {
  background: var(--cma-navy);
  color: var(--cma-white);
}

.hero-art {
  position: relative;
  min-height: 470px;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  border-radius: 26px;
  content: "";
}

.hero-art::before {
  inset: 5% 8% 15% 18%;
  background: var(--cma-navy);
  box-shadow: var(--cma-shadow);
  transform: rotate(-4deg);
}

.hero-art::after {
  inset: 18% 18% 2% 3%;
  border: 3px solid var(--cma-navy);
  background: var(--cma-teal);
  transform: rotate(5deg);
}

.hero-symbol {
  position: absolute;
  z-index: 2;
  inset: 16% 13% 11% 15%;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: var(--cma-cream);
  color: var(--cma-coral);
  font-family: "Manrope", sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 850;
  line-height: 1;
}

.section {
  padding-block: clamp(68px, 9vw, 110px);
}

.section.alt {
  background: var(--cma-cream);
}

.section.dark {
  background: var(--cma-navy);
  color: var(--cma-white);
}

.section.dark h2,
.section.dark h3,
.section.dark a {
  color: var(--cma-white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.section-heading h2,
.page-header h1,
.entry-header h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--cma-muted);
}

.role-grid,
.pillar-grid,
.content-grid {
  display: grid;
  gap: 22px;
}

.role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.role-card,
.pillar-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cma-line);
  border-radius: var(--cma-radius);
  background: var(--cma-white);
  box-shadow: 0 8px 24px rgba(16, 45, 77, 0.05);
}

.role-card,
.pillar-card {
  min-height: 240px;
  padding: 30px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.role-card:hover,
.pillar-card:hover,
.card:hover {
  color: var(--cma-navy);
  box-shadow: var(--cma-shadow);
  transform: translateY(-5px);
}

.role-number,
.pillar-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cma-cream);
  color: var(--cma-coral-dark);
  font-weight: 850;
}

.role-card h3,
.pillar-card h3,
.card h2,
.card h3 {
  margin: 24px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.role-card p,
.pillar-card p,
.card p {
  color: var(--cma-muted);
}

.card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cma-navy), var(--cma-teal));
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.card:hover .card-media img {
  transform: scale(1.035);
}

.card-body {
  padding: 24px;
}

.card-body h2,
.card-body h3 {
  margin-top: 8px;
}

.card-body h2 a,
.card-body h3 a {
  text-decoration: none;
}

.meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--cma-muted);
  font-size: 0.82rem;
}

.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(95, 153, 146, 0.14);
  color: var(--cma-navy);
  font-size: 0.75rem;
  font-weight: 800;
}

.featured-idea {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: var(--cma-navy);
  color: var(--cma-white);
  grid-template-columns: 0.95fr 1.05fr;
}

.featured-idea > * {
  padding: clamp(32px, 6vw, 68px);
}

.featured-idea h2,
.featured-idea h3,
.featured-idea a {
  color: var(--cma-white);
}

.featured-idea .idea-side {
  display: flex;
  min-height: 360px;
  align-items: end;
  background:
    linear-gradient(rgba(16, 45, 77, 0.12), rgba(16, 45, 77, 0.12)),
    var(--cma-teal);
}

.author-panel,
.newsletter-panel {
  display: grid;
  align-items: center;
  gap: 48px;
  grid-template-columns: 0.75fr 1.25fr;
}

.author-avatar {
  display: grid;
  aspect-ratio: 1;
  max-width: 330px;
  place-items: center;
  border-radius: 50%;
  background: var(--cma-cream);
  color: var(--cma-navy);
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 850;
}

.newsletter-panel {
  grid-template-columns: 1fr auto;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  min-width: min(360px, 100%);
  min-height: 50px;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  background: var(--cma-white);
  color: var(--cma-navy);
}

.page-header {
  padding-block: 64px 38px;
}

.page-header p {
  max-width: 760px;
  color: var(--cma-muted);
  font-size: 1.12rem;
}

.filters {
  display: grid;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--cma-line);
  border-radius: var(--cma-radius);
  background: var(--cma-cream);
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
}

.filters label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.filters select,
.search-form input[type="search"] {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--cma-line);
  border-radius: 8px;
  background: var(--cma-white);
}

.entry-shell {
  display: grid;
  max-width: 920px;
  margin-inline: auto;
  padding-block: 60px 100px;
}

.entry-header {
  margin-bottom: 34px;
}

.entry-content {
  color: #263c52;
}

.entry-content > * {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.entry-content > .alignwide {
  max-width: 1040px;
}

.entry-content > .alignfull {
  max-width: none;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.8em;
  color: var(--cma-navy);
  font-family: "Manrope", sans-serif;
  line-height: 1.2;
}

.entry-content blockquote {
  padding: 12px 0 12px 24px;
  border-left: 5px solid var(--cma-coral);
  color: var(--cma-navy);
  font-size: 1.15rem;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--cma-line);
  border-radius: 8px;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--cma-navy);
  color: var(--cma-white);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

.search-form input[type="search"] {
  width: 100%;
}

.empty-state {
  padding: 50px 30px;
  border: 1px dashed var(--cma-line);
  border-radius: var(--cma-radius);
  text-align: center;
}

.site-footer {
  padding-block: 56px 24px;
  background: #0b223a;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(2, 0.8fr);
  gap: 40px;
}

.site-footer h2,
.site-footer h3,
.site-footer a {
  color: var(--cma-white);
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.footer-bottom {
  padding-top: 28px;
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--cma-line);
    border-radius: 14px;
    background: var(--cma-white);
    box-shadow: var(--cma-shadow);
  }

  .primary-menu.is-open {
    display: block;
  }

  .primary-menu ul {
    display: grid;
    gap: 4px;
  }

  .primary-menu a {
    display: block;
    padding: 12px;
  }

  .hero-inner,
  .featured-idea,
  .author-panel,
  .newsletter-panel {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-art {
    min-height: 380px;
  }

  .role-grid,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 28px), var(--cma-width));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-inner {
    padding-block: 52px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.2rem);
  }

  .hero-art {
    min-height: 300px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 14px;
  }

  .role-grid,
  .pillar-grid,
  .content-grid,
  .filters,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .role-card,
  .pillar-card {
    min-height: 0;
  }

  .newsletter-form,
  .search-form {
    display: grid;
  }

  .newsletter-form input[type="email"] {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 500px) {
  .header-inner {
    gap: 6px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    gap: 3px;
  }

  .brand > span:last-child strong {
    max-width: 112px;
    font-size: 0.78rem;
  }

  .header-tools {
    gap: 4px;
  }

  .menu-toggle {
    min-width: 68px;
    padding-inline: 8px;
    font-size: 0.83rem;
  }
}

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

/* Zgodność z nazwami klas używanymi przez szablony CMA 1.0. */
.cma-container {
  width: min(calc(100% - 40px), var(--cma-width));
  margin-inline: auto;
}

.brand-mark i {
  display: block;
  background: var(--cma-navy);
}

.brand-mark i:nth-child(2) {
  border-radius: 50%;
  background: var(--cma-coral);
}

.brand-mark i:nth-child(4) {
  background: var(--cma-teal);
}

.brand > span:last-child {
  display: grid;
  line-height: 1.2;
}

.brand > span:last-child strong {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  letter-spacing: 0.02em;
}

.brand > span:last-child small {
  margin-top: 4px;
  color: var(--cma-muted);
  font-size: 0.72rem;
}

.primary-navigation .cma-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation .cma-menu a {
  position: relative;
  display: block;
  padding-block: 14px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-navigation .cma-menu a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--cma-coral);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-navigation .cma-menu a:hover::after,
.primary-navigation .cma-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

.hero-grid {
  display: grid;
  min-height: 630px;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 7vw, 100px);
  padding-block: 76px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button-secondary {
  border-color: var(--cma-navy);
  background: transparent;
  color: var(--cma-navy);
}

.button-secondary:hover {
  border-color: var(--cma-navy);
  background: var(--cma-navy);
  color: var(--cma-white);
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.hero-arch {
  position: absolute;
  border-radius: 160px 160px 18px 18px;
  box-shadow: var(--cma-shadow);
}

.hero-arch.arch-one {
  inset: 3% 8% 9% 26%;
  border: 24px solid var(--cma-navy);
  border-bottom-width: 60px;
}

.hero-arch.arch-two {
  inset: 30% 38% 8% 2%;
  border: 20px solid var(--cma-teal);
  border-bottom-width: 48px;
}

.hero-steps {
  position: absolute;
  right: 1%;
  bottom: 9%;
  width: 68%;
  height: 38%;
  background: repeating-linear-gradient(to top, var(--cma-cream) 0 19%, var(--cma-line) 19% 22%);
  clip-path: polygon(0 100%, 0 78%, 18% 78%, 18% 56%, 38% 56%, 38% 34%, 61% 34%, 61% 12%, 82% 12%, 82% 0, 100% 0, 100% 100%);
}

.hero-visual > span {
  position: absolute;
  z-index: 2;
  top: 17%;
  right: 39%;
  width: 14px;
  height: 42px;
  border-radius: 9px 9px 3px 3px;
  background: var(--cma-coral);
  box-shadow: 0 -10px 0 -3px var(--cma-navy);
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--cma-line);
  border-radius: var(--cma-radius);
  background: var(--cma-white);
  box-shadow: 0 8px 24px rgba(16, 45, 77, 0.05);
}

.card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: var(--cma-navy);
  text-decoration: none;
}

.card-image {
  aspect-ratio: 12 / 7;
  overflow: hidden;
  background: var(--cma-cream);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.card-link:hover .card-image img {
  transform: scale(1.035);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.card-body h3 {
  margin: 12px 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.card-body p {
  margin: 0 0 20px;
  color: var(--cma-muted);
}

.card-body b {
  margin-top: auto;
}

.card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--cma-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-grid,
.author-grid,
.newsletter-inner,
.library-grid {
  display: grid;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.featured-grid,
.author-grid,
.newsletter-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-idea,
.author-section {
  background: var(--cma-cream);
}

.featured-image img,
.single-image img {
  width: 100%;
  border-radius: var(--cma-radius);
  box-shadow: var(--cma-shadow);
}

.author-photo {
  display: grid;
  min-height: 360px;
  place-items: center;
  border-radius: var(--cma-radius);
  background: linear-gradient(140deg, var(--cma-navy), var(--cma-teal));
  color: var(--cma-white);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 850;
  letter-spacing: -0.07em;
}

.newsletter {
  background: var(--cma-navy);
  color: var(--cma-white);
}

.newsletter h2,
.newsletter .eyebrow {
  color: var(--cma-white);
}

.page-hero,
.article-header {
  padding-block: clamp(62px, 9vw, 108px);
  background: var(--cma-cream);
}

.page-hero h1,
.article-header h1,
.error-page h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.breadcrumbs {
  margin: 0 0 20px;
  color: var(--cma-muted);
  font-size: 0.88rem;
}

.article-meta {
  margin-bottom: 22px;
}

.narrow {
  max-width: 860px;
}

.single-image {
  margin-top: 44px;
}

.entry-content {
  padding-block: 64px 92px;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content h2 {
  margin-top: 2.1em;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.15;
}

.media-callout,
.apply-box,
.empty-state {
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--cma-line);
  border-radius: var(--cma-radius);
  background: var(--cma-cream);
}

.next-step {
  padding-block: 64px;
  background: var(--cma-cream);
}

.library-grid {
  align-items: start;
  grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
}

.filters {
  position: sticky;
  top: 112px;
  display: block;
  padding: 24px;
  border: 1px solid var(--cma-line);
  border-radius: var(--cma-radius);
  background: var(--cma-white);
}

.filters form {
  display: grid;
  gap: 12px;
}

.filters h2 {
  margin: 0 0 8px;
}

.filters select {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--cma-line);
  border-radius: 8px;
  background: var(--cma-white);
}

.reset-link,
.text-link {
  font-weight: 800;
}

.results-count {
  margin-top: 0;
  color: var(--cma-muted);
}

@media (max-width: 960px) {
  .hero-grid,
  .featured-grid,
  .author-grid,
  .newsletter-inner,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    position: static;
  }
}

@media (max-width: 700px) {
  .cma-container {
    width: min(calc(100% - 28px), var(--cma-width));
  }

  .brand > span:last-child small {
    display: none;
  }

  .hero-grid {
    min-height: 0;
    padding-block: 52px;
  }

  .card-grid.three,
  .card-grid.two {
    grid-template-columns: 1fr;
  }
}

/* Compatibility layer for the CMA 1.0 templates. */
.menu-bars {
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-right: 8px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  vertical-align: middle;
}

.role-card > span,
.pillar-card > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--cma-cream);
  color: var(--cma-coral-dark);
  font-weight: 850;
}

.featured-idea {
  display: block;
  border-radius: 0;
  background: var(--cma-cream);
  color: var(--cma-navy);
}

.featured-idea > * {
  padding: 0;
}

.featured-idea h2,
.featured-idea h3,
.featured-idea a {
  color: var(--cma-navy);
}

@media (max-width: 960px) {
  .primary-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    z-index: 50;
    display: none;
    padding: 14px;
    border: 1px solid var(--cma-line);
    border-radius: 14px;
    background: var(--cma-white);
    box-shadow: var(--cma-shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation .cma-menu {
    display: grid;
    gap: 2px;
  }

  .primary-navigation .cma-menu a {
    padding: 11px 12px;
    border-radius: 9px;
  }
}

/* CMA 1.1 — aktywne ścieżki, huby idei i nawigacja pomocnicza. */
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-search {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  color: var(--cma-navy);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.header-search > span:first-child {
  font-size: 1.5rem;
  line-height: 1;
}

.header-search:hover {
  background: var(--cma-cream);
  color: var(--cma-navy);
}

.path-card h2,
.pillar-card h2 {
  margin: 24px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.path-card ul,
.idea-points,
.benefit-list {
  padding-left: 1.25em;
}

.path-card li + li,
.idea-points li + li,
.benefit-list li + li {
  margin-top: 8px;
}

.path-card b {
  display: block;
  margin-top: 24px;
}

.featured-idea .featured-grid {
  grid-template-columns: minmax(0, 820px);
}

.idea-points {
  margin-block: 24px 30px;
}

.author-grid-no-photo {
  grid-template-columns: minmax(0, 840px);
  justify-content: center;
}

.author-photo-real {
  overflow: hidden;
  border-radius: var(--cma-radius);
  background: var(--cma-cream);
  box-shadow: var(--cma-shadow);
}

.author-photo-real img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.role-benefits {
  padding-bottom: 34px;
}

.benefit-list {
  margin-block: 22px 34px;
  font-size: 1.08rem;
}

.idea-content {
  padding-bottom: 62px;
}

.idea-content ol,
.idea-content ul {
  padding-left: 1.35em;
}

.about-main .author-grid {
  align-items: start;
}

@media (max-width: 1120px) {
  .primary-navigation .cma-menu {
    gap: 18px;
  }

  .header-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  .header-tools {
    margin-left: auto;
    gap: 8px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-navigation {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

@media (max-width: 700px) {
  .header-inner {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand > span:last-child strong {
    max-width: 150px;
    font-size: 0.9rem;
    line-height: 1.12;
  }

  .menu-toggle {
    min-width: 44px;
    padding: 9px 11px;
  }

  .menu-bars {
    margin-right: 7px;
  }

  .hero-grid {
    gap: 20px;
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.45rem);
  }

  .hero-visual {
    min-height: 230px;
  }

  .section {
    padding-block: 58px;
  }

  .page-hero,
  .article-header {
    padding-block: 54px;
  }
}

@media (max-width: 500px) {
  .header-inner { gap: 6px; }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; gap: 3px; }
  .brand > span:last-child strong { max-width: 112px; font-size: 0.78rem; }
  .header-tools { gap: 4px; }
  .menu-toggle { min-width: 68px; padding-inline: 8px; font-size: 0.83rem; }
}

/* CMA 1.2 — spokojniejsze proporcje, czytelny pierwszy ekran i pełna grafika mobilna. */
.header-inner {
  min-height: 80px;
}

.hero-grid {
  min-height: 540px;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: clamp(34px, 5vw, 72px);
  padding-block: 56px 62px;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3rem, 5.1vw, 5.15rem);
  line-height: 1;
}

.hero-lead {
  max-width: 760px;
  margin-top: 22px;
}

.hero-visual {
  min-height: 360px;
}

.section {
  padding-block: clamp(56px, 6.2vw, 82px);
}

.section > .cma-container > .eyebrow + h2 {
  margin-top: 0;
  margin-bottom: 30px;
}

.role-card,
.pillar-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 28px;
}

.role-card b,
.pillar-card b {
  margin-top: auto;
  padding-top: 18px;
}

.featured-idea .featured-grid {
  max-width: 1040px;
}

.featured-idea .featured-grid > div {
  max-width: 760px;
}

.author-grid-no-photo {
  max-width: 1040px;
}

.author-grid-no-photo > div {
  max-width: 840px;
}

.idea-content blockquote {
  margin-block: 32px;
  padding: 22px 26px;
  border-left: 5px solid var(--cma-coral);
  border-radius: 0 12px 12px 0;
  background: var(--cma-cream);
}

@media (max-width: 960px) {
  .hero-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 7vw, 4.25rem);
  }

  .hero-visual {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 38px 32px;
  }

  .hero h1 {
    max-width: 18ch;
    font-size: clamp(2.35rem, 11.4vw, 3.35rem);
    line-height: 1.02;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 1.03rem;
  }

  .hero .button-row {
    display: grid;
    gap: 8px;
    margin-top: 24px;
  }

  .hero .button {
    width: 100%;
  }

  .hero .button-secondary {
    min-height: 42px;
    padding-block: 8px;
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 0.22em;
  }

  .hero-visual {
    min-height: 190px;
  }

  .hero-arch.arch-one {
    inset: 1% 13% 7% 31%;
    border-width: 16px;
    border-bottom-width: 34px;
  }

  .hero-arch.arch-two {
    inset: 27% 43% 6% 7%;
    border-width: 13px;
    border-bottom-width: 29px;
  }

  .hero-visual > span {
    top: 14%;
    right: 39%;
    width: 10px;
    height: 30px;
  }

  .section {
    padding-block: 52px;
  }

  .role-card,
  .pillar-card {
    padding: 24px;
  }

  .author-grid-no-photo {
    justify-content: start;
  }
}

/* CMA 1.3 — pierwszy ekran telefonu bez uciętego tekstu. */
@media (max-width: 760px) {
  .hero-copy { min-width: 0; }

  .hero-grid {
    gap: 10px;
    padding-block: 26px 24px;
  }

  .hero .eyebrow {
    max-width: 34ch;
    margin-bottom: 14px;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9.2vw, 2.58rem);
    line-height: 1.01;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    margin-top: 14px;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .hero .button-row {
    display: block;
    margin-top: 18px;
  }

  .hero .button-primary {
    width: auto;
    min-width: 150px;
  }

  .hero .button-secondary { display: none; }

  .hero-visual {
    width: min(76vw, 280px);
    min-height: 120px;
    margin-inline: auto;
  }
}

@media (max-width: 390px) {
  .hero h1 { font-size: clamp(1.9rem, 8.8vw, 2.2rem); }
}

/* CMA 1.4 — filtry, wyszukiwanie i kompletne strony materiałów. */
.filters fieldset {
  min-width: 0;
  margin: 6px 0;
  padding: 0;
  border: 0;
}

.filters legend,
.filters > form > label {
  margin-bottom: 6px;
  color: var(--cma-navy);
  font-weight: 800;
}

.filters input[type="search"] {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--cma-line);
  border-radius: 8px;
  background: var(--cma-white);
  color: var(--cma-navy);
  font: inherit;
}

.filter-options {
  display: grid;
  gap: 2px;
}

.filter-options label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--cma-muted);
  cursor: pointer;
  font-weight: 600;
}

.filter-options label:hover {
  background: var(--cma-cream);
  color: var(--cma-navy);
}

.filter-options input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--cma-coral);
}

.results-summary {
  margin-bottom: 24px;
}

.results-count {
  margin-top: 0;
  font-weight: 800;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-filters span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--cma-cream);
  color: var(--cma-navy);
  font-size: 0.82rem;
  font-weight: 750;
}

.resource-details,
.text-alternative {
  margin-top: 42px;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--cma-line);
  border-radius: var(--cma-radius);
  background: var(--cma-cream);
}

.resource-details h2,
.text-alternative h2 {
  margin-top: 0;
}

.resource-details dl {
  display: grid;
  gap: 12px;
}

.resource-details dl > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cma-line);
}

.resource-details dt {
  font-weight: 800;
}

.resource-details dd {
  margin: 0;
}

.author-note {
  padding-block: 52px;
  border-block: 1px solid var(--cma-line);
  background: var(--cma-white);
}

.author-note h2 {
  margin-top: 0;
}

.large-search-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.large-search-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.large-search-form input {
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--cma-line);
  border-radius: 9px;
  background: var(--cma-white);
  color: var(--cma-navy);
  font: inherit;
}

.search-suggestions {
  margin-top: 54px;
}

.search-suggestions ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.search-suggestions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--cma-line);
  border-radius: 999px;
  text-decoration: none;
}

.pagination .nav-links,
.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-numbers a,
.page-numbers span {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 6px 10px;
  border: 1px solid var(--cma-line);
  border-radius: 8px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .filters {
    position: static;
  }

  .resource-details dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .large-search-form > div {
    grid-template-columns: 1fr;
  }
}

/* CMA 1.5 — automatyczne filtry, panel mobilny i strony systemowe. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.filter-disclosure > summary {
  display: none;
}

.filter-disclosure > form {
  display: grid;
}

.cma-is-filtering .library-results {
  opacity: 0.58;
  transition: opacity 160ms ease;
}

.cma-is-filtering .results-count::after {
  content: " — aktualizuję…";
}

.system-page-intro {
  max-width: 760px;
  color: var(--cma-muted);
  font-size: 1.08rem;
}

.system-sections {
  display: grid;
  gap: 26px;
  margin-top: 38px;
}

.system-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--cma-line);
  border-radius: var(--cma-radius);
  background: var(--cma-white);
}

.system-card h2 {
  margin-top: 0;
}

.sitemap-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.sitemap-groups ul {
  padding-left: 1.2em;
}

@media (max-width: 760px) {
  .filter-disclosure > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    color: var(--cma-navy);
    cursor: pointer;
    font-weight: 850;
  }

  .filter-disclosure > summary span {
    display: inline-grid;
    min-width: 28px;
    min-height: 28px;
    place-items: center;
    border-radius: 999px;
    background: var(--cma-coral);
    color: var(--cma-white);
    font-size: 0.78rem;
  }

  .filter-disclosure:not([open]) > form {
    display: none;
  }

  .filters {
    padding-block: 14px;
  }

  .filters h2 {
    font-size: 1.35rem;
  }

  .sitemap-groups {
    grid-template-columns: 1fr;
  }
}

/* CMA 1.6 — końcowe dopracowanie: nowoczesny atlas wiedzy i ciepła biblioteka. */
:root {
  --cma-coral: #c94136;
  --cma-coral-dark: #a9342d;
  --cma-coral-bright: #ef5b4c;
  --cma-teal-ink: #39746e;
  --cma-gold: #ad854b;
  --cma-paper-deep: #faf7ef;
  --cma-shadow-sm: 0 8px 26px rgba(16, 45, 77, 0.07);
  --cma-shadow-md: 0 20px 54px rgba(16, 45, 77, 0.12);
  --cma-radius-lg: 24px;
  --cma-width: 1240px;
}

body {
  background:
    radial-gradient(circle at 8% 18%, rgba(95, 153, 146, 0.045), transparent 25rem),
    var(--cma-paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hero h1,
.section-heading h2,
.page-header h1,
.entry-header h1,
.page-hero h1,
.article-header h1,
.error-page h1,
.role-card h2,
.role-card h3,
.pillar-card h2,
.pillar-card h3,
.card-body h2,
.card-body h3,
.entry-content h2,
.entry-content h3 {
  font-family: "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  border-bottom-color: rgba(16, 45, 77, 0.12);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 5px 24px rgba(16, 45, 77, 0.045);
}

.brand-mark {
  filter: drop-shadow(0 5px 9px rgba(16, 45, 77, 0.10));
}

.brand-mark i:nth-child(2),
.brand-mark span:nth-child(2) {
  background: var(--cma-coral-bright);
}

.brand > span:last-child strong {
  letter-spacing: -0.012em;
}

.primary-navigation .cma-menu a,
.primary-menu a {
  letter-spacing: -0.01em;
}

.header-search,
.menu-toggle {
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.menu-toggle:hover,
.header-search:hover {
  border-color: rgba(16, 45, 77, 0.26);
  box-shadow: var(--cma-shadow-sm);
}

.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid rgba(16, 45, 77, 0.08);
  background:
    radial-gradient(circle at 82% 22%, rgba(95, 153, 146, 0.25), transparent 23rem),
    linear-gradient(135deg, var(--cma-cream), var(--cma-paper));
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(44vw, 720px);
  height: 100%;
  background-image: radial-gradient(rgba(16, 45, 77, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  opacity: 0.26;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 82%);
  mask-image: linear-gradient(to left, #000, transparent 82%);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 12.5ch;
  letter-spacing: -0.052em;
}

.hero-brand {
  position: relative;
  margin: 0 0 24px;
}

.hero-brand-name,
.hero-brand-context {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  text-transform: uppercase;
}

.hero-brand-name {
  color: var(--cma-teal-ink);
  font-size: clamp(1.02rem, 1.22vw, 1.28rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0.075em;
}

.hero-brand-context {
  margin-top: 7px;
  color: #5d6d7b;
  font-size: clamp(0.74rem, 0.72vw, 0.84rem);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0.09em;
}

.hero-lead {
  max-width: 62ch;
  color: #294761;
}

.hero-visual {
  filter: drop-shadow(0 24px 34px rgba(16, 45, 77, 0.10));
}

.hero-visual > span {
  background: var(--cma-coral-bright);
}

.eyebrow,
.card-meta,
.article-meta {
  color: var(--cma-teal-ink);
}

.section {
  position: relative;
}

.roles-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.65), var(--cma-paper)),
    var(--cma-paper);
}

.pillars,
.library-section {
  background:
    radial-gradient(circle at 92% 10%, rgba(173, 133, 75, 0.065), transparent 24rem),
    var(--cma-paper);
}

.section-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(16, 45, 77, 0.13);
}

.section-heading h2,
.section > .cma-container > .eyebrow + h2 {
  letter-spacing: -0.035em;
}

.role-card,
.pillar-card,
.content-card,
.system-card {
  border-color: rgba(16, 45, 77, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--cma-shadow-sm);
}

.role-card,
.pillar-card,
.content-card {
  isolation: isolate;
}

.role-card::before,
.pillar-card::before,
.content-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cma-coral), var(--cma-gold), var(--cma-teal));
  content: "";
  opacity: 0.82;
}

.role-card::after,
.pillar-card::after {
  position: absolute;
  z-index: -1;
  right: -55px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(95, 153, 146, 0.07);
  border-radius: 50%;
  content: "";
}

.role-card:hover,
.pillar-card:hover,
.content-card:hover {
  box-shadow: var(--cma-shadow-md);
  transform: translateY(-4px);
}

.role-card > span,
.pillar-card > span,
.role-number,
.pillar-number {
  border: 1px solid rgba(173, 133, 75, 0.18);
  background: #f8f2e5;
  color: var(--cma-coral);
}

.role-card h3,
.pillar-card h3,
.card-body h3 {
  letter-spacing: -0.025em;
}

.role-card b,
.pillar-card b,
.card-body b {
  color: var(--cma-navy);
  text-decoration-color: rgba(201, 65, 54, 0.35);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.content-card {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.content-card:hover {
  border-color: rgba(16, 45, 77, 0.24);
}

.card-meta {
  gap: 6px;
  letter-spacing: 0.025em;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(95, 153, 146, 0.11);
}

.card-meta span:first-child {
  background: rgba(201, 65, 54, 0.09);
  color: #9f3029;
}

.card-body {
  padding: 28px;
}

.card-body p {
  line-height: 1.6;
}

.featured-idea {
  background:
    linear-gradient(135deg, rgba(245, 240, 228, 0.98), rgba(255, 253, 248, 0.98));
}

.featured-idea .featured-grid {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid rgba(16, 45, 77, 0.14);
  border-radius: var(--cma-radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--cma-shadow-sm);
}

.featured-idea .featured-grid::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(95, 153, 146, 0.10);
  border-radius: 50%;
  content: "";
}

.featured-idea .featured-grid > div {
  position: relative;
  z-index: 1;
}

.author-grid-no-photo {
  position: relative;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(16, 45, 77, 0.14);
  border-left: 6px solid var(--cma-coral);
  border-radius: var(--cma-radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--cma-shadow-sm);
}

.page-hero,
.article-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(16, 45, 77, 0.09);
  background:
    radial-gradient(circle at 88% 20%, rgba(95, 153, 146, 0.17), transparent 22rem),
    linear-gradient(135deg, var(--cma-cream), var(--cma-paper-deep));
}

.page-hero h1,
.article-header h1 {
  letter-spacing: -0.055em;
}

.entry-content {
  color: #243f58;
  font-size: 1.04rem;
}

.entry-content > p,
.entry-content > ul,
.entry-content > ol {
  max-width: 72ch;
}

.entry-content h2 {
  padding-top: 0.35em;
  letter-spacing: -0.035em;
}

.entry-content blockquote,
.idea-content blockquote {
  border-left-color: var(--cma-coral);
  background: linear-gradient(110deg, var(--cma-cream), rgba(245, 240, 228, 0.45));
  box-shadow: inset 0 0 0 1px rgba(16, 45, 77, 0.06);
}

.media-callout,
.apply-box,
.resource-details,
.text-alternative {
  border-color: rgba(16, 45, 77, 0.14);
  background: linear-gradient(135deg, var(--cma-cream), var(--cma-paper-deep));
  box-shadow: var(--cma-shadow-sm);
}

.filters {
  border-color: rgba(16, 45, 77, 0.15);
  box-shadow: var(--cma-shadow-sm);
}

.filters fieldset + fieldset {
  padding-top: 12px;
  border-top: 1px solid rgba(16, 45, 77, 0.10);
}

.filter-options label {
  transition: background 140ms ease, color 140ms ease;
}

.filter-options input {
  accent-color: var(--cma-coral);
}

.active-filters span {
  border: 1px solid rgba(16, 45, 77, 0.10);
  background: #f8f2e5;
}

.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 12% 8%, rgba(95, 153, 146, 0.12), transparent 22rem),
    #0b223a;
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cma-coral-bright), var(--cma-gold), var(--cma-teal));
  content: "";
}

.site-footer h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.site-footer a {
  text-decoration-color: rgba(255, 255, 255, 0.34);
}

@media (min-width: 761px) {
	.hero-brand {
		padding-left: 37px;
	}

	.hero-brand::before {
		position: absolute;
		top: 0.72em;
		left: 0;
		width: 26px;
		height: 2px;
		background: var(--cma-gold);
		content: "";
	}

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
  }

  .eyebrow::before {
    width: 26px;
    height: 2px;
    flex: 0 0 26px;
    background: var(--cma-gold);
    content: "";
  }
}

@media (max-width: 960px) {
  .featured-idea .featured-grid,
  .author-grid-no-photo {
    width: min(calc(100% - 40px), var(--cma-width));
  }
}

@media (max-width: 760px) {
	.hero-brand {
		margin-bottom: 20px;
	}

	.hero-brand-name {
		font-size: 0.88rem;
		line-height: 1.3;
		letter-spacing: 0.065em;
	}

	.hero-brand-context {
		margin-top: 5px;
		font-size: 0.68rem;
		line-height: 1.35;
		letter-spacing: 0.075em;
	}

  .hero::before {
    width: 100%;
    opacity: 0.16;
  }

  .hero h1 {
    max-width: 100%;
    letter-spacing: -0.045em;
  }

  .role-card,
  .pillar-card,
  .content-card,
  .featured-idea .featured-grid,
  .author-grid-no-photo {
    border-radius: 16px;
  }

  .role-card:hover,
  .pillar-card:hover,
  .content-card:hover {
    transform: none;
  }

  .card-body {
    padding: 24px;
  }

  .featured-idea .featured-grid,
  .author-grid-no-photo {
    width: min(calc(100% - 28px), var(--cma-width));
    padding: 26px;
  }

  .page-hero,
  .article-header {
    padding-block: 48px;
  }

  .entry-content {
    font-size: 1rem;
  }

  .site-footer {
    padding-top: 48px;
  }
}

@media (forced-colors: active) {
  .role-card::before,
  .pillar-card::before,
  .content-card::before,
  .site-footer::before {
    background: CanvasText;
  }
}
