/* Home: "Hello, …", then a big photo with the search box inside its top edge (like america.gov), then the four primary routes. */
[data-sv=search] .g4-h{font-size:clamp(2.5rem,6.5vw,5.2rem);margin:16px auto 10px}
.g4-hero .g4-sub{margin-bottom:20px}
.g4-hero{padding-bottom:clamp(18px,2vw,26px)}
.g4-home-search{position:relative;z-index:5;width:min(980px,calc(100% - 32px));margin:0 auto}
.g4-home-search form.aisearch.big{position:relative;margin:0;box-shadow:0 8px 28px -18px rgba(10,25,55,.35)}

/* The photo is the backdrop; the search box and scope chips sit inside its top edge. */
/* Main design (Nov 17): a big photo like america.gov, 3:2, with the search box inside its top edge. */
[data-sv=search] .g4-hero .g4-card.g4-card-search{margin-top:0;aspect-ratio:3/2;max-height:none;box-shadow:0 22px 46px -26px rgba(10,25,55,.45)}
.g4-hero .g4-card-search .g4-home-search{position:absolute;top:clamp(12px,1.6vw,20px);left:clamp(12px,1.6vw,20px);right:clamp(12px,1.6vw,20px);width:auto;margin:0}
.g4-hero .g4-card-search .g4-home-search form.aisearch.big{position:relative;top:auto;left:auto;right:auto;transform:none;border-color:transparent;box-shadow:0 10px 30px rgba(10,25,55,.28)}
/* a soft shade at the top keeps the box readable on bright photos */
.g4-hero .g4-card-search::after{content:"";position:absolute;inset:0 0 auto 0;height:55%;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;background:linear-gradient(180deg,rgba(8,14,28,.38),rgba(8,14,28,0));pointer-events:none;z-index:1}
.g4-hero .g4-card-search .g4-credit{z-index:2}

/* Short laptop screens: tighten the top so the four routes still show without scrolling. */
@media(min-width:701px) and (max-height:860px){
 .g4-hero .g4-top .g4-in{padding-top:14px;padding-bottom:10px}
 [data-sv=search] .g4-h{font-size:clamp(2.4rem,5vw,4rem);margin:6px auto 8px}
 .g4-hero .g4-sub{font-size:clamp(1rem,1.6vw,1.25rem);margin-bottom:14px}
}

/* The four primary routes. */
.g4-startsec{max-width:1120px;margin:16px auto 0;padding:0 16px;text-align:left}
.g4-startsec .g4-start{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.g4-startsec .g4-sc-ph{aspect-ratio:auto;height:84px;margin-bottom:10px}
.g4-startsec .g4-sc{border-radius:22px;padding-bottom:16px;background:var(--panel);box-shadow:0 2px 8px rgba(10,25,55,.04);align-items:center;text-align:center}
/* Title only, centered, with the arrow beside it. */
.g4-startsec .g4-sc small{display:none}
.g4-startsec .g4-sc b{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:1rem;line-height:1.25;padding:0 14px}
.g4-startsec .g4-arrow{position:static;flex-shrink:0;width:28px;height:28px}
.g4-startsec .g4-arrow .ic{width:15px;height:15px}
.g4-startsec .g4-sc:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:700px){
 .g4-startsec .g4-start{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .g4-startsec{margin-top:12px}
 .g4-startsec .g4-sc-ph{height:56px;margin-bottom:8px}
 .g4-hero .g4-sub{font-size:.95rem;margin-bottom:16px;padding:0 18px}
 .g4-hero .g4-sub-rest{display:none}
 .g4-home-search form.aisearch.big{min-height:62px;padding-left:16px}
 .g4-home-search .ai-go{width:44px;height:44px}
}
@media(max-width:640px){
 [data-sv=search] .g4-hero .g4-card.g4-card-search{aspect-ratio:4/5;height:auto;max-height:none}
 .g4-hero .g4-credit{max-width:50%;right:12px;bottom:10px;font-size:.62rem}
}
/* While suggestions are open they float over the page instead of being cut off at the hero's edge. */
.g4-hero:has(.sugbox){overflow:visible;z-index:20}
.g4-hero .g4-card-search .sugbox{max-height:min(60vh,520px);overflow:auto}
/* Trial: plain hero (build with --hero plain) — the search box on its own, no photo. */
.g4-plain-search{margin:4px auto 0;padding-bottom:14px}
.g4-plain-search .g4-home-search form.aisearch.big{box-shadow:0 14px 40px -18px rgba(10,25,55,.35),0 2px 6px rgba(10,25,55,.06)}
.g4-entry{display:flex;justify-content:center;margin:0 auto 1.25rem}
.g4-entry .btn,.byu-entry .btn{min-height:44px}
.byu-entry{margin:clamp(1.5rem,7vw,5rem) auto;padding:clamp(1.5rem,4vw,2.6rem)}
.byu-entry h1{margin:.4rem 0}
.byu-entry p{margin-bottom:1.2rem}
.byu-entry .row{flex-wrap:wrap;align-items:center;gap:.6rem}
.byu-entry form{display:inline-flex;margin:0}
.byu-entry .psc-join-form{display:grid;flex-basis:100%;justify-items:start;gap:.55rem}
.psc-join-form label{display:flex;align-items:baseline;gap:.55rem;font-weight:600;cursor:pointer}
.psc-join-form input[type=checkbox]{width:1rem;height:1rem;flex:none;margin:0;accent-color:var(--accent)}
.byu-entry .psc-join-form p{margin:0 0 .55rem}
.mtop-campus{display:inline-flex;align-items:center;gap:.25rem;white-space:nowrap;font-size:.78rem;font-weight:650}
.mtop-campus .ic{width:16px;height:16px}
@media(max-width:380px){.mtop-campus .ic{display:none}}
.byu-entry .byu-profile{margin:1rem 0 1.25rem}
.byu-profile>div{display:grid;grid-template-columns:minmax(4rem,auto) 1fr;gap:1rem;padding:.55rem 0;border-bottom:1px solid var(--line)}
.byu-profile dt{font-weight:650}.byu-profile dd{margin:0;overflow-wrap:anywhere}
.byu-entry .psc-profile-form{display:grid;gap:.85rem;margin:1rem 0}
.psc-profile-form label{display:grid;gap:.35rem;font-weight:600}
.psc-profile-form input{font:inherit;min-height:44px;width:100%;padding:.55rem .7rem;border:1px solid var(--line);border-radius:.45rem;color:inherit;background:var(--card,#fff)}
.psc-profile-form input[type=file]{height:auto;overflow:hidden}
.byu-entry [data-profile-status]:empty{display:none}
.psc-profile-photo{object-fit:cover;border-radius:50%;margin:.4rem 0}
/* Sign in with BYU sits top right in the home header (it used to sit above the search box) */
.g4-entry:empty{display:none}
.byu-pill{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 18px;border-radius:999px;font-size:15px;font-weight:650;white-space:nowrap;text-decoration:none}
.byu-hero-phone{display:none}
.g4-entry:has(> .byu-hero-phone:only-child){display:none}
@media (max-width:640px){.g4-top .byu-pill{display:none}.byu-hero-phone{display:inline-flex}.g4-entry:has(> .byu-hero-phone:only-child){display:flex}}
