:root {
  --sage: #74a89a;
  --sage-dark: #5a8a7d;
  --gold: #b9b18e;
  --gold-dark: #9a926f;
  --ink: #1c2825;
  --muted: #5f6e6a;
  --paper: #f5f3ee;
  --white: #ffffff;
  --line: #ddd8ce;
  --wrap: 1120px;
  --pad: 1.5rem;
  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--sage-dark);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(100% - (var(--pad) * 2), var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 243, 238, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  height: 2.75rem;
  width: auto;
  max-width: min(280px, 58vw);
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.25rem 0 0.45rem;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='8' viewBox='0 0 80 8' fill='none'%3E%3Cpath d='M0 4 C8 1, 12 7, 20 4 S32 1, 40 4 S52 7, 60 4 S72 1, 80 4' stroke='%23b9b18e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 80px 8px;
  background-position: 0 center;
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left center;
  transition: opacity 0.25s ease, transform 0.4s ease, height 0.2s ease, bottom 0.2s ease;
  pointer-events: none;
}

.site-nav a:hover {
  color: var(--sage-dark);
}

.site-nav a[aria-current="page"] {
  color: var(--sage-dark);
}

.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
  height: 2px;
  bottom: 2px;
  background-image: none;
  background-color: var(--gold);
  background-repeat: no-repeat;
  animation: none;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
  height: 8px;
  bottom: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='8' viewBox='0 0 80 8' fill='none'%3E%3Cpath d='M0 4 C8 1, 12 7, 20 4 S32 1, 40 4 S52 7, 60 4 S72 1, 80 4' stroke='%23b9b18e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 80px 8px;
  animation: nav-squiggle 0.9s linear infinite;
}

@keyframes nav-squiggle {
  from {
    background-position: 0 center;
  }
  to {
    background-position: 80px center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a:hover::after {
    animation: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-sage {
  background: var(--sage);
  color: var(--white);
}

.btn-sage:hover {
  background: var(--sage-dark);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost-light:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Home hero — refined, Kintsugi-inspired training */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: #000;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.82) 42%, rgba(0, 0, 0, 0.45) 68%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.hero-seam {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.hero-seam-path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: seam-draw 2.4s ease-out 0.4s forwards;
}

.hero-layout {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(3.5rem, 9vh, 5.5rem) var(--pad);
}

@media (min-width: 900px) {
  .hero {
    align-items: stretch;
  }

  .hero-layout {
    max-width: none;
    width: 100%;
    min-height: min(88vh, 720px);
    padding: 0;
    padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2));
    grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: stretch;
  }

  .hero-copy {
    align-self: center;
    padding-block: clamp(3.5rem, 9vh, 5.5rem);
  }
}

.hero-copy {
  max-width: 34rem;
}

.hero-brand {
  margin: 0 0 0.55rem;
  font-family: var(--font);
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sage);
  opacity: 0;
  animation: hero-rise 0.85s ease 0.12s forwards;
}

.hero-tagline {
  margin: 0 0 1.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: hero-rise 0.85s ease 0.22s forwards;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  color: var(--white);
  font-size: clamp(2.15rem, 4.8vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: hero-rise 0.9s ease 0.32s forwards;
}

.hero-lede {
  margin: 1.15rem 0 0;
  max-width: 32rem;
  color: rgba(245, 243, 238, 0.88);
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0;
  animation: hero-rise 0.9s ease 0.44s forwards;
}

.hero .hero-actions {
  margin-top: 1.65rem;
  opacity: 0;
  animation: hero-rise 0.9s ease 0.56s forwards;
}

.hero-figure {
  margin: 0;
  position: relative;
  justify-self: stretch;
  align-self: stretch;
  min-height: 28rem;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  animation: hero-rise 1s ease 0.35s forwards;
}

.hero-figure::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.9;
  z-index: 2;
}

.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-portrait.is-active {
  opacity: 1;
  z-index: 1;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes seam-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 899px) {
  .hero {
    min-height: auto;
    align-items: stretch;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
    min-height: 18rem;
    height: 18rem;
    margin-inline: calc(var(--pad) * -1);
    width: calc(100% + 2 * var(--pad));
  }

  .hero-portrait {
    min-height: 0;
  }

  .hero-figure::before {
    display: none;
  }

  .hero h1 {
    max-width: 16ch;
  }
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section.band {
  background: linear-gradient(180deg, rgba(116, 168, 154, 0.1), rgba(185, 177, 142, 0.12));
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.7rem;
  max-width: 42rem;
}

.benefit-list li {
  position: relative;
  padding-left: 1.35rem;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.split-media {
  overflow: hidden;
  background: #d9d4c8;
  aspect-ratio: 4 / 5;
  max-height: 520px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-media-art {
  background: #000;
  aspect-ratio: 1;
  max-height: 420px;
  display: grid;
  place-items: center;
}

.split-media-art img {
  width: 78%;
  height: auto;
  object-fit: contain;
}

.split-media-watermark {
  background: transparent;
  aspect-ratio: 1;
  max-height: 520px;
  border: 0;
  display: grid;
  place-items: center;
}

.split-media-watermark img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  opacity: 0.32;
}

.path-grid,
.team-grid {
  display: grid;
  gap: 1.15rem;
}

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

@media (max-width: 700px) {
  .path-grid {
    grid-template-columns: 1fr;
  }
}

.path-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.35rem 1.3rem 1.4rem;
}

.path-card p {
  color: var(--muted);
}

.path-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.page-hero {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}

.page-hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin-bottom: 0.35rem;
}

