/* JEEANJEE presentation layer. Loaded after the existing site styles. */
:root {
  --jee-navy: #082b58;
  --jee-blue: #0d4d92;
  --jee-ink: #172f4d;
  --jee-orange: #ffad44;
  --jee-deep-orange: #a94305;
  --jee-soft: #eff5fc;
}

.v152-page {
  --navy: var(--jee-navy);
  --teal: var(--jee-blue);
  --ink: var(--jee-ink);
}

img[src*="jeeanjee-logo-zh-hans.png"] { object-view-box: inset(34px 24px 40px 24px); }
img[src*="jeeanjee-logo-zh-hant.png"] { object-view-box: inset(105px 50px 224px 72px); }
img[src*="jeeanjee-logo-en.png"] { object-view-box: inset(34px 22px 29px 28px); }

.v152-logo .ybs-logo { width: 236px; height: 72px; }
.v152-footer .foot-brand {
  background: transparent;
  padding: 0;
  margin-bottom: 14px;
  mix-blend-mode: screen;
}
.v152-footer .foot-brand img {
  width: 234px;
  height: 74px;
  /* The pale source background becomes transparent on the dark footer. */
  filter: invert(1) hue-rotate(180deg) contrast(1.12);
}

.v152-strip, .v152-footer, .v152-cta-box { background: var(--jee-navy); }
.v152-strip a { color: #ffe0af !important; }
.v152-strip i { background: var(--jee-orange); }
.v152-footer { color: #d8e4f1; }
.v152-footer .foot-quiet, .v152-footer .foot-bottom { color: #bccfe6; }
.v152-footer a:hover { color: #ffc274; }

.v152-hero, .v152-pagehead, .v152-legacy-intro {
  background: linear-gradient(117deg, #08254b, #0d4278 85%);
  color: #fff;
}
.v152-hero:has(> .v156-banner) {
  background: #f2f7ff;
  color: var(--jee-ink);
}
.v152-hero::after { display: none; }
.v152-eyebrow { color: #ffd18b; }
.v152-hero p, .v152-pagehead p, .v152-legacy-intro p, .v152-cta-box p { color: #e3edf7; }
.v152-chips span { color: #eef6ff; border-color: #c4dbf569; }
.v152-hero:has(> .v156-banner) .v152-hero-grid :is(h1, p) { color: var(--jee-ink); }
.v152-hero:has(> .v156-banner) .v152-hero-grid .v152-eyebrow { color: var(--jee-blue); }
.v152-hero:has(> .v156-banner) .v152-chips span {
  color: var(--jee-blue);
  border-color: #b7cce6;
}
.v152-hero:has(> .v156-banner) .v152-btn-light {
  border-color: #9ebbe0 !important;
  color: var(--jee-navy) !important;
  background: #fff !important;
}

.v152-page .v152-btn-main,
.v152-page .btn.primary {
  background: var(--jee-orange) !important;
  border-color: var(--jee-orange) !important;
  color: #2d200f !important;
}
.v152-page a:focus-visible, .v152-page button:focus-visible,
.v152-page .v152-formbox :is(input, select, textarea):focus-visible {
  outline-color: #bd5e17;
}
.v152-page :is(.v152-hero, .v152-strip, .v152-footer, .v152-cta-box) a:focus-visible {
  outline-color: #ffe0af;
}
.v152-hero .v152-hero-grid a:focus-visible { outline-color: #bd5e17 !important; }

.jee-banner-actions {
  display: flex;
  justify-content: center;
  background: #09294f;
  padding: 12px 16px;
}

.jee-banner-actions .v152-btn { white-space: normal; text-align: center; }
.jee-banner-actions + .v152-hero-grid { padding-block: 26px 34px; gap: 16px; }
.v152-hero .v152-btnrow { margin-block: 20px 16px; }
.v152-hero-grid .v152-hero-visual { margin-top: 0; }
.v152-hero .v152-hero-note {
  color: var(--jee-ink);
  text-align: center;
  padding: 14px 18px;
  background: #f5f9ff;
  border: 1px solid #ceddf0;
  box-shadow: none;
}
.v152-hero-note span { color: var(--jee-deep-orange); letter-spacing: .06em; }
.v152-hero-note small { color: #435e7c; }

.v152-section { padding-block: clamp(44px, 5vw, 70px); }
.v152-cta { background: #eef4fc; }
.v152-section-head { margin-bottom: 22px; }
.v152-section-head p { color: #405774; }
.v152-card { border-color: #d4e1f1; }
.v152-card h3 { color: var(--jee-navy); }
.v152-card p { color: #3d5066; }
.v152-card .v152-num { color: var(--jee-deep-orange); }

.jee-steps .v152-card {
  border: 0;
  border-top: 3px solid #3271af;
  background: var(--jee-soft);
  box-shadow: none;
  padding: 20px;
}
.jee-steps .v152-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--jee-navy);
  color: #fff;
}

#v154-resources .v154-index-links { column-gap: 12px; row-gap: 10px; }
#v154-resources .v154-index-links a {
  text-align: center;
  border-color: #c9d9ec;
}
#v154-resources .v154-index-links a:hover { background: #e9f2fc; }
.v152-footer .foot-brand + p { max-width: 48ch; }

@media (max-width: 1100px) {
  .v152-logo .ybs-logo { width: 204px; height: 64px; }
}
@media (max-width: 780px) {
  .v152-logo .ybs-logo { width: clamp(131px, 42vw, 182px); height: 56px; }
}
@media (max-width: 640px) {
  .jee-banner-actions { padding-block: 10px; }
  .jee-banner-actions + .v152-hero-grid { padding-block: 22px 28px; }
}
