/* The approved homepage composition. Scoped to avoid changing portal pages. */
.hp-page {
  --hp-emerald: #00d5a0;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: #002b23;
  color: #f8fffc;
  overflow: clip;
}
.hp-container { width: min(90%, 2160px); margin-inline: auto; }
.hp-backdrop { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hp-backdrop img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.hp-page::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, #001f1a9c, transparent 29%), linear-gradient(90deg, #00281f24, transparent 75%);
}
.hp-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; padding-block: 29px; }
.hp-nav .rd-brand.ip-brand { width: 228px; height: 60px; gap: 7px; }
.hp-nav .ip-brand-symbol { width: 53px; height: 49px; filter: brightness(0) invert(1); }
.hp-nav .ip-brand-wordmark { width: 168px; height: 60px; filter: brightness(0) invert(1); }
.hp-nav nav { display: flex; align-items: center; gap: clamp(28px, 3.1vw, 60px); }
.hp-nav-link { position: relative; min-height: 44px; padding: 11px 0; color: #f3fff9; font-size: clamp(14px, 1.03vw, 20px); white-space: nowrap; }
.hp-nav-link.active::after { content: ''; height: 2px; background: var(--hp-emerald); position: absolute; bottom: 0; left: 0; right: 0; }
.hp-nav-link:hover { color: #6debc9; }
.hp-main { flex: 1; padding-top: clamp(50px, 10.5vh, 132px); padding-bottom: 28px; }
.hp-copy { position: relative; max-width: 80%; }
.hp-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 11px 15px; border: 1px solid #00b58a88; border-radius: 100px; background: #004c3a80; color: #f0fff8; font-size: clamp(10px, .82vw, 16px); font-weight: 550; line-height: 1.3; letter-spacing: .015em; backdrop-filter: blur(10px); }
.hp-kicker i { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--hp-emerald); box-shadow: 0 0 20px #00d5a026; }
.hp-copy h1 { font-size: clamp(48px, 4.4vw, 104px); font-weight: 760; line-height: 1.085; letter-spacing: -.048em; margin: 32px 0 24px; text-wrap: initial; color: #f8fffc; }
.hp-copy h1 span { display: block; color: var(--hp-emerald); }
.hp-copy p { color: #f0f7f3; font-size: clamp(19px, 1.75vw, 36px); font-weight: 400; line-height: 1.45; letter-spacing: -.025em; margin: 0; text-shadow: 0 1px 8px #002a2390; }
.hp-search { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, .95fr) minmax(0, 1.1fr) minmax(240px, 1.4fr); align-items: center; gap: 0; width: 100%; min-height: 118px; margin-top: clamp(36px, 6.3vh, 66px); padding: 20px; border: 1px solid #d6ebe4; border-radius: 22px; background: #f8fdfa; color: #123f40; box-shadow: 0 0 0 7px #38ad8b38, 0 18px 50px #001d1b45, inset 0 1px 0 #fff; }
.hp-field { display: flex; align-items: center; gap: clamp(9px, 1vw, 20px); min-width: 0; padding-inline: clamp(10px, 1.2vw, 22px); min-height: 64px; border-right: 1px solid #d8e8e3; cursor: pointer; }
.hp-field:first-child { padding-left: 8px; }
.hp-field-icon { display: grid; place-items: center; width: clamp(44px, 3.8vw, 70px); height: clamp(44px, 3.8vw, 70px); flex: none; border-radius: 50%; color: #008a68; background: #e6f7ef; }
.hp-field-icon svg { width: 53%; height: 53%; stroke-width: 1.8; }
.hp-field-copy { display: block; flex: 1; min-width: 0; }
.hp-field-label { display: block; font-size: clamp(10px, .76vw, 15px); line-height: 1.5; color: #426571; text-transform: uppercase; white-space: nowrap; margin-bottom: 5px; }
.hp-select { position: relative; display: block; }
.hp-select select { display: block; width: 100%; min-width: 0; min-height: 32px; padding: 3px 23px 3px 0; border: 0; border-radius: 4px; background: transparent; appearance: none; color: #113c40; font-size: clamp(13px, 1.03vw, 20px); font-weight: 600; line-height: 1.4; text-overflow: ellipsis; cursor: pointer; }
.hp-select select option { background: #fff; color: #123f40; }
.hp-select>svg { pointer-events: none; position: absolute; right: 0; top: calc(50% - 8px); width: 16px; height: 16px; stroke-width: 2; }
.hp-submit { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 78px; margin-left: 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid #068d70; background: linear-gradient(115deg, #008b68, #006f55); box-shadow: 0 2px 3px #003c2815, inset 0 1px 0 #ffffff15; color: #fff; font-size: clamp(14px, 1.18vw, 22px); font-weight: 650; white-space: nowrap; transition: background .2s, box-shadow .2s, transform .2s; }
.hp-submit svg { width: 27px; height: 27px; flex: none; }
.hp-submit svg:last-child { margin-left: auto; }
.hp-submit:hover { background: linear-gradient(115deg, #009f77, #007f60); box-shadow: 0 7px 20px #006c4a28; transform: translateY(-1px); }
.hp-popular { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; font-size: clamp(14px, 1.18vw, 22px); }
.hp-popular>span { margin-right: 20px; }
.hp-popular button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 22px; border: 1px solid #009978bb; border-radius: 100px; background: #002f26a8; color: #f3fff9; font-size: inherit; line-height: 1.35; white-space: nowrap; backdrop-filter: blur(10px); transition: border-color .2s, background .2s; }
.hp-popular button:hover { border-color: #29e1b5; background: #00533fa8; }
.hp-popular .hp-view-all { border-color: transparent; background: transparent; backdrop-filter: none; padding-inline: 18px; }
.hp-view-all svg { width: 20px; height: 20px; }
/* Campus quick links rank by sourced straight-line distance from the search-bar campus. */
.hp-closest { column-gap: clamp(7px, .9vw, 14px); row-gap: 10px; }
.hp-closest > span:first-child { font-size: clamp(13px, 1.12vw, 18px); margin-right: clamp(3px, .6vw, 10px); }
.hp-closest .hp-nearby-campus { max-width: min(100%, 255px); min-width: 0; padding: 9px clamp(10px, 1.1vw, 17px); gap: 9px; font-size: clamp(12px, .98vw, 16px); font-weight: 550; }
.hp-nearby-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hp-closest .hp-nearby-campus small { flex: none; font-size: clamp(10px, .77vw, 12px); font-weight: 650; opacity: .84; border-left: 1px solid #7bdfc48a; padding-left: 8px; }
.hp-closest .hp-nearby-empty { font-size: 12px; color: #d5f5e9; line-height: 1.5; margin: 0; flex-basis: auto; }
@media (max-width: 600px) {
  .hp-closest .hp-nearby-campus { padding: 9px 12px; max-width: min(100%, 260px); font-size: 12px; }
  .hp-closest .hp-nearby-campus small { font-size: 10px; }
  .hp-closest .hp-nearby-empty { flex-basis: 100%; }
}
.hp-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding-block: 8px 18px; color: #b5d5c9; font-size: 11px; line-height: 1.5; }
.hp-page :is(button,select):focus-visible { outline: 3px solid #70f3cf; outline-offset: 5px; }
.hp-search select:focus-visible { outline-color: #00785b; outline-offset: 3px; }
@media (max-width: 1450px) {
  .hp-search { min-height: 108px; padding: 16px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.05fr) minmax(0, .85fr) minmax(0, 1fr) minmax(224px, 1.15fr); }
  .hp-field-icon { width: 42px; height: 42px; }
  .hp-field { gap: 9px; padding-inline: 12px; }
  .hp-funding .hp-field-icon { display: none; }
  .hp-submit { min-height: 72px; padding: 16px; gap: 10px; margin-left: 10px; }
  .hp-submit svg { width: 22px; height: 22px; }
  .hp-popular { gap: 12px; }
  .hp-popular>span { margin-right: 10px; }
  .hp-popular button { padding-inline: 18px; }
}
@media (max-width: 1100px) {
  .hp-container { width: 90%; }
  .hp-nav { padding-block: 24px; gap: 20px; }
  .hp-nav .rd-brand.ip-brand { width: 199px; }
  .hp-nav .ip-brand-symbol { width: 46px; height: 43px; }
  .hp-nav .ip-brand-wordmark { width: 146px; height: 54px; }
  .hp-main { padding-top: 66px; }
  .hp-copy { max-width: 100%; }
  .hp-copy h1 { font-size: clamp(43px, 5.1vw, 56px); max-width: 95%; }
  .hp-copy p { font-size: 23px; }
  .hp-page::after { background: linear-gradient(0deg, #001f1ac9, #00271e05 65%), linear-gradient(90deg, #00281f60, transparent 90%); }
  .hp-search { grid-template-columns: repeat(4, minmax(0,1fr)); padding: 16px; gap: 14px 0; }
  .hp-field { padding-inline: 12px; }
  .hp-field-icon { display: none; }
  .hp-field-label { font-size: 10px; white-space: normal; min-height: 30px; }
  .hp-select select { font-size: 16px; min-height: 44px; }
  .hp-funding { border: 0; }
  .hp-submit { grid-column: 1/-1; margin: 0; min-height: 58px; font-size: 17px; justify-self: stretch; }
  .hp-submit svg:last-child { margin-left: 5px; }
  .hp-popular { font-size: 15px; gap: 10px; }
  .hp-popular>span { flex-basis: 100%; margin: 0 0 2px; }
}
@media (max-width: 760px) {
  .hp-nav { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 18px; }
  .hp-nav nav { grid-row: 2; grid-column: 1; width: 100%; justify-content: flex-start; gap: clamp(14px, 3.5vw, 26px); border-bottom: 1px solid #e5fff520; }
  .hp-nav .rd-brand.ip-brand { width: 185px; height: 50px; gap: 6px; }
  .hp-nav .ip-brand-symbol { width: 43px; height: 40px; }
  .hp-nav .ip-brand-wordmark { width: 136px; height: 49px; }
  .hp-nav-link { font-size: 14px; }
  .hp-main { padding-top: 56px; }
  .hp-copy h1 { max-width: 100%; font-size: clamp(40px, 6.5vw, 48px); margin-top: 26px; }
  .hp-copy p { font-size: 21px; }
  .hp-search { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; }
  .hp-field { min-height: 78px; padding: 12px; }
  .hp-field:first-child { padding-left: 12px; }
  .hp-field:nth-child(even) { border-right: 0; }
  .hp-field:nth-child(-n+2) { border-bottom: 1px solid #d8e8e3; }
  .hp-field-label { font-size: 10px; min-height: 0; white-space: nowrap; }
  .hp-select select { font-size: 16px; min-height: 44px; }
  .hp-submit { margin-top: 12px; }
  .hp-popular button { min-height: 44px; padding-inline: 16px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .hp-search { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; }
  .hp-field { min-height: 86px; padding: 12px; gap: 12px; }
  .hp-field:first-child { padding-left: 12px; }
  .hp-field-icon,.hp-funding .hp-field-icon { display: grid; }
  .hp-field:nth-child(even) { border-right: 0; }
  .hp-field:nth-child(-n+2) { border-bottom: 1px solid #d8e8e3; }
  .hp-field-label { min-height: 0; white-space: normal; }
  .hp-submit { margin-top: 12px; }
}
@media (max-width: 600px) {
  .hp-container { width: calc(100% - 40px); }
  .hp-backdrop { top: 98px; bottom: auto; height: 440px; }
  .hp-backdrop img { object-position: 80% center; }
  .hp-page::after { background: linear-gradient(180deg, #002b2300 110px, #002b2320 225px, #002b23dd 390px, #002b23 540px), linear-gradient(90deg, #002b2366, transparent 80%); }
  .hp-nav { gap: 8px 10px; padding-block: 14px 0; }
  .hp-nav .rd-brand.ip-brand { width: 166px; height: 47px; gap: 5px; }
  .hp-nav .ip-brand-symbol { width: 38px; height: 38px; }
  .hp-nav .ip-brand-wordmark { width: 123px; height: 46px; }
  .hp-nav nav { gap: clamp(10px, 3vw, 20px); }
  .hp-nav-link { padding-block: 12px; font-size: clamp(11px, 2.9vw, 13px); }
  .hp-main { padding-top: 142px; padding-bottom: 24px; }
  .hp-copy { max-width: 100%; }
  .hp-kicker { padding: 9px 10px; gap: 7px; font-size: 9px; letter-spacing: .01em; }
  .hp-kicker i { width: 8px; height: 8px; }
  .hp-copy h1 { font-size: clamp(34px, 9.2vw, 49px); line-height: 1.08; letter-spacing: -.047em; margin: 22px 0 18px; text-shadow: 0 1px 14px #00271f40; }
  .hp-copy p { font-size: 17px; line-height: 1.6; max-width: 33ch; }
  .hp-desktop-break { display: none; }
  .hp-search { margin-top: 30px; padding: 12px; border-radius: 18px; box-shadow: 0 0 0 5px #38ad8b2a, 0 16px 40px #001d1b38; }
  .hp-institution,.hp-campus { grid-column: 1/-1; border-right: 0; }
  .hp-field { min-height: 72px; padding: 10px 8px; gap: 12px; }
  .hp-field:first-child { padding-left: 8px; }
  .hp-institution .hp-field-icon,.hp-campus .hp-field-icon { display: grid; height: 42px; width: 42px; }
  .hp-field-label { font-size: 10px; margin-bottom: 2px; }
  .hp-funding-long { display: none; }
  .hp-select select { font-size: 16px; line-height: 1.5; }
  .hp-submit { min-height: 56px; margin-top: 8px; padding-inline: 15px; font-size: 15px; border-radius: 12px; gap: 10px; }
  .hp-submit svg:last-child { margin-left: auto; }
  .hp-popular { gap: 10px; font-size: 13px; margin-top: 28px; }
  .hp-popular>span { font-size: 14px; margin-bottom: 2px; }
  .hp-popular button { padding: 10px 14px; }
  .hp-popular .hp-view-all { padding-inline: 8px; }
  .hp-note { flex-direction: column; gap: 2px; font-size: 10px; padding-bottom: 18px; }
}
@media (max-width: 359px) {
  .hp-container { width: calc(100% - 32px); }
  .hp-nav .rd-brand.ip-brand { width: 142px; gap: 3px; }
  .hp-nav .ip-brand-symbol { width: 33px; }
  .hp-nav .ip-brand-wordmark { width: 106px; }
  .hp-nav nav { gap: 9px; }
  .hp-nav-link { font-size: 11px; }
  .hp-kicker { font-size: 8px; }
  .hp-main { padding-top: 132px; }
  .hp-copy h1 { font-size: 33px; }
  .hp-field { padding-inline: 6px; gap: 8px; }
  .hp-radius select,.hp-funding select { font-size: 16px; }
  .hp-institution .hp-field-icon,.hp-campus .hp-field-icon { width: 36px; height: 36px; }
  .hp-submit { gap: 8px; font-size: 14px; padding-inline: 12px; }
  .hp-submit svg { width: 20px; height: 20px; }
}
@media (min-width: 1101px) and (max-height: 800px) {
  .hp-nav { padding-block: 20px; }
  .hp-main { padding-top: clamp(36px, 7vh, 62px); }
  .hp-copy h1 { margin-top: 25px; margin-bottom: 18px; font-size: clamp(48px,4.25vw,78px); }
  .hp-copy p { font-size: clamp(19px,1.6vw,28px); }
  .hp-search { margin-top: 36px; }
  .hp-popular { margin-top: 28px; }
}

/*
 * Compact desktop campus search bar (roughly 60% of its previous height).
 * Leave the stacked tablet/mobile controls at accessible touch-target sizes.
 */
@media (min-width: 1101px) {
  .hp-search {
    min-height: 72px;
    padding: 9px 12px;
    border-radius: 18px;
    box-shadow: 0 0 0 5px #38ad8b29, 0 15px 36px #001d1b35, inset 0 1px 0 #fff;
  }
  .hp-search .hp-field {
    min-height: 50px;
    padding-inline: clamp(8px, .85vw, 15px);
    gap: clamp(8px, .72vw, 14px);
  }
  .hp-search .hp-field:first-child { padding-left: 7px; }
  .hp-search .hp-field-icon {
    width: clamp(36px, 2.8vw, 46px);
    height: clamp(36px, 2.8vw, 46px);
  }
  .hp-search .hp-field-label {
    margin-bottom: 1px;
    font-size: clamp(10px, .7vw, 13px);
    line-height: 1.25;
  }
  .hp-search .hp-luxe-trigger {
    min-height: 32px;
    padding: 2px 0;
    font-size: clamp(13px, .95vw, 18px);
    line-height: 1.3;
  }
  .hp-search .hp-select select {
    min-height: 32px;
    font-size: clamp(13px, .95vw, 18px);
  }
  .hp-search .hp-submit {
    min-height: 50px;
    margin-left: 12px;
    padding: 8px 14px;
    border-radius: 13px;
    gap: 10px;
    font-size: clamp(14px, 1.1vw, 20px);
  }
  .hp-search .hp-submit svg { width: 22px; height: 22px; }
}

/* Approved classic university facade in the Campus / Branch search field.
 * Fits inside the existing circle without altering the compact bar dimensions. */
.hp-campus .hp-campus-classic-icon {
  display: block;
  width: 72%;
  height: 72%;
  stroke: none;
}