.page-hero .lede {
  margin-top: 0.25rem;
}

/* Courses catalog — match live /icagile-courses */
.section-courses {
  padding-top: 1.25rem;
}

.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.35rem 0 0;
}

.course-filter {
  appearance: none;
  border: 1px solid var(--sage);
  background: transparent;
  color: var(--sage-dark);
  min-height: 40px;
  padding: 8px 15px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.course-filter.is-active,
.course-filter[aria-pressed="true"] {
  background: #222222;
  border-color: #222222;
  color: var(--white);
}

.course-filter:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.course-filter.is-active:hover,
.course-filter[aria-pressed="true"]:hover {
  background: #222222;
  border-color: #222222;
  color: var(--white);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}

.course-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  background: var(--white);
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 20px;
}

.course-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.course-card img[src*="KT-AIFW"] {
  object-fit: contain;
}

.course-card:not(:has(img)) {
  justify-content: center;
  min-height: 200px;
}

.course-card:not(:has(img)) h3 {
  min-height: 0;
  margin-top: 0;
}

.course-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0.85rem 0 1rem;
  min-height: 2.8em;
  flex: 1;
}

.course-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding: 8px 15px;
  border-radius: 5px;
  background: var(--sage);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.course-btn:hover {
  background: var(--sage-dark);
  color: var(--white);
}

.course-card[hidden] {
  display: none;
}

.course-empty {
  margin-top: 1.25rem;
}

@media (max-width: 1100px) {
  .course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

#checkout-error {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid #b42318;
  background: rgba(180, 35, 24, 0.08);
  color: #7a1a12;
  font-size: 0.9rem;
}

/* Team */
.team-section + .team-section {
  margin-top: 3rem;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 1.25rem;
  justify-items: center;
}

.team-grid.leadership {
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: start;
}

.person-card {
  width: 100%;
  max-width: 220px;
  text-align: center;
}

.team-grid.leadership .person-card {
  max-width: 280px;
}

.person-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0 auto 0.85rem;
  background: #d9d4c8;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s, transform 0.3s ease-in-out;
}

.person-card:hover .person-photo img,
.person-card:focus-within .person-photo img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.person-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trainer-photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #d9d4c8;
  cursor: pointer;
}

.trainer-photo-btn:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.trainer-card .trainer-bio {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.trainer-card .trainer-bio p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.trainer-card .trainer-bio p:last-child {
  margin-bottom: 0;
}

.trainer-card.is-open .person-photo img {
  filter: grayscale(0%);
}

.trainer-open-role-photo {
  background:
    linear-gradient(160deg, rgba(116, 168, 154, 0.22) 0%, rgba(116, 168, 154, 0.1) 45%, rgba(185, 177, 142, 0.14) 100%);
  border: 1px dashed rgba(116, 168, 154, 0.45);
  box-sizing: border-box;
}

.trainer-card-open-role:hover .trainer-open-role-photo,
.trainer-card-open-role:focus-within .trainer-open-role-photo {
  border-color: var(--sage);
}

.trainer-apply-link {
  color: var(--sage-dark);
  font-weight: 600;
  text-decoration: none;
}

.trainer-apply-link:hover,
.trainer-apply-link:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.trainers-grid {
  align-items: start;
}

.trainer-card[hidden] {
  display: none !important;
}

.trainer-bio-panel {
  width: 100%;
  margin-top: 1.75rem;
}

.trainer-bio-panel .trainer-bio {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.trainer-bio-name {
  margin: 0 0 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--gold);
  font-family: var(--font);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.trainer-bio-copy {
  max-width: none;
  width: 100%;
}

.trainer-bio-copy p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
}

.trainer-bio-copy p:last-child {
  margin-bottom: 0;
}

.trainer-certs {
  margin-top: 2rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, rgba(116, 168, 154, 0.1), rgba(185, 177, 142, 0.12));
  border: 1px solid var(--line);
  border-radius: 2px;
}

.trainer-certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 2.5rem;
}

