/* Xponent21 portfolio: custom case-study sections.
   Opt-in per page: only applies where an ACF content field contains .x21-cs markup.
   Markup is written to survive wpautop and the visual editor (no inline SVG,
   no loose text beside block elements). */

/* ---------- Neutralize the template band that wraps an opted-in field ---------- */
.x-div:has(> .x-container .x21-cs) { padding: 0 !important; background: none !important; }
.x-div:has(> .x-container .x21-cs) .x-text-headline { display: none !important; }
.x-container:has(.x21-cs),
.x-container:has(.x21-cs) .x-div:has(.x21-cs),
.x-container:has(.x21-cs) .x-content:has(.x21-cs) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
}

/* The theme's list reveal animation can leave items at opacity 0; keep custom sections static. */
.x21-cs li { opacity: 1 !important; transform: none !important; }

/* ---------- Base ---------- */
.x21-cs {
  --navy: #09073c;
  --ink: #3d3b5c;
  --purple: #6158ce;
  --blue: #40bcdd;
  --green: #9ece61;
  --line: #e2e1ee;
  padding: clamp(56px, 8vw, 96px) 0;
  font-family: "Mulish", "Avenir", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  text-align: left;
}
.x21-cs *, .x21-cs *::before, .x21-cs *::after { box-sizing: border-box; }
.x21-cs.x21-cs :where(p, ul, ol, li, h2, h3) { margin: 0; padding: 0; list-style: none; font-family: inherit; line-height: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.x21-cs.x21-cs :where(li)::before, .x21-cs.x21-cs :where(li)::marker { content: none; }
.x21-cs :is(p, div):empty:not([class]) { display: none; }
.x21-cs img { display: block; max-width: 100%; height: auto; }
.x21-cs--light { background: #f6f6fa; }
.x21-cs--dark { background: var(--navy); color: #fff; }

.x21-cs__wrap { width: min(100% - 32px, 1140px); margin: 0 auto; }
.x21-cs .x21-cs__eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); }
.x21-cs--dark .x21-cs__eyebrow { color: var(--green); }
.x21-cs.x21-cs .x21-cs__h2 { text-transform: none; margin-top: .3em; font-size: clamp(30px, 4vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; color: inherit; }
.x21-cs .x21-cs__lede { margin-top: .7em; max-width: 46em; font-size: 18px; color: var(--ink); }
.x21-cs--dark .x21-cs__lede { color: #c9c8e0; }
.x21-cs.x21-cs .x21-cs__h3 { text-transform: none; margin-top: 0; font-size: 21px; font-weight: 800; line-height: 1.25; color: inherit; }

/* Section header: same two-tone treatment as the template's other section headings
   ("Key <span>Results</span>"). Bold first word in one brand color, rest regular in another. */
.x21-cs__head { text-align: center; }
.x21-cs.x21-cs .x21-cs__title { margin: 0; font: 700 36px/1.2 "Mulish", sans-serif; text-transform: none; letter-spacing: normal; color: var(--blue); }
.x21-cs.x21-cs .x21-cs__title span { font-weight: 400; color: var(--purple); }
.x21-cs--dark.x21-cs .x21-cs__title { color: #fff; }
.x21-cs--dark.x21-cs .x21-cs__title span { color: var(--green); }
.x21-cs .x21-cs__sub { max-width: 40em; margin: 14px auto 0; font: 800 22px/1.3 "Mulish", sans-serif; }
.x21-cs .x21-cs__head .x21-cs__lede { margin: 8px auto 0; }

/* ---------- Split: media card + numbered notes ---------- */
.x21-cs-split { display: grid; gap: 40px; margin-top: 40px; align-items: center; }
@media (min-width: 900px) { .x21-cs-split { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.x21-cs-media { position: relative; padding: clamp(24px, 5vw, 56px); border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 20px 50px rgba(9, 7, 60, .08); }
.x21-cs-pinned { position: relative; }
.x21-cs-pin { position: absolute; display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 5px rgba(255, 255, 255, .9); }
.x21-cs-before { position: absolute; top: 16px; right: 16px; width: 116px; padding: 8px 8px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a88a3; }
.x21-cs-before img { width: 100%; margin-bottom: 4px; filter: grayscale(.3); opacity: .85; }
@media (max-width: 600px) { .x21-cs-before { position: static; width: 120px; margin-top: 20px; } }
.x21-cs .x21-cs-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.x21-cs-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; }
.x21-cs-chip i { width: 22px; height: 22px; border-radius: 50%; }

.x21-cs .x21-cs-notes { display: grid; gap: 22px; }
.x21-cs .x21-cs-notes > li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; }
.x21-cs-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; }
.x21-cs .x21-cs-notes .x21-cs-text { margin-top: .3em; font-size: 16px; color: var(--ink); }
.x21-cs .x21-cs-cta { margin-top: 30px; }
/* Matches the site's anchor buttons: pill, regular-weight Avenir, white circle with arrow.
   Internal links use a right arrow; the diagonal arrow is reserved for external links. */
.x21-cs.x21-cs .x21-cs-cta a {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 55px;
  padding: 0 5px 0 32px;
  border-radius: 36px;
  background: var(--purple);
  color: #fff;
  font: 400 16.2px/1 "avenir", sans-serif;
  text-decoration: none;
  transition: background .2s ease;
}
.x21-cs.x21-cs .x21-cs-cta a:hover,
.x21-cs.x21-cs .x21-cs-cta a:focus-visible { background: var(--navy); }
.x21-cs-cta__icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  transition: color .2s ease;
}
.x21-cs-cta__icon::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M505 273c9.4-9.4 9.4-24.6 0-33.9L337 71c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l127 127-406.1 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l406.1 0-127 127c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0L505 273z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M505 273c9.4-9.4 9.4-24.6 0-33.9L337 71c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l127 127-406.1 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l406.1 0-127 127c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0L505 273z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.x21-cs .x21-cs-cta a:hover .x21-cs-cta__icon,
.x21-cs .x21-cs-cta a:focus-visible .x21-cs-cta__icon { color: var(--navy); }

/* ---------- Feature cards ---------- */
.x21-cs-cards { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .x21-cs-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .x21-cs-cards--4 { grid-template-columns: repeat(4, 1fr); } .x21-cs-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.x21-cs-card { padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.x21-cs--dark .x21-cs-card { background: #19154f; border-color: transparent; }
.x21-cs-card img { width: 40px; height: 40px; }
.x21-cs.x21-cs .x21-cs-card .x21-cs__h3 { margin-top: 16px; font-size: 18px; }
.x21-cs .x21-cs-card .x21-cs-text { margin-top: .5em; font-size: 15px; color: var(--ink); }
.x21-cs--dark .x21-cs-card .x21-cs-text { color: #c9c8e0; }

/* ---------- Spotlight panel ---------- */
.x21-cs-spot { margin-top: 64px; padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: #fff; color: var(--navy); }
.x21-cs-spot__head { display: grid; gap: 12px; }
@media (min-width: 900px) { .x21-cs-spot__head { grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; } }
.x21-cs.x21-cs .x21-cs-spot__head .x21-cs__h2 { font-size: clamp(24px, 3vw, 32px); }
.x21-cs .x21-cs-spot__head > .x21-cs-text { color: var(--ink); }
.x21-cs .x21-cs-spot .x21-cs__eyebrow { color: var(--purple); }
.x21-cs-flow { display: grid; gap: 20px; margin-top: 36px; align-items: center; }
@media (min-width: 900px) { .x21-cs-flow { grid-template-columns: .8fr auto 1.4fr; } }
.x21-cs-step { margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.x21-cs-arrow { justify-self: center; font-size: 34px; font-weight: 800; line-height: 1; color: var(--purple); transform: rotate(90deg); }
@media (min-width: 900px) { .x21-cs-arrow { transform: none; } }
.x21-cs .x21-cs-callouts { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 760px) { .x21-cs .x21-cs-callouts { grid-template-columns: repeat(3, 1fr); } }
.x21-cs .x21-cs-callouts > li { padding-left: 14px; border-left: 3px solid var(--purple); font-size: 15px; color: var(--ink); }
.x21-cs-callouts strong { color: var(--navy); }

/* ---------- Mini UI recreations ---------- */
.x21-ui { --ui-a: #3a8fb0; --ui-b: #f39447; --ui-c: #2a9a7b; border: 1px solid #dfe3e8; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(9, 7, 60, .12); overflow: hidden; font-size: 13px; line-height: 1.4; color: #333; }
.x21-ui-bar { display: flex; gap: 6px; padding: 9px 12px; background: #eef1f4; }
.x21-ui-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9cfd6; }
.x21-ui-calc { padding: 18px; background: var(--ui-a); color: #fff; }
.x21-ui-title { font-size: 16px; font-weight: 800; }
.x21-ui-label { margin-top: 10px; font-size: 11px; opacity: .85; }
.x21-ui-input { margin-top: 4px; padding: 7px 9px; border-radius: 4px; background: #fff; color: #333; }
.x21-ui-sizes { display: flex; gap: 4px; margin-top: 4px; }
.x21-ui-sizes em { flex: 1; padding: 5px 0; border-radius: 4px; background: rgba(255, 255, 255, .25); font-style: normal; text-align: center; }
.x21-ui-sizes em.on { background: #fff; color: var(--ui-a); font-weight: 800; }
.x21-ui-result { margin: 14px 18px 18px; padding: 12px; border: 1px solid #f7cfa9; border-radius: 8px; background: #fff4ea; color: #7a3d0b; }
.x21-ui-result strong { font-size: 22px; color: var(--ui-b); }
.x21-ui-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid #eef1f4; }
.x21-ui-filters span { padding: 6px 10px; border: 1px solid #dfe3e8; border-radius: 4px; }
.x21-ui-filters .on { border-color: var(--ui-b); background: var(--ui-b); color: #fff; font-weight: 800; }
.x21-ui-listings { display: grid; gap: 10px; padding: 12px; }
@media (min-width: 520px) { .x21-ui-listings { grid-template-columns: 1fr 1fr 1.2fr; } }
.x21-ui-card { border: 1px solid #eef1f4; border-radius: 8px; overflow: hidden; }
.x21-ui-photo { position: relative; height: 74px; background: linear-gradient(160deg, #cfe6f1, #9cc7da 60%, #7fb08a 60%, #6c9c76); }
.x21-ui-photo--alt { filter: hue-rotate(-20deg); }
.x21-ui-photo::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 46px; height: 30px; margin-left: -23px; background: #f4f1ea; box-shadow: inset 0 -10px 0 #d8d2c4; clip-path: polygon(0 35%, 50% 0, 100% 35%, 100% 100%, 0 100%); }
.x21-ui-info { padding: 8px 10px; }
.x21-ui-info strong { display: block; font-size: 15px; color: var(--navy); }
.x21-ui-info small { color: #667; }
.x21-ui-tag { display: inline-block; margin-top: 4px; padding: 2px 6px; border-radius: 3px; background: #e5f4ef; color: var(--ui-c); font-size: 11px; font-weight: 800; }
.x21-ui-map { position: relative; min-height: 150px; border-radius: 8px; background: #e8efe6 repeating-linear-gradient(35deg, transparent 0 22px, #dde6db 22px 24px); }
.x21-ui-map span { position: absolute; padding: 3px 7px; border-radius: 999px; background: #25313b; color: #fff; font-size: 11px; font-weight: 800; }

/* ---------- Client quote (replaces the template's green testimonial band) ---------- */
.x21-cs--quote { background: #fff; }
.x21-cs-quote { position: relative; max-width: 960px; margin: 32px auto 0; padding: 64px clamp(24px, 6vw, 72px) 36px; border-radius: 27px; background: #f4f2f2; text-align: center; }
.x21-cs-quote::before { content: "\201C"; position: absolute; top: -34px; left: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin-left: -34px; padding-top: 22px; border-radius: 50%; background: var(--green); color: #fff; font: 800 72px/1 "Mulish", sans-serif; box-shadow: 0 0 0 8px #fff; }
.x21-cs .x21-cs-quote__text { font-size: clamp(19px, 2.1vw, 24px); font-weight: 500; line-height: 1.5; color: var(--navy); }
.x21-cs .x21-cs-quote--long .x21-cs-quote__text { font-size: clamp(17px, 1.7vw, 20px); }
.x21-cs-quote__by { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 32px; padding-top: 28px; border-top: 1px solid #e2dfdf; text-align: left; }
.x21-cs .x21-cs-quote__logo { display: grid; place-items: center; height: 64px; padding: 8px 16px; border-radius: 14px; background: #fff; }
.x21-cs .x21-cs-quote__logo img { width: auto; max-width: 180px; max-height: 48px; }
.x21-cs-quote__name { font-size: 17px; font-weight: 800; color: var(--purple); }
.x21-cs-quote__role { font-size: 15px; color: var(--ink); }
/* Phones: logo stacks above the name, so center the whole attribution */
@media (max-width: 640px) { .x21-cs-quote__by { flex-direction: column; text-align: center; } }

/* ---------- Framed screenshot + two text columns ---------- */
.x21-cs-frame { max-width: 1000px; margin: 40px auto 0; }
.x21-cs-split .x21-cs-frame { margin: 0; }
/* WAO homepage pins sit in tight spots (left of the menu, beside the logo), so keep them small */
.x21-cs--wao .x21-cs-pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 12px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
@media (max-width: 600px) { .x21-cs--wao .x21-cs-pin { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: 11px; } }
.x21-cs-duo { display: grid; gap: 28px; max-width: 1000px; margin: 40px auto 0; }
@media (min-width: 800px) { .x21-cs-duo { grid-template-columns: 1fr 1fr; gap: 48px; } }
.x21-cs .x21-cs-duo .x21-cs-text { margin-top: .5em; font-size: 16px; color: var(--ink); }
.x21-cs .x21-cs-hook { margin-top: 14px; padding: 12px 16px; border-left: 4px solid #f5d10a; border-radius: 0 10px 10px 0; background: #fff; font-size: 18px; font-weight: 800; color: #26398e; }

/* ---------- Springline Advisory ---------- */
.x21-cs--springline { --sl-green: #0e7f62; --sl-mint: #5fe3a8; --sl-dark: #0b4d3d; }
.x21-sl-hero { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 900px) { .x21-sl-hero { grid-template-columns: 1.7fr 1fr; align-items: stretch; } }
/* Browser frame: a visible outline and toolbar so it reads as a browser on light backgrounds too */
.x21-sl-frame, .x21-cs-frame { overflow: hidden; border: 1px solid #d6dae2; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px rgba(9, 7, 60, .12); }
.x21-sl-frame__bar, .x21-cs-frame__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #d6dae2; background: #e9ecf1; }
.x21-sl-frame__bar i, .x21-cs-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #bcc3cc; }
.x21-sl-frame__shot img, .x21-cs-frame__shot img { width: 100%; }
.x21-sl-logo { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 16px; background: var(--sl-dark); color: #fff; }
.x21-sl-logo video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #fff; object-fit: contain; }
.x21-sl-label { margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.x21-sl-logo .x21-sl-label { color: var(--sl-mint); }
.x21-cs .x21-sl-logo .x21-cs-text { margin-top: 6px; font-size: 15px; color: #cfe9df; }
.x21-sl-bento { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 760px) { .x21-sl-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .x21-sl-bento { grid-template-columns: repeat(6, 1fr); } .x21-sl-span-2 { grid-column: span 2; } .x21-sl-span-3 { grid-column: span 3; } .x21-sl-span-4 { grid-column: span 4; } }
.x21-sl-tile { display: flex; flex-direction: column; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.x21-cs .x21-sl-tile .x21-cs-text { margin-top: 6px; font-size: 15px; color: var(--ink); }
.x21-sl-visual { display: grid; flex: 1; place-items: center; min-height: 170px; overflow: hidden; border-radius: 12px; background: #f1f8f5; }
.x21-sl-venn { position: relative; width: 260px; height: 160px; }
.x21-sl-venn span { position: absolute; top: 0; display: grid; place-items: center; width: 160px; height: 160px; border-radius: 50%; font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.x21-sl-venn .a { left: 0; padding-right: 50px; background: rgba(14, 127, 98, .85); color: #fff; }
.x21-sl-venn .b { right: 0; padding-left: 50px; background: rgba(95, 227, 168, .75); color: var(--sl-dark); mix-blend-mode: multiply; }
.x21-sl-venn em { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 8px; border-radius: 999px; background: #fff; color: var(--sl-dark); font-size: 11px; font-style: normal; font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.x21-sl-grow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; padding: 18px; }
.x21-sl-grow div { padding: 14px 8px; border-radius: 10px; background: #fff; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink); box-shadow: 0 4px 12px rgba(11, 77, 61, .08); }
.x21-sl-grow b { display: block; margin-bottom: 6px; font-size: 20px; color: var(--sl-green); }
.x21-sl-news { width: 100%; padding: 16px; font-size: 12px; }
.x21-sl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.x21-sl-chips span { padding: 4px 10px; border: 1px solid #b9dccf; border-radius: 999px; background: #fff; color: var(--sl-dark); }
.x21-sl-chips .on { border-color: var(--sl-green); background: var(--sl-green); color: #fff; font-weight: 800; }
.x21-sl-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.x21-sl-posts div { overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(11, 77, 61, .08); }
.x21-sl-posts i { display: block; height: 44px; background: linear-gradient(135deg, #0b4d3d, #5fe3a8); }
.x21-sl-posts div:nth-child(2) i { background: linear-gradient(135deg, #c4a477, #6e5434); }
.x21-sl-posts div:nth-child(3) i { background: linear-gradient(135deg, #3b3f46, #9aa0a8); }
.x21-sl-posts small { display: block; padding: 6px 8px 0; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sl-green); }
.x21-sl-posts span { display: block; padding: 2px 8px 8px; font-weight: 700; line-height: 1.3; color: #222; }
.x21-sl-visual.x21-sl-people { display: block; flex: none; height: 240px; min-height: 0; background: #fdf7a6; }
.x21-sl-people img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 96%; }
.x21-cs .x21-sl-close { margin-top: 40px; padding: 28px 32px; border-left: 4px solid var(--purple); border-radius: 0 16px 16px 0; background: #fff; font-size: 20px; font-weight: 700; line-height: 1.4; }
@media (max-width: 480px) { .x21-sl-tile, .x21-sl-logo { padding: 20px; } .x21-sl-grow, .x21-sl-news { padding: 12px; } }

/* ---------- Layr ---------- */
.x21-cs--layr { --ly-coral: #ef4f5a; --ly-teal: #22b2b0; --ly-ink: #0b3c49; }
.x21-ly-video { display: grid; gap: 28px; margin-top: 44px; align-items: center; }
@media (min-width: 900px) { .x21-ly-video { grid-template-columns: 1.5fr 1fr; gap: 48px; } }
/* Stacked under the video on smaller screens, so center the copy */
@media (max-width: 899px) { .x21-ly-video__copy { text-align: center; } }
.x21-ly-video .x21-cs-frame { margin: 0; }
.x21-cs .x21-ly-video__media { display: block; width: 100%; aspect-ratio: 1900 / 928; background: #fff; object-fit: cover; }
.x21-cs .x21-ly-video__copy .x21-cs__h3, .x21-cs .x21-ly-types__head .x21-cs__h3 { margin-top: 6px; }
.x21-cs .x21-ly-video__copy .x21-cs-text, .x21-cs .x21-ly-types__head .x21-cs-text { margin-top: .5em; font-size: 16px; color: var(--ink); }
.x21-ly-types { margin-top: 64px; }
.x21-ly-types__head { max-width: 720px; margin: 0 auto; text-align: center; }
.x21-ly-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 640px) { .x21-ly-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .x21-ly-grid { grid-template-columns: repeat(4, 1fr); } }
.x21-ly-tile { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.x21-cs .x21-ly-tile .x21-cs__h3 { margin-top: 18px; font-size: 18px; }
.x21-cs .x21-ly-tile .x21-cs-text { margin-top: .4em; font-size: 15px; color: var(--ink); }
/* Mini recreations of the Layr site, in Layr's coral and teal */
.x21-ly-ui { height: 190px; overflow: hidden; padding: 14px; border-radius: 12px; background: #f2fafa; font-size: 12px; line-height: 1.35; color: var(--ly-ink); }
.x21-ly-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.x21-ly-chips span { padding: 3px 8px; border: 1px solid var(--ly-teal); border-radius: 3px; background: #fff; font-size: 10px; font-weight: 700; }
.x21-ly-chips .on { background: var(--ly-teal); color: #fff; }
.x21-ly-q { position: relative; padding: 9px 18px 9px 0; border-bottom: 1px solid #cfe3e3; font-weight: 800; }
.x21-ly-q::after { content: "\2192"; position: absolute; right: 0; top: 9px; }
.x21-ly-person { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; padding: 6px 0; }
.x21-ly-person + .x21-ly-person { border-top: 1px solid #d8eaea; }
.x21-ly-person i { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ly-teal); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; }
.x21-ly-person b { color: var(--ly-coral); }
.x21-ly-person span { font-size: 11px; }
.x21-ly-review { display: grid; place-items: center; background: #fff5f5; }
.x21-ly-review__card { padding: 14px 16px; border: 2px solid var(--ly-coral); border-radius: 22px 4px 22px 4px; background: #fff; }
.x21-ly-review__mark::before { content: "\201C"; display: block; height: 26px; font: 900 48px/1 Georgia, serif; color: var(--ly-coral); }
.x21-ly-review__card b { display: block; margin: 4px 0; color: var(--ly-coral); }
.x21-ly-gallery__title { margin-bottom: 10px; text-align: center; font-size: 14px; font-weight: 800; }
.x21-ly-gallery__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.x21-cs .x21-ly-gallery__row img { width: 100%; height: 96px; border-radius: 10px; object-fit: cover; }
.x21-ly-dots { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.x21-ly-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9dede; }
.x21-ly-dots .on { background: var(--ly-coral); }

/* ---------- Three columns, each with a mini graphic (Germaine, WTMA, EPD) ---------- */
.x21-cs-trio { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 900px) { .x21-cs-trio { grid-template-columns: repeat(3, 1fr); gap: 24px; } .x21-cs-trio--two { grid-template-columns: repeat(2, 1fr); } }
/* A row of smaller feature cards under the columns */
.x21-cs-features { margin-top: 48px; }
.x21-cs-features__head { max-width: 720px; margin: 0 auto; text-align: center; }
.x21-cs-features__head .x21-cs-tile__label { margin-top: 0; }
.x21-cs.x21-cs .x21-cs-features__head .x21-cs__h3 { margin-top: 6px; font-size: 20px; }
.x21-cs .x21-cs-features__head .x21-cs-text { margin-top: .5em; font-size: 16px; color: var(--ink); }
.x21-cs .x21-cs-features .x21-cs-cards { margin-top: 24px; }
.x21-cs-tile { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.x21-cs-tile__label { margin-top: 22px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.x21-cs.x21-cs .x21-cs-tile .x21-cs__h3 { margin-top: 6px; font-size: 20px; }
.x21-cs .x21-cs-tile .x21-cs-text { margin-top: .5em; font-size: 15px; color: var(--ink); }
.x21-cs-mini { display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 210px; overflow: hidden; padding: 16px; border-radius: 12px; font-size: 12px; line-height: 1.35; }
.x21-cs-mini b, .x21-cs-mini small { display: block; }

/* Germaine Laboratories: teal and navy */
.x21-cs--germaine { --gl-teal: #078a7e; --gl-navy: #36457a; }
.x21-cs--germaine .x21-cs-mini { background: #eef7f6; color: #1f2b2a; }
.x21-gl-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.x21-gl-tabs span { padding: 4px 8px; border-radius: 999px; background: #fff; font-size: 10px; font-weight: 700; color: var(--gl-navy); }
.x21-gl-tabs .on { background: var(--gl-teal); color: #fff; }
.x21-gl-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; background: #fff; }
.x21-gl-item .x21-gl-thumb { width: 34px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #d9efec, #9fd3cc); }
.x21-gl-item small { color: #5d6b6a; font-size: 10px; }
.x21-gl-item .x21-gl-add { padding: 4px 7px; border-radius: 4px; background: var(--gl-teal); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.x21-gl-acct { padding: 10px 12px; border-radius: 8px; background: #fff; }
.x21-gl-acct .x21-gl-acct__title { font-weight: 700; margin-bottom: 4px; color: var(--gl-teal); font-size: 14px; }
.x21-gl-check { position: relative; padding: 4px 0 4px 20px; }
.x21-gl-check::before { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--gl-teal); box-shadow: inset 0 0 0 3.5px var(--gl-teal), inset 0 0 0 6px #fff; }
.x21-gl-new { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--gl-navy); color: #fff; font-weight: 700; }
.x21-gl-new span { padding: 2px 6px; border-radius: 3px; background: #fff; color: var(--gl-navy); font-size: 10px; text-transform: uppercase; }
.x21-gl-lang { align-items: center; }
.x21-gl-toggle { width: 110px; }
.x21-gl-pill { display: flex; align-items: center; gap: 8px; width: max-content; margin-left: auto; padding: 6px 14px; border-radius: 999px; background: #e6e9ec; font-size: 13px; font-weight: 600; }
.x21-gl-menu { margin-top: 0; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(9, 7, 60, .12); }
.x21-gl-menu div { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 13px; }
.x21-gl-menu .on { background: #e3f3f1; font-weight: 700; color: var(--gl-teal); }
.x21-gl-flag { flex: none; width: 18px; height: 12px; border-radius: 2px; }
.x21-gl-flag--us { background: linear-gradient(#3c3b6e, #3c3b6e) 0 0 / 8px 7px no-repeat, repeating-linear-gradient(#b22234 0 1.7px, #fff 1.7px 3.4px); }
.x21-gl-flag--mx { background: radial-gradient(circle, #8c6d3f 0 1.8px, transparent 2.2px), linear-gradient(90deg, #006847 33.3%, #fff 33.3% 66.6%, #ce1126 66.6%); box-shadow: 0 0 0 1px #e2e2e2; }
.x21-gl-swap { display: grid; gap: 4px; margin-top: 4px; text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--gl-teal); }
.x21-gl-swap span + span { color: var(--gl-navy); }

/* Well-Trained Mind Academy: navy and gold */
.x21-cs--wtma { --wt-navy: #0b5285; --wt-gold: #f8c23a; }
.x21-cs--wtma .x21-cs-mini { background: #eef4f9; color: #1c2b3a; }
.x21-wt-catalog { flex-direction: row; align-items: stretch; gap: 10px; }
.x21-wt-courses { display: grid; flex: 1; gap: 8px; align-content: center; }
.x21-wt-course { position: relative; padding: 10px 26px 10px 10px; border: 1px solid #dbe5ee; border-radius: 6px; background: #fff; }
.x21-wt-course b { font-family: Georgia, serif; color: var(--wt-navy); }
.x21-wt-course small { margin-top: 3px; font-size: 10px; color: #4a5866; }
.x21-wt-heart { position: absolute; top: 9px; right: 8px; width: 12px; height: 12px; background: #b7c6d4; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E") center / contain no-repeat; }
.x21-wt-heart.on { background: #e0465a; }
.x21-wt-filter { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 92px; font-size: 10px; }
.x21-wt-filter b { margin-top: 4px; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--wt-navy); }
.x21-wt-filter span { position: relative; padding-left: 16px; }
.x21-wt-filter span::before { content: ""; position: absolute; left: 0; top: 1px; width: 10px; height: 10px; border: 1px solid #7d8b98; border-radius: 2px; background: #fff; }
.x21-wt-filter .on::before { border-color: var(--wt-navy); background: var(--wt-navy); box-shadow: inset 0 0 0 2px #fff; }
.x21-wt-search { display: flex; padding: 8px; border-radius: 6px; background: var(--wt-navy); }
.x21-wt-search span { flex: 1; padding: 6px 8px; border-radius: 3px 0 0 3px; background: #fff; color: #8a96a3; font-size: 11px; }
.x21-wt-search em { padding: 6px 10px; border-radius: 0 3px 3px 0; background: var(--wt-gold); color: var(--wt-navy); font-size: 10px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.x21-wt-hc { padding: 10px 12px; border-radius: 6px; background: #fff; }
.x21-wt-hc .x21-wt-hc__title { font-weight: 700; font-family: Georgia, serif; font-size: 14px; color: var(--wt-navy); }
.x21-wt-cat { display: inline-block; margin: 6px 0; padding: 2px 8px; border-radius: 999px; background: var(--wt-gold); font-size: 10px; font-weight: 800; color: var(--wt-navy); }
.x21-wt-article { padding-left: 10px; border-left: 3px solid var(--wt-gold); font-weight: 600; }
.x21-wt-old { width: max-content; padding: 6px 12px; border: 1px dashed #9aa7b4; border-radius: 6px; color: #7c8894; }
.x21-wt-old s { display: inline-flex; align-items: center; gap: 4px; text-decoration-thickness: 1.5px; }
/* Diagonal arrow: this used to open an external tab */
.x21-wt-old i { display: inline-block; width: 10px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat; }
.x21-wt-form { padding: 0 12px 12px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(11, 82, 133, .12); }
.x21-wt-form__bar { margin: 0 -12px 10px; padding: 6px 12px; background: var(--wt-navy); color: #fff; font-size: 10px; font-weight: 700; }
.x21-wt-form span { display: block; margin-bottom: 7px; padding: 4px 6px; border: 1px solid #d5dfe8; border-radius: 3px; font-size: 10px; color: #98a4b0; }
.x21-wt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.x21-wt-form .x21-wt-form__msg { height: 38px; margin-bottom: 7px; padding: 4px 6px; border: 1px solid #d5dfe8; border-radius: 3px; font-size: 10px; color: #98a4b0; }
.x21-wt-form .x21-wt-form__btn { width: max-content; display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--wt-gold); color: var(--wt-navy); font-size: 10px; font-style: normal; font-weight: 800; }

/* Energy Products Distribution: red, with a color per product line */
.x21-cs--epd { --ep-red: #c8102e; }
.x21-cs--epd .x21-cs-mini { background: #f3f4f6; color: #1f2329; }
.x21-ep-lines { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 8px; }
.x21-ep-line { padding: 10px; border-bottom: 4px solid; border-radius: 6px; background: #fff; }
.x21-ep-line small { margin-top: 2px; font-size: 10px; color: #5f6670; }
.x21-ep-line--energy { border-color: #2f9e44; }
.x21-ep-line--safety { border-color: #f0b400; }
.x21-ep-line--deco { border-color: #3a8fd8; }
.x21-ep-line--auto { border-color: var(--ep-red); }
.x21-ep-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 6px 6px 0 0; background: #fff; font-weight: 700; }
.x21-ep-bar .on { color: var(--ep-red); box-shadow: 0 2px 0 var(--ep-red); }
.x21-ep-bar em { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--ep-red); color: #fff; font-style: normal; }
.x21-ep-drop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: -8px; padding: 12px; border-top: 1px solid #e3e5e8; border-radius: 0 0 6px 6px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.x21-ep-drop b { margin-bottom: 6px; font-size: 11px; }
.x21-ep-drop i { display: block; height: 6px; margin-top: 5px; border-radius: 3px; background: #e3e5e8; }
.x21-ep-drop i + i { width: 70%; }

/* Scroll-in reveals (classes added by case-study.js, so content stays visible
   without JS). Uses `translate` so existing transforms are untouched. */
.x21-cs.x21-cs .x21-reveal { transition: opacity .45s cubic-bezier(.215, .61, .355, 1), translate .45s cubic-bezier(.215, .61, .355, 1); }
.x21-cs.x21-cs .x21-reveal--up { transition-duration: .8s; }
.x21-cs.x21-cs .x21-reveal:not(.is-in) { opacity: 0 !important; }
.x21-cs.x21-cs .x21-reveal--left:not(.is-in) { translate: -2rem 0; }
.x21-cs.x21-cs .x21-reveal--up:not(.is-in) { translate: 0 2rem; }
