/**
 * GME landing page.
 *
 * Extracted verbatim from the approved mockup. Loaded by the YOURTHEME/gme
 * library, which is attached only on gme_settings and gme_program nodes.
 */

:root{
  --navy:#0a3d78;
  --navy-deep:#083368;
  --navy-text:#123a6b;
  --nav-blue:#3d6da5;
  --green:#8cc63e;
  --orange:#f0921f;
  --ink:#1c3f6e;
  --page:#f4f8fc;
  --diamonds:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23c3d7ea' stroke-width='2'%3E%3Crect x='22' y='22' width='46' height='46' transform='rotate(45 45 45)'/%3E%3Crect x='88' y='88' width='26' height='26' transform='rotate(45 101 101)'/%3E%3C/g%3E%3Ccircle cx='118' cy='24' r='3.5' fill='%23cddeee'/%3E%3Ccircle cx='24' cy='112' r='3' fill='%23cddeee'/%3E%3C/svg%3E");
}

body{
  font-family:"Open Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#fff;
}

h1,h2,h3,.stat-number{font-weight:800;color:var(--navy-text);}

/* ---------- Nav ---------- */
.site-nav{background:var(--nav-blue);}
.site-nav .nav-link{
  color:#fff;
  font-weight:700;
  font-size:1.0625rem;
  padding:1.05rem 1.5rem;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible{color:#dceaf7;}
.navbar-toggler{border-color:rgba(255,255,255,.6);}
.navbar-toggler-icon{filter:invert(1) grayscale(1) brightness(2);}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background-color:#fff;
  background-image:
    linear-gradient(180deg,rgba(255,255,255,0) 55%,#fff 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%23c3d7ea' stroke-width='2'%3E%3Crect x='22' y='22' width='46' height='46' transform='rotate(45 45 45)'/%3E%3Crect x='88' y='88' width='26' height='26' transform='rotate(45 101 101)'/%3E%3C/g%3E%3Ccircle cx='118' cy='24' r='3.5' fill='%23cddeee'/%3E%3Ccircle cx='24' cy='112' r='3' fill='%23cddeee'/%3E%3C/svg%3E"),
    linear-gradient(180deg,#c6dbf0 0%,#dceaf6 40%,var(--page) 72%,#fff 100%);
  background-repeat:no-repeat,repeat,no-repeat;
  background-size:100% 100%,140px 140px,100% 100%;
  padding-bottom:3.5rem;
}
.hero-frame{position:relative;}

.hero-photo{
  display:block;
  width:100%;
  height:clamp(320px,42vw,600px);
  object-fit:cover;
  border-bottom-left-radius:26px;
}

.hero-stats{
  background:var(--navy);
  border-radius:0 0 26px 26px;
  padding:0 2.5rem 2.75rem;
  /* starts the stats just past the card's right edge, whatever width the card resolves to */
  padding-left:calc(2.5rem + min(55%,640px) + 2rem - 26%);
  margin-left:26%;
}
.stat{margin-top:-46px;text-align:center;color:#fff;}
.stat-icon{
  width:96px;height:96px;
  margin:0 auto .9rem;
  border-radius:50%;
  background:var(--green);
  border:5px solid #fff;
  display:flex;align-items:center;justify-content:center;
  font-size:2.4rem;color:#fff;
}
.stat-rule{height:3px;background:rgba(255,255,255,.35);border-radius:2px;}
.stat-number{color:#fff;font-size:clamp(2.2rem,3.4vw,3rem);line-height:1.1;margin:.85rem 0 .1rem;}
.stat-label{font-size:1.125rem;margin-bottom:.85rem;}

/* Floating intro card */
.hero-card{
  position:absolute;
  left:2.5rem;
  bottom:.9rem;
  width:min(55%,640px);
  background:#fff;
  border-radius:14px;
  box-shadow:0 22px 48px rgba(10,45,90,.22);
  padding:2.5rem 2.5rem 2rem;
  z-index:3;
}
.eyebrow{
  display:flex;align-items:center;gap:.6rem;
  font-weight:700;color:var(--orange);
  font-size:1.125rem;line-height:1.2;margin-bottom:0;
}
.eyebrow i{color:var(--navy-text);}
.hero-card h1{font-size:clamp(2rem,3.6vw,3.35rem);line-height:1.05;margin:-.3em 0 1.1rem;}
.hero-card hr{border-top:2px solid #d6dde5;opacity:1;margin:0 0 1.4rem;}
.hero-card p{font-size:1.1875rem;line-height:1.55;margin-bottom:1.75rem;}

.logo-row{display:flex;align-items:center;gap:1.75rem;flex-wrap:wrap;filter:grayscale(1);opacity:.62;}
.logo-row a{display:block;max-width:45%;line-height:0;transition:opacity .18s ease;}
.logo-row a:hover,.logo-row a:focus-visible{opacity:.7;}
.logo-row img{width:auto;height:auto;max-width:100%;object-fit:contain;}
.logo-uc{max-height:60px;}
.logo-acgme{max-height:46px;}

/* ---------- Programs ---------- */
.section-head h2{font-size:clamp(1.75rem,3.2vw,2.6rem);}
.section-head p{font-size:1.125rem;color:#2b527f;}

.programs-band{
  background:var(--navy-deep);
  padding:3.25rem 0;
}
.program-card{
  display:flex;align-items:center;gap:1rem;
  background:#fff;border-radius:6px;
  padding:1.4rem 1.5rem;height:100%;
  box-shadow:0 6px 18px rgba(0,0,0,.14);
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease;
}
.program-card:hover,.program-card:focus-visible{
  transform:translateY(-3px);
  box-shadow:0 12px 26px rgba(0,0,0,.24);
}
.program-card .icon{
  flex:0 0 46px;height:46px;
  border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.375rem;
}
.icon-green{background:#eaf6d9;color:var(--green);}
.icon-orange{background:#fdeed8;color:var(--orange);}
.icon-blue{background:#e2ecf8;color:var(--nav-blue);}
.program-card .title{font-weight:700;color:var(--navy-text);font-size:1.0625rem;line-height:1.3;}

/* ---------- Leadership ---------- */
.leadership{padding:4.5rem 0 5rem;}
.staff-card{
  background:#fff;border-radius:10px;padding:2rem 1.5rem;height:100%;
  text-align:center;box-shadow:0 6px 22px rgba(10,45,90,.12);
  border-bottom:4px solid var(--green);
}
.staff-avatar{
  width:84px;height:84px;border-radius:50%;
  background:var(--green);color:#fff;font-size:2.1rem;
  display:flex;align-items:center;justify-content:center;margin:0 auto 1.1rem;
}
.staff-card h3{font-size:1.25rem;margin-bottom:.2rem;}
.staff-card p{margin:0;color:#3a5f8a;}

/* ---------- Required documents ---------- */
.documents{background-color:var(--page);padding:4rem 0 4.5rem;}
.notice{
  background:#fff7ea;border-left:5px solid var(--orange);border-radius:6px;
  padding:1rem 1.25rem;margin-bottom:2rem;
}
.notice .flag{color:var(--orange);font-weight:700;}
.doc-link{
  display:flex;align-items:center;gap:1rem;height:100%;
  background:#fff;border-radius:8px;padding:1.15rem 1.35rem;text-decoration:none;
  box-shadow:0 4px 14px rgba(10,45,90,.1);
  transition:transform .18s ease,box-shadow .18s ease;
}
.doc-link:hover,.doc-link:focus-visible{transform:translateY(-3px);box-shadow:0 12px 26px rgba(10,45,90,.18);}
.doc-link .icon{
  flex:0 0 44px;height:44px;border-radius:8px;
  background:#e2ecf8;color:var(--nav-blue);font-size:1.2rem;
  display:flex;align-items:center;justify-content:center;
}
.doc-link .title{flex:1;font-weight:700;color:var(--navy-text);line-height:1.35;}
.doc-link .arrow{color:var(--nav-blue);}

/* ---------- Salary & benefits ---------- */
.salary{padding:4.5rem 0 0;}
.salary-band{background:var(--navy-deep);padding:3rem 0;margin-top:2.5rem;}
.pgy-card{
  background:#fff;border-radius:10px;padding:1.15rem .75rem;height:100%;
  text-align:center;border-top:4px solid var(--green);
  box-shadow:0 6px 18px rgba(0,0,0,.14);
}
.pgy-level{
  font-size:.8125rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:#5b7ba3;margin-bottom:.3rem;
}
.pgy-amount{font-weight:800;color:var(--navy-text);font-size:1.3rem;line-height:1.2;}
.pay-note{
  color:#bcd4ec;text-align:center;margin:2rem auto 0;max-width:60ch;line-height:1.6;
}
.pay-note i{color:var(--green);margin-right:.5rem;}

.benefits{padding:4rem 0 5rem;}
.benefit-card{
  background:#fff;border-radius:10px;padding:1.75rem 1.5rem;height:100%;
  border:1px solid #e3ecf5;
  box-shadow:0 4px 16px rgba(10,45,90,.07);
}
.benefit-icon{
  width:48px;height:48px;border-radius:10px;margin-bottom:1rem;
  background:#eaf6d9;color:#6ea022;font-size:1.35rem;
  display:flex;align-items:center;justify-content:center;
}
.benefit-card h3{font-size:1.125rem;margin-bottom:.45rem;}
.benefit-card p{margin:0;font-size:.9375rem;line-height:1.6;color:#45658c;}
.benefit-card.is-muted .benefit-icon{background:#eef3f8;color:#7d95b3;}
.fineprint{
  margin-top:2.5rem;padding:1.25rem 1.5rem;
  background:var(--page);border-radius:8px;
  font-size:.9375rem;line-height:1.6;color:#45658c;
}

/* ---------- Lifestyle ---------- */
.lifestyle{padding:4.5rem 0 5rem;}
.drive-times{
  display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem;
  margin:1.75rem 0 2.75rem;
}
.drive-pill{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--page);border:1px solid #d5e3f1;border-radius:999px;
  padding:.5rem 1.1rem;font-size:.9375rem;font-weight:600;color:var(--navy-text);
}
.drive-pill i{color:var(--green);}
.drive-pill span{color:#5b7ba3;font-weight:400;}

.bento{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-template-areas:
    "feature feature two   three"
    "feature feature four  five";
  gap:1.25rem;
}
.tile{
  position:relative;overflow:hidden;border-radius:14px;
  min-height:236px;display:block;text-decoration:none;
  background:var(--navy);
  box-shadow:0 8px 24px rgba(10,45,90,.16);
}
.tile:nth-child(1){grid-area:feature;min-height:100%;}
.tile:nth-child(2){grid-area:two;}
.tile:nth-child(3){grid-area:three;}
.tile:nth-child(4){grid-area:four;}
.tile:nth-child(5){grid-area:five;}

.tile img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:center 38%;
  transition:transform .5s ease;
}
.tile::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(8,51,104,0) 30%,rgba(8,51,104,.55) 62%,rgba(8,51,104,.92) 100%);
}
.tile:hover img,.tile:focus-visible img{transform:scale(1.06);}

.tile-body{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:1.5rem;color:#fff;}
.tile-tag{
  display:inline-flex;align-items:center;gap:.4rem;
  background:var(--green);color:#0e3115;
  font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:.3rem .7rem;border-radius:999px;margin-bottom:.7rem;
}
.tile-body h3{color:#fff;font-size:1.3rem;margin:0 0 .3rem;}
.tile-body p{margin:0;color:#d6e5f5;font-size:.9375rem;line-height:1.5;}
.tile-feature .tile-body{padding:2rem;}
.tile-feature .tile-body h3{font-size:2rem;}
.tile-feature .tile-body p{font-size:1.0625rem;max-width:44ch;}

@media (max-width:991.98px){
  .bento{grid-template-columns:repeat(2,1fr);grid-template-areas:"feature feature" "two three" "four five";}
  .tile-feature .tile-body h3{font-size:1.6rem;}
}
@media (max-width:575.98px){
  .bento{grid-template-columns:1fr;grid-template-areas:"feature" "two" "three" "four" "five";}
  .tile{min-height:210px;}
  .tile:nth-child(1){min-height:280px;}
}

/* ---------- Contact ---------- */
.contact{
  background-color:#fff;
  background-image:
    linear-gradient(180deg,
      var(--page) 0%,
      var(--page) 26%,
      rgba(244,248,252,0) 52%,
      rgba(255,255,255,0) 46%,
      #fff 92%),
    var(--diamonds),
    linear-gradient(180deg,var(--page) 0%,var(--page) 28%,#fff 92%);
  background-repeat:no-repeat,repeat,no-repeat;
  background-size:100% 100%,140px 140px,100% 100%;
  padding:4.5rem 0 5rem;
}
.contact-card{
  background:#fff;
  border-radius:16px 16px 0 0;
  padding:2.75rem 3rem 3rem;
  box-shadow:0 -6px 34px rgba(10,45,90,.1);
}
.contact-card h3{font-size:1.5rem;margin-bottom:.9rem;}
.contact-card .rule{width:64px;height:4px;border-radius:2px;background:var(--green);margin-bottom:1.5rem;}
.contact-card p{line-height:1.65;margin-bottom:0;}

.contact-strip{
  background:var(--navy);
  border-radius:0 0 16px 16px;
  padding:0 1.5rem 2.75rem;
  box-shadow:0 22px 44px rgba(10,45,90,.2);
}
.c-stat{margin-top:-44px;text-align:center;color:#fff;}
.c-icon{
  width:88px;height:88px;margin:0 auto 1.1rem;
  border-radius:50%;background:var(--green);border:5px solid #fff;
  color:#fff;font-size:2rem;
  display:flex;align-items:center;justify-content:center;
}
.c-label{
  font-size:.8125rem;letter-spacing:.14em;text-transform:uppercase;
  color:#9fc0e2;margin-bottom:.4rem;
}
.c-value{line-height:1.55;margin-bottom:0;}
.c-value a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35);}
.c-value a:hover,.c-value a:focus-visible{color:var(--green);border-color:var(--green);}

@media (max-width:575.98px){
  .logo-row{justify-content:center;gap:1.75rem;}
}
@media (min-width:992px) and (max-width:1199.98px){
  .stat-label{font-size:.95rem;}
  .stat-icon{width:78px;height:78px;font-size:1.9rem;}
  .stat{margin-top:-39px;}
}
@media (max-width:991.98px){
  .contact-strip{padding:2.75rem 1.25rem;}
  .c-stat{margin-top:0;margin-bottom:2rem;}
  .c-icon{width:72px;height:72px;font-size:1.7rem;}
  .contact-card{padding:2rem 1.5rem 2.25rem;}
  .hero-photo{border-bottom-left-radius:0;}
  .hero-card{position:static;width:auto;margin:-2.5rem 1rem 0;}
  .hero-stats{margin-left:0;border-radius:0 0 20px 20px;padding:0 1.25rem 2rem;margin-top:0;}
  .stat{margin-top:-39px;}
  .stat-icon{width:78px;height:78px;font-size:1.9rem;}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important;}
}

/* ---------- Bootstrap 4 compatibility ----------
   Civic loads Bootstrap 4, so the g-* gutter utilities from the mockup do
   not exist. These reproduce them, scoped so nothing else on the site is
   affected. Remove if the theme ever moves to Bootstrap 5. */
.gme-landing .row.g-3{margin-left:-.5rem;margin-right:-.5rem;}
.gme-landing .row.g-3 > [class*="col"]{padding-left:.5rem;padding-right:.5rem;padding-top:.5rem;padding-bottom:.5rem;}
.gme-landing .row.g-4{margin-left:-.75rem;margin-right:-.75rem;}
.gme-landing .row.g-4 > [class*="col"]{padding-left:.75rem;padding-right:.75rem;padding-top:.75rem;padding-bottom:.75rem;}

/* ---------- Salary row ----------
   The number of PGY levels varies by program, from three to seven, so a
   fixed 12-column grid cannot divide evenly. Cards flex to fill the row and
   a short trailing row stays centred at card width instead of stretching. */
.gme-landing .salary-band .row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:1rem;
  margin-left:0;
  margin-right:0;
}
.gme-landing .salary-band .row > [class*="col"]{
  flex:1 1 140px;
  max-width:210px;
  padding:0;
}