.trainer-certs-col h6 {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.trainer-certs-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trainer-certs-col li {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(31, 42, 40, 0.12);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.trainer-certs-col li:first-child {
  padding-top: 0;
}

.trainer-certs-col li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 700px) {
  .trainer-certs-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .person-photo img {
    transition: none;
  }

  .person-card:hover .person-photo img,
  .person-card:focus-within .person-photo img {
    transform: none;
  }
}

/* Faculty-style team profiles */
.faculty-bio-section {
  padding-top: clamp(1.75rem, 4vh, 2.75rem);
}

.faculty-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .faculty-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: start;
  }
}

.faculty-media {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #d9d4c8;
}

.faculty-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
  min-height: 280px;
}

.faculty-portrait-wide {
  object-position: center 18%;
}

.faculty-copy h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  color: var(--ink);
  line-height: 1.15;
}

.faculty-role {
  margin: 0 0 1.25rem;
  color: var(--sage-dark);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faculty-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.7;
}

.faculty-copy p:last-child {
  margin-bottom: 0;
}

.faculty-layout + .trainer-certs {
  margin-top: 2.5rem;
}
.articles-empty {
  margin-top: 1.25rem;
  padding: 1.4rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  max-width: 40rem;
}

.articles-more {
  margin-top: 1.35rem;
}

.articles-section {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.articles-hub-hero h1 {
  max-width: 20ch;
}

.articles-hub-hero .lede {
  max-width: 40rem;
}

/* Articles hub (main /articles.html) — Equity Empire layout */
.articles-hub {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
  gap: 0 3rem;
  align-items: stretch;
}

.articles-hub-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 1.35rem;
  border-left: 2px solid var(--gold);
}

