@import url("krcti-typography.css");

:root {
  --red: #d71920;
  --red-700: #b5121b;
  --red-900: #801018;
  --ink: #111318;
  --text: #29313d;
  --muted: #687385;
  --line: #e3e6eb;
  --surface: #ffffff;
  --cream: #faf7f2;
  --mist: #f4f6f8;
  --charcoal: #171c22;
  --max: 1200px;
  --radius: 8px;
  --shadow-sm: 0 8px 24px rgba(17, 19, 24, 0.06);
  --shadow-md: 0 18px 48px rgba(17, 19, 24, 0.11);
  --font-sans: var(--font-body);
  --font-serif: var(--font-display);
}

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

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--red-700);
  text-decoration: none;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #000;
  transform: translateY(-120%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translate(0.75rem, 0.75rem);
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding: 0.56rem max(1rem, calc((100% - var(--max)) / 2));
  color: #fff;
  background: var(--charcoal);
  font-size: 0.86rem;
}

.topbar a {
  color: #fff;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 82px;
  padding: 0.95rem max(1rem, calc((100% - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(227, 230, 235, 0.9);
  box-shadow: 0 10px 30px rgba(17, 19, 24, 0.04);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(160px, 45vw);
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.08rem;
  min-width: 0;
  font-size: clamp(0.76rem, 0.72vw, 0.82rem);
  font-weight: 700;
  white-space: nowrap;
}

.main-nav > a,
.mega-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.44rem;
  color: #303946;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-family: var(--font-display);
  cursor: pointer;
}

.mega-button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.main-nav > a:hover,
.mega-button:hover {
  color: var(--red-700);
  background: #fff3f3;
  text-decoration: none;
}

.main-nav > a[aria-current="page"] {
  color: var(--red-700);
  background: #fff3f3;
}

.mega-wrap {
  position: relative;
}

.mega-menu {
  position: absolute;
  right: clamp(-13rem, -12vw, -3rem);
  top: 100%;
  display: none;
  width: min(560px, calc(100dvw - 1.5rem));
  max-width: calc(100dvw - 1.5rem);
  max-height: min(72vh, 620px);
  overflow: auto;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 0.12rem;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 75;
  overscroll-behavior: contain;
}

.mega-menu.compact {
  width: min(340px, calc(100dvw - 2rem));
  grid-template-columns: 1fr;
}

.mega-wrap:focus-within .mega-menu,
.mega-wrap.open .mega-menu {
  display: grid;
}

.mega-menu a {
  display: block;
  padding: 0.62rem 0.64rem;
  color: var(--ink);
  border-radius: 6px;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.18;
}

.mega-menu a:hover {
  background: var(--mist);
  text-decoration: none;
}

.mega-menu strong {
  display: block;
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mega-menu span {
  display: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.nav-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 0.35rem;
  padding: 0.82rem 1.08rem;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 5px;
  box-shadow: 0 12px 24px rgba(215, 25, 32, 0.2);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  color: #fff;
  background: var(--red-700);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(215, 25, 32, 0.26);
}

.button.ghost {
  color: var(--red-700);
  background: #fff;
  border-color: #f1c7c9;
  box-shadow: none;
}

.button.ghost:hover {
  color: var(--red-700);
  background: #fff3f3;
}

.button.light {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
  box-shadow: none;
}

.button.small {
  min-height: 42px;
  padding: 0.66rem 0.95rem;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 820px);
  align-items: center;
  min-height: 640px;
  padding: clamp(4.5rem, 9vw, 7rem) max(1rem, calc((100% - var(--max)) / 2));
  color: #fff;
  overflow: hidden;
  background-image:
    linear-gradient(105deg, rgba(17, 19, 24, 0.9) 0%, rgba(98, 12, 19, 0.78) 58%, rgba(98, 12, 19, 0.42) 100%),
    var(--hero-image, url("/uploads/hero-images/hero-home-graduation.jpg")),
    linear-gradient(135deg, #14171d, #5d1218 58%, #220c0f);
  background-position: center, center, center;
  background-size: auto, cover, auto;
  background-repeat: no-repeat;
}

.hero.hero-partners {
  background-position: center, center 22%, center;
  background-size: auto, contain, auto;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 780px;
  text-align: left;
}

.eyebrow {
  margin: 0 0 0.72rem;
  color: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd8d8;
}

.hero h1 {
  max-width: 860px;
  margin: 0 0 1.12rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 6vw, 5.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  line-height: 1.68;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  min-width: 0;
  margin-top: 1.7rem;
  justify-content: flex-start;
}

.section {
  padding: clamp(3.6rem, 7vw, 6.2rem) max(1rem, calc((100% - var(--max)) / 2));
  background: var(--surface);
}

.section:nth-child(even) {
  background: var(--cream);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: end;
  justify-content: start;
  justify-items: start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

.section-head .eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.section-head h2 {
  grid-column: 1;
  grid-row: 2;
}

.section-head h2:first-child {
  grid-row: 1;
}

.section-head .button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.section-head.centered-action {
  grid-template-columns: minmax(0, 1fr);
}

.section-head.centered-action .button {
  grid-column: 1;
  grid-row: 3;
  justify-self: center;
  margin-top: 0.4rem;
}

.section h2,
.split-cta h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.7vw, 3.45rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.05;
}

.section h3,
.card h3 {
  color: var(--ink);
  line-height: 1.2;
}

.section > p,
.section > .two-col p {
  max-width: 760px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 1.05rem;
  align-items: stretch;
  min-width: 0;
}

.two-card-grid,
.team-grid,
.timeline {
  display: grid;
  gap: 1.05rem;
}

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

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

.timeline article {
  position: relative;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.timeline article::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  left: calc(100% - 0.25rem);
  width: 1.55rem;
  height: 2px;
  background: var(--red);
}

.timeline article:last-child::after {
  display: none;
}

.timeline span {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-weight: 900;
}

.timeline h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.team-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  background: var(--cream);
}

.team-card div {
  padding: 1rem;
}

.team-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(227, 230, 235, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.ifrc-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  color: var(--red-700);
  background: #fff4f4;
  border: 1px solid #f3c5c8;
  border-radius: 8px;
}

.ifrc-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin: 0 0 0.66rem;
  font-family: var(--font-serif);
  font-size: 1.32rem;
}

.card p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.card a {
  margin-top: auto;
  font-weight: 850;
}

.card:hover,
.image-card:hover {
  transform: translateY(-3px);
  border-color: #f1c7c9;
  box-shadow: 0 18px 42px rgba(17, 19, 24, 0.12);
}

.partnership-pillars {
  overflow: clip;
}

.partnership-pillars-intro,
.partnership-process-copy {
  max-width: 920px;
}

.partnership-pillars-intro .eyebrow,
.partnership-process .eyebrow,
.partnership-form-section .eyebrow {
  margin: 0 0 0.65rem;
  color: var(--red-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partnership-pillars-intro h2,
.partnership-process h2 {
  margin-bottom: 1rem;
}

.partnership-pillars-intro p:not(.eyebrow),
.partnership-process-copy p:not(.eyebrow) {
  max-width: 860px;
  margin: 0 0 0.9rem;
}

.partnership-device-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 1.55rem 0 1rem;
  padding: 0.48rem 0.72rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.partnership-device-hint::before {
  content: "↻";
  color: var(--red-700);
  font-size: 1rem;
}

.partnership-touch-hint {
  display: none;
}

.partnership-pillars-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.15rem;
  min-width: 0;
}

.partnership-pillar-card {
  grid-column: span 2;
  min-width: 0;
  height: 650px;
  border-radius: var(--radius);
  perspective: 1400px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.partnership-pillar-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.partnership-pillar-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.partnership-pillar-card:focus-visible {
  outline-color: var(--red);
  outline-offset: 5px;
}

.partnership-pillar-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.partnership-pillar-card.is-flipped .partnership-pillar-card-inner {
  transform: rotateY(180deg);
}

.partnership-pillar-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.25rem, 2.2vw, 1.65rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.partnership-pillar-front {
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.partnership-pillar-front::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--red);
}

.partnership-pillar-card:hover .partnership-pillar-front,
.partnership-pillar-card:focus-visible .partnership-pillar-front {
  border-color: #efb9bd;
  box-shadow: var(--shadow-md);
}

.partnership-pillar-back {
  color: #fff;
  background: var(--charcoal);
  border-color: #2d333c;
  transform: rotateY(180deg);
  cursor: default;
}

.partnership-pillar-face[aria-hidden="true"] {
  pointer-events: none;
}

.partnership-pillar-top,
.partnership-pillar-back-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.partnership-pillar-top .ifrc-icon {
  margin: 0;
}

.partnership-pillar-number {
  color: var(--red-700);
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.partnership-pillar-back .partnership-pillar-number {
  color: #ff7479;
  font-size: 2rem;
}

.partnership-pillar-kicker {
  margin: clamp(4rem, 8vw, 6.5rem) 0 0.55rem;
  color: var(--red-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.partnership-pillar-front h3 {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  line-height: 1.08;
}

.partnership-pillar-front > p:not(.partnership-pillar-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.partnership-pillar-prompt {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.partnership-pillar-prompt span {
  color: var(--red-700);
}

.partnership-pillar-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.42rem 0.62rem;
  color: #fff;
  background: transparent;
  border: 1px solid #5e6671;
  border-radius: 6px;
  font: inherit;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.partnership-pillar-reset:hover {
  background: #2b3139;
  border-color: #fff;
}

.partnership-pillar-scroll {
  min-height: 0;
  margin: 1rem -0.35rem 0 0;
  padding-right: 0.65rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #8d96a2 #2a3038;
  scrollbar-width: thin;
}

.partnership-pillar-scroll::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 5.4rem;
  left: 1rem;
  height: 1.8rem;
  pointer-events: none;
  background: linear-gradient(transparent, var(--charcoal));
}

.partnership-pillar-back h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.18;
}

.partnership-pillar-back h4 {
  margin: 1rem 0 0.5rem;
  color: #fff;
  font-size: 0.94rem;
}

.partnership-pillar-back p,
.partnership-pillar-back li {
  color: #e7e9ec;
  font-size: 0.9rem;
  line-height: 1.5;
}

.partnership-pillar-back p {
  margin: 0 0 0.75rem;
}

.partnership-pillar-back ul {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding-left: 1.1rem;
}

.partnership-pillar-back li::marker {
  color: #ff7479;
}

.partnership-pillar-outcome {
  margin-top: 1rem !important;
  padding: 0.8rem;
  background: #272d35;
  border-left: 3px solid var(--red);
}

.partnership-pillar-action {
  flex: 0 0 auto;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding-inline: 0.8rem;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.35;
}

.partnership-process {
  background: var(--cream) !important;
}

.partnership-form-section {
  scroll-margin-top: 100px;
}

.partnership-form-section .section-head > div {
  max-width: 760px;
}

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

  .partnership-pillar-card,
  .partnership-pillar-card:nth-child(4),
  .partnership-pillar-card:nth-child(5) {
    grid-column: auto;
  }

  .partnership-pillar-card {
    height: 660px;
  }
}

@media (hover: none), (pointer: coarse) {
  .partnership-desktop-hint {
    display: none;
  }

  .partnership-touch-hint {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partnership-pillar-card-inner {
    transform: none !important;
    transition: none;
  }

  .partnership-pillar-face {
    transform: none;
    transition: opacity 100ms linear, visibility 100ms linear;
  }

  .partnership-pillar-back {
    opacity: 0;
    visibility: hidden;
  }

  .partnership-pillar-card.is-flipped .partnership-pillar-front {
    opacity: 0;
    visibility: hidden;
  }

  .partnership-pillar-card.is-flipped .partnership-pillar-back {
    opacity: 1;
    visibility: visible;
  }
}

.image-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.image-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist);
}

.image-card div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem;
}

.image-card .ifrc-icon {
  margin-top: -2.4rem;
  margin-bottom: 0.75rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.image-card h3 {
  margin: 0 0 0.58rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.42rem;
  line-height: 1.16;
}

.image-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.image-card a {
  margin-top: auto;
  font-weight: 900;
}

.media-story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(1.8rem, 5vw, 4rem);
  padding: clamp(3.6rem, 7vw, 6.2rem) max(1rem, calc((100% - var(--max)) / 2));
  background: #fff;
}

.media-story.reverse {
  grid-template-columns: minmax(360px, 0.75fr) minmax(0, 0.95fr);
}

.media-story.reverse .media-copy {
  order: 2;
}

.media-story.reverse .media-frame {
  order: 1;
}

.media-copy h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.7vw, 3.45rem);
  line-height: 1.05;
  text-align: left;
}

