/* Converted from the FEED React app: src/pages/know-your-schemes/KnowYourSchemes.css */

/*
 * Know Your Schemes
 * Desktop layout is drawn on a 1821px-wide design grid: every size is written as
 * calc(<design px> * var(--u)), where --u is one design pixel at the current page width.
 * Below 1280px the page switches to a stacked layout in plain px.
 */

.kys-shell {
  background: #f1f8fe;
}

.kys-container {
  container-type: inline-size;
  overflow-x: hidden;
}

.kys-page {
  --u: clamp(0.7px, calc(100cqw / 1821), 1.25px);
  --navy: #0a1f44;
  --green: #0b6e4f;
  --blue: #0f68ec;
  --orange: #f25f0a;

  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  color: var(--navy);
  background:
    radial-gradient(ellipse 55% 40% at 50% 46%, #fbfdff 0%, rgba(251, 253, 255, 0) 100%),
    linear-gradient(180deg, #f3f9fe 0%, #f1f8fe 100%);
  padding-bottom: calc(48 * var(--u));
}

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

/* ------------------------------------------------------------------ HERO */
/*
 * The fixed navbar floats over the top of the hero, so a band of sky (continuing the artwork's
 * top edge) is added above the art. The band is sized in px so the navbar (px) always clears with
 * room above the title, while the title keeps its exact design offset from the artwork below it.
 */
.kys-hero {
  --nav-clear: 92px;  /* navbar: 10px from the top + 68px tall, plus breathing room */
  --title-gap: 56px; /* space between the navbar and the title */
  --band: calc(var(--nav-clear) + var(--title-gap) - 62.7 * var(--u));
  position: relative;
  height: calc(var(--band) + 430 * var(--u));
  overflow: hidden;
  background: linear-gradient(90deg, #014ba1 0%, #003f8b 8%, #013c85 17%, #013982 25%, #013e8e 33%,
    #01489b 42%, #056bba 50%, #0d95e2 58%, #18a3ee 67%, #42b3f5 75%, #6abcf5 84%, #8fc3f1 92%, #cfd3e6 100%);
}

.kys-hero-art {
  position: absolute;
  top: var(--band);
  left: 0;
  width: 100%;
  height: calc(400 * var(--u));
  object-fit: cover;
  object-position: center top;
  display: block;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(36 * var(--u)));
  mask-image: linear-gradient(180deg, transparent 0, #000 calc(36 * var(--u)));
}

.kys-hero-copy {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(1821 * var(--u));
  transform: translateX(-50%);
  padding: calc(var(--nav-clear) + var(--title-gap)) 0 0 calc(161.5 * var(--u));
  z-index: 2;
}

.kys-hero-title {
  margin: 0;
  font-size: calc(89 * var(--u));
  line-height: calc(76 * var(--u));
  font-weight: 900;
  letter-spacing: calc(1.5 * var(--u));
  word-spacing: calc(12 * var(--u));
  color: #ffffff;
}

.kys-hero-highlight {
  display: block;
  width: fit-content;
  padding-left: calc(2 * var(--u));
  background: linear-gradient(90deg, #f8b73c 0%, #fbc35a 40%, #fcd283 72%, #fedfa2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kys-tricolor {
  display: flex;
  width: calc(208.5 * var(--u));
  height: calc(7 * var(--u));
  margin: calc(20.3 * var(--u)) 0 0 calc(2.5 * var(--u));
}

.kys-tricolor span { flex: 58; }
.kys-tricolor span:nth-child(1) { background: #fc7e05; flex: 58.5; }
.kys-tricolor span:nth-child(2) { background: #fefefe; }
.kys-tricolor span:nth-child(3) { background: #1f9a3c; flex: 59; }
.kys-tricolor span:nth-child(4) { background: #107443; flex: 33; }

.kys-hero-subtitle {
  margin: calc(14.9 * var(--u)) 0 0 calc(1.5 * var(--u));
  font-size: calc(22 * var(--u));
  line-height: calc(29 * var(--u));
  font-weight: 400;
  letter-spacing: calc(0.46 * var(--u));
  color: #f4f8ff;
}

.kys-hero-wave {
  position: absolute;
  left: 0;
  top: calc(var(--band) + 318 * var(--u));
  width: 100%;
  height: calc(112 * var(--u));
  display: block;
  z-index: 1;
}

/* ------------------------------------------------------------------ BODY */
.kys-body {
  position: relative;
  width: calc(1821 * var(--u));
  margin: 0 auto;
}

/* Stats card */
.kys-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: calc(390 * var(--u)) calc(397 * var(--u)) 1fr;
  align-items: center;
  width: calc(1194 * var(--u));
  height: calc(112 * var(--u));
  margin: calc(-72 * var(--u)) 0 0 calc(314 * var(--u));
  background: #fbfdff;
  border: 1px solid rgba(214, 226, 238, 0.85);
  border-radius: calc(16 * var(--u));
  box-shadow: 0 calc(12 * var(--u)) calc(32 * var(--u)) rgba(16, 48, 96, 0.08);
}

.kys-stat {
  display: flex;
  align-items: center;
  gap: calc(26 * var(--u));
  height: 100%;
  padding-left: calc(55 * var(--u));
}

.kys-stat + .kys-stat {
  position: relative;
}

.kys-stat + .kys-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: calc(46 * var(--u));
  transform: translateY(-50%);
  background: #e3e8ee;
}

.kys-stat:nth-child(2) { padding-left: calc(70 * var(--u)); }
.kys-stat:nth-child(3) { padding-left: calc(60 * var(--u)); }

.kys-stat-icon {
  flex-shrink: 0;
  width: calc(84 * var(--u));
  height: calc(84 * var(--u));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kys-stat--green .kys-stat-icon { background: #e0f4e6; fill: var(--green); }
.kys-stat--blue .kys-stat-icon { background: #ddeffd; fill: var(--blue); }
.kys-stat--orange .kys-stat-icon { background: #fde9dd; }

.kys-stat--green .kys-stat-icon svg { width: calc(44 * var(--u)); height: calc(42 * var(--u)); }
.kys-stat--blue .kys-stat-icon svg { width: calc(52 * var(--u)); height: calc(40 * var(--u)); }
.kys-stat--orange .kys-stat-icon img { width: calc(56 * var(--u)); height: auto; display: block; }

.kys-stat-text {
  display: flex;
  flex-direction: column;
}

.kys-stat-num {
  font-size: calc(36 * var(--u));
  line-height: calc(36 * var(--u));
  font-weight: 800;
  letter-spacing: calc(2 * var(--u));
}

.kys-stat--green .kys-stat-num { color: var(--green); }
.kys-stat--blue .kys-stat-num { color: var(--blue); }
.kys-stat--orange .kys-stat-num { color: var(--orange); }

.kys-stat-label {
  margin-top: calc(6 * var(--u));
  font-size: max(12px, calc(17.5 * var(--u)));
  line-height: 1;
  font-weight: 400;
  color: #222b3d;
  white-space: nowrap;
}

/* Section header */
.kys-section-head {
  position: relative;
  margin-top: calc(23.2 * var(--u));
  text-align: center;
}

.kys-leaf {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.kys-leaf--left { left: calc(150 * var(--u)); top: calc(-31.2 * var(--u)); width: calc(135 * var(--u)); }
.kys-leaf--right { left: calc(1545 * var(--u)); top: calc(-35.2 * var(--u)); width: calc(130 * var(--u)); }

.kys-eyebrow {
  display: block;
  font-size: max(11px, calc(13 * var(--u)));
  line-height: calc(13 * var(--u));
  font-weight: 700;
  letter-spacing: calc(2.4 * var(--u));
  text-transform: uppercase;
  color: #e5651a;
  padding-left: calc(2.4 * var(--u)); /* balance the trailing letter-spacing */
}

.kys-section-title {
  position: relative;
  display: inline-block;
  margin: calc(4.8 * var(--u)) 0 0;
  font-size: calc(32 * var(--u));
  line-height: calc(38.4 * var(--u));
  font-weight: 700;
  color: var(--navy);
}

.kys-section-title::before,
.kys-section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(86 * var(--u));
  height: max(1.5px, calc(2 * var(--u)));
  background: #ef7d32;
  transform: translateY(calc(-1.5 * var(--u)));
}

.kys-section-title::before { right: calc(100% + 35 * var(--u)); }
.kys-section-title::after { left: calc(100% + 37 * var(--u)); }

.kys-section-desc {
  margin: calc(1.2 * var(--u)) 0 0;
  padding-left: calc(11 * var(--u));
  font-size: max(12.5px, calc(15.8 * var(--u)));
  line-height: calc(22.1 * var(--u));
  color: #4f5a72;
}

/* Steps */
.kys-steps {
  display: flex;
  gap: calc(64 * var(--u));
  width: calc(1673 * var(--u));
  margin: calc(9.3 * var(--u)) 0 0 calc(74 * var(--u));
  padding: 0;
  list-style: none;
}

.kys-step {
  position: relative;
  flex: 0 0 calc(var(--w) * var(--u));
  min-width: 0;
}

/* --w card width, --bx badge left, --ix icon left, --tx text left (design px) */
.kys-step:nth-child(1) { --w: 522; --bx: 20.5; --ix: 96.5; --tx: 212; --ty: 0; }
.kys-step:nth-child(2) { --w: 514; --bx: 12.5; --ix: 87; --tx: 200; --ty: 6; }
.kys-step:nth-child(3) { --w: 509; --bx: 14; --ix: 94.5; --tx: 211; --ty: 0; }

.kys-step--green { --tone: var(--green); --badge-bg: #e5f5e9; --icon-bg: #e5f7ea; --wave-soft: #dbf2e0; --wave-strong: #cfeed7; --card-tint: #fbfffd; }
.kys-step--blue { --tone: var(--blue); --badge-bg: #e1f0ff; --icon-bg: #deeefd; --wave-soft: #dce9fb; --wave-strong: #a9cdfc; --card-tint: #f9fcff; }
.kys-step--orange { --tone: var(--orange); --badge-bg: #ffeadd; --icon-bg: #feede3; --wave-soft: #ffe7d8; --wave-strong: #fed5b9; --card-tint: #fffdfb; }

/* header (badge, icon, title) in the top 121 design px, the card's dropdown or count below it */
.kys-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* grows (with its row) when step 1 adds the state picker */
  min-height: calc(204 * var(--u));
  height: 100%;
  padding: 0 calc(27 * var(--u)) calc(24 * var(--u)) 0;
  border: 1px solid #e3ebef;
  border-radius: calc(16 * var(--u));
  background: linear-gradient(180deg, #ffffff 0%, var(--card-tint) 100%);
  box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(28, 58, 94, 0.06);
  transition: box-shadow 0.2s ease;
}

.kys-step-card:focus-within {
  box-shadow: 0 calc(12 * var(--u)) calc(26 * var(--u)) rgba(28, 58, 94, 0.1);
}

/* The card can't clip its overflow (the dropdown menu hangs out of it), so the wave clips itself
   to the card's rounded corners. */
.kys-step-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 round calc(16 * var(--u) - 1px));
  pointer-events: none;
}

.kys-step-num {
  position: absolute;
  left: calc(var(--bx) * var(--u));
  top: calc(15 * var(--u));
  width: calc(49 * var(--u));
  height: calc(49 * var(--u));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  color: var(--tone);
  font-size: calc(23 * var(--u));
  font-weight: 800;
  line-height: 1;
  letter-spacing: calc(2 * var(--u));
  text-indent: calc(2 * var(--u));
}

.kys-step-icon {
  position: absolute;
  left: calc(var(--ix) * var(--u));
  top: calc(16 * var(--u));
  width: calc(89 * var(--u));
  height: calc(89 * var(--u));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  color: var(--tone);
  fill: var(--tone);
}

.kys-step--green .kys-step-icon svg { width: calc(48 * var(--u)); height: calc(46 * var(--u)); }
.kys-step--blue .kys-step-icon svg { width: calc(36 * var(--u)); height: calc(46 * var(--u)); }
.kys-step--orange .kys-step-icon svg { width: calc(48 * var(--u)); height: calc(48 * var(--u)); fill: none; }

.kys-doc-fold { fill: #8dbcfb; }
.kys-doc-line { fill: #ffffff; }

.kys-step-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(9 * var(--u));
  height: calc(121 * var(--u));
  margin-left: calc(var(--tx) * var(--u));
  padding-top: calc(var(--ty) * var(--u));
}

.kys-step-title {
  font-size: max(14px, calc(19.5 * var(--u)));
  line-height: calc(20 * var(--u));
  font-weight: 700;
  color: var(--navy);
}

.kys-step-desc {
  font-size: max(12px, calc(14.7 * var(--u)));
  line-height: max(14px, calc(17.5 * var(--u)));
  font-weight: 400;
  color: #687286;
}

/*
 * Step dropdowns (StepDropdown.jsx) line up with the step icon, the scheme count with the title.
 * The trigger and every menu option read like the card header: a bold title over a muted hint,
 * in the step's tone.
 */
.kys-dd {
  position: relative;
  align-self: stretch;
  margin-left: calc(var(--ix) * var(--u));
  font-size: max(13px, calc(15.5 * var(--u)));
}

/* The state picker hangs under "State Government", joined to it by an elbow line. */
.kys-dd--sub {
  --sub-gap: max(8px, calc(10 * var(--u)));
  margin-top: var(--sub-gap);
  margin-left: calc((var(--ix) + 28) * var(--u));
}

.kys-dd--sub::before {
  content: '';
  position: absolute;
  right: calc(100% + 4px);
  bottom: 50%;
  width: calc(14 * var(--u));
  height: calc(50% + var(--sub-gap));
  border-left: 2px solid color-mix(in srgb, var(--tone) 35%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--tone) 35%, transparent);
  border-bottom-left-radius: calc(8 * var(--u));
}

.kys-dd-trigger {
  display: flex;
  align-items: center;
  gap: max(8px, calc(11 * var(--u)));
  height: max(38px, calc(50 * var(--u)));
  padding: 0 max(7px, calc(9 * var(--u))) 0 max(12px, calc(16 * var(--u)));
  border: 1px solid #d5dce6;
  border-radius: max(10px, calc(12 * var(--u)));
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 40, 80, 0.04);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kys-dd-trigger:hover { border-color: color-mix(in srgb, var(--tone) 45%, #d5dce6); }

.kys-dd-trigger:focus-visible,
.kys-dd.is-open .kys-dd-trigger {
  border-color: var(--tone);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 16%, transparent);
}

/* the ring above is a box-shadow, which forced-colors mode drops; this outline shows there */
.kys-dd-trigger:focus-visible { outline: 2px solid transparent; outline-offset: 2px; }

/* no options (a state with no departments listed yet) */
.kys-dd.is-disabled .kys-dd-trigger {
  border-color: #dfe4ec;
  background: #f6f8fb;
  color: #8a94a6;
  font-weight: 500;
  cursor: not-allowed;
}

.kys-dd.is-disabled .kys-dd-chevron { background: #eceff4; color: #a3acbb; }

.kys-dd-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.kys-dd-chevron {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max(24px, calc(30 * var(--u)));
  height: max(24px, calc(30 * var(--u)));
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--tone);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.kys-dd-chevron svg { width: 60%; height: 60%; }

.kys-dd.is-open .kys-dd-chevron {
  transform: rotate(180deg);
  background: var(--tone);
  color: #ffffff;
}

/* StepDropdown sets data-placement and the list's max-height from the room in the viewport */
.kys-dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + max(6px, calc(8 * var(--u))));
  z-index: 40;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tone) 22%, #e3ebef);
  border-radius: max(12px, calc(16 * var(--u)));
  background: linear-gradient(180deg, #ffffff 0%, var(--card-tint) 55%, var(--wave-soft) 170%);
  box-shadow: 0 18px 40px -10px rgba(28, 58, 94, 0.26), 0 4px 12px rgba(28, 58, 94, 0.08);
  animation: kys-dd-in 0.16s ease-out;
}

.kys-dd-menu[data-placement='up'] {
  top: auto;
  bottom: calc(100% + max(6px, calc(8 * var(--u))));
  animation-name: kys-dd-in-up;
}

.kys-dd-menu[hidden] { display: none; }

@keyframes kys-dd-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes kys-dd-in-up { from { opacity: 0; transform: translateY(6px); } }

.kys-dd-list {
  position: relative; /* offsetParent of the options, for scrolling them into view */
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(6px, calc(8 * var(--u)));
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--tone) 35%, transparent) transparent;
}

.kys-dd-option {
  display: flex;
  align-items: center;
  gap: max(10px, calc(13 * var(--u)));
  padding: max(8px, calc(10 * var(--u))) max(10px, calc(12 * var(--u))) max(8px, calc(10 * var(--u))) max(12px, calc(14 * var(--u)));
  border-radius: max(10px, calc(12 * var(--u)));
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.kys-dd-option + .kys-dd-option { margin-top: 2px; }

.kys-dd-option.is-active { background: color-mix(in srgb, var(--tone) 7%, #ffffff); }
.kys-dd-option[aria-selected='true'] { background: var(--badge-bg); }
.kys-dd-option[aria-selected='true'].is-active { background: color-mix(in srgb, var(--tone) 15%, #ffffff); }

.kys-dd-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: max(2px, calc(3 * var(--u)));
}

.kys-dd-label {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.kys-dd-option[aria-selected='true'] .kys-dd-label { color: var(--tone); }

.kys-dd-hint {
  font-size: max(11.5px, calc(13.5 * var(--u)));
  line-height: 1.3;
  color: #687286;
}

.kys-dd-check {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max(18px, calc(22 * var(--u)));
  height: max(18px, calc(22 * var(--u)));
  border-radius: 50%;
  background: var(--tone);
  color: #ffffff;
}

.kys-dd-check svg { width: 62%; height: 62%; }

@media (prefers-reduced-motion: reduce) {
  .kys-dd-menu { animation: none; }
  .kys-dd-chevron { transition: none; }
}

.kys-step-count {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(14 * var(--u));
  margin: 0 0 0 calc(var(--tx) * var(--u));
  padding: calc(6 * var(--u)) calc(24 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u));
  border-radius: calc(8 * var(--u));
  background: #fee3cf;
  color: var(--orange);
  font-size: max(13px, calc(19.5 * var(--u)));
  font-weight: 700;
  line-height: 1;
}

.kys-step-count-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  padding: 0 calc(8 * var(--u));
  border-radius: calc(6 * var(--u));
  background: var(--orange);
  color: #ffffff;
  font-size: max(14px, calc(20 * var(--u)));
  font-variant-numeric: tabular-nums;
}

.kys-step-connector {
  position: absolute;
  top: calc(61 * var(--u));
  left: calc(100% + 32 * var(--u));
  transform: translate(-50%, -50%);
  display: flex;
  color: var(--navy);
}

.kys-step-connector svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }

/* Schemes of the selected ministry / department */
.kys-schemes {
  position: relative;
  width: calc(1804 * var(--u));
  margin: calc(40 * var(--u)) 0 0 calc(8 * var(--u));
  padding: calc(56 * var(--u)) calc(220 * var(--u)) calc(40 * var(--u));
  border: 1px solid #e3ebf3;
  border-radius: calc(16 * var(--u));
  /* the warm + mint wash behind the Loans & Finance category cards */
  background:
    radial-gradient(900px 340px at 92% -10%, rgba(255, 159, 67, 0.22), transparent 70%),
    radial-gradient(780px 340px at -5% 105%, rgba(16, 185, 129, 0.16), transparent 70%),
    linear-gradient(180deg, #f2fbf6 0%, #fffaf4 100%);
  box-shadow: 0 calc(10 * var(--u)) calc(30 * var(--u)) rgba(28, 58, 94, 0.06);
}

.kys-schemes-head {
  position: relative;
  padding-left: calc(30 * var(--u));
}

.kys-schemes-head::before {
  content: '';
  position: absolute;
  left: calc(4 * var(--u));
  top: calc(3 * var(--u));
  width: calc(7 * var(--u));
  height: calc(34 * var(--u));
  border-radius: 999px;
  background: var(--orange);
}

.kys-schemes-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: calc(12 * var(--u));
  margin: 0;
  font-size: max(18px, calc(29 * var(--u)));
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
}

.kys-schemes-place { color: #0f59d8; }

.kys-schemes-sep {
  flex-shrink: 0;
  width: max(16px, calc(26 * var(--u)));
  height: max(16px, calc(26 * var(--u)));
  margin: 0 calc(6 * var(--u));
  color: var(--navy);
}

.kys-schemes-desc {
  margin: calc(6 * var(--u)) 0 0;
  font-size: max(12.5px, calc(16.5 * var(--u)));
  line-height: 1.45;
  color: #4f5a72;
}

/*
 * Scheme cards: laid out like the Loans & Finance "Explore your finance needs" grid - an inset
 * panel with the scheme's icon, title, benefit line and an accent tag; four to a row. Sized in px
 * like that page (not design units) so they match it at every width; the stacked sizes are further down.
 */
.kys-scheme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: calc(48 * var(--u)) 0 0;
  padding: 0;
  list-style: none;
}

/* A state with no schemes listed yet: points to myScheme instead (button styled as .kys-dialog-apply) */
.kys-schemes-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
  margin: calc(48 * var(--u)) auto 0;
  padding: 36px 32px;
  border: 1.5px dashed #c6d6ea;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.kys-schemes-empty-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
}

.kys-schemes-empty-text {
  margin: 10px 0 22px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #4f5a72;
}

.kys-tone--green { --tone-fg: #15803d; --tone-bg: #e3f5e9; }
.kys-tone--blue { --tone-fg: #1565e0; --tone-bg: #e2eefd; }
.kys-tone--orange { --tone-fg: #ea6a10; --tone-bg: #feeadb; }
.kys-tone--purple { --tone-fg: #7c4ddb; --tone-bg: #efe8fd; }
.kys-tone--pink { --tone-fg: #e0455f; --tone-bg: #fde6eb; }
.kys-tone--amber { --tone-fg: #cf8700; --tone-bg: #fff1d4; }
.kys-tone--teal { --tone-fg: #0f8a83; --tone-bg: #dcf5f2; }

/* Card accents use the Loans & Finance palette; tones it doesn't have take the nearest one. */
.kys-scheme.kys-tone--green,
.kys-scheme.kys-tone--teal { --accent: #0ea063; }
.kys-scheme.kys-tone--orange,
.kys-scheme.kys-tone--amber { --accent: #f2650a; }
.kys-scheme.kys-tone--purple,
.kys-scheme.kys-tone--pink { --accent: #7c3aed; }
.kys-scheme.kys-tone--blue { --accent: #2a7cf5; }

.kys-scheme {
  --accent: #0ea063;
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 8px;
  border: 1px solid rgba(16, 40, 30, 0.06);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 40, 30, 0.04), 0 12px 28px rgba(16, 60, 40, 0.08);
  font-family: 'Inter', system-ui, sans-serif;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kys-scheme:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(16, 40, 30, 0.05), 0 20px 36px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* The icon panel, tinted in the card's tone (also the header of the details dialog) */
.kys-scheme-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.95) 0 22%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(150deg, var(--tone-bg), color-mix(in srgb, var(--tone-bg) 82%, var(--tone-fg)));
}

/* two soft rings in the corners */
.kys-scheme-media::before,
.kys-scheme-media::after {
  content: '';
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--tone-fg) 14%, transparent);
}

.kys-scheme-media::before { top: -24%; right: -9%; width: 42%; }
.kys-scheme-media::after { bottom: -20%; left: -7%; width: 28%; }

.kys-scheme-art {
  position: relative;
  z-index: 1;
  width: auto;
  height: 66%;
  filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--tone-fg) 24%, transparent));
  transition: transform 0.4s ease;
}

.kys-scheme:hover .kys-scheme-art { transform: translateY(-3px) scale(1.06); }

.kys-scheme-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 14px 8px 8px;
}

.kys-scheme-title,
.kys-scheme-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* scheme names run longer than the Loans & Finance titles, so they get a third line */
.kys-scheme-title {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #172a72;
}

.kys-scheme-desc {
  margin: 4px 0 12px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  color: #8b95a7;
}

.kys-scheme-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 11%, #ffffff);
  color: color-mix(in srgb, var(--accent) 78%, #0f172a);
  font-size: 12.5px;
  font-weight: 700;
}

.kys-scheme-tag-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Invisible button over the whole card, so any click on the card opens its details */
.kys-scheme-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: pointer;
}

.kys-scheme-open:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
}

/* "View Details" dialog: sits in the top layer, so it is sized in px rather than design units */
html:has(.kys-dialog[open]) { overflow: hidden; }

.kys-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto; /* the global reset's margin: 0 would pin the modal to the top-left corner */
  padding: 0;
  border: none;
  border-radius: 18px;
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 24px 60px rgba(10, 31, 68, 0.28);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.kys-dialog::backdrop {
  background: rgba(10, 31, 68, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.kys-dialog-inner { position: relative; }

.kys-scheme-media.kys-dialog-media {
  aspect-ratio: auto;
  height: 170px;
  border-radius: 0;
}

.kys-dialog-media .kys-scheme-art { height: 62%; }

.kys-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(10, 31, 68, 0.18);
  color: var(--navy);
  cursor: pointer;
}

.kys-dialog-close svg { width: 20px; height: 20px; }

.kys-dialog-close:focus-visible,
.kys-dialog-apply:focus-visible {
  outline: 2px solid #ffa106;
  outline-offset: 2px;
}

.kys-dialog-body { padding: 0 28px 26px; }

.kys-dialog-place {
  margin: 22px 0 6px;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 600;
  color: #0f59d8;
}

.kys-dialog-title {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
}

.kys-dialog-type {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--tone-fg);
  font-size: 12.5px;
  font-weight: 600;
}

.kys-dialog-facts {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.kys-dialog-facts div {
  padding: 13px 16px;
  border: 1px solid #e6eef7;
  border-radius: 12px;
  background: #f5f9fd;
}

.kys-dialog-facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #5b6579;
}

.kys-dialog-facts dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #1d2a44;
}

.kys-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 22px;
}

.kys-dialog-apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, #0f51cc 0%, #1f59de 100%);
  box-shadow: 0 8px 18px rgba(16, 82, 208, 0.26);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.kys-dialog-apply:hover { filter: brightness(1.08); }
.kys-dialog-apply svg { width: 18px; height: 18px; }

.kys-dialog-host {
  font-size: 13px;
  color: #5b6579;
  overflow-wrap: anywhere;
}

/* stands in for the button when the schemes sheet gives no link */
.kys-dialog-nolink {
  margin-bottom: 0;
  padding: 12px 16px;
  border: 1px dashed #cdd6e3;
  border-radius: 10px;
  background: #f6f8fb;
  font-size: 14px;
  font-weight: 500;
  color: #5b6579;
}

.kys-dialog-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7487;
}

/*
 * Eligibility checker: intro on the left, "Quick Check" card on the right.
 * The wavy panel background, the clipboard scene and the corner leaves are images; the dot grids,
 * card decoration and ribbon are drawn here.
 */
.kys-eligibility {
  position: relative;
  width: calc(1804 * var(--u));
  height: calc(652.4 * var(--u));
  margin: calc(36 * var(--u)) 0 0 calc(8 * var(--u));
  overflow: hidden;
  border-radius: calc(11 * var(--u));
  background: #e9f5fe url('../../images/know-your-schemes/eligibility-bg.jpg') center / 100% 100% no-repeat;
  box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgba(30, 80, 150, 0.06);
}

.kys-eligibility-dots {
  position: absolute;
  left: calc(33.5 * var(--u));
  top: calc(58.1 * var(--u));
  width: calc(80.4 * var(--u));
  height: calc(74.4 * var(--u));
  background: radial-gradient(circle, #cae8ff calc(4.9 * var(--u)), transparent calc(5.5 * var(--u))) 0 0 / calc(20.1 * var(--u)) calc(18.6 * var(--u));
  pointer-events: none;
}

.kys-eligibility-leaves {
  position: absolute;
  left: 0;
  bottom: calc(10 * var(--u));
  width: calc(219.6 * var(--u));
  height: auto;
  pointer-events: none;
  user-select: none;
}

.kys-eligibility-intro {
  position: absolute;
  left: calc(147.8 * var(--u));
  top: calc(87.5 * var(--u));
  width: calc(600 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* the scene's visual centre sits a little left of the title's */
.kys-eligibility-art {
  display: block;
  width: calc(547.6 * var(--u));
  height: auto;
  margin-right: calc(32.8 * var(--u));
}

.kys-eligibility-title {
  margin: calc(-11.4 * var(--u)) 0 0;
  font-size: calc(58 * var(--u));
  line-height: 1.2;
  font-weight: 700;
  color: #071d3d;
}

.kys-eligibility-title::after {
  content: '';
  display: block;
  width: calc(100.2 * var(--u));
  height: calc(7.3 * var(--u));
  margin: calc(11.9 * var(--u)) auto 0;
  border-radius: 999px;
  background: #ffa406;
}

.kys-eligibility-subtitle {
  max-width: calc(455.6 * var(--u));
  margin: calc(13.2 * var(--u)) 0 0;
  font-size: calc(29.9 * var(--u));
  line-height: 1.19;
  color: #545f6b;
}

.kys-eligibility-card {
  position: absolute;
  left: calc(839.1 * var(--u));
  top: calc(96.6 * var(--u));
  width: calc(826.4 * var(--u));
  height: calc(469.2 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: calc(38 * var(--u)) calc(49.2 * var(--u)) calc(49.2 * var(--u));
  overflow: hidden;
  border-radius: calc(12.8 * var(--u));
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #f8fafd 76%, #f2f9fd 100%);
  box-shadow:
    0 calc(16.4 * var(--u)) calc(40 * var(--u)) calc(-5.5 * var(--u)) rgba(40, 130, 254, 0.16),
    0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(40, 100, 200, 0.06);
}

/* soft circle tucked into the bottom-right corner, and the faint dot grid above it */
.kys-eligibility-card::before,
.kys-eligibility-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.kys-eligibility-card::before {
  right: calc(-149.4 * var(--u));
  bottom: calc(-172.2 * var(--u));
  width: calc(295.2 * var(--u));
  height: calc(295.2 * var(--u));
  border-radius: 50%;
  background: #ebf4fd;
}

.kys-eligibility-card::after {
  right: calc(46.7 * var(--u));
  bottom: calc(107.5 * var(--u));
  width: calc(134.4 * var(--u));
  height: calc(92.2 * var(--u));
  background: radial-gradient(circle, #e8f2fc calc(4.9 * var(--u)), transparent calc(5.5 * var(--u))) 0 0 / calc(22.4 * var(--u)) calc(23.05 * var(--u));
}

.kys-eligibility-heading,
.kys-eligibility-desc,
.kys-eligibility-btn {
  position: relative;
  z-index: 1;
}

.kys-eligibility-heading {
  margin: 0;
  font-size: calc(41.8 * var(--u));
  line-height: 1.2;
  font-weight: 700;
  color: #0c1870;
}

.kys-eligibility-heading::after {
  content: '';
  display: block;
  width: calc(109.3 * var(--u));
  height: calc(7.3 * var(--u));
  margin-top: calc(14.8 * var(--u));
  border-radius: 999px;
  background: #ffa106;
}

.kys-eligibility-desc {
  max-width: calc(535.7 * var(--u));
  margin: calc(27.8 * var(--u)) 0 0;
  font-size: calc(29.9 * var(--u));
  line-height: 1.3;
  color: #4e5a66;
}

.kys-eligibility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(35.8 * var(--u));
  width: calc(369.9 * var(--u));
  height: calc(82 * var(--u));
  margin-top: auto;
  padding: 0;
  border: none;
  border-radius: calc(10.9 * var(--u));
  background: linear-gradient(90deg, #0f51cc 0%, #134ad2 70%, #1f59de 100%);
  box-shadow: 0 calc(10 * var(--u)) calc(22 * var(--u)) rgba(16, 82, 208, 0.28);
  color: #ffffff;
  font-family: inherit;
  font-size: calc(28 * var(--u));
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.kys-eligibility-btn svg {
  width: calc(34.6 * var(--u));
  height: calc(34.6 * var(--u));
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.kys-eligibility-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 calc(14 * var(--u)) calc(28 * var(--u)) rgba(16, 82, 208, 0.34);
}

.kys-eligibility-btn:hover svg { transform: translateX(4px); }

.kys-eligibility-btn:focus-visible {
  outline: 2px solid #ffa106;
  outline-offset: 3px;
}

.kys-eligibility-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(154.9 * var(--u));
  height: calc(151.2 * var(--u));
  background: #1b2c78;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.kys-eligibility-ribbon svg {
  position: absolute;
  top: calc(17.3 * var(--u));
  right: calc(25.5 * var(--u));
  width: calc(42.8 * var(--u));
  height: calc(53.8 * var(--u));
  fill: #ffffff;
}

.kys-checklist-tab { stroke: #1b2c78; stroke-width: 1.6; }
.kys-checklist-ink { fill: #1b2c78; }
.kys-checklist-tick { fill: none; stroke: #1b2c78; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------------------------------- STACKED (< 1280px) */
@container (max-width: 1279px) {
  .kys-page { padding-bottom: 40px; }

  /* text sits on the deep-blue sky; the artwork is stacked underneath so its icons stay clear of the title */
  .kys-hero {
    --art-h: min(43.4cqw, 320px);
    --nav-clear: 98px;
    height: auto;
    padding: var(--nav-clear) 24px calc(var(--art-h) * 0.72 + 12px);
    background: linear-gradient(180deg, #013b83 0%, #02489b 60%, #0a5aad 100%);
  }
  .kys-hero-art {
    top: auto;
    bottom: 0;
    height: var(--art-h);
    object-position: right top;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  }
  .kys-hero-copy { position: relative; left: auto; width: auto; transform: none; padding: 0; }
  .kys-hero-title { font-size: clamp(40px, 9cqw, 72px); line-height: 1.02; letter-spacing: 0.5px; word-spacing: 4px; }
  .kys-tricolor { width: 150px; height: 6px; margin: 18px 0 0; }
  .kys-hero-subtitle { margin: 16px 0 0; font-size: 17px; line-height: 1.45; letter-spacing: 0; max-width: 520px; }
  .kys-hero-subtitle br { display: none; }
  .kys-hero-wave { top: auto; bottom: 0; height: 40px; z-index: 2; }

  .kys-body { width: auto; padding: 0 16px; }

  .kys-stats {
    grid-template-columns: repeat(3, 1fr);
    width: auto;
    height: auto;
    margin: -36px 0 0;
    padding: 20px 8px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(16, 48, 96, 0.08);
  }
  .kys-stat,
  .kys-stat:nth-child(2),
  .kys-stat:nth-child(3) { padding: 0 12px; gap: 14px; justify-content: center; }
  .kys-stat + .kys-stat::before { height: 46px; }
  .kys-stat-icon { width: 60px; height: 60px; }
  .kys-stat--green .kys-stat-icon svg { width: 31px; height: 30px; }
  .kys-stat--blue .kys-stat-icon svg { width: 37px; height: 28px; }
  .kys-stat--orange .kys-stat-icon img { width: 40px; }
  .kys-stat-num { font-size: 28px; line-height: 1; }
  .kys-stat-label { margin-top: 4px; font-size: 14px; white-space: normal; }

  .kys-section-head { margin-top: 40px; }
  .kys-leaf { display: none; }
  .kys-eyebrow { font-size: 12px; line-height: 1.2; letter-spacing: 2px; padding-left: 2px; }
  .kys-section-title { margin-top: 6px; font-size: 28px; line-height: 1.25; }
  .kys-section-title::before,
  .kys-section-title::after { width: 48px; height: 2px; transform: translateY(-1px); }
  .kys-section-title::before { right: calc(100% + 16px); }
  .kys-section-title::after { left: calc(100% + 16px); }
  .kys-section-desc { margin-top: 8px; font-size: 15px; line-height: 1.5; }

  .kys-steps { flex-direction: column; gap: 44px; width: auto; margin: 28px 0 0; }
  .kys-step { flex: none; }
  .kys-step-card { min-height: 0; height: auto; padding: 22px 24px 26px 0; border-radius: 16px; }
  .kys-step-wave { clip-path: inset(0 round 15px); }
  .kys-step-num { left: 14px; top: 12px; width: 40px; height: 40px; font-size: 18px; }
  .kys-step-icon { left: 58px; top: 20px; width: 72px; height: 72px; }
  .kys-step--green .kys-step-icon svg { width: 37px; height: 35px; }
  .kys-step--blue .kys-step-icon svg { width: 29px; height: 38px; }
  .kys-step--orange .kys-step-icon svg { width: 38px; height: 38px; }
  .kys-step-text { gap: 6px; height: auto; min-height: 76px; margin-left: 146px; padding-top: 0; }
  .kys-step-title { font-size: 18px; line-height: 1.2; }
  .kys-step-desc { font-size: 14px; line-height: 1.4; }
  .kys-dd { margin: 16px 0 0 58px; font-size: 15px; }
  .kys-dd.kys-dd--sub { --sub-gap: 10px; margin: var(--sub-gap) 0 0 84px; }
  .kys-dd--sub::before { width: 14px; border-bottom-left-radius: 8px; }
  .kys-dd-trigger { height: 50px; gap: 10px; padding: 0 9px 0 16px; border-radius: 12px; }
  .kys-dd-chevron { width: 28px; height: 28px; }
  .kys-dd-menu { top: calc(100% + 8px); border-radius: 14px; }
  .kys-dd-menu[data-placement='up'] { bottom: calc(100% + 8px); }
  .kys-dd-list { padding: 8px; }
  .kys-dd-option { gap: 12px; padding: 10px 12px 10px 14px; border-radius: 10px; }
  .kys-dd-hint { font-size: 13px; }
  .kys-dd-check { width: 22px; height: 22px; }
  .kys-step-count { margin: 16px 0 0 146px; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 8px; font-size: 16px; }
  .kys-step-count-num { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 6px; font-size: 17px; }
  .kys-step-connector { top: auto; left: 50%; bottom: -22px; transform: translate(-50%, 50%) rotate(90deg); }
  .kys-step-connector svg { width: 26px; height: 26px; }

  .kys-schemes { width: auto; margin: 44px 0 0; padding: 40px 20px 24px; border-radius: 16px; }
  .kys-schemes-head { padding-left: 18px; }
  .kys-schemes-head::before { left: 0; top: 4px; width: 5px; height: 24px; }
  .kys-schemes-title { column-gap: 8px; font-size: 21px; }
  .kys-schemes-sep { width: 18px; height: 18px; margin: 0 2px; }
  .kys-schemes-desc { margin-top: 6px; font-size: 14.5px; }
  .kys-scheme-grid { margin-top: 36px; }

  .kys-eligibility {
    width: auto;
    height: auto;
    margin: 40px 0 0;
    padding: 40px 24px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    border-radius: 16px;
    background-size: cover;
    background-position: left bottom;
    box-shadow: 0 6px 20px rgba(30, 80, 150, 0.06);
  }
  .kys-eligibility-dots {
    left: 20px;
    top: 22px;
    width: 64px;
    height: 60px;
    background: radial-gradient(circle, #cae8ff 3.6px, transparent 4.2px) 0 0 / 16px 15px;
  }
  .kys-eligibility-leaves { bottom: 0; width: 150px; }
  .kys-eligibility-intro { position: relative; left: auto; top: auto; width: auto; z-index: 1; }
  .kys-eligibility-art { width: min(440px, 100%); margin-right: 26px; }
  .kys-eligibility-title { margin-top: -6px; font-size: 36px; }
  .kys-eligibility-title::after { width: 72px; height: 5px; margin-top: 10px; }
  .kys-eligibility-subtitle { max-width: 340px; margin-top: 12px; font-size: 18px; line-height: 1.35; }
  .kys-eligibility-card {
    position: relative;
    left: auto;
    top: auto;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    height: auto;
    padding: 30px 32px 36px;
    border-radius: 14px;
    box-shadow: 0 14px 36px -6px rgba(40, 130, 254, 0.16), 0 2px 6px rgba(40, 100, 200, 0.06);
  }
  .kys-eligibility-card::before { right: -104px; bottom: -118px; width: 200px; height: 200px; }
  .kys-eligibility-card::after {
    right: 28px;
    bottom: 64px;
    width: 96px;
    height: 64px;
    background: radial-gradient(circle, #e8f2fc 3.6px, transparent 4.2px) 0 0 / 16px 16px;
  }
  .kys-eligibility-heading { font-size: 28px; }
  .kys-eligibility-heading::after { width: 72px; height: 5px; margin-top: 12px; }
  .kys-eligibility-desc { max-width: 430px; margin-top: 20px; font-size: 17px; line-height: 1.5; }
  .kys-eligibility-btn { width: auto; height: 56px; margin-top: 28px; padding: 0 30px; gap: 18px; border-radius: 10px; font-size: 18px; }
  .kys-eligibility-btn svg { width: 24px; height: 24px; }
  .kys-eligibility-ribbon { width: 104px; height: 101px; }
  .kys-eligibility-ribbon svg { top: 12px; right: 17px; width: 29px; height: 36px; }
}

/* Scheme cards switch at the same widths as the Loans & Finance cards they copy */
@container (max-width: 1100px) {
  .kys-scheme-grid { gap: 16px; }
  .kys-scheme-title { font-size: 17px; }
}

@container (max-width: 860px) {
  .kys-scheme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 680px) {
  .kys-scheme-grid { gap: 12px; }
  .kys-scheme { padding: 6px; border-radius: 18px; }
  .kys-scheme-media { border-radius: 13px; }
  .kys-scheme-body { padding: 10px 5px 5px; }
  .kys-scheme-title { font-size: 15px; letter-spacing: -0.2px; }
  .kys-scheme-desc { margin: 3px 0 10px; font-size: 12px; }
  .kys-scheme-tag { padding: 4px 9px; font-size: 11.5px; }
}

@container (max-width: 640px) {
  .kys-hero { --nav-clear: 94px; padding: var(--nav-clear) 16px calc(var(--art-h) * 0.72 + 8px); }
  .kys-hero-subtitle { font-size: 15.5px; }
  .kys-hero-wave { height: 28px; }
  .kys-stats { margin-top: -20px; }

  .kys-stats { grid-template-columns: 1fr; padding: 8px 20px; }
  .kys-stat,
  .kys-stat:nth-child(2),
  .kys-stat:nth-child(3) { justify-content: flex-start; padding: 14px 0; }
  .kys-stat + .kys-stat::before { top: 0; left: 0; width: 100%; height: 1px; transform: none; }

  .kys-section-title { font-size: 24px; }
  .kys-section-title::before,
  .kys-section-title::after { width: 28px; }

  .kys-step-card { padding: 64px 20px 22px 0; }
  .kys-step-icon { left: auto; right: 16px; top: 12px; width: 44px; height: 44px; }
  .kys-step--green .kys-step-icon svg { width: 24px; height: 23px; }
  .kys-step--blue .kys-step-icon svg { width: 19px; height: 25px; }
  .kys-step--orange .kys-step-icon svg { width: 24px; height: 24px; }
  .kys-step-text { min-height: 0; margin-left: 20px; }
  .kys-dd,
  .kys-step-count { margin-left: 20px; }
  .kys-dd.kys-dd--sub { margin-left: 46px; }

  .kys-schemes { padding: 32px 14px 20px; }
  .kys-scheme-grid { margin-top: 28px; }
  .kys-schemes-empty { margin-top: 28px; padding: 28px 18px; }
  .kys-schemes-empty-title { font-size: 19px; }
  .kys-schemes-title { font-size: 19px; }

  .kys-dialog-body { padding: 0 18px 20px; }
  .kys-scheme-media.kys-dialog-media { height: 140px; }
  .kys-dialog-title { font-size: 19px; }
  .kys-dialog-apply { width: 100%; justify-content: center; }

  .kys-eligibility { padding: 32px 16px 16px; gap: 24px; }
  .kys-eligibility-dots,
  .kys-eligibility-leaves,
  .kys-eligibility-card::after { display: none; }
  .kys-eligibility-art { width: 300px; margin-right: 18px; }
  .kys-eligibility-title { margin-top: -4px; font-size: 28px; }
  .kys-eligibility-subtitle { max-width: 270px; font-size: 16px; }
  .kys-eligibility-card { padding: 24px 20px 20px; }
  .kys-eligibility-heading { font-size: 24px; }
  .kys-eligibility-desc { margin-top: 16px; font-size: 15.5px; }
  .kys-eligibility-btn { width: 100%; height: 52px; margin-top: 24px; font-size: 17px; }
  .kys-eligibility-ribbon { width: 84px; height: 82px; }
  .kys-eligibility-ribbon svg { top: 10px; right: 13px; width: 24px; height: 30px; }
}
