/* iSHARE — site styles. Mobile first; one breakpoint for the nav (1024px).
   Design language from the iSHARE brand: rounded inset panels, coral→raspberry gradients,
   plum headings with a yellow accent word, yellow pill buttons and the molecule pattern. */

:root {
  --plum-900: #2D052D;
  --plum-800: #451140;
  --plum-700: #6A1858;
  --plum-600: #8E3459;
  --plum-500: #AC3A59;
  --mauve: #61365E;
  --coral: #EF7B66;
  --yellow: #F0BE3F;
  --yellow-dark: #E0A91F;
  --green: #8CC63F;

  --ink: #121212;
  --ink-soft: #363636;
  --muted: #707070;
  --line: #ecdfe5;
  --bg: #ffffff;
  --tint: #fbf3f6;

  --grad-warm: linear-gradient(135deg, var(--coral) 0%, var(--plum-500) 100%);
  --grad-plum: linear-gradient(135deg, var(--plum-600) 0%, var(--plum-700) 100%);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;

  --radius-lg: clamp(20px, 3vw, 32px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(45, 5, 45, .05), 0 12px 32px rgba(142, 52, 89, .08);
  --shadow-hover: 0 4px 10px rgba(45, 5, 45, .08), 0 20px 44px rgba(142, 52, 89, .16);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(40px, 6vw, 80px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-600); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-700); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--plum-700); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); font-weight: 700; letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.6rem); font-weight: 600; }
h3, .h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); font-weight: 700; }
h4, .h4, h5 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, p, li, td, th, summary, .card-title { overflow-wrap: break-word; }
@media (max-width: 640px) { h1, h2, h3, .prose, .post-lead, .card-title { hyphens: auto; -webkit-hyphens: auto; } }
.accent { color: var(--yellow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--plum-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- Buttons: yellow pills, like the brand */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .65em 1.5em;
  font: 600 .975rem/1.2 var(--font-head);
  color: var(--plum-900); background: var(--yellow);
  border: 2px solid var(--yellow); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--plum-900); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(240, 190, 63, .35); }
.btn-outline { background: transparent; color: var(--plum-600); border-color: var(--plum-600); }
.btn-outline:hover { background: var(--plum-600); border-color: var(--plum-600); color: #fff; box-shadow: none; }
.btn-sm { min-height: 40px; padding: .45em 1.15em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 0; }
.btn-row.center { justify-content: center; margin-top: 2.5rem; }
.link-arrow { font: 700 .95rem var(--font-head); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.tag { display: inline-block; margin: 0 0 1rem; padding: .3em .9em; border-radius: 999px; background: var(--yellow); color: var(--plum-900); font: 700 .75rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(45, 5, 45, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 56px; width: auto; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  background: #fff; border: 1.5px solid var(--yellow); border-radius: 50%; cursor: pointer; color: var(--plum-700);
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
[aria-expanded="true"] > .menu-toggle-bars { background: transparent; }
[aria-expanded="true"] > .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] > .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-list, .sub-list, .sub-grid { list-style: none; margin: 0; padding: 0; }
.nav-link { font: 500 1rem var(--font-head); color: var(--ink); text-decoration: none; }
.sub a { color: var(--ink); text-decoration: none; }
.sub a:hover, .sub a[aria-current] { color: var(--plum-600); }
.sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--plum-700); cursor: pointer; }
.sub-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--yellow); border-radius: 50%; font: 700 .8rem var(--font-head); color: var(--plum-700); text-decoration: none; letter-spacing: .04em; }
.lang:hover { background: var(--yellow); color: var(--plum-900); }

/* Mobile nav: full-screen panel with the molecule pattern */
@media (max-width: 1023.98px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff url("/assets/pattern.png") no-repeat right -40px bottom -20px / 300px auto;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--gutter) 160px;
    display: flex; flex-direction: column; gap: 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  body.nav-open { overflow: hidden; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
  .nav-link { font-size: 1.2rem; font-weight: 600; color: var(--plum-700); flex: 1; padding: 14px 0; }
  .sub { display: none; padding: 0 0 16px; }
  .nav-item.is-open > .sub { display: block; }
  .sub-list > li > a { display: block; padding: 10px 0 10px 14px; font-size: 1.05rem; border-left: 2px solid var(--coral); }
  .sub-group > a { font-weight: 700; }
  .sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px 0 8px 14px; }
  .sub-grid a { display: block; padding: 8px 0; font-size: .95rem; color: var(--muted); }
  .nav-actions { display: flex; align-items: center; gap: 16px; }
  .nav-actions .btn { flex: 1; min-height: 52px; font-size: 1.05rem; }
}