.media-copy p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 1.35rem;
  color: var(--text);
  font-size: 1.04rem;
}

.media-copy {
  text-align: left;
}

.media-frame {
  position: relative;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  background: #ffe7e7;
  border-radius: 8px;
}

.media-frame img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.director-welcome .media-frame img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.student-life-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, 1fr);
  gap: 1rem;
}

.student-life-gallery figure {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  cursor: pointer;
  touch-action: pan-y;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.student-life-gallery img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 850ms ease, transform 260ms ease, filter 260ms ease;
}

.student-life-gallery img.active {
  opacity: 1;
}

.student-life-gallery figure:hover,
.student-life-gallery figure:focus-visible {
  border-color: rgba(215, 25, 32, 0.45);
  box-shadow: 0 24px 58px rgba(17, 19, 24, 0.18);
  transform: translateY(-4px);
}

.student-life-gallery figure:hover img,
.student-life-gallery figure:focus-visible img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.07);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 max(1rem, calc((100% - var(--max)) / 2));
  background:
    linear-gradient(rgba(17, 19, 24, 0.78), rgba(17, 19, 24, 0.78)),
    url("/uploads/home-counterbox_1920x322.jpg") center / cover;
}

.stats-band div {
  padding: 2.4rem 1.2rem;
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.stats-band span,
.stats-band strong {
  display: block;
}

.stats-band span {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.stats-band strong {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pathway-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: clamp(2rem, 4vw, 3rem) max(1rem, calc((100% - var(--max)) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.pathway-copy {
  padding: 1.4rem;
  background: var(--charcoal);
  color: #fff;
  border-radius: 8px;
}

.pathway-copy h2 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.05;
  text-align: left;
}

.pathway-copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.pathway-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.pathway-button {
  min-height: 126px;
  padding: 1rem;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.pathway-button .ifrc-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 0.72rem;
}

.pathway-button strong,
.pathway-button span {
  display: block;
}

.pathway-button strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.pathway-button span {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.45;
}

.pathway-button:hover,
.pathway-button.active {
  transform: translateY(-2px);
  border-color: #efb9bd;
  box-shadow: 0 18px 42px rgba(17, 19, 24, 0.1);
}

.pathway-button.active {
  background: #fff5f5;
}

.course-filters {
  position: sticky;
  top: 102px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(4, minmax(150px, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.calendar-picker {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.86fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  padding: clamp(3rem, 6vw, 5rem) max(1rem, calc((100% - var(--max)) / 2));
  background: #fff;
}

.calendar-picker-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.calendar-picker-copy h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.7vw, 3.45rem);
  line-height: 1.05;
}

.calendar-picker-copy p:not(.eyebrow) {
  max-width: 700px;
}

.calendar-picker-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.calendar-picker-card label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.selected-course-summary {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.selected-course-summary.needs-selection {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12);
}

.selected-course-summary span {
  display: block;
  color: var(--red-700);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-course-summary strong {
  display: block;
  margin-top: 0.24rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.42rem;
  line-height: 1.15;
}

.selected-course-summary p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.course-filters label,
.month-filter {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.filter-count {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
  font-weight: 800;
}

.calendar-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.calendar-filter {
  min-height: 42px;
  padding: 0.58rem 0.84rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.calendar-filter:hover,
.calendar-filter.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.calendar-group-stack {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.calendar-group {
  display: grid;
  gap: 1rem;
}

.calendar-group[hidden],
.calendar-event[hidden] {
  display: none;
}

.calendar-group-head {
  max-width: 880px;
}

.calendar-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.1;
}

.calendar-group-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.month-filter {
  width: min(240px, 100%);
  margin-bottom: 1rem;
}

.course-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
  min-width: 0;
}

.section-intro {
  max-width: 780px;
  margin: -0.75rem 0 1.3rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.resource-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.resource-filter {
  min-height: 42px;
  padding: 0.58rem 0.84rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.resource-filter:hover,
.resource-filter.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.resource-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.resource-article-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

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

.resource-article-card h3 {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.42rem;
  line-height: 1.14;
}

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

.article-meta {
  margin: auto 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

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

.article-shell {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.article-aside strong {
  color: var(--ink);
}

.article-body {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.article-body h2 {
  margin-bottom: 1rem;
}

.article-body .eyebrow {
  color: var(--red-700);
}

.article-lede {
  max-width: 780px;
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.6;
}

.article-body p {
  max-width: 760px;
  font-size: 1.08rem;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.promo-section {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.promo-carousel {
  position: relative;
  touch-action: pan-y;
}

.promo-track {
  position: relative;
  min-height: clamp(390px, 40vw, 460px);
}

.promo-card {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  min-height: clamp(390px, 40vw, 460px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  opacity: 1;
  transform: translateX(0);
  transition: opacity 320ms ease, transform 320ms ease;
}

.promo-card:not(.active) {
  display: grid;
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(20px);
}

.promo-media {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(0.75rem, 1.4vw, 1rem);
  background: #f4f4f4;
}

.promo-media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 14px 28px rgba(17, 19, 24, 0.12);
}

.promo-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  min-height: 0;
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.promo-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.promo-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.promo-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.promo-arrow,
.promo-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.promo-arrow {
  width: 42px;
  height: 42px;
  color: var(--ink);
  border-radius: 999px;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.promo-arrow:hover,
.promo-dot:hover,
.promo-dot.active {
  border-color: var(--red-700);
  background: var(--red-700);
  color: #fff;
}

.promo-dots {
  display: inline-flex;
  gap: 0.5rem;
}

.promo-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
}

.course-tile {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.equipment-card .ifrc-icon,
.icon-card .ifrc-icon {
  margin-bottom: 0.8rem;
}

.course-tile[hidden],
.calendar-event[hidden] {
  display: none;
}

.course-kicker {
  display: inline-flex;
  margin-bottom: 0.52rem;
  color: var(--red-700);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-tile h3,
.calendar-detail h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.34rem;
  line-height: 1.14;
}

.course-tile p,
.calendar-detail p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.course-tile dl,
.calendar-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: auto 0 1rem;
}

.course-tile dl.programme-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-detail dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 0;
}

.course-tile dt,
.calendar-detail dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-tile dd,
.calendar-detail dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-weight: 900;
}

.course-actions,
.calendar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
  margin-top: auto;
}

.text-link {
  color: var(--red-700);
  font-weight: 900;
}

.partner-marquee {
  overflow: hidden;
  padding: 1.1rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.partner-track {
  display: flex;
  width: max-content;
  gap: 0.9rem;
  animation: partner-scroll 34s linear infinite;
}

.partner-marquee:hover .partner-track {
  animation-play-state: paused;
}

.partner-logo {
  display: grid;
  place-items: center;
  width: 132px;
  height: 96px;
  padding: 0.8rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.partner-logo img {
  display: block;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@keyframes partner-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.calendar-grid {
  display: grid;
  gap: 0.9rem;
}

.calendar-event {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.calendar-date {
  display: grid;
  place-items: center;
  min-height: 110px;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
}

.calendar-date span,
.calendar-date strong {
  display: block;
}

.calendar-date span {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.calendar-date strong {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.94rem;
}

th,
td {
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: #641017;
  background: #fff1f1;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td:nth-child(2),
td:nth-child(3) {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.fee-note {
  max-width: 980px;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  color: #542024;
  background: #fff7f7;
  border: 1px solid #ffd7d9;
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

.split-cta {
  display: grid;
  grid-template-columns: minmax(0, 820px) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(3rem, 5vw, 4.5rem) max(1rem, calc((100% - var(--max)) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(215, 25, 32, 0.34), transparent 36%),
    var(--charcoal);
}

.split-cta h2 {
  color: #fff;
}

.split-cta p {
  max-width: 760px;
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.95rem;
  margin-bottom: 1.25rem;
}

.metric-grid > div {
  padding: 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-grid span {
  margin-top: 0.22rem;
  color: var(--red-700);
  font-size: 1.12rem;
  font-weight: 900;
}

.course-dates-panel {
  margin: 1.25rem 0;
  padding: 1.05rem;
  border: 1px solid rgba(224, 17, 28, 0.18);
  border-radius: 8px;
  background: #fff7f7;
}

.course-dates-panel h3 {
  margin-top: 0;
}

.course-date-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-date-list li {
  padding: 0.55rem 0.72rem;
  border: 1px solid rgba(224, 17, 28, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.lead-form,
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.lead-form label,
.admin-form label {
  display: grid;
  gap: 0.38rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.field-help {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.82rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  outline: 3px solid rgba(215, 25, 32, 0.12);
}

.wide {
  grid-column: 1 / -1;
}

.consent {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: flex-start;
  gap: 0.6rem !important;
}

.consent input {
  width: auto;
  min-height: auto;
  margin-top: 0.28rem;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.rating-choice {
  display: inline-flex !important;
}

.rating-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.rating-choice span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.rating-choice input:checked + span {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.feedback-comments {
  display: none !important;
}

.feedback-comments.visible {
  display: grid !important;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 0.9fr);
  gap: 1.6rem;
  min-width: 0;
  padding: 3.4rem max(1rem, calc((100% - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.82);
  background: #101318;
}

.footer h2,
.footer h3 {
  margin-top: 0;
  color: #fff;
  font-family: var(--font-serif);
}

.footer-logo {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin-bottom: 1rem;
}

.footer a {
  color: #fff;
}

.footer-contact {
  font-style: normal;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
}

.footer-link-list a {
  display: inline;
  min-height: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.footer-link-list.secondary a {
  background: transparent;
}

.social-links,
.affiliate-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
}

.social-links a,
.affiliate-links a {
  display: inline;
  min-height: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.social-links a:hover,
.affiliate-links a:hover {
  background: transparent;
  text-decoration-thickness: 2px;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 1.15rem;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 850;
  text-align: center;
}

.footer-text-button {
  display: inline;
  margin-left: 0.75rem;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.tag {
  color: #fff;
  font-weight: 900;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid #e11b22;
  outline-offset: 3px;
}

.accessibility-widget {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 82;
  width: min(330px, calc(100dvw - 2rem));
  max-width: calc(100dvw - 2rem);
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.accessibility-widget.is-auto-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.75rem);
}

.accessibility-toggle,
.accessibility-panel,
.cookie-banner,
.cookie-modal-card {
  pointer-events: auto;
}

.accessibility-toggle {
  min-height: 48px;
  padding: 0.75rem 1rem;
  color: #fff;
  background: #111318;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 18px 35px rgba(17, 19, 24, 0.22);
  font-weight: 900;
  cursor: pointer;
}

.accessibility-panel,
.cookie-modal-card {
  margin-bottom: 0.75rem;
  padding: 1rem;
  max-height: min(70dvh, 520px);
  overflow: auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(17, 19, 24, 0.24);
}

.accessibility-panel[hidden],
.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.utility-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.utility-head button {
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}

.utility-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.utility-actions button,
.cookie-actions button {
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 980px;
  max-height: calc(100dvh - 2rem);
  margin: 0 auto;
  padding: 1rem;
  overflow: auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(17, 19, 24, 0.26);
}

.cookie-banner p {
  margin: 0.25rem 0;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(17, 19, 24, 0.58);
}

.cookie-modal-card {
  width: min(560px, 100%);
  margin: 0;
}

.cookie-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.7rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.cookie-choice input {
  margin-top: 0.3rem;
}

.cookie-choice span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

html.a11y-text-large body {
  font-size: 18px;
}

html.a11y-text-larger body {
  font-size: 20px;
}

html.a11y-readable-font body,
html.a11y-readable-font button,
html.a11y-readable-font input,
html.a11y-readable-font select,
html.a11y-readable-font textarea {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
}

html.a11y-underline-links a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

html.a11y-high-contrast {
  --cream: #fff;
  --mist: #fff;
  --surface: #fff;
  --text: #000;
  --muted: #1f2933;
  --ink: #000;
  --line: #000;
  --red: #b00000;
  --red-700: #8f0000;
}

html.a11y-high-contrast .hero::before,
html.a11y-high-contrast .page-hero::before {
  background: rgba(0, 0, 0, 0.72);
}

html.a11y-high-contrast .card,
html.a11y-high-contrast .course-tile,
html.a11y-high-contrast .image-card,
html.a11y-high-contrast .calendar-event {
  border-color: #000;
}

html.a11y-reduced-motion *,
html.a11y-reduced-motion *::before,
html.a11y-reduced-motion *::after {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}

.chat-widget {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 92;
  display: grid;
  justify-items: end;
  width: min(390px, calc(100dvw - 2rem));
  max-width: calc(100dvw - 2rem);
  max-height: calc(100dvh - 2rem);
  pointer-events: none;
}

.chat-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-left: auto;
  padding: 0.8rem 1.1rem;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 35px rgba(225, 27, 34, 0.28);
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: 100%;
  max-height: min(640px, calc(100dvh - 6.5rem));
  margin-bottom: 0.75rem;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(17, 19, 24, 0.24);
  pointer-events: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

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

.chat-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  color: #fff;
  background: #111318;
}

.chat-head strong,
.chat-head span {
  display: block;
}

.chat-head span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.chat-head button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
}

.chat-log {
  display: grid;
  gap: 0.75rem;
  min-height: 0;
  max-height: min(320px, calc(100dvh - 20rem));
  padding: 1rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.chat-message {
  max-width: 92%;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  font-size: 0.94rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.chat-message.user {
  justify-self: end;
  color: #fff;
  background: var(--red);
}

.chat-message.bot {
  justify-self: start;
  color: var(--ink);
  background: var(--mist);
}

.chat-message a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--red);
  font-weight: 900;
}

.chat-message a + a {
  margin-left: 0.8rem;
}

.chat-message .secondary-chat-link {
  color: var(--ink);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.chat-form input {
  min-width: 0;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.chat-form button,
.chat-prompts button {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
  max-height: 7.5rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.chat-prompts button {
  min-height: 36px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
}

.resume-prompt {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 91;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(560px, calc(100dvw - 2rem));
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(17, 19, 24, 0.2);
  opacity: 0;
  transform: translate(-50%, 0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.resume-prompt.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.resume-prompt strong,
.resume-prompt span {
  display: block;
}

.resume-prompt span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.resume-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.resume-prompt-actions button {
  min-height: 40px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.resume-prompt-actions button:first-child {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.mobile-cta {
  display: none;
}

.narrow {
  max-width: 760px;
  margin: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.2rem 0.58rem;
  color: #24315f;
  background: #eef2ff;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-body {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--mist);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  height: 100vh;
  padding: 1rem;
  color: #fff;
  background: #111318;
}

.admin-sidebar .brand {
  min-width: 0;
  margin-bottom: 0.8rem;
  color: #fff;
}

.admin-sidebar .brand img {
  width: 190px;
  max-width: 100%;
}

.admin-sidebar a {
  padding: 0.72rem 0.78rem;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  font-weight: 800;
}

.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.admin-main {
  overflow: auto;
  padding: 1.5rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-top h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
}

.admin-card {
  margin: 1rem 0;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.admin-actions {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.admin-thumb {
  display: block;
  width: 96px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.admin-preview {
  display: flex;
  align-items: center;
  min-height: 74px;
}

.danger-zone {
  padding: 1rem;
  background: #fff7f7;
  border: 1px solid #ffd7d9;
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

.button.danger {
  background: #8f1015;
  box-shadow: none;
}

.checkline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.checkline input {
  width: auto;
}

.lead-detail {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0.45rem 0.8rem;
}

.lead-detail dt {
  color: var(--muted);
  font-weight: 900;
}

.lead-detail dd {
  margin: 0;
}

.admin-form {
  margin-top: 1rem;
}

@media (max-width: 1280px) and (min-width: 1121px) {
  .main-nav {
    gap: 0;
    font-size: 0.72rem;
  }

  .main-nav > a,
  .mega-button {
    padding-inline: 0.26rem;
  }

  .mega-menu {
    right: -4rem;
    width: min(360px, calc(100dvw - 1.25rem));
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-left: auto;
    padding: 0.55rem 0.85rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 900;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-top: 0.6rem;
    white-space: normal;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a,
  .mega-button {
    justify-content: flex-start;
    width: 100%;
  }

  .mega-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

}

@media (max-width: 720px) {
  .promo-track {
    min-height: 680px;
  }

  .promo-card {
    grid-template-columns: 1fr;
    min-height: 680px;
  }

  .promo-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .promo-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 760px) {
  .topbar {
    justify-content: flex-start;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header > .button {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    padding: 3.5rem 1rem;
  }

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

  .section {
    padding: 3.2rem 1rem;
  }

  .partnership-pillars-grid {
    grid-template-columns: 1fr;
  }

  .hero.hero-partners {
    padding-top: clamp(18rem, 76vw, 32rem);
    background-position: center, center top, center;
    background-size: auto, 100% auto, auto;
  }

  .partnership-desktop-hint {
    display: none;
  }

  .partnership-touch-hint {
    display: inline;
  }

  .partnership-pillar-card {
    height: 680px;
  }

  .partnership-pillar-face {
    padding: 1.15rem;
  }

  .partnership-pillar-front h3 {
    font-size: clamp(1.65rem, 8vw, 2.05rem);
  }

  .partnership-pillar-scroll::after {
    right: 0.7rem;
    left: 0.7rem;
  }

  .section-head,
  .split-cta,
  .two-col,
  .two-card-grid,
  .timeline,
  .image-card-grid,
  .student-life-gallery,
  .media-story,
  .media-story.reverse,
  .stats-band,
  .pathway-panel,
  .pathway-actions,
  .course-filters,
  .calendar-picker,
  .calendar-event,
  .calendar-detail dl,
  .article-shell,
  .lead-form,
  .admin-form,
  .footer,
  .admin-body {
    grid-template-columns: 1fr;
  }

  .media-story.reverse .media-copy,
  .media-story.reverse .media-frame {
    order: initial;
  }

  .media-story {
    padding: 3.2rem 1rem;
  }

  .media-frame::before {
    inset: 0.8rem -0.5rem -0.5rem 0.8rem;
  }

  .stats-band {
    padding: 0;
  }

  .course-filters {
    position: static;
  }

  .calendar-date {
    min-height: 82px;
  }

  .course-tile dl.programme-meta {
    grid-template-columns: 1fr;
  }

  .calendar-actions {
    align-items: stretch;
  }

  .article-aside {
    position: static;
  }

  .section-head {
    align-items: start;
  }

  .section-head .button {
    grid-column: 1;
    grid-row: 3;
  }

  .card {
    min-height: auto;
  }

  .student-life-gallery figure {
    min-height: 240px;
  }

  .table-wrap {
    margin-inline: -1rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  th,
  td {
    padding: 0.86rem;
  }

  .footer {
    padding-bottom: 5rem;
  }

  .accessibility-widget {
    left: max(0.75rem, env(safe-area-inset-left));
    bottom: calc(4.5rem + env(safe-area-inset-bottom));
    width: min(300px, calc(100dvw - 1.5rem));
    max-width: calc(100dvw - 1.5rem);
  }

  .accessibility-toggle {
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    font-size: 0.86rem;
  }

  .accessibility-panel {
    max-height: 70vh;
    overflow: auto;
  }

  .utility-actions {
    grid-template-columns: 1fr;
  }

  .chat-widget {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(4.5rem + env(safe-area-inset-bottom));
    left: max(0.75rem, env(safe-area-inset-left));
    width: auto;
    max-width: none;
    justify-items: stretch;
  }

  .chat-panel {
    max-height: min(72dvh, calc(100dvh - 6rem));
  }

  .chat-log {
    max-height: calc(72dvh - 14rem);
  }

  .resume-prompt {
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(8.5rem + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    width: auto;
    transform: translateY(0.5rem);
  }

  .resume-prompt.visible {
    transform: translateY(0);
  }

  .resume-prompt-actions {
    justify-content: stretch;
  }

  .resume-prompt-actions button {
    flex: 1 1 0;
  }

  .mobile-cta {
    position: sticky;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #111318;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -12px 26px rgba(17, 19, 24, 0.16);
  }

  .mobile-cta a {
    min-height: 48px;
    padding: 0.7rem 0.25rem;
    color: #fff;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 900;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cookie-banner {
    bottom: calc(4.25rem + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 5.5rem);
    overflow: auto;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button,
  .cookie-actions .button {
    flex: 1 1 100%;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-main {
    padding: 1rem;
  }

  .lead-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 620px) {
  .chat-widget {
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .chat-panel {
    max-height: calc(100dvh - 1.5rem);
  }

  .chat-log {
    max-height: calc(100dvh - 15.5rem);
  }
}

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



/* KRCTI-PHASE-2.1-COURSE-CALENDAR-DECARD-V2-20260825
   Presentation only. Sanity/content contract must remain unchanged. */

body.krcti-course-calendar-editorial main {
  --krcti-calendar-rule: rgba(20, 20, 20, 0.16);
  --krcti-calendar-rule-strong: rgba(20, 20, 20, 0.28);
}

body.krcti-course-calendar-editorial main
  :where(div, section):has(> article.calendar-event) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.krcti-course-calendar-editorial main article.calendar-event {
  min-width: 0;
  margin: 0;
  padding: clamp(1.15rem, 2.2vw, 1.8rem) 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--krcti-calendar-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-course-calendar-editorial main
  :where(div, section):has(> article.calendar-event)
  > article.calendar-event:last-child {
  border-bottom: 1px solid var(--krcti-calendar-rule-strong);
}

@media (hover: hover) and (pointer: fine) {
  body.krcti-course-calendar-editorial main article.calendar-event:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

body.krcti-course-calendar-editorial main
  article.calendar-event :where(h2, h3, h4) {
  margin-top: 0;
}

body.krcti-course-calendar-editorial main
  article.calendar-event
  :where(.actions, .card-actions, .course-actions, .event-actions) {
  margin-top: 0.85rem;
}

body.krcti-course-calendar-editorial main
  :where(button, [role="button"])[aria-pressed],
body.krcti-course-calendar-editorial main
  :where(button, [role="button"])[aria-selected] {
  box-shadow: none;
}

@media (min-width: 760px) {
  body.krcti-course-calendar-editorial main article.calendar-event {
    padding-block: clamp(1.4rem, 1.8vw, 2rem);
  }

  body.krcti-course-calendar-editorial main
    article.calendar-event:not(:has(> .calendar-date)) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 420px) {
  body.krcti-course-calendar-editorial main article.calendar-event {
    min-width: 0;
    padding-block: 1.1rem;
  }

  body.krcti-course-calendar-editorial main
    article.calendar-event
    :where(h2, h3, h4, p, a, button, .button) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.krcti-course-calendar-editorial main
    article.calendar-event
    :where(.actions, .card-actions, .course-actions, .event-actions) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-course-calendar-editorial main article.calendar-event {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END v2 Course Calendar presentation layer */

/* KRCTI-PHASE-2.2B-CORPORATE-EDITORIAL-V1-20260825
   Presentation only. Corporate Training Sanity/content/function contract is protected. */

body.krcti-corporate-editorial main {
  --krcti-corporate-rule: rgba(20, 20, 20, 0.16);
  --krcti-corporate-rule-strong: rgba(20, 20, 20, 0.30);
  --krcti-corporate-muted: rgba(20, 20, 20, 0.66);
}

/* --------------------------------------------------------------------------
   WHO WE TRAIN
   Convert audience cards into a structured editorial matrix.
   -------------------------------------------------------------------------- */

body.krcti-corporate-editorial main
  .krcti-corporate-audiences .course-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-corporate-rule-strong);
  background: transparent;
}

body.krcti-corporate-editorial main
  .krcti-corporate-audiences .course-tile {
  min-width: 0;
  margin: 0;
  padding: clamp(1.4rem, 2.5vw, 2.15rem);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-corporate-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-corporate-editorial main
  .krcti-corporate-audiences .course-tile:nth-child(odd) {
  border-right: 1px solid var(--krcti-corporate-rule);
}

body.krcti-corporate-editorial main
  .krcti-corporate-audiences .course-tile :where(h3, h4) {
  margin-top: 0;
}

body.krcti-corporate-editorial main
  .krcti-corporate-audiences .course-tile .small {
  color: var(--krcti-corporate-muted);
}

/* Repeated proposal actions become restrained secondary actions. */
body.krcti-corporate-editorial main
  .krcti-corporate-audiences .course-tile .button.small {
  display: inline-flex;
  width: auto;
  min-height: 0;
  margin-top: 0.9rem;
  padding: 0.15rem 0;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

/* --------------------------------------------------------------------------
   FUNCTIONAL TRAINING SELECTOR
   Preserve as a surfaced interaction object, but remove unnecessary elevation.
   -------------------------------------------------------------------------- */

body.krcti-corporate-editorial main #corporate-selector {
  border-radius: 0;
}

body.krcti-corporate-editorial main
  #corporate-selector .calendar-picker-card {
  border: 1px solid var(--krcti-corporate-rule);
  border-radius: 6px;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   TRAINING AREAS
   Convert 22+ training tiles into a single catalogue/list.
   -------------------------------------------------------------------------- */

body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--krcti-corporate-rule-strong);
  background: transparent;
}

body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-tile {
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 2.2vw, 1.85rem) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-corporate-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-tile :where(h3, h4) {
  margin-top: 0;
  max-width: 52rem;
}

body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-tile > p {
  max-width: 58rem;
}

body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.9rem;
}

/* One strong action per course; supporting actions stay text links. */
body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-actions .button.small {
  box-shadow: none;
}

/* Neutralise legacy hover-card effects. */
@media (hover: hover) and (pointer: fine) {
  body.krcti-corporate-editorial main
    .krcti-corporate-audiences .course-tile:hover,
  body.krcti-corporate-editorial main
    .krcti-corporate-training-areas .course-tile:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   CORPORATE REQUEST FORM
   Keep the form as a functional object. Do not deconstruct its field system.
   -------------------------------------------------------------------------- */

body.krcti-corporate-editorial main #request .lead-form {
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  body.krcti-corporate-editorial main
    .krcti-corporate-audiences .course-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.krcti-corporate-editorial main
    .krcti-corporate-audiences .course-tile {
    padding-inline: 0;
    border-right: 0;
  }

  body.krcti-corporate-editorial main
    .krcti-corporate-audiences .course-tile:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 420px) {
  body.krcti-corporate-editorial main
    :where(.krcti-corporate-audiences, .krcti-corporate-training-areas)
    .course-tile {
    min-width: 0;
    padding-block: 1.1rem;
  }

  body.krcti-corporate-editorial main
    :where(.krcti-corporate-audiences, .krcti-corporate-training-areas)
    .course-tile
    :where(h3, h4, p, a, button, .button) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.krcti-corporate-editorial main
    .krcti-corporate-training-areas .course-actions {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-corporate-editorial main
    :where(.krcti-corporate-audiences, .krcti-corporate-training-areas)
    .course-tile {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.2B Corporate Training presentation layer */

/* KRCTI-PHASE-2.2C-CORPORATE-COURSE-SCROLLER-V1-20260825
   CSS-only refinement. Keeps Phase 2.2B catalogue presentation intact. */

/*
  Constrain only the Training Areas catalogue.
  The Who We Train matrix, selector, request form and all other page sections
  retain their existing Phase 2.2B behavior.
*/
body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-card-grid {
  max-height: 46rem;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding-right: clamp(0.35rem, 0.7vw, 0.75rem);
}

/*
  Keep the list visually integrated with the page rather than turning the
  scroll region into another rounded card.
*/
body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-card-grid {
  border-top: 1px solid var(--krcti-corporate-rule-strong);
  border-bottom: 1px solid var(--krcti-corporate-rule-strong);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/*
  Avoid a doubled bottom rule because the scroll container itself now supplies
  the lower boundary.
*/
body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-tile:last-child {
  border-bottom: 0;
}

/* Firefox scrollbar: restrained and functional. */
body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-card-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 20, 20, 0.42) transparent;
}

/* Chromium / Safari scrollbar. */
body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-card-grid::-webkit-scrollbar {
  width: 8px;
}

body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-card-grid::-webkit-scrollbar-track {
  background: transparent;
}

body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-card-grid::-webkit-scrollbar-thumb {
  background: rgba(20, 20, 20, 0.36);
  border-radius: 999px;
}

/* Tablet: slightly shorter region to maintain page proportion. */
@media (max-width: 900px) {
  body.krcti-corporate-editorial main
    .krcti-corporate-training-areas .course-card-grid {
    max-height: 40rem;
  }
}

/* Mobile: retain meaningful internal scroll without dominating the viewport. */
@media (max-width: 520px) {
  body.krcti-corporate-editorial main
    .krcti-corporate-training-areas .course-card-grid {
    max-height: 32rem;
    padding-right: 0.35rem;
  }
}

/*
  Preserve reduced-motion behavior. Scrolling remains native and immediate.
*/
@media (prefers-reduced-motion: reduce) {
  body.krcti-corporate-editorial main
    .krcti-corporate-training-areas .course-card-grid {
    scroll-behavior: auto;
  }
}

/* END Phase 2.2C Corporate Training course scroller */

/* KRCTI-PHASE-2.3B-COURSE-DETAIL-PROSPECTUS-V2-20260825
   Presentation only. Course/programme content and Sanity contracts are protected. */

body.krcti-course-detail-editorial main {
  --krcti-detail-rule: rgba(20, 20, 20, 0.16);
  --krcti-detail-rule-strong: rgba(20, 20, 20, 0.30);
  --krcti-detail-muted: rgba(20, 20, 20, 0.66);
}

/* --------------------------------------------------------------------------
   COURSE SUMMARY
   Make course facts read like a prospectus, not independent mini-cards.
   -------------------------------------------------------------------------- */

body.krcti-course-detail-editorial main
  .krcti-course-detail-summary .metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0;
  margin-top: 1.25rem;
  border-top: 1px solid var(--krcti-detail-rule-strong);
  border-bottom: 1px solid var(--krcti-detail-rule-strong);
  background: transparent;
}

/* Flatten whatever element currently carries each metric/fact. */
body.krcti-course-detail-editorial main
  .krcti-course-detail-summary .metric-grid > * {
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--krcti-detail-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-course-detail-editorial main
  .krcti-course-detail-summary .metric-grid > *:last-child {
  border-right: 0;
}

body.krcti-course-detail-editorial main
  .krcti-course-detail-summary :where(p, ul, ol) {
  max-width: 70rem;
}

body.krcti-course-detail-editorial main
  .krcti-course-detail-summary :where(.card, .panel) {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   RELATED COURSES
   Turn recommendation cards into a compact editorial matrix/list.
   -------------------------------------------------------------------------- */

body.krcti-course-detail-editorial main
  .krcti-course-detail-related .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-detail-rule-strong);
  background: transparent;
}

body.krcti-course-detail-editorial main
  .krcti-course-detail-related .card-grid > .card,
body.krcti-course-detail-editorial main
  .krcti-course-detail-related .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.15rem, 2.2vw, 1.65rem);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-detail-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-course-detail-editorial main
  .krcti-course-detail-related .card-grid > .card:nth-child(odd) {
  border-right: 1px solid var(--krcti-detail-rule);
}

body.krcti-course-detail-editorial main
  .krcti-course-detail-related .card :where(h3, h4) {
  margin-top: 0;
}

body.krcti-course-detail-editorial main
  .krcti-course-detail-related .card .button.small {
  box-shadow: none;
}

/* Remove legacy hover elevation from static related-course content. */
@media (hover: hover) and (pointer: fine) {
  body.krcti-course-detail-editorial main
    .krcti-course-detail-related .card:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   BOOK / REGISTER / INQUIRY
   This remains a genuine functional surface.
   -------------------------------------------------------------------------- */

body.krcti-course-detail-editorial main #inquiry .lead-form {
  box-shadow: none;
  border-radius: 6px;
}

/* Keep the functional panel visually distinct without excessive elevation. */
body.krcti-course-detail-editorial main #inquiry {
  position: relative;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  body.krcti-course-detail-editorial main
    .krcti-course-detail-related .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.krcti-course-detail-editorial main
    .krcti-course-detail-related .card-grid > .card {
    padding-inline: 0;
    border-right: 0;
  }

  body.krcti-course-detail-editorial main
    .krcti-course-detail-related .card-grid > .card:nth-child(odd) {
    border-right: 0;
  }

  body.krcti-course-detail-editorial main
    .krcti-course-detail-summary .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.krcti-course-detail-editorial main
    .krcti-course-detail-summary .metric-grid > * {
    border-right: 0;
    border-bottom: 1px solid var(--krcti-detail-rule);
  }

  body.krcti-course-detail-editorial main
    .krcti-course-detail-summary .metric-grid > *:nth-child(odd) {
    border-right: 1px solid var(--krcti-detail-rule);
  }

  body.krcti-course-detail-editorial main
    .krcti-course-detail-summary .metric-grid > *:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 440px) {
  body.krcti-course-detail-editorial main
    .krcti-course-detail-summary .metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.krcti-course-detail-editorial main
    .krcti-course-detail-summary .metric-grid > * {
    padding-inline: 0;
    border-right: 0;
  }

  body.krcti-course-detail-editorial main
    .krcti-course-detail-summary .metric-grid > *:nth-child(odd) {
    border-right: 0;
  }

  body.krcti-course-detail-editorial main
    :where(.krcti-course-detail-summary, .krcti-course-detail-related)
    :where(h1, h2, h3, h4, p, li, a, button, .button) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-course-detail-editorial main
    :where(.krcti-course-detail-summary, .krcti-course-detail-related)
    :where(.card, .metric-grid > *) {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.3B course/programme detail prospectus layer */

/* KRCTI-PHASE-2.4B-ACADEMIC-PROGRAMMES-PROSPECTUS-V1-20260825
   Presentation only. Programme content and Sanity contracts are protected. */

body.krcti-academic-programmes-editorial main {
  --krcti-programme-rule: rgba(20, 20, 20, 0.16);
  --krcti-programme-rule-strong: rgba(20, 20, 20, 0.30);
  --krcti-programme-muted: rgba(20, 20, 20, 0.66);
}

/* --------------------------------------------------------------------------
   PROGRAMME INDEX
   Five programme entities become prospectus records rather than cards.
   -------------------------------------------------------------------------- */

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--krcti-programme-rule-strong);
  border-bottom: 1px solid var(--krcti-programme-rule-strong);
  background: transparent;
}

/* Flatten each programme record. */
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-tile {
  min-width: 0;
  margin: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-programme-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-tile:last-child {
  border-bottom: 0;
}

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-tile :where(h3, h4) {
  margin-top: 0;
  max-width: 58rem;
}

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-tile > p {
  max-width: 65rem;
}

/* Course/programme action row remains clear but does not dominate the record. */
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

/* Keep View Course Details as the strongest record action. */
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-actions .button.small {
  box-shadow: none;
}

/* Reduce ghost Apply Now from "second primary button" to restrained action. */
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-actions .button.small.ghost {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  padding-inline: 0.2rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

/* Existing text-link remains tertiary/supporting action. */
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .text-link {
  white-space: normal;
}

/* Neutralise legacy tile hover elevation. */
@media (hover: hover) and (pointer: fine) {
  body.krcti-academic-programmes-editorial main
    .krcti-academic-programmes-list .course-tile:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   Mobile uses stacked records, never a squeezed table.
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {
  body.krcti-academic-programmes-editorial main
    .krcti-academic-programmes-list .course-tile {
    padding-block: 1.15rem;
  }

  body.krcti-academic-programmes-editorial main
    .krcti-academic-programmes-list .course-tile
    :where(h3, h4, p, a, button, .button) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.krcti-academic-programmes-editorial main
    .krcti-academic-programmes-list .course-actions {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-academic-programmes-editorial main
    .krcti-academic-programmes-list .course-tile {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.4B Academic Programmes prospectus layer */

/* KRCTI-PHASE-2.5B-COURSE-CATEGORIES-EDITORIAL-V1-20260825
   Presentation only. Category content and functional contracts are protected. */

body.krcti-course-category-editorial main {
  --krcti-category-rule: rgba(20, 20, 20, 0.16);
  --krcti-category-rule-strong: rgba(20, 20, 20, 0.30);
}

/* --------------------------------------------------------------------------
   AVAILABLE COURSES
   Convert the legacy tile grid into a flat editorial training catalogue.
   -------------------------------------------------------------------------- */

body.krcti-course-category-editorial main
  .krcti-course-category-list .course-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--krcti-category-rule-strong);
  border-bottom: 1px solid var(--krcti-category-rule-strong);
  background: transparent;
}

/* Each course becomes a catalogue row rather than a floating card. */
body.krcti-course-category-editorial main
  .krcti-course-category-list .course-tile {
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 2.25vw, 1.8rem) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-category-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-course-category-editorial main
  .krcti-course-category-list .course-tile:last-child {
  border-bottom: 0;
}

body.krcti-course-category-editorial main
  .krcti-course-category-list .course-tile :where(h3, h4) {
  margin-top: 0;
  max-width: 64rem;
}

body.krcti-course-category-editorial main
  .krcti-course-category-list .course-tile > p {
  max-width: 68rem;
}

/* Action rows remain functional but visually quieter than the course title. */
body.krcti-course-category-editorial main
  .krcti-course-category-list .course-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

body.krcti-course-category-editorial main
  .krcti-course-category-list .course-actions .button {
  box-shadow: none;
}

body.krcti-course-category-editorial main
  .krcti-course-category-list .course-actions .button.ghost {
  background: transparent;
  box-shadow: none;
}

/* Neutralise legacy hover elevation. */
@media (hover: hover) and (pointer: fine) {
  body.krcti-course-category-editorial main
    .krcti-course-category-list .course-tile:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   LONG COLLECTION
   Professional Development has 9 courses. Constrain only this collection.
   -------------------------------------------------------------------------- */

body.krcti-course-category-long-list main
  .krcti-course-category-list .course-card-grid {
  max-height: 44rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: clamp(0.35rem, 0.8vw, 0.7rem);
}

body.krcti-course-category-long-list main
  .krcti-course-category-list .course-card-grid::-webkit-scrollbar {
  width: 0.55rem;
}

body.krcti-course-category-long-list main
  .krcti-course-category-list .course-card-grid::-webkit-scrollbar-track {
  background: transparent;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   All course records stay stacked; no desktop table is squeezed onto mobile.
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  body.krcti-course-category-long-list main
    .krcti-course-category-list .course-card-grid {
    max-height: 38rem;
  }
}

@media (max-width: 520px) {
  body.krcti-course-category-editorial main
    .krcti-course-category-list .course-tile {
    padding-block: 1.1rem;
  }

  body.krcti-course-category-editorial main
    .krcti-course-category-list .course-tile
    :where(h3, h4, p, a, button, .button) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.krcti-course-category-editorial main
    .krcti-course-category-list .course-actions {
    align-items: flex-start;
  }

  body.krcti-course-category-long-list main
    .krcti-course-category-list .course-card-grid {
    max-height: 32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-course-category-editorial main
    .krcti-course-category-list .course-tile {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.5B category catalogue layer */

/* KRCTI-PHASE-2.6B-HOMEPAGE-EDITORIAL-V1-20260825
   Homepage presentation only. Content, links, hooks and Sanity contracts protected. */

body.krcti-home-editorial main {
  --krcti-home-rule: rgba(20, 20, 20, 0.16);
  --krcti-home-rule-strong: rgba(20, 20, 20, 0.30);
}

/* --------------------------------------------------------------------------
   WHY TRAIN WITH US
   Four proof points become an institutional editorial matrix.
   -------------------------------------------------------------------------- */

body.krcti-home-editorial main
  .krcti-home-proof-points .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-home-rule-strong);
  border-bottom: 1px solid var(--krcti-home-rule-strong);
  background: transparent;
}

body.krcti-home-editorial main
  .krcti-home-proof-points .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.35rem, 2.8vw, 2rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-home-editorial main
  .krcti-home-proof-points .card:nth-child(odd) {
  border-right: 1px solid var(--krcti-home-rule);
}

body.krcti-home-editorial main
  .krcti-home-proof-points .card:nth-child(-n + 2) {
  border-bottom: 1px solid var(--krcti-home-rule);
}

body.krcti-home-editorial main
  .krcti-home-proof-points .card :where(h3, h4) {
  margin-top: 0;
}

body.krcti-home-editorial main
  .krcti-home-proof-points .card a {
  display: inline-block;
  margin-top: 0.8rem;
}

/* --------------------------------------------------------------------------
   FIND THE RIGHT COURSE
   Three cards become large navigational pathways into the catalogue.
   -------------------------------------------------------------------------- */

body.krcti-home-editorial main
  .krcti-home-pathways .card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--krcti-home-rule-strong);
  border-bottom: 1px solid var(--krcti-home-rule-strong);
}

body.krcti-home-editorial main
  .krcti-home-pathways .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.45rem, 2.8vw, 2.1rem) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-home-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-home-editorial main
  .krcti-home-pathways .card:last-child {
  border-bottom: 0;
}

body.krcti-home-editorial main
  .krcti-home-pathways .card :where(h3, h4) {
  margin-top: 0;
  max-width: 46rem;
}

body.krcti-home-editorial main
  .krcti-home-pathways .card p {
  max-width: 60rem;
}

body.krcti-home-editorial main
  .krcti-home-pathways .card a {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   LATEST RESOURCES
   Editorial utility rows: article, calendar, partnerships.
   -------------------------------------------------------------------------- */

body.krcti-home-editorial main
  .krcti-home-resources .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-home-rule-strong);
  border-bottom: 1px solid var(--krcti-home-rule-strong);
}

body.krcti-home-editorial main
  .krcti-home-resources .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--krcti-home-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-home-editorial main
  .krcti-home-resources .card:last-child {
  border-right: 0;
}

body.krcti-home-editorial main
  .krcti-home-resources .card :where(h3, h4) {
  margin-top: 0;
}

body.krcti-home-editorial main
  .krcti-home-resources .card a {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
}

/* Neutralise legacy card elevation only within the three homepage scopes. */
@media (hover: hover) and (pointer: fine) {
  body.krcti-home-editorial main
    :is(.krcti-home-proof-points, .krcti-home-pathways, .krcti-home-resources)
    .card:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   Keep the homepage editorial, readable and non-card-like on narrow screens.
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  body.krcti-home-editorial main
    .krcti-home-resources .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.krcti-home-editorial main
    .krcti-home-resources .card {
    border-right: 0;
    border-bottom: 1px solid var(--krcti-home-rule);
  }

  body.krcti-home-editorial main
    .krcti-home-resources .card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  body.krcti-home-editorial main
    .krcti-home-proof-points .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.krcti-home-editorial main
    .krcti-home-proof-points .card {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--krcti-home-rule);
  }

  body.krcti-home-editorial main
    .krcti-home-proof-points .card:last-child {
    border-bottom: 0;
  }

  body.krcti-home-editorial main
    :is(.krcti-home-proof-points, .krcti-home-pathways, .krcti-home-resources)
    .card
    :where(h3, h4, p, a, button, .button) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-home-editorial main
    :is(.krcti-home-proof-points, .krcti-home-pathways, .krcti-home-resources)
    .card {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.6B homepage editorial layer */

/* KRCTI-PHASE-2.7B-ABOUT-INSTITUTIONAL-V1-20260825
   About presentation only. Route, content repository and chronology protected. */

main {
  --krcti-about-rule: rgba(20, 20, 20, 0.16);
  --krcti-about-rule-strong: rgba(20, 20, 20, 0.30);
}

/* WHAT WE DO */
main .krcti-about-what-we-do .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-about-rule-strong);
  border-bottom: 1px solid var(--krcti-about-rule-strong);
}

main .krcti-about-what-we-do .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.35rem, 2.8vw, 2rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

main .krcti-about-what-we-do .card:nth-child(odd) {
  border-right: 1px solid var(--krcti-about-rule);
}

main .krcti-about-what-we-do .card:nth-child(n + 3) {
  border-top: 1px solid var(--krcti-about-rule);
}

main .krcti-about-what-we-do .card :where(h3, h4) {
  margin-top: 0;
}

/* VISION + MISSION */
main .krcti-about-vision-mission .two-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-about-rule-strong);
  border-bottom: 1px solid var(--krcti-about-rule-strong);
}

main .krcti-about-vision-mission .two-card-grid > * {
  min-width: 0;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

main .krcti-about-vision-mission .two-card-grid > * + * {
  border-left: 1px solid var(--krcti-about-rule);
}

main .krcti-about-vision-mission .two-card-grid > * :where(h3, h4) {
  margin-top: 0;
}

/* CORE VALUES */
main .krcti-about-core-values .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-about-rule-strong);
  border-bottom: 1px solid var(--krcti-about-rule-strong);
}

main .krcti-about-core-values .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 2.6vw, 1.9rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

main .krcti-about-core-values .card:nth-child(odd) {
  border-right: 1px solid var(--krcti-about-rule);
}

main .krcti-about-core-values .card:nth-child(n + 3) {
  border-top: 1px solid var(--krcti-about-rule);
}

main .krcti-about-core-values .card :where(h3, h4) {
  margin-top: 0;
}

/* TEAM */
main .krcti-about-team .team-grid {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

main .krcti-about-team .team-card {
  min-width: 0;
  margin: 0;
  padding: 0 0 1.25rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-about-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

main .krcti-about-team .team-card img {
  display: block;
  width: 100%;
  height: auto;
}

main .krcti-about-team .team-card :where(h3, h4) {
  margin-top: 1rem;
}

@media (hover: hover) and (pointer: fine) {
  main :is(.krcti-about-what-we-do, .krcti-about-core-values, .krcti-about-team)
    :is(.card, .team-card):hover,
  main .krcti-about-vision-mission .two-card-grid > *:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 700px) {
  main .krcti-about-what-we-do .card-grid,
  main .krcti-about-vision-mission .two-card-grid,
  main .krcti-about-core-values .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  main .krcti-about-what-we-do .card,
  main .krcti-about-core-values .card {
    padding-inline: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--krcti-about-rule);
  }

  main .krcti-about-what-we-do .card:last-child,
  main .krcti-about-core-values .card:last-child {
    border-bottom: 0;
  }

  main .krcti-about-vision-mission .two-card-grid > * {
    padding-inline: 0;
  }

  main .krcti-about-vision-mission .two-card-grid > * + * {
    border-left: 0;
    border-top: 1px solid var(--krcti-about-rule);
  }

  main :is(
    .krcti-about-what-we-do,
    .krcti-about-vision-mission,
    .krcti-about-core-values,
    .krcti-about-team
  ) :where(h2, h3, h4, p, a, button, .button) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  main :is(
    .krcti-about-what-we-do,
    .krcti-about-vision-mission,
    .krcti-about-core-values,
    .krcti-about-team
  ) :is(.card, .team-card),
  main .krcti-about-vision-mission .two-card-grid > * {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.7B About institutional layer */

/* KRCTI-PHASE-2.8B-STUDENT-LIFE-EDITORIAL-V4-20260826
   Student Life presentation only. Gallery mechanics and content are protected. */

body.krcti-student-life-editorial main {
  --krcti-student-life-rule: rgba(20, 20, 20, 0.16);
  --krcti-student-life-rule-strong: rgba(20, 20, 20, 0.30);
}

/* --------------------------------------------------------------------------
   CAMPUS LIFE IN PICTURES
   Preserve the existing gallery behavior; remove ornamental chrome and let
   photography carry the section.
   -------------------------------------------------------------------------- */

body.krcti-student-life-editorial main
  .krcti-student-life-gallery-section .student-life-gallery {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.krcti-student-life-editorial main
  .krcti-student-life-gallery-section .gallery-slide {
  border-radius: 0;
  box-shadow: none;
}

/* Do not alter active/inactive state mechanics. Only photographic sizing. */
body.krcti-student-life-editorial main
  .krcti-student-life-gallery-section img.gallery-slide {
  width: 100%;
  height: auto;
  max-height: 46rem;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   STUDENT SUPPORT
   Six cards become a two-column institutional support matrix.
   -------------------------------------------------------------------------- */

body.krcti-student-life-editorial main
  .krcti-student-life-support .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-student-life-rule-strong);
  border-bottom: 1px solid var(--krcti-student-life-rule-strong);
  background: transparent;
}

body.krcti-student-life-editorial main
  .krcti-student-life-support .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.3rem, 2.7vw, 2rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-student-life-editorial main
  .krcti-student-life-support .card:nth-child(odd) {
  border-right: 1px solid var(--krcti-student-life-rule);
}

body.krcti-student-life-editorial main
  .krcti-student-life-support .card:nth-child(n + 3) {
  border-top: 1px solid var(--krcti-student-life-rule);
}

body.krcti-student-life-editorial main
  .krcti-student-life-support .card :where(h3, h4) {
  margin-top: 0;
}

body.krcti-student-life-editorial main
  .krcti-student-life-support .card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
}

/* Neutralise legacy card elevation within Student Support only. */
@media (hover: hover) and (pointer: fine) {
  body.krcti-student-life-editorial main
    .krcti-student-life-support .card:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  body.krcti-student-life-editorial main
    .krcti-student-life-support .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.krcti-student-life-editorial main
    .krcti-student-life-support .card {
    padding-inline: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--krcti-student-life-rule);
  }

  body.krcti-student-life-editorial main
    .krcti-student-life-support .card:last-child {
    border-bottom: 0;
  }

  body.krcti-student-life-editorial main
    .krcti-student-life-support
    :where(h3, h4, p, a, button, .button) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  body.krcti-student-life-editorial main
    .krcti-student-life-gallery-section img.gallery-slide {
    max-height: 32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-student-life-editorial main
    .krcti-student-life-support .card {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.8B Student Life editorial layer */


/* KRCTI-PHASE-2.9B-PARTNERSHIPS-PILLARS-EDITORIAL-V2-20260826
   Partnerships presentation + approved pillar insertion. */

body.krcti-partnerships-editorial main {
  --krcti-partner-rule: rgba(20, 20, 20, 0.16);
  --krcti-partner-rule-strong: rgba(20, 20, 20, 0.30);
}

/* PARTNERSHIP PILLARS */
body.krcti-partnerships-editorial main
  .krcti-partnership-pillars .partnership-pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--krcti-partner-rule-strong);
  border-bottom: 1px solid var(--krcti-partner-rule-strong);
  counter-reset: krcti-partnership-pillar;
}

body.krcti-partnerships-editorial main
  .krcti-partnership-pillars .partnership-pillar-list li {
  counter-increment: krcti-partnership-pillar;
  display: grid;
  grid-template-columns: minmax(3.5rem, 0.16fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: baseline;
  margin: 0;
  padding: clamp(1.35rem, 2.6vw, 2rem) 0;
  border-bottom: 1px solid var(--krcti-partner-rule);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
}

body.krcti-partnerships-editorial main
  .krcti-partnership-pillars .partnership-pillar-list li:last-child {
  border-bottom: 0;
}

body.krcti-partnerships-editorial main
  .krcti-partnership-pillars .partnership-pillar-list li::before {
  content: counter(krcti-partnership-pillar, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.58;
}

/* PARTNERSHIP AREAS */
body.krcti-partnerships-editorial main
  .krcti-partnership-areas .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-partner-rule-strong);
  border-bottom: 1px solid var(--krcti-partner-rule-strong);
}

body.krcti-partnerships-editorial main
  .krcti-partnership-areas .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--krcti-partner-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-partnerships-editorial main
  .krcti-partnership-areas .card:last-child {
  border-right: 0;
}

body.krcti-partnerships-editorial main
  .krcti-partnership-areas .card :where(h3, h4) {
  margin-top: 0;
}

/* WHO WE PARTNER WITH */
body.krcti-partnerships-editorial main
  .krcti-partner-types .card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--krcti-partner-rule-strong);
  border-bottom: 1px solid var(--krcti-partner-rule-strong);
}

body.krcti-partnerships-editorial main
  .krcti-partner-types .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.2rem, 2.3vw, 1.75rem) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-partner-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-partnerships-editorial main
  .krcti-partner-types .card:last-child {
  border-bottom: 0;
}

body.krcti-partnerships-editorial main
  .krcti-partner-types .card :where(h3, h4) {
  margin-top: 0;
}

/* PARTNER LOGOS */
body.krcti-partnerships-editorial main
  .krcti-partner-logos .partner-marquee {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* EOI FORM */
body.krcti-partnerships-editorial main
  .krcti-partner-eoi .lead-form {
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  body.krcti-partnerships-editorial main
    :is(.krcti-partnership-areas, .krcti-partner-types) .card:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 800px) {
  body.krcti-partnerships-editorial main
    .krcti-partnership-areas .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.krcti-partnerships-editorial main
    .krcti-partnership-areas .card {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--krcti-partner-rule);
  }

  body.krcti-partnerships-editorial main
    .krcti-partnership-areas .card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  body.krcti-partnerships-editorial main
    .krcti-partnership-pillars .partnership-pillar-list li {
    grid-template-columns: minmax(2.5rem, auto) minmax(0, 1fr);
    gap: 0.8rem;
  }

  body.krcti-partnerships-editorial main
    :is(
      .krcti-partnership-pillars,
      .krcti-partnership-areas,
      .krcti-partner-types
    )
    :where(h2, h3, h4, p, li, a, button, .button) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-partnerships-editorial main
    :is(.krcti-partnership-areas, .krcti-partner-types) .card {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.9B Partnerships editorial layer */


/* KRCTI-PHASE-2.10B-RESOURCES-LIBRARY-EDITORIAL-V1-20260826
   Resources presentation only. Content, routes and filter mechanics protected. */

body.krcti-resources-editorial main {
  --krcti-resource-rule: rgba(20, 20, 20, 0.16);
  --krcti-resource-rule-strong: rgba(20, 20, 20, 0.30);
}

/* FEATURED RESOURCES */
body.krcti-resources-editorial main
  .krcti-resources-featured .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-resource-rule-strong);
  border-bottom: 1px solid var(--krcti-resource-rule-strong);
}

body.krcti-resources-editorial main
  .krcti-resources-featured .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.35rem, 2.7vw, 2rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-resources-editorial main
  .krcti-resources-featured .card:nth-child(odd) {
  border-right: 1px solid var(--krcti-resource-rule);
}

body.krcti-resources-editorial main
  .krcti-resources-featured .card:nth-child(n + 3) {
  border-top: 1px solid var(--krcti-resource-rule);
}

body.krcti-resources-editorial main
  .krcti-resources-featured .card :where(h3, h4) {
  margin-top: 0;
}

/* ARTICLES + FILTERS */
body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--krcti-resource-rule-strong);
  border-bottom: 1px solid var(--krcti-resource-rule-strong);
}

body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter {
  margin: 0;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--krcti-resource-rule);
  border-radius: 0;
  box-shadow: none;
}

body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter:last-of-type {
  border-right: 0;
}

body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter.active,
body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter[aria-current="true"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

body.krcti-resources-editorial main
  .krcti-resources-articles .resource-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--krcti-resource-rule-strong);
  border-bottom: 1px solid var(--krcti-resource-rule-strong);
}

body.krcti-resources-editorial main
  .krcti-resources-articles .resource-article-card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.3rem, 2.5vw, 1.9rem) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-resource-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-resources-editorial main
  .krcti-resources-articles .resource-article-card:last-child {
  border-bottom: 0;
}

body.krcti-resources-editorial main
  .krcti-resources-articles .resource-article-card :where(h3, h4) {
  margin-top: 0;
}

body.krcti-resources-editorial main
  .krcti-resources-articles .article-meta {
  margin-bottom: 0.55rem;
}

/* DOWNLOADS + TOOLS */
body.krcti-resources-editorial main
  .krcti-resources-tools .card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--krcti-resource-rule-strong);
  border-bottom: 1px solid var(--krcti-resource-rule-strong);
}

body.krcti-resources-editorial main
  .krcti-resources-tools .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.2rem, 2.3vw, 1.7rem) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-resource-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-resources-editorial main
  .krcti-resources-tools .card:last-child {
  border-bottom: 0;
}

body.krcti-resources-editorial main
  .krcti-resources-tools .card :where(h3, h4) {
  margin-top: 0;
}

/* Neutralise legacy card elevation only within Resources flattened scopes. */
@media (hover: hover) and (pointer: fine) {
  body.krcti-resources-editorial main
    :is(
      .krcti-resources-featured,
      .krcti-resources-articles,
      .krcti-resources-tools
    )
    :is(.card, .resource-article-card):hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 760px) {
  body.krcti-resources-editorial main
    .krcti-resources-featured .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.krcti-resources-editorial main
    .krcti-resources-featured .card {
    padding-inline: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--krcti-resource-rule);
  }

  body.krcti-resources-editorial main
    .krcti-resources-featured .card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  body.krcti-resources-editorial main
    .krcti-resources-articles .resource-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.krcti-resources-editorial main
    .krcti-resources-articles .resource-filter {
    border-right: 1px solid var(--krcti-resource-rule);
    border-bottom: 1px solid var(--krcti-resource-rule);
  }

  body.krcti-resources-editorial main
    .krcti-resources-articles .resource-filter:nth-child(even) {
    border-right: 0;
  }

  body.krcti-resources-editorial main
    :is(
      .krcti-resources-featured,
      .krcti-resources-articles,
      .krcti-resources-tools
    )
    :where(h2, h3, h4, p, a, button, .button) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-resources-editorial main
    :is(
      .krcti-resources-featured .card,
      .krcti-resources-articles .resource-article-card,
      .krcti-resources-tools .card
    ) {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.10B Resources library/editorial layer */


/* KRCTI-PHASE-2.10C-RESOURCES-FILTER-HOVER-FIX-V1-20260826
   Resources category hover/focus only. */

body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter:hover,
body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter:focus-visible {
  color: var(--red);
  background: transparent;
}

/* END Phase 2.10C Resources filter hover fix */


/* KRCTI-PHASE-2.10D-RESOURCES-FILTER-ACTIVE-STATE-FIX-V1-20260826
   Resources category active/hover/focus state correction. */

body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter.active,
body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter[aria-current="true"],
body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter:hover,
body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter:focus-visible {
  color: var(--red);
  background: transparent;
  background-color: transparent;
}

body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter.active,
body.krcti-resources-editorial main
  .krcti-resources-articles .resource-filter[aria-current="true"] {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* END Phase 2.10D Resources filter active state fix */


/* KRCTI-PHASE-2.11B-ADMISSIONS-PATHWAY-EDITORIAL-V1-20260826
   Admissions presentation only. Content, destinations and form behavior protected. */

body.krcti-admissions-editorial main {
  --krcti-admissions-rule: rgba(20, 20, 20, 0.16);
  --krcti-admissions-rule-strong: rgba(20, 20, 20, 0.30);
}

/* TRAINING PATHWAYS */
body.krcti-admissions-editorial main
  .krcti-admissions-pathways .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-admissions-rule-strong);
  border-bottom: 1px solid var(--krcti-admissions-rule-strong);
}

body.krcti-admissions-editorial main
  .krcti-admissions-pathways .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.4rem, 2.8vw, 2.1rem);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--krcti-admissions-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-admissions-editorial main
  .krcti-admissions-pathways .card:last-child {
  border-right: 0;
}

body.krcti-admissions-editorial main
  .krcti-admissions-pathways .card :where(h3, h4) {
  margin-top: 0;
}

body.krcti-admissions-editorial main
  .krcti-admissions-pathways .card a {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 700;
}

/* ADMISSIONS ENQUIRY FORM
   Retain as a genuine functional surface, but remove unnecessary elevation. */
body.krcti-admissions-editorial main
  .krcti-admissions-enquiry .lead-form {
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  body.krcti-admissions-editorial main
    .krcti-admissions-pathways .card:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 800px) {
  body.krcti-admissions-editorial main
    .krcti-admissions-pathways .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.krcti-admissions-editorial main
    .krcti-admissions-pathways .card {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--krcti-admissions-rule);
  }

  body.krcti-admissions-editorial main
    .krcti-admissions-pathways .card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  body.krcti-admissions-editorial main
    :is(.krcti-admissions-pathways, .krcti-admissions-enquiry)
    :where(h2, h3, h4, p, a, button, .button, label, input, select, textarea) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-admissions-editorial main
    .krcti-admissions-pathways .card {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.11B Admissions pathway/editorial layer */


/* KRCTI-PHASE-2.12B-CONTACT-DIRECTORY-EDITORIAL-V1-20260826
   Contact presentation only. Contact details and form behavior protected. */

body.krcti-contact-editorial main {
  --krcti-contact-rule: rgba(20, 20, 20, 0.16);
  --krcti-contact-rule-strong: rgba(20, 20, 20, 0.30);
}

/* CONTACT DETAILS + GENERAL ENQUIRY */
body.krcti-contact-editorial main
  .krcti-contact-details .two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

body.krcti-contact-editorial main
  .krcti-contact-details .two-col > :first-child {
  min-width: 0;
  border-top: 1px solid var(--krcti-contact-rule-strong);
  border-bottom: 1px solid var(--krcti-contact-rule-strong);
}

body.krcti-contact-editorial main
  .krcti-contact-details .two-col > :first-child h3 {
  margin: 0;
  padding-top: clamp(1.2rem, 2.4vw, 1.7rem);
  border-top: 1px solid var(--krcti-contact-rule);
}

body.krcti-contact-editorial main
  .krcti-contact-details .two-col > :first-child h3:first-child {
  border-top: 0;
}

body.krcti-contact-editorial main
  .krcti-contact-details .two-col > :first-child h3 + * {
  margin-top: 0.45rem;
}

body.krcti-contact-editorial main
  .krcti-contact-details .two-col > :first-child > :last-child {
  padding-bottom: clamp(1.2rem, 2.4vw, 1.7rem);
}

/* General enquiry stays a contained transactional surface. */
body.krcti-contact-editorial main
  .krcti-contact-details .lead-form {
  box-shadow: none;
}

/* SHARE FEEDBACK */
body.krcti-contact-editorial main
  .krcti-contact-feedback .lead-form {
  box-shadow: none;
}

body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-contact-rule-strong);
  border-bottom: 1px solid var(--krcti-contact-rule-strong);
}

body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-choice {
  min-width: 0;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--krcti-contact-rule);
  border-radius: 0;
  box-shadow: none;
}

body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-choice:last-child {
  border-right: 0;
}

@media (max-width: 800px) {
  body.krcti-contact-editorial main
    .krcti-contact-details .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-row {
    grid-template-columns: repeat(5, minmax(2.8rem, 1fr));
    overflow-x: auto;
  }

  body.krcti-contact-editorial main
    :is(.krcti-contact-details, .krcti-contact-feedback)
    :where(h2, h3, h4, p, a, button, .button, label, input, select, textarea) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* END Phase 2.12B Contact directory/editorial layer */


/* KRCTI-PHASE-2.12C-CONTACT-LOCATION-MAP-V1-20260826
   Exact KRCTI Google Maps location supplied by user. */

body.krcti-contact-editorial main
  .krcti-contact-location .krcti-contact-map-frame {
  width: 100%;
  min-height: 360px;
  border-top: 1px solid var(--krcti-contact-rule-strong);
  border-bottom: 1px solid var(--krcti-contact-rule-strong);
  overflow: hidden;
  background: #f3f3f3;
}

body.krcti-contact-editorial main
  .krcti-contact-location .krcti-contact-map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 48vw, 520px);
  border: 0;
}

body.krcti-contact-editorial main
  .krcti-contact-location .krcti-contact-map-action {
  margin-top: 0.9rem;
  margin-bottom: 0;
}

body.krcti-contact-editorial main
  .krcti-contact-location .krcti-contact-map-action a {
  font-weight: 700;
}

@media (max-width: 560px) {
  body.krcti-contact-editorial main
    .krcti-contact-location .krcti-contact-map-frame {
    min-height: 300px;
  }

  body.krcti-contact-editorial main
    .krcti-contact-location .krcti-contact-map-frame iframe {
    height: 320px;
  }
}

/* END Phase 2.12C Contact location map */


/* KRCTI-PHASE-2.12D-CONTACT-STAR-RATING-V1-20260826
   Visual-only star rating treatment. Underlying 1–5 form values protected. */

body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.3rem 0;
  border: 0;
  overflow: visible;
}

body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: transparent;
  font-size: 0;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-choice::before {
  content: "★";
  display: block;
  color: #d0d0d0;
  font-size: 2.55rem;
  line-height: 1;
  transition: color 140ms ease, transform 140ms ease;
}

body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-choice input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

/* Selected rating: fill every star up to the chosen value. */
body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-row:has(.rating-choice:nth-child(1) input:checked)
  .rating-choice:nth-child(-n + 1)::before,
body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-row:has(.rating-choice:nth-child(2) input:checked)
  .rating-choice:nth-child(-n + 2)::before,
body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-row:has(.rating-choice:nth-child(3) input:checked)
  .rating-choice:nth-child(-n + 3)::before,
body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-row:has(.rating-choice:nth-child(4) input:checked)
  .rating-choice:nth-child(-n + 4)::before,
body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-row:has(.rating-choice:nth-child(5) input:checked)
  .rating-choice:nth-child(-n + 5)::before {
  color: var(--red);
}

/* Pointer preview: fill every star up to the hovered value. */
@media (hover: hover) and (pointer: fine) {
  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-row:has(.rating-choice:nth-child(1):hover)
    .rating-choice:nth-child(-n + 1)::before,
  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-row:has(.rating-choice:nth-child(2):hover)
    .rating-choice:nth-child(-n + 2)::before,
  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-row:has(.rating-choice:nth-child(3):hover)
    .rating-choice:nth-child(-n + 3)::before,
  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-row:has(.rating-choice:nth-child(4):hover)
    .rating-choice:nth-child(-n + 4)::before,
  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-row:has(.rating-choice:nth-child(5):hover)
    .rating-choice:nth-child(-n + 5)::before {
    color: var(--red);
  }

  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-choice:hover::before {
    transform: scale(1.08);
  }
}

/* Keyboard focus remains obvious without restoring the old circle UI. */
body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-choice:has(input:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Prevent legacy active/checked radio styles from repainting the star control. */
body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-choice:hover,
body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-choice:focus-within,
body.krcti-contact-editorial main
  .krcti-contact-feedback .rating-choice:has(input:checked) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 420px) {
  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-row {
    gap: 0.15rem;
  }

  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-choice {
    width: 2.75rem;
    height: 2.75rem;
  }

  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-choice::before {
    font-size: 2.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-contact-editorial main
    .krcti-contact-feedback .rating-choice::before {
    transition: none;
    transform: none;
  }
}

/* END Phase 2.12D Contact star rating */


/* KRCTI-PHASE-2.13C-FINAL-THREE-PAGE-EDITORIAL-V1-20260826
   Alumni + RPL final substantive de-card pass. Content and forms protected. */

body.krcti-alumni-editorial main,
body.krcti-rpl-editorial main {
  --krcti-final-rule: rgba(20, 20, 20, 0.16);
  --krcti-final-rule-strong: rgba(20, 20, 20, 0.30);
}

/* --------------------------------------------------------------------------
   ALUMNI
   -------------------------------------------------------------------------- */

body.krcti-alumni-editorial main
  .krcti-alumni-vision-mission .two-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-final-rule-strong);
  border-bottom: 1px solid var(--krcti-final-rule-strong);
}

body.krcti-alumni-editorial main
  .krcti-alumni-vision-mission .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.4rem, 2.8vw, 2rem);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--krcti-final-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-alumni-editorial main
  .krcti-alumni-vision-mission .card:last-child {
  border-right: 0;
}

body.krcti-alumni-editorial main
  .krcti-alumni-membership .card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--krcti-final-rule-strong);
  border-bottom: 1px solid var(--krcti-final-rule-strong);
}

body.krcti-alumni-editorial main
  .krcti-alumni-membership .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.15rem, 2.2vw, 1.6rem) 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-final-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-alumni-editorial main
  .krcti-alumni-membership .card:last-child {
  border-bottom: 0;
}

body.krcti-alumni-editorial main
  .krcti-alumni-programmes .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-final-rule-strong);
  border-bottom: 1px solid var(--krcti-final-rule-strong);
}

body.krcti-alumni-editorial main
  .krcti-alumni-programmes .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-alumni-editorial main
  .krcti-alumni-programmes .card:nth-child(odd) {
  border-right: 1px solid var(--krcti-final-rule);
}

body.krcti-alumni-editorial main
  .krcti-alumni-programmes .card:nth-child(n + 3) {
  border-top: 1px solid var(--krcti-final-rule);
}

body.krcti-alumni-editorial main
  .krcti-alumni-inquiry .lead-form {
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  body.krcti-alumni-editorial main
    :is(
      .krcti-alumni-vision-mission,
      .krcti-alumni-membership,
      .krcti-alumni-programmes
    ) .card:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   RECOGNITION OF PRIOR LEARNING
   -------------------------------------------------------------------------- */

body.krcti-rpl-editorial main
  .krcti-rpl-process .card-grid {
  counter-reset: krcti-rpl-step;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--krcti-final-rule-strong);
  border-bottom: 1px solid var(--krcti-final-rule-strong);
}

body.krcti-rpl-editorial main
  .krcti-rpl-process .card {
  counter-increment: krcti-rpl-step;
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 2.5vw, 1.8rem) 0
    clamp(1.25rem, 2.5vw, 1.8rem) 4.2rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--krcti-final-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-rpl-editorial main
  .krcti-rpl-process .card:last-child {
  border-bottom: 0;
}

body.krcti-rpl-editorial main
  .krcti-rpl-process .card::before {
  content: counter(krcti-rpl-step, decimal-leading-zero);
  position: absolute;
  top: clamp(1.25rem, 2.5vw, 1.8rem);
  left: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.krcti-rpl-editorial main
  .krcti-rpl-pathways .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--krcti-final-rule-strong);
  border-bottom: 1px solid var(--krcti-final-rule-strong);
}

body.krcti-rpl-editorial main
  .krcti-rpl-pathways .card {
  min-width: 0;
  margin: 0;
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--krcti-final-rule);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.krcti-rpl-editorial main
  .krcti-rpl-pathways .card:last-child {
  border-right: 0;
}

body.krcti-rpl-editorial main
  .krcti-rpl-guidance .lead-form {
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  body.krcti-rpl-editorial main
    :is(.krcti-rpl-process, .krcti-rpl-pathways) .card:hover {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
}

@media (max-width: 760px) {
  body.krcti-alumni-editorial main
    .krcti-alumni-vision-mission .two-card-grid,
  body.krcti-alumni-editorial main
    .krcti-alumni-programmes .card-grid,
  body.krcti-rpl-editorial main
    .krcti-rpl-pathways .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.krcti-alumni-editorial main
    .krcti-alumni-vision-mission .card,
  body.krcti-alumni-editorial main
    .krcti-alumni-programmes .card,
  body.krcti-rpl-editorial main
    .krcti-rpl-pathways .card {
    padding-inline: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--krcti-final-rule);
  }

  body.krcti-alumni-editorial main
    .krcti-alumni-vision-mission .card:last-child,
  body.krcti-alumni-editorial main
    .krcti-alumni-programmes .card:last-child,
  body.krcti-rpl-editorial main
    .krcti-rpl-pathways .card:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.krcti-alumni-editorial main
    :is(
      .krcti-alumni-vision-mission,
      .krcti-alumni-membership,
      .krcti-alumni-programmes
    ) .card,
  body.krcti-rpl-editorial main
    :is(.krcti-rpl-process, .krcti-rpl-pathways) .card {
    animation: none;
    transition: none;
    transform: none;
  }
}

/* END Phase 2.13C Alumni + RPL */


/* KRCTI-PHASE-2.13D-REMOVE-GRADIENT-CARD-LINES-V1-20260826
   Remove only the legacy decorative gradient accent line used on cards.
   No layout, typography, button, hero, CTA or functional styling changed. */

.card::before {
  content: none !important;
  display: none !important;
}

/* END Phase 2.13D decorative gradient card-line removal */


/* KRCTI-PHASE-2.14-KRCS-SPACING-ALIGNMENT-V1-20260826
   Spacing-only alignment inspired by the Kenya Red Cross institutional rhythm.
   No content, typography, colour, component architecture or functionality changes. */

:root {
  --krcti-krcs-content-width: 80%;
  --krcti-krcs-content-max: 1200px;

  --krcti-krcs-section-y: clamp(5.5rem, 7vw, 7rem);
  --krcti-krcs-hero-y: clamp(6rem, 8vw, 8rem);
  --krcti-krcs-section-head-gap: clamp(2rem, 3vw, 2.5rem);
  --krcti-krcs-heading-copy-gap: 1rem;
  --krcti-krcs-cta-y: clamp(4.5rem, 6vw, 6rem);
  --krcti-krcs-stats-y: clamp(3.5rem, 5vw, 4.5rem);
}

/* --------------------------------------------------------------------------
   MAIN CONTENT WIDTH
   Match the broad KRCS row rhythm without changing header/footer geometry.
   -------------------------------------------------------------------------- */

main > section > .container,
main > .hero > .container,
main > .page-hero > .container,
main > .split-cta > .container,
main > .stats-band > .container {
  width: var(--krcti-krcs-content-width);
  max-width: var(--krcti-krcs-content-max);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   MAJOR VERTICAL RHYTHM
   -------------------------------------------------------------------------- */

main > .section,
main > section.section {
  padding-top: var(--krcti-krcs-section-y);
  padding-bottom: var(--krcti-krcs-section-y);
}

main > .hero,
main > .page-hero {
  padding-top: var(--krcti-krcs-hero-y);
  padding-bottom: var(--krcti-krcs-hero-y);
}

main > .split-cta {
  padding-top: var(--krcti-krcs-cta-y);
  padding-bottom: var(--krcti-krcs-cta-y);
}

main > .stats-band {
  padding-top: var(--krcti-krcs-stats-y);
  padding-bottom: var(--krcti-krcs-stats-y);
}

/* --------------------------------------------------------------------------
   SECTION HEADING TO CONTENT RHYTHM
   -------------------------------------------------------------------------- */

main .section-head {
  margin-bottom: var(--krcti-krcs-section-head-gap);
}

main .section-head > :where(h1, h2, h3, h4) {
  margin-bottom: 0;
}

main .section-head > :where(h1, h2, h3, h4) + p {
  margin-top: var(--krcti-krcs-heading-copy-gap);
}

main .section-head > :last-child {
  margin-bottom: 0;
}

/* Preserve editorial matrices, ruled rows and functional layouts exactly.
   Phase 2.14 deliberately does NOT redefine their internal gaps/padding. */

/* --------------------------------------------------------------------------
   TABLET
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  :root {
    --krcti-krcs-content-width: 86%;
    --krcti-krcs-section-y: 4.5rem;
    --krcti-krcs-hero-y: 5rem;
    --krcti-krcs-section-head-gap: 2rem;
    --krcti-krcs-cta-y: 4rem;
    --krcti-krcs-stats-y: 3.25rem;
  }
}

/* --------------------------------------------------------------------------
   MOBILE
   Keep KRCS-style breathing room but preserve usable form/course widths.
   -------------------------------------------------------------------------- */

@media (max-width: 620px) {
  :root {
    --krcti-krcs-content-width: calc(100% - 2rem);
    --krcti-krcs-section-y: 3.25rem;
    --krcti-krcs-hero-y: 3.75rem;
    --krcti-krcs-section-head-gap: 1.625rem;
    --krcti-krcs-heading-copy-gap: 0.875rem;
    --krcti-krcs-cta-y: 3.25rem;
    --krcti-krcs-stats-y: 2.75rem;
  }
}

/* END Phase 2.14 KRCS spacing alignment */


/* KRCTI-PHASE-2.14B-FINAL-REFINEMENTS-V1-20260826
   Targeted presentation refinements only. */

/* --------------------------------------------------------------------------
   1. SECTION HEADINGS
   Do not force desktop headings into an unnecessarily narrow measure.
   Long headings may still wrap naturally when the viewport genuinely requires it.
   -------------------------------------------------------------------------- */

@media (min-width: 981px) {
  main .section-head > :where(h1, h2, h3) {
    width: auto;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   2. STATS BAND
   Remove visible grid/cell chrome so metrics sit directly on the image.
   -------------------------------------------------------------------------- */

main .stats-band .metric-grid,
main .stats-band .metric-grid > *,
main .stats-band .metric-grid > div {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}

main .stats-band .metric-grid > *::before,
main .stats-band .metric-grid > *::after {
  content: none;
  display: none;
}

/* --------------------------------------------------------------------------
   3. MAIN NAVIGATION SURFACE
   White navigation/header surface so the KRCTI logo blends cleanly.
   -------------------------------------------------------------------------- */

.site-header,
.site-header .compact-wrap,
.site-header .main-nav {
  background: #fff;
}

/* --------------------------------------------------------------------------
   4. FINAL RECORD DIVIDERS
   Do not draw a trailing divider where no record follows.
   -------------------------------------------------------------------------- */

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-card-grid,
body.krcti-course-category-editorial main
  .krcti-course-category-list .course-card-grid,
body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-card-grid,
.krcti-courses-index-frequent .course-card-grid {
  border-bottom: 0;
}

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-tile:last-child,
body.krcti-course-category-editorial main
  .krcti-course-category-list .course-tile:last-child,
body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-tile:last-child,
.krcti-courses-index-frequent .course-card-grid > *:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   5. SCROLL CHAINING
   At the top/bottom of constrained course scrollers, continue scrolling
   the parent page instead of trapping the user's wheel/trackpad gesture.
   -------------------------------------------------------------------------- */

body.krcti-corporate-editorial main
  .krcti-corporate-training-areas .course-card-grid,
body.krcti-course-category-editorial main
  .krcti-course-category-list .course-card-grid {
  overscroll-behavior-y: auto !important;
}

/* END Phase 2.14B final refinements */


/* KRCTI-PHASE-2.14C-THREE-REFINEMENT-CORRECTIONS-V1-20260826
   Correct only the three Phase 2.14B refinements that did not visually resolve. */

/* --------------------------------------------------------------------------
   1. REGISTERED ALUMNI COMMUNITY
   The first substantive Alumni section has ample desktop width. Prevent the
   heading from inheriting a narrow editorial measure and wrapping early.
   Mobile/tablet remain naturally wrapping.
   -------------------------------------------------------------------------- */

@media (min-width: 981px) {
  body.krcti-alumni-editorial main > section:nth-of-type(2) .section-head,
  body.krcti-alumni-editorial main > section:nth-of-type(2) .section-head > h2 {
    width: auto !important;
    max-width: none !important;
  }

  body.krcti-alumni-editorial main > section:nth-of-type(2) .section-head > h2 {
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   2. HOMEPAGE STATS BAND
   Fully remove visual cell/grid chrome while retaining layout and text.
   This neutralizes gaps, borders, backgrounds, shadows and separator
   pseudo-elements inside the metric grid only.
   -------------------------------------------------------------------------- */

main .stats-band .metric-grid {
  gap: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

main .stats-band .metric-grid > *,
main .stats-band .metric-grid > div {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-inline: 0 !important;
  border-block: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

main .stats-band .metric-grid > *::before,
main .stats-band .metric-grid > *::after,
main .stats-band .metric-grid::before,
main .stats-band .metric-grid::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   3. ACADEMIC PROGRAMMES — FINAL RECORD
   Remove the terminal rule from both the list container and whatever element
   is actually last in the record collection.
   -------------------------------------------------------------------------- */

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-card-grid {
  border-bottom: 0 !important;
  border-block-end: 0 !important;
  box-shadow: none !important;
}

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-card-grid > :last-child,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-tile:last-child,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-tile:last-of-type {
  border-bottom: 0 !important;
  border-block-end: 0 !important;
  box-shadow: none !important;
}

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-card-grid > :last-child::after,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-tile:last-child::after,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-tile:last-of-type::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
}

/* END Phase 2.14C three refinement corrections */


/* KRCTI-PHASE-2.14D-STATS-ACADEMIC-CORRECTIONS-V1-20260826
   Correct only homepage stats cell chrome and Academic Programmes terminal rule. */

/* --------------------------------------------------------------------------
   HOMEPAGE STATS BAND
   Preserve the stats-band background/image itself. Neutralize all descendant
   metric-cell surfaces, borders, separator shadows and pseudo-elements.
   -------------------------------------------------------------------------- */

main .stats-band :is(
  .metric-grid,
  [class*="metric-grid"],
  [class*="stats-grid"],
  [class*="stat-grid"]
) {
  gap: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

main .stats-band :is(
  .metric-grid,
  [class*="metric-grid"],
  [class*="stats-grid"],
  [class*="stat-grid"]
) > *,
main .stats-band :is(
  [class*="metric-item"],
  [class*="metric-cell"],
  [class*="stat-item"],
  [class*="stat-cell"]
) {
  border: 0 !important;
  border-inline: 0 !important;
  border-block: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

main .stats-band :is(
  .metric-grid,
  [class*="metric-grid"],
  [class*="stats-grid"],
  [class*="stat-grid"]
)::before,
main .stats-band :is(
  .metric-grid,
  [class*="metric-grid"],
  [class*="stats-grid"],
  [class*="stat-grid"]
)::after,
main .stats-band :is(
  .metric-grid,
  [class*="metric-grid"],
  [class*="stats-grid"],
  [class*="stat-grid"]
) > *::before,
main .stats-band :is(
  .metric-grid,
  [class*="metric-grid"],
  [class*="stats-grid"],
  [class*="stat-grid"]
) > *::after,
main .stats-band :is(
  [class*="metric-item"],
  [class*="metric-cell"],
  [class*="stat-item"],
  [class*="stat-cell"]
)::before,
main .stats-band :is(
  [class*="metric-item"],
  [class*="metric-cell"],
  [class*="stat-item"],
  [class*="stat-cell"]
)::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   ACADEMIC PROGRAMMES
   Remove every possible terminal rule from the final programme record and
   from the list wrapper. This does not affect separators between records.
   -------------------------------------------------------------------------- */

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list .course-card-grid {
  border-bottom: 0 !important;
  border-block-end: 0 !important;
  box-shadow: none !important;
}

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-card-grid > :last-child,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-card-grid > :last-of-type,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-tile:last-child,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-tile:last-of-type {
  border-bottom: 0 !important;
  border-block-end: 0 !important;
  box-shadow: none !important;
}

body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-card-grid > :last-child::before,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-card-grid > :last-child::after,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-card-grid > :last-of-type::before,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-card-grid > :last-of-type::after,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-tile:last-child::before,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-tile:last-child::after,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-tile:last-of-type::before,
body.krcti-academic-programmes-editorial main
  .krcti-academic-programmes-list
  .course-tile:last-of-type::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* END Phase 2.14D stats + academic final corrections */

/* KRCTI-PHASE-4-WORDPRESS-FORM-STATUS-V1-20260901 */
.krcti-form-status { margin: 0.75rem 0 0; font-weight: 600; line-height: 1.45; }
.krcti-form-status:empty { display: none; }
.krcti-form-status.success { color: #176b36; }
.krcti-form-status.error { color: #9f1520; }
/* END KRCTI Phase 4 WordPress form status */

/* KRCTI-PHASE-4-SHARED-FOOTER-PARITY-V1-20260901 */
.krcti-footer-campus-contact a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.krcti-footer-campus-contacts {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.krcti-footer-campus-contact {
  display: grid;
  gap: 0.25rem;
}

.krcti-footer-campus-contact strong,
.krcti-footer-campus-contact span,
.krcti-footer-campus-contact a {
  display: block;
}
/* END KRCTI Phase 4 shared footer parity */