.articles-hub-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.articles-hub-meta {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.articles-hub-title {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.articles-hub-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.articles-hub-title a:hover {
  color: var(--sage-dark);
}

.articles-hub-excerpt {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 38rem;
}

.articles-hub-tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.articles-hub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-bottom: 2rem;
}

.articles-hub-read {
  display: inline-flex;
  align-items: center;
  color: var(--sage-dark);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.articles-hub-read:hover {
  color: var(--ink);
}

.articles-hub-actions .article-listen {
  margin: 0;
}

.articles-hub-all {
  display: inline-flex;
  margin-top: auto;
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 0.65rem 1.4rem;
}

.articles-hub-side {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.articles-hub-side-empty {
  margin: 0;
  max-width: none;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.articles-hub-item {
  display: block;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.articles-hub-item:first-child {
  padding-top: 0;
}

.articles-hub-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.articles-hub-item-meta {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.articles-hub-item-num {
  color: var(--sage-dark);
  font-weight: 700;
}

.articles-hub-item-title {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
}

.articles-hub-item:hover .articles-hub-item-title {
  color: var(--sage-dark);
}

@media (max-width: 900px) {
  .articles-hub {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .articles-hub-side {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }
}

/* Article collection page */
.articles-collection-hero h1 {
  max-width: 18ch;
}

.articles-collection-hero .lede {
  max-width: 40rem;
}

.articles-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.articles-filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.articles-filter-btn:hover {
  border-color: rgba(116, 168, 154, 0.55);
  color: var(--ink);
}

.articles-filter-btn.is-active {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #fff;
}

.articles-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.articles-collection-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem 1.35rem 1.55rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 100%;
}

.articles-collection-card:hover,
.articles-collection-card:focus-visible {
  border-color: rgba(116, 168, 154, 0.55);
  box-shadow: 0 8px 20px rgba(28, 40, 37, 0.06);
  transform: translateY(-1px);
}

.articles-collection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.articles-collection-title {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.2s;
}

.articles-collection-card:hover .articles-collection-title {
  color: var(--sage-dark);
}

.articles-collection-excerpt {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-collection-read {
  color: var(--sage-dark);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
}

.articles-collection-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.articles-collection-back {
  color: var(--sage-dark);
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
}

.articles-collection-back:hover {
  color: var(--ink);
  text-decoration: underline;
}

.articles-pagination {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.articles-page-status {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

.articles-page-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.articles-page-btn:hover:not(:disabled) {
  border-color: rgba(116, 168, 154, 0.55);
  color: var(--sage-dark);
}

.articles-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 900px) {
  .articles-collection-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .articles-collection-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .articles-pagination {
    width: 100%;
    justify-content: space-between;
  }
}

.article-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover,
.article-card:focus-visible {
  border-color: rgba(116, 168, 154, 0.55);
  box-shadow: 0 8px 20px rgba(28, 40, 37, 0.06);
}

.article-card-meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.article-card h3 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.article-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.article-wrap {
  max-width: 42rem;
}

.article-hero h1 {
  max-width: none;
}

.article-meta {
  margin: 0.85rem 0 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.article-meta a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.article-meta a:hover {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article-listen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

.article-listen-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.95rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid rgba(116, 168, 154, 0.45);
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(28, 40, 37, 0.06);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.article-listen-btn:hover {
  background: rgba(116, 168, 154, 0.14);
  border-color: rgba(116, 168, 154, 0.7);
}

.article-listen-btn.is-playing {
  color: #fff;
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.article-listen-btn.is-playing:hover {
  color: #fff;
  background: #4a7468;
  border-color: #4a7468;
}

.article-listen-icon {
  display: inline-flex;
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}

.article-listen-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.article-listen-status {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
}

.article-body-section {
  padding-top: 0.5rem;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-body > p {
  margin: 0 0 1.15rem;
}

.article-body > h2 {
  margin: 2.15rem 0 0.85rem;
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.article-body > h2:first-child {
  margin-top: 0;
}

.article-takeaways {
  margin: 1.5rem 0 1.75rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(116, 168, 154, 0.35);
  background: linear-gradient(160deg, rgba(116, 168, 154, 0.14) 0%, rgba(185, 177, 142, 0.08) 100%);
}

.article-takeaways-label {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.article-takeaways ul {
  margin: 0;
  padding-left: 1.15rem;
}

.article-takeaways li {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.article-takeaways li:last-child {
  margin-bottom: 0;
}

.article-body ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.article-body li {
  margin: 0 0 0.45rem;
}

.article-body a {
  color: var(--sage-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(90, 138, 125, 0.45);
  text-underline-offset: 0.18em;
}

.article-body a:hover {
  color: var(--sage);
}

.article-related {
  margin: 2.75rem 0 0.5rem;
  padding: 1.45rem 1.4rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.article-related-label {
  margin: 0 0 1.05rem;
  font-family: var(--font);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: none;
  color: var(--ink);
}

.article-body .article-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.article-related li {
  margin: 0;
}

.article-related li:last-child {
  margin-bottom: 0;
}

.article-body .article-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 0.95rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-decoration-color: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.article-body .article-related a::after {
  content: "→";
  flex-shrink: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--sage-dark);
  transition: transform 0.2s ease;
}

.article-body .article-related a:hover,
.article-body .article-related a:focus-visible {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(116, 168, 154, 0.55);
  box-shadow: 0 8px 20px rgba(28, 40, 37, 0.06);
}

.article-body .article-related a:hover::after,
.article-body .article-related a:focus-visible::after {
  transform: translateX(4px);
}

.article-byline {
  margin: 2rem 0 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.article-body > p.article-byline {
  margin: 2rem 0 0;
}

.article-footer-cta {
  background: linear-gradient(160deg, rgba(116, 168, 154, 0.16) 0%, rgba(185, 177, 142, 0.1) 100%);
  border-top: 1px solid var(--line);
}

.article-footer-cta h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
}

.article-footer-cta p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36rem;
}

.article-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin: 0 !important;
}

.text-link {
  color: var(--sage-dark);
  font-weight: 700;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-aside {
  display: grid;
  gap: 2rem;
  align-content: start;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.contact-faq {
  padding: 1.5rem 1.45rem 1.6rem;
  border-radius: 0;
  border: 1px solid rgba(116, 168, 154, 0.28);
  background: transparent;
  color: var(--ink);
  box-sizing: border-box;
}

.contact-faq-head {
  text-align: center;
  margin-bottom: 1.1rem;
}

.contact-faq-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.contact-faq h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
}

.contact-faq-list {
  display: grid;
  gap: 0.65rem;
}

.contact-faq-item {
  border: 1px solid rgba(116, 168, 154, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.contact-faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.05rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.contact-faq-item summary::-webkit-details-marker {
  display: none;
}

.contact-faq-q {
  flex: 1;
  min-width: 0;
}

.contact-faq-toggle {
  position: relative;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.contact-faq-toggle::before,
.contact-faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.72rem;
  height: 2px;
  background: var(--sage-dark);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.contact-faq-item[open] .contact-faq-toggle::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.contact-faq-item[open] .contact-faq-toggle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-faq-item p {
  margin: 0;
  padding: 0 1.05rem 1.05rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
}

.contact-faq-item p strong {
  color: var(--ink);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-form-detailed {
  padding: 1.5rem 1.45rem 1.6rem;
  gap: 1rem;
  border: 1px solid rgba(116, 168, 154, 0.28);
  background:
    linear-gradient(160deg, rgba(116, 168, 154, 0.22) 0%, rgba(116, 168, 154, 0.1) 45%, rgba(185, 177, 142, 0.12) 100%);
  color: var(--ink);
  box-shadow: none;
}

.contact-form-detailed .contact-form-title {
  color: var(--ink);
}

.contact-form-detailed .contact-form-lede,
.contact-form-detailed .contact-form-note {
  color: var(--muted);
}

.contact-form-detailed label {
  color: var(--ink);
}

.contact-form-detailed input,
.contact-form-detailed select,
.contact-form-detailed textarea {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.contact-form-detailed select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-color: var(--white);
}

.contact-form-detailed .btn-sage {
  background: var(--sage);
  color: #fff;
}

.contact-form-detailed .btn-sage:hover {
  background: var(--sage-dark);
}

.contact-form-detailed .form-status.is-success {
  color: #2f6b5a;
}

.contact-form-detailed .form-status.is-error {
  color: #8a2f2f;
}

.contact-form-head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.contact-form-title {
  margin: 0;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.contact-form-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-form-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .contact-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

.contact-form-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.contact-form .form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .form-status {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.contact-form .form-status.is-success {
  color: #2f6b5a;
}

.contact-form .form-status.is-error {
  color: #8a2f2f;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select {
  width: 100%;
  height: 2.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  line-height: 1.25;
  background: var(--paper);
  box-sizing: border-box;
}

.contact-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  line-height: 1.4;
  background: var(--paper);
  box-sizing: border-box;
  resize: vertical;
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(50% + 0.15rem), calc(100% - 0.75rem) calc(50% + 0.15rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  background-color: var(--paper);
  padding-right: 2.25rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

/* Course detail */
.course-detail-hero {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: linear-gradient(160deg, rgba(116, 168, 154, 0.16), rgba(185, 177, 142, 0.1));
  border-bottom: 1px solid var(--line);
}

.course-detail-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .course-detail-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.75fr);
    align-items: start;
  }
}

.register-box {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  position: sticky;
  top: 5.5rem;
}

.register-box p {
  color: var(--muted);
}

.course-info-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, rgba(116, 168, 154, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(185, 177, 142, 0.16), transparent 50%),
    linear-gradient(180deg, #ebe8e1 0%, var(--paper) 45%, #ebe8e1 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.course-info-band .wrap {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.75rem);
}

.course-info-story {
  max-width: 46rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
}

.course-info-story .eyebrow {
  margin-bottom: 0.55rem;
}

.course-info-story h2 {
  margin: 0 0 1.15rem;
  font-family: var(--font);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.course-info-story-body {
  display: grid;
  gap: 0.85rem;
}

.course-info-story-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.course-info-story-body p:first-child {
  font-family: var(--font);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink);
}

.course-info-split {
  display: grid;
  gap: 2rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(28, 40, 37, 0.12);
}

@media (min-width: 860px) {
  .course-info-split {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .course-info-panel + .course-info-panel {
    padding-left: 2.5rem;
    margin-left: 2.5rem;
    border-left: 1px solid rgba(28, 40, 37, 0.12);
  }
}

.course-info-panel .eyebrow {
  margin-bottom: 0.45rem;
}

.course-info-panel h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font);
  font-size: clamp(1.28rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.course-info-panel p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.course-info-panel p:last-child {
  margin-bottom: 0;
}

.course-info-policy {
  padding: 1.5rem 1.4rem 1.55rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(28, 40, 37, 0.1);
  border-left: 3px solid var(--sage);
}

.course-info-policy-head {
  margin-bottom: 1.15rem;
}

.course-info-policy-head .eyebrow {
  margin-bottom: 0.4rem;
}

.course-info-policy-head h2 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.course-info-policy-grid {
  display: grid;
  gap: 1.25rem 2rem;
  margin-bottom: 1.1rem;
}

@media (min-width: 700px) {
  .course-info-policy-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  }
}

.course-info-policy-grid h3 {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.course-info-policy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.course-info-policy .note {
  margin: 0;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(28, 40, 37, 0.1);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Legacy selectors kept harmless if referenced elsewhere */
.course-info-cards {
  display: grid;
  gap: 1.25rem;
}

.course-info-card {
  background: transparent;
  border: 0;
  padding: 0;
}

.prose {
  max-width: 44rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose .course-close {
  margin-top: 1.75rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.prose ul {
  padding-left: 1.2rem;
}

/* Course overview (detail pages) */
.course-overview {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}

.course-highlights {
  padding-top: 0.25rem;
  padding-bottom: 1.5rem;
}

.course-highlights .lede {
  margin: 0;
  max-width: 40rem;
  font-size: 1.08rem;
  color: var(--ink);
  font-weight: 600;
}

.course-highlights .benefit-list {
  margin-top: 1rem;
}

.course-details {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.course-details-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .course-details-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.5rem 2.75rem;
    align-items: start;
  }

  .course-block-outcomes {
    max-width: 28rem;
  }
}

.course-details-aside {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .course-details-layout-com {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-areas:
      "comm aside"
      "dfcn stry";
  }

  .course-details-layout-com > .course-block-outcomes:first-child {
    grid-area: comm;
    max-width: none;
  }

  .course-details-layout-com > .course-details-aside {
    grid-area: aside;
  }

  .course-details-layout-com > .course-outcome-pair {
    display: contents;
  }

  .course-details-layout-com > .course-outcome-pair > .course-block-outcomes-compact:first-child {
    grid-area: dfcn;
  }

  .course-details-layout-com > .course-outcome-pair > .course-block-outcomes-compact:last-child {
    grid-area: stry;
    max-width: none;
    width: 100%;
  }
}

.course-outcome-pair {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 700px) and (max-width: 899px) {
  .course-outcome-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 2.75rem;
  }
}

.course-block-outcomes-compact .course-outcome-group {
  margin-top: 0;
}

.course-overview-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 960px) {
  .course-overview-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 3rem;
  }

  .course-overview-lead {
    position: sticky;
    top: 5.5rem;
  }
}

.course-overview-lead {
  padding-left: 1.15rem;
  border-left: 2px solid var(--gold);
}

.course-overview-lead p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.course-overview-lead .course-overview-hook {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--sage-dark);
}

.course-overview-lead p:last-child {
  margin-bottom: 0;
}

.course-overview-blocks {
  display: grid;
  gap: 2.25rem;
}

.course-block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.course-overview .course-block h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.course-overview .course-block p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.course-overview .course-block-lede {
  font-size: 1rem;
  margin-bottom: 0.65rem !important;
}

.course-overview .course-block-label {
  margin-top: 0.85rem !important;
  margin-bottom: 0.5rem !important;
}

.course-block p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.course-block-lede {
  color: var(--ink) !important;
  font-size: 1.08rem;
  font-weight: 600;
}

.course-block-label {
  margin-top: 1.15rem !important;
  margin-bottom: 0.65rem !important;
  color: var(--sage-dark) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-experience-list {
  display: grid;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .course-experience-list {
    grid-template-columns: 1fr 1fr;
  }
}

.course-experience-list li {
  position: relative;
  padding: 0.35rem 0.55rem 0.35rem 1.2rem;
  background: linear-gradient(160deg, rgba(116, 168, 154, 0.12), rgba(185, 177, 142, 0.08));
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
}

.course-experience-list li::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.72rem;
  width: 0.3rem;
  height: 0.3rem;
  background: var(--sage);
}

.course-outcome-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.course-outcome-group {
  margin: 1.35rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.course-outcome-group:first-of-type {
  margin-top: 0.35rem;
}

.course-block-outcomes .course-outcome-list + .course-outcome-group {
  margin-top: 1.75rem;
  padding-top: 0.35rem;
}

.course-outcome-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.course-outcome-list li:hover {
  background: rgba(116, 168, 154, 0.06);
}

.course-outcome-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

.course-outcome-detail {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.course-audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  margin: 0.85rem 0 1.1rem;
  padding: 0;
  list-style: none;
}

.course-audience-list li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.55);
}

.course-block-audience .course-close {
  margin: 1.35rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* Course session listings */
.section-sessions {
  padding-top: 0.5rem;
}

.session-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e0e0e0;
  overflow-x: auto;
}

.session-month-group {
  border-bottom: 1px solid var(--line);
}

.session-month-group:first-child .session-month {
  margin-top: 0;
}

.session-month {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 1.15rem 0.85rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.session-month:hover {
  background: rgba(116, 168, 154, 0.06);
}

.session-month-heading {
  display: block;
  min-width: 0;
}

.session-month-title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.session-month-lede {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.session-month-promo {
  margin: 0.4rem 0 0;
  max-width: 40rem;
  color: var(--sage-dark, #5a8a7d);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}

.session-month-promo strong {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.session-month-action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.session-month-hint {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sage-dark);
  white-space: nowrap;
}

.session-month-hint-open {
  display: none;
}

.session-month[aria-expanded="true"] .session-month-hint-closed {
  display: none;
}

.session-month[aria-expanded="true"] .session-month-hint-open {
  display: inline;
}

.session-month-toggle {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.session-month[aria-expanded="true"] .session-month-toggle {
  transform: rotate(225deg);
}

.session-month-panel[hidden] {
  display: none;
}

.session-month-group[hidden] {
  display: none;
}

.session-row[hidden] {
  display: none;
}

.session-list-empty {
  margin: 1.25rem 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.session-month-group.is-open .session-month {
  border-bottom-color: var(--line);
}

.session-row {
  display: grid;
  grid-template-columns: 7.75rem 18.5rem 14rem 16rem max-content;
  column-gap: 0;
  align-items: center;
  min-width: 65rem;
  padding: 0.85rem 0.85rem;
  border-bottom: 1px solid #e0e0e0;
}

.session-row:nth-of-type(odd) {
  background: linear-gradient(160deg, rgba(116, 168, 154, 0.16), rgba(185, 177, 142, 0.1));
}

.session-row > *:not(.session-buy) {
  padding: 0.2rem 1rem;
  text-align: left;
}

.session-row > *:not(:first-child) {
  border-left: 1px solid rgba(31, 42, 40, 0.16);
}

/* No divider after Buy Tickets — lines start between dates / course / trainer / time */
.session-row > .session-dates-block {
  border-left: 0;
}

.session-row > *:last-child {
  padding-right: 0;
}

.session-buy,
.session-row > .session-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: center;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 8px 18px;
  border: 0;
  border-left: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #264653, #708090, var(--sage));
  box-shadow: inset 0 0 0 0 var(--sage);
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

.session-buy:hover,
.session-buy:focus,
.session-row > .session-buy:hover,
.session-row > .session-buy:focus {
  color: #fff !important;
  background: linear-gradient(90deg, #264653, #708090, var(--sage));
  box-shadow: inset 0 0 0 100px var(--sage);
}

.session-buy:visited,
.session-row > .session-buy:visited {
  color: #fff !important;
}

.session-buy[aria-disabled="true"] {
  cursor: pointer;
}

.session-dates-block {
  display: block;
}

.session-dates {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  white-space: normal;
}

.session-seats {
  display: inline;
  margin: 0 0 0 0.45rem;
  color: #9a6b2f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.session-seats[hidden] {
  display: none;
}

.session-title,
.session-trainer,
.session-time {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: nowrap;
}

.session-code {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--sans);
}

.section-price-match {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.section-course-banner {
  padding-top: 0.25rem;
  padding-bottom: 1.25rem;
}

.price-match-banner {
  display: block;
  line-height: 0;
}

.price-match-banner img,
.course-page-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.session-trainer strong,
.session-time strong,
.session-title strong {
  font-weight: 700;
}

@media (max-width: 520px) {
  .session-row {
    grid-template-columns: 1fr;
    min-width: 0;
    align-items: start;
  }

  .session-row > *:not(.session-buy) {
    padding: 0.15rem 0;
    border-left: 0;
  }

  .session-row > .session-buy {
    padding: 8px 18px;
  }

  .session-dates,
  .session-title,
  .session-trainer,
  .session-time {
    white-space: normal;
  }
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2.25rem 0;
  background: #000;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a {
  color: var(--gold);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  font-size: 0.95rem;
}

.site-footer-nav a {
  text-decoration: none;
}

.site-footer-nav a:hover {
  text-decoration: underline;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 36rem;
}

.site-footer-brand img {
  height: 2.5rem;
  width: auto;
  max-width: min(260px, 70vw);
  display: block;
}

.site-footer-brand p {
  margin: 0;
}

.site-footer-copy {
  margin: 1.35rem 0 0;
  padding: 0 var(--pad);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

.site-footer small {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 720px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.85rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .team-grid.leadership {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.session-interest {
  display: grid;
  gap: 1.75rem 2.5rem;
  margin: 2rem 0 0;
  padding: 1.35rem 1.5rem;
  background: rgba(116, 168, 154, 0.08);
  border-left: 3px solid var(--sage, #74a89a);
  align-items: start;
}

@media (min-width: 800px) {
  .session-interest {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  }
}

.session-interest-copy {
  min-width: 0;
}

.session-interest-title {
  margin: 0 0 0.85rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.session-interest-copy p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1rem;
}

.session-interest-copy p:last-child {
  margin-bottom: 0;
}

.session-interest-form {
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: var(--paper, #f5f3ee);
  border: 0;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .session-interest-form {
    grid-template-columns: 1fr 1fr;
  }

  .session-interest-form > label:nth-child(1),
  .session-interest-form > label:nth-child(4),
  .session-interest-form > .btn {
    grid-column: 1 / -1;
  }
}

.session-interest-form label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink);
}

.session-interest-form input,
.session-interest-form select {
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(116, 168, 154, 0.35);
  box-shadow: none;
}

.session-interest-form input:focus,
.session-interest-form select:focus {
  outline: 2px solid rgba(116, 168, 154, 0.45);
  outline-offset: 1px;
  background: var(--white);
}

.session-interest-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  background: var(--sage, #74a89a);
  color: var(--white);
  border: 1px solid transparent;
  box-shadow: none;
}

.session-interest-form .btn:hover {
  background: var(--sage-dark, #5a8a7d);
  color: var(--white);
  border-color: transparent;
}

/* Checkout */
.checkout-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }
}

.checkout-summary {
  padding: 1.35rem 1.5rem;
  background: rgba(116, 168, 154, 0.08);
  border-left: 3px solid var(--sage, #74a89a);
}

.checkout-summary h2 {
  margin: 0.35rem 0 1rem;
  font-family: var(--font);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
}

.checkout-loading {
  margin: 0;
  color: var(--muted);
}

.checkout-meta {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.checkout-meta > div {
  display: grid;
  gap: 0.15rem;
}

.checkout-meta dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.checkout-meta dd {
  margin: 0;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.checkout-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.checkout-form h2 {
  margin: 0;
  font-size: 1.15rem;
}

.checkout-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.checkout-form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  background: var(--white);
}

.checkout-total {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.checkout-policy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
}

.checkout-policy-title {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.checkout-policy p {
  margin: 0 0 0.35rem;
}

.checkout-policy p:last-child {
  margin-bottom: 0;
}

.checkout-form .btn {
  width: 100%;
  justify-content: center;
}

.checkout-form .note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-layout-embed {
  grid-template-columns: 1fr;
}

.checkout-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.checkout-pay {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  max-width: 560px;
  width: 100%;
  justify-self: end;
}

.checkout-back-slot {
  margin: 0;
}

@media (min-width: 960px) {
  /* Wide enough for Stripe’s price + “View details” to sit on one row when possible */
  .checkout-layout-embed {
    grid-template-columns: minmax(260px, 1fr) minmax(420px, 560px);
    gap: 1.5rem;
    align-items: stretch;
  }

  .checkout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: stretch;
    min-height: 100%;
  }

  .checkout-sidebar .checkout-summary {
    flex: 0 0 auto;
  }

  .checkout-sidebar .checkout-qty-bar {
    flex: 1 1 auto;
    display: grid;
    align-content: start;
    min-height: 0;
  }

  .checkout-sidebar .checkout-back-slot {
    margin-top: auto;
    padding-top: 1rem;
  }

  .checkout-pay {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
  }

  .checkout-pay .checkout-embed {
    flex: 1 1 auto;
  }
}

.checkout-qty-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(116, 168, 154, 0.08);
  border-left: 3px solid var(--sage, #74a89a);
}

@media (min-width: 480px) {
  .checkout-qty-bar {
    grid-template-columns: auto 1fr;
    align-items: end;
  }

  .checkout-qty-bar .checkout-total,
  .checkout-qty-bar .checkout-policy,
  .checkout-qty-bar .checkout-back-slot {
    grid-column: 1 / -1;
  }
}

.checkout-qty-bar label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.checkout-qty-bar select,
.checkout-coupon-field input {
  height: 2.5rem;
  box-sizing: border-box;
  margin: 0;
  min-width: 5rem;
  width: 100%;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  background: #fff;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.checkout-qty-bar select {
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
}

.checkout-coupon-field {
  min-width: 0;
}

.checkout-coupon-row {
  display: grid;
  grid-template-columns: 8.5rem auto;
  align-items: stretch;
  gap: 0.5rem;
  height: 2.5rem;
  width: max-content;
  max-width: 100%;
}

.checkout-coupon-row input {
  width: 100% !important;
  min-width: 0;
  max-width: none;
  height: 100% !important;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  background: #fff;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.checkout-coupon-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0 0.85rem;
  border: 1px solid var(--sage, #74a89a);
  border-radius: 3px;
  box-sizing: border-box;
  background: var(--sage, #74a89a);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.checkout-coupon-apply:hover,
.checkout-coupon-apply:focus {
  background: var(--sage-dark, #5a8a7d);
  border-color: var(--sage-dark, #5a8a7d);
}

.checkout-coupon-apply:disabled {
  opacity: 0.7;
  cursor: wait;
}

.checkout-coupon-field input::placeholder {
  color: var(--muted);
}

.checkout-embed {
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
  /* Full fill — same wash as “Our offerings”; Stripe bg matches via branding_settings */
  background: linear-gradient(180deg, rgba(116, 168, 154, 0.1), rgba(185, 177, 142, 0.12));
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.checkout-embed > .checkout-loading {
  color: var(--ink);
  padding: 0.75rem 1rem;
}

.checkout-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

.checkout-embed-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  height: 80vh;
  border: 0;
  background: #fff;
}

.checkout-pay-panel {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 1.75rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(116, 168, 154, 0.12), rgba(255, 255, 255, 0.9) 42%),
    #fff;
}

.checkout-pay-panel-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark, #4f7a6e);
}

.checkout-pay-panel-amount {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
}

.checkout-pay-panel-note {
  margin: 0 0 0.5rem;
  color: var(--muted);
  max-width: 28rem;
}

.checkout-pay-panel-btn {
  min-width: 12rem;
  justify-content: center;
}

.checkout-key-setup {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  background: #fff;
}

.checkout-key-setup label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.checkout-key-setup input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
}