/* Desktop nav: inline with dropdown panels */
@media (min-width: 1024px) {
  .site-header { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
  .menu-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: space-between; margin-left: 32px; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-item { position: relative; }
  .nav-row { display: flex; align-items: center; }
  .nav-link { padding: 10px 12px; border-radius: var(--radius-sm); font-size: .95rem; }
  .has-sub .nav-link { padding-right: 2px; }
  .nav-link:hover, .nav-link.is-current { color: var(--plum-600); }
  .nav-link.is-current { font-weight: 700; }
  .sub-toggle { width: 28px; height: 40px; }
  .sub-toggle svg { width: 14px; height: 14px; }
  .sub {
    position: absolute; top: 100%; left: 0; min-width: 260px; padding-top: 12px;
    visibility: hidden; opacity: 0; transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility 0s .15s;
  }
  .nav-item:hover > .sub, .nav-item:focus-within > .sub, .nav-item.is-open > .sub {
    visibility: visible; opacity: 1; transform: none; transition: opacity .15s, transform .15s;
  }
  .sub-list {
    position: relative; overflow: hidden;
    background: var(--grad-plum); border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 14px;
  }
  .sub-list::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 170px; height: 134px; background: url("/assets/pattern.png") no-repeat center / contain; filter: brightness(0) invert(1); opacity: .14; pointer-events: none; }
  .sub a { color: #fff; }
  .sub-list > li > a { position: relative; display: block; padding: 10px 14px; border-radius: var(--radius-sm); font: 500 .95rem var(--font-head); }
  .sub-list > li > a:hover, .sub a[aria-current] { background: rgba(255, 255, 255, .12); color: var(--yellow); }
  .is-mega .sub { min-width: 400px; }
  .sub-group { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 6px; padding-top: 6px; }
  .sub-group > a { font-weight: 700 !important; }
  .sub-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0 4px 4px; }
  .sub-grid a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); font-size: .875rem; color: rgba(255, 255, 255, .8); }
  .sub-grid a:hover { background: rgba(255, 255, 255, .12); color: var(--yellow); }
  .nav-actions { display: flex; align-items: center; gap: 10px; }
}

/* ---------- Hero */
.hero { padding: clamp(16px, 3vw, 32px) 0 0; }
.hero-grid { display: grid; gap: 20px; }
.hero-text { position: relative; }
.hero .lead { font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); max-width: 64ch; }
.hero .lead p:last-child { margin-bottom: 0; }
.hero .lead + .lead { margin-top: 1em; }
.hero .eyebrow { font: 600 .9rem var(--font-head); font-style: italic; color: var(--plum-600); margin-bottom: .75rem; }
.rotator { color: var(--yellow); display: inline-block; transition: opacity .3s, transform .3s; }
.rotator.is-out { opacity: 0; transform: translateY(.25em); }

/* Hero with a photo: coral gradient card next to a rounded photo card */
.hero-card .hero-text {
  overflow: hidden; color: #fff; background: var(--grad-warm);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px);
}
.hero-card .hero-text::after { content: ""; position: absolute; right: -50px; bottom: -40px; width: 260px; height: 205px; background: url("/assets/pattern.png") no-repeat center / contain; filter: brightness(0) invert(1); opacity: .12; pointer-events: none; }
.hero-card h1 { color: #fff; }
.hero-card .lead, .hero-card .lead b, .hero-card .lead strong { color: #fff; }
.hero-card .lead a { color: var(--yellow); }
.hero-card .eyebrow { color: var(--yellow); }
.hero-photo .figure { height: 100%; margin: 0; }
.hero-photo img { width: 100%; height: 100%; min-height: 240px; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 900px) {
  .hero-card .hero-grid { grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: stretch; }
  .hero-card .hero-text { display: flex; flex-direction: column; justify-content: center; }
  .hero-home .hero-grid { grid-template-columns: 1.6fr 1fr; }
}

/* Hero without photo: big plum title with a yellow accent and the pattern */
.hero-plain .hero-text { padding: clamp(32px, 6vw, 72px) 0 clamp(8px, 2vw, 24px); }
.hero-plain h1 { max-width: 18ch; }
.hero-plain .lead { color: var(--ink-soft); }
.hero-pattern { position: absolute; right: 0; top: 50%; width: clamp(150px, 26vw, 330px); height: auto; transform: translateY(-50%); opacity: .55; pointer-events: none; z-index: -1; }
@media (max-width: 700px) { .hero-pattern { top: 8px; transform: none; width: 140px; opacity: .3; } }

/* ---------- Sections and panels */
.section { padding: var(--section-y) 0 0; }
main > .section:last-child { padding-bottom: var(--section-y); }
.panel {
  position: relative; overflow: hidden;
  background: var(--tint); border: 1px solid #f3e3ea; border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px); box-shadow: 0 10px 30px rgba(142, 52, 89, .06);
}
.panel > .stack > .h2:first-child, .panel > .stack > .anchor + .h2 { text-align: center; margin-left: auto; margin-right: auto; }
.panel > .stack > .h2:first-child + .subtitle { text-align: center; margin-left: auto; margin-right: auto; }
.panel-cta { color: #fff; text-align: center; background: var(--grad-plum); border: 0; }
.panel-cta .stack { max-width: 780px; margin: 0 auto; position: relative; }
.panel-cta .stack > * { margin-left: auto; margin-right: auto; }
.panel-cta h2, .panel-cta h3, .panel-cta h4 { color: #fff; }
.panel-cta .prose, .panel-cta .prose b, .panel-cta .prose strong { color: rgba(255, 255, 255, .9); }
.panel-cta .prose a { color: var(--yellow); }
.panel-cta .btn-row { justify-content: center; }
.panel-cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .6); }
.panel-cta .btn-outline:hover { background: #fff; color: var(--plum-700); }
.panel-pattern { position: absolute; right: -40px; bottom: -40px; width: 300px; height: auto; filter: brightness(0) invert(1); opacity: .12; pointer-events: none; }

.stack > * + * { margin-top: 1.25rem; }
.stack > .h2 + *, .stack > .h3 + * { margin-top: .5rem; }
.stack > .prose { max-width: 75ch; }
.stack > .h2 { max-width: 30ch; }
.stack > .h2:not(:first-child) { margin-top: 3rem; }
.stack > .h3:not(:first-child) { margin-top: 2.25rem; }
.stack > .cards, .stack > .faq, .stack > .news-grid, .stack > .video-grid, .stack > .logos, .stack > .boxes, .stack > .tabs, .stack > .steps { margin-top: 2rem; }
.subtitle { font-style: italic; color: var(--ink-soft); }
.subtitle p { margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

.split { display: grid; gap: 36px; align-items: center; }
.split-media .figure { margin: 0; }
.split-media img { width: 100%; border-radius: var(--radius); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-reverse .split-media { order: -1; }
}
.split-form { align-items: start; }
.split-form .cards { grid-template-columns: 1fr; gap: 12px; }
.split-form .form { max-width: none; box-shadow: var(--shadow); }
.lead-text { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Prose */
.prose { color: var(--ink-soft); }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4, .prose h5 { margin-top: 1.6em; }
.prose h5 { color: var(--plum-600); font-size: 1rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--coral); }
.prose b, .prose strong { color: var(--ink); }
.prose a { overflow-wrap: anywhere; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.5em; border-left: 4px solid var(--yellow); background: var(--tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose img.on-plum { width: auto; max-width: min(100%, 320px); max-height: 200px; padding: 24px 28px; object-fit: contain; background: var(--grad-plum); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--plum-700); font-family: var(--font-head); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }
.figure { margin: 0; }
.anchor { display: block; height: 0; margin: 0 !important; }
.figure figcaption { font-size: .875rem; color: var(--muted); margin-top: .5em; }
.stack > .figure img { border-radius: var(--radius); max-height: 640px; width: auto; }
.figure.is-icon img, .stack > .figure.is-icon img { width: 96px; height: 96px; padding: 18px; object-fit: contain; border-radius: 50%; background: var(--yellow); }
.figure.is-onplum { background: var(--grad-plum); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); max-width: 560px; }
.figure.is-onplum img, .stack > .figure.is-onplum img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 0; }
.split-media .figure.is-onplum { max-width: none; }

/* ---------- Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card.is-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card-title { font-size: 1.15rem; margin: 0 0 .5em; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-body p { margin: 0 0 1em; font-size: .975rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.card-cta { margin-top: auto; font: 700 .9rem var(--font-head); color: var(--plum-600); }
.card-date { font: 600 .8rem var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5em !important; }

/* warm gradient cards (Knowledge Corner style): white text, white icon, yellow arrow */
.cards-warm .card { color: #fff; background: var(--grad-warm); }
.cards-warm .card:nth-child(3n+2) { background: linear-gradient(135deg, #E0645E 0%, var(--plum-600) 100%); }
.cards-warm .card:nth-child(3n+3) { background: linear-gradient(135deg, var(--plum-500) 0%, var(--mauve) 100%); }
.cards-warm .card-title { color: #fff; }
.cards-warm .card-body p { color: rgba(255, 255, 255, .92); }
.cards-warm .card-body { padding-bottom: 76px; }
.card-icon { padding: 24px 24px 0; }
.card-icon img { width: 56px; height: 56px; object-fit: contain; }
.cards-warm .card-body { padding-top: 16px; }
.cards-warm .card:not(:has(.card-icon)) .card-body { padding-top: 28px; }
.card-arrow { position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--plum-900); font: 700 1.1rem var(--font-head); transition: transform .2s; }
.card.is-link:hover .card-arrow { transform: translateX(3px); }

/* outline cards with a coral accent line (e.g. "What the Framework guarantees") */
.cards-outline .card { background: #fff; border: 1px solid var(--line); }
.cards-outline .card-body { border-left: 3px solid var(--coral); margin: 20px 0 20px 20px; padding: 4px 20px 4px 20px; }
.cards-outline .card-title { font-size: 1.05rem; color: var(--plum-600); }
.cards-outline .card-body p { color: var(--ink-soft); -webkit-line-clamp: 8; }
.cards-outline.cards-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cards-outline.cards-compact .card-title { margin: 0; }
.panel .cards-outline .card { border-color: transparent; box-shadow: var(--shadow); }

/* photo cards (Impact in Action style): full photo, dark fade, yellow title */
.cards-photo { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cards-photo .card { min-height: 380px; justify-content: flex-end; color: #fff; background: var(--plum-900); }
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cards-photo .card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(45, 5, 45, .15) 0%, rgba(45, 5, 45, .55) 45%, rgba(45, 5, 45, .92) 100%); }
.cards-photo .card-body { z-index: 1; flex: none; padding: 28px; }
.cards-photo .card-title { color: var(--yellow); font-size: 1.35rem; }
.cards-photo .card-body p { color: rgba(255, 255, 255, .9); -webkit-line-clamp: 4; }
.cards-photo .card-cta { align-self: flex-start; padding: .5em 1.2em; border-radius: 999px; background: var(--yellow); color: var(--plum-900); font-size: .875rem; }
.cards-photo .card.is-link:hover .card-bg { transform: scale(1.04); }

/* media cards (news) */
.cards-media .card { background: #fff; box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card.is-link:hover .card-media img { transform: scale(1.04); }
.cards-media .card-title { color: var(--plum-700); }
.cards-media .card-body p { color: var(--ink-soft); }
.cards-media .card:not(.is-link) { box-shadow: none; border: 1px solid var(--line); }
@media (min-width: 900px) {
  .news-grid.has-featured { grid-template-columns: repeat(3, 1fr); }
  .news-grid.has-featured > li:first-child { grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 520px; color: #fff; }
  .news-grid.has-featured > li:first-child .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .news-grid.has-featured > li:first-child::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, rgba(45, 5, 45, .9)); }
  .news-grid.has-featured > li:first-child .card-body { z-index: 1; flex: none; padding: 36px; }
  .news-grid.has-featured > li:first-child .card-title { color: #fff; font-size: 2rem; }
  .news-grid.has-featured > li:first-child .card-date { color: var(--yellow); }
  .news-grid.has-featured > li:first-child .card-body p { color: rgba(255, 255, 255, .9); }
}

/* ---------- Boxes (Challenge → Solution) */
.boxes { display: grid; gap: 16px; align-items: stretch; }
.box { border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); border: 1.5px solid var(--coral); background: #fff; }
.box-title { font-size: 1.1rem; color: var(--coral); }
.box-filled { background: var(--grad-warm); border-color: transparent; color: #fff; }
.box-filled .box-title, .box-filled .prose, .box-filled .prose b, .box-filled .prose strong { color: #fff; }
.box-filled .prose a { color: var(--yellow); }
.box-arrow { justify-self: center; color: var(--yellow-dark); font: 700 1.6rem var(--font-head); transform: rotate(90deg); }
@media (min-width: 900px) {
  .boxes { grid-template-columns: 1fr auto 1fr; }
  .boxes:has(.box:nth-of-type(3)) { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .box-arrow { align-self: center; transform: none; }
}

/* ---------- Steps (numbered benefits) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--plum-900); font: 700 1rem var(--font-head); }
.steps .prose { padding-top: 9px; }

/* ---------- Checklists and columns */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.checklist li::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checklist .prose { padding-top: 3px; }
.cols { display: grid; gap: 32px; }
.col > .h2, .col > .h3, .col > .h4 { font-size: 1.15rem; margin-bottom: 1rem; }
@media (min-width: 800px) { .cols { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
.col:first-child .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }

/* ---------- Tabs (Membership) */
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px; margin: 0 auto 20px; width: fit-content; max-width: 100%; background: #fff; border: 1.5px solid #f2d3df; border-radius: 999px; box-shadow: var(--shadow); }
.tab-list button { min-height: 42px; padding: .45em 1.2em; border: 0; border-radius: 999px; background: var(--tint); color: var(--ink); font: 600 .9rem var(--font-head); cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--plum-700); color: #fff; }
.tab-panel { color: #fff; background: var(--grad-plum); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); }
.tab-panel + .tab-panel { margin-top: 20px; }
.js .tab-panel[data-hidden] { display: none; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-head { display: flex; align-items: center; gap: 20px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-icon { width: 88px; height: 88px; padding: 16px; border-radius: 50%; background: var(--yellow); object-fit: contain; }
.tab-title { margin: 0; color: var(--yellow); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.tab-panel h2, .tab-panel h3, .tab-panel h4 { color: var(--yellow); }
.tab-panel .prose, .tab-panel .prose b, .tab-panel .prose strong { color: #fff; }
.tab-panel .prose a { color: var(--yellow); }
.tab-panel .cards-outline .card, .tab-panel .cards-warm .card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); box-shadow: none; }
.tab-panel .card-title { color: var(--yellow) !important; }
.tab-panel .card-body p { color: #fff !important; -webkit-line-clamp: unset; display: block; }
.tab-panel .cards-outline .card-body { border-left-color: var(--green); }
.tab-panel .steps li::before { background: var(--green); color: #fff; }

/* ---------- Logos */
.logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.logos li { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; aspect-ratio: 3 / 2; transition: box-shadow .2s, transform .2s; }
.logos li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.logos img { max-height: 64px; width: auto; object-fit: contain; }
.logos li.is-dark { background: var(--grad-plum); border-color: transparent; }

/* ---------- FAQ: pill rows */
.faq { max-width: 900px; display: grid; gap: 12px; }
.faq details { border: 1.5px solid var(--plum-600); border-radius: 26px; background: #fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; font: 600 1rem/1.35 var(--font-head); color: var(--plum-700);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; flex: none; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF7B66' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::before { transform: rotate(45deg); }
.faq-a { padding: 0 24px 20px 58px; }

/* ---------- Video */
lite-yt { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--plum-900) center / cover no-repeat; cursor: pointer; }
lite-yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(45, 5, 45, .55)); }
lite-yt button { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border: 0; border-radius: 50%; background: var(--yellow); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
lite-yt button::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--plum-900); }
lite-yt:hover button { transform: scale(1.06); }
lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video { max-width: 900px; }
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.video-grid p { margin: .75em 0 0; font: 600 1rem var(--font-head); color: var(--plum-700); }

/* ---------- Forms */
.form { display: grid; gap: 8px; max-width: 560px; padding: clamp(20px, 4vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form label { font: 600 .9rem var(--font-head); color: var(--plum-700); margin-top: 8px; }
.form input:not([type=checkbox]), .form textarea, .form select {
  width: 100%; min-height: 48px; padding: 12px 18px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid #e2cbd6; border-radius: 24px; transition: border-color .2s, box-shadow .2s;
}
.form textarea { border-radius: var(--radius); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--plum-600); box-shadow: 0 0 0 4px rgba(142, 52, 89, .15); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font: 400 .95rem var(--font-body); color: var(--ink-soft); }
.form .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plum-600); flex: none; }
.form .btn { margin-top: 16px; justify-self: start; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 8px 0 0; padding: 12px 14px; background: #fff6e0; border-radius: var(--radius-sm); font-size: .95rem; }

/* ---------- Post */
.post-head { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 80px) 0 24px; isolation: isolate; }
.post-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.post-head .hero-pattern { right: 4%; }
.back { display: inline-block; font: 700 .9rem var(--font-head); text-decoration: none; margin-bottom: 1.25rem; }
.post-lead { font-size: 1.25rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.post-lead p:last-child { margin: 0; }
.post-date { color: var(--muted); font: 600 .95rem var(--font-head); margin: 0; }
.post-figure { max-width: calc(1000px + 2 * var(--gutter)); margin-top: 24px; }
.post-figure img { width: 100%; border-radius: var(--radius-lg); max-height: 560px; object-fit: cover; }
.post-body { padding-top: 40px; padding-bottom: var(--section-y); font-size: 1.125rem; }
.post-body > * + * { margin-top: 1.25rem; }
.post-body .h2 { margin-top: 2.5rem; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.post-body .figure, .post-body figure { margin: 2rem 0; }
.post-body figure img { width: 100%; border-radius: var(--radius); }

/* ---------- Footer: white with the coral line and coloured pills */
.site-footer { margin-top: var(--section-y); border-top: 3px solid var(--coral); padding: clamp(48px, 6vw, 72px) 0 28px; font-size: .975rem; color: var(--ink-soft); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--plum-600); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer-logo { height: 80px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 38ch; }
.footer-h { font-size: 1rem; font-weight: 700; color: var(--plum-700); margin: 0 0 .6em; }
.footer-h:not(:first-child) { margin-top: 1.5em; }
.site-footer address { font-style: normal; }
.footer-pills, .social, .footer-bottom ul { list-style: none; margin: 0; padding: 0; }
.footer-pills { display: flex; flex-wrap: wrap; gap: 8px; max-width: 280px; }
.pill { display: inline-block; padding: .4em 1.1em; border-radius: 999px; font: 600 .875rem var(--font-head); transition: transform .2s, filter .2s; }
.pill:hover { transform: translateY(-1px); filter: brightness(.95); }
.site-footer .pill-0 { background: var(--yellow); color: var(--plum-900); }
.site-footer .pill-1 { background: var(--green); color: var(--plum-900); }
.site-footer .pill-2 { background: var(--coral); color: #fff; }
.site-footer .pill-3 { background: var(--plum-600); color: #fff; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.site-footer .social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--plum-900); color: #fff; transition: background .2s; }
.site-footer .social a:hover { background: var(--plum-600); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-iso img { width: 150px; height: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .875rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr auto; gap: 56px; } }

/* ---------- Misc */
.stat strong { display: block; font: 800 2.5rem var(--font-head); color: var(--plum-600); }
.meta { color: var(--muted); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* balanced card grids: 4 items -> 2x2, 3/6/9 items -> 3 columns */
@media (min-width: 700px) {
  .cards:has(> li:nth-child(4):last-child), .cards:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards:has(> li:nth-child(3):last-child), .cards:has(> li:nth-child(6):last-child), .cards:has(> li:nth-child(9):last-child) { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Timeline (history) on a plum panel */
.panel-dark { background: var(--grad-plum); border: 0; color: #fff; }
.panel-dark h2, .panel-dark h3 { color: var(--yellow); }
.panel-dark .prose, .panel-dark .prose b, .panel-dark .prose strong { color: rgba(255, 255, 255, .92); }
.panel-dark .prose a { color: var(--yellow); }
.panel-dark > .stack > .h2:first-child + .prose { margin-left: auto; margin-right: auto; text-align: center; }
.timeline { list-style: none; margin: 0; padding: 4px 4px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--yellow) transparent; }
.timeline li { scroll-snap-align: start; position: relative; padding: 22px 22px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border-top: 3px solid var(--yellow); }
.tl-year { margin: 0 0 .4rem; font: 800 1.6rem var(--font-head); color: #fff; }
.tl-title { font-size: 1.05rem; margin-bottom: .6rem; }
.timeline .prose { font-size: .95rem; }
@media (min-width: 1100px) { .timeline { grid-auto-columns: calc((100% - 40px) / 3); } }

/* ---------- People (boards) */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin: 0 0 14px; background: var(--tint); }
.person-name { font-size: 1.1rem; margin: 0 0 .3rem; }
.person-role { margin: 0; font-size: .925rem; color: var(--ink-soft); }

@media (max-width: 600px) {
  .panel, .tab-panel { padding: 28px 16px; }
  .panel-cta { padding: 36px 20px; }
}
