/* gn10: guide template navigation, Nov 10 2026 */
body.mpage main [id],
body.mpage main h2,
body.mpage main h3,
body.mpage main .gmx-reg {
  scroll-margin-top: 96px;
}

/* Section labels: keep ~20px on phones so they scan; desktop already 24px in styles.css */
body.mpage main .guide-c > h2,
body.mpage main .guide h2,
body.mpage main h2.sec {
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  font-weight: 750 !important;
  letter-spacing: -.01em;
  text-wrap: balance;
}

/* Desktop TOC: 44px tap height */
@media (min-width: 1100px) {
  .df-toc a {
    display: flex !important;
    align-items: center;
    min-height: 44px !important;
    padding: 8px 10px !important;
    line-height: 1.3;
  }
}

/* Compact jump row under the hero (mobile / narrow) */
.gn-jump {
  display: none;
  margin: 14px auto 6px;
  /* Line up with the cards below (.wrap: 1200px max, 18px sides) instead of
     a centered 760px column that sat off to the right on tablets. */
  padding: 0 18px 8px;
  max-width: 1200px;
  box-sizing: border-box;
}
@media (max-width: 1099px) {
  .gn-jump { display: block; }
}
.gn-jump .gn-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.gn-jump a,
.gn-jump .gn-all > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 37, 69, .18);
  background: #fff;
  color: #0b2545 !important;
  text-decoration: none;
  font: 650 14px/1.25 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: -.01em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  cursor: pointer;
}
.gn-jump a:hover,
.gn-jump a:focus-visible,
.gn-jump .gn-all > summary:hover,
.gn-jump .gn-all > summary:focus-visible {
  background: #fff4d6;
  border-color: #d4a017;
  color: #0b1f3a !important;
  outline: none;
}
.gn-jump a:focus-visible,
.gn-jump .gn-all > summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 160, 23, .45);
}
.gn-jump .gn-all {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.gn-jump .gn-all[open] {
  background: none !important;
  box-shadow: none !important;
}
.gn-jump .gn-all > summary {
  list-style: none;
  width: auto !important;
  max-width: none;
  margin: 0 !important;
  /* beat sitewide summary {display:flex; justify-content:space-between} */
  display: inline-flex !important;
  justify-content: center !important;
  gap: 6px;
}
.gn-jump .gn-all > summary::-webkit-details-marker { display: none; }
/* Sitewide summary:after adds a gold +. Keep one mark, size it to the pill. */
.gn-jump .gn-all > summary::after,
.gn-jump .gn-all > summary::before {
  position: static !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  color: inherit !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: none !important;
}
.gn-jump .gn-all > summary::before { content: none !important; display: none !important; }
.gn-jump .gn-all[open] > summary {
  background: #0b2545;
  color: #fff !important;
  border-color: #0b2545;
}
.gn-jump .gn-all ol {
  list-style: none;
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 37, 69, .08), 0 8px 24px rgba(11, 37, 69, .08);
}
.gn-jump .gn-all li { margin: 0; }
.gn-jump .gn-all ol a {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  border-radius: 10px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Hero job facts (Provo and similar) */
.gn-facts {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}
@media (min-width: 560px) {
  .gn-facts { grid-template-columns: 1fr 1fr; }
}
.gn-facts p {
  margin: 0;
  padding: 10px 14px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(246, 208, 107, .45);
  border-radius: 12px;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}
.gn-facts .gn-fk {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f6d06b;
}

/* Hide decorative globe on tight first screens */
body.gn-tight-hero .pg-gw { display: none !important; }

/* Slim Christmas banner on Provo and the travel portal: drop the lights, tighter type. Keep 44px tap height. */
body.gn-slim-ban .gmc-sb-l { display: none !important; }
body.gn-slim-ban .gmc-sb {
  font-size: 13px !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
body.gn-slim-ban .gmc-sb-a { padding-left: 12px !important; gap: 4px !important; }

/* Collapsed Sources / More guides / language copies */
.gn-fold,
.gn-lang {
  margin: 0;
}
.gn-fold > summary,
.gn-lang > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font: 750 1.25rem/1.3 inherit;
  color: #0b2545;
  letter-spacing: -.01em;
}
.gn-fold > summary::-webkit-details-marker,
.gn-lang > summary::-webkit-details-marker { display: none; }
.gn-fold > summary::after,
.gn-lang > summary::after {
  content: " +";
  margin-left: 8px;
  font-weight: 650;
  color: #5a6b80;
}
.gn-fold[open] > summary::after,
.gn-lang[open] > summary::after { content: " −"; }
.gn-fold > summary h2,
.gn-lang > summary h2 {
  margin: 0 !important;
  font: inherit !important;
  color: inherit !important;
}

/* Tighter unofficial note so the next section can sit near the top */
.ltw-note-sm {
  margin: 10px 0 0 !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* Giving Machines city/state search + Open this week (no card redesign) */
.gmx-find {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-end;
  margin: 0 0 16px;
  padding: 4px 0 8px;
  border-bottom: 1px solid rgba(11, 37, 69, .1);
}
.gmx-find-q {
  flex: 1 1 16rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(100%, 16rem);
}
.gmx-find label {
  font-size: 13px;
  font-weight: 700;
  color: #0b2545;
}
.gmx-find input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(11, 37, 69, .28);
  border-radius: 10px;
  font: 400 16px/1.3 system-ui, sans-serif;
  color: #0b2545;
  background: #fff;
}
.gmx-find input[type="search"]:focus {
  outline: 3px solid rgba(212, 160, 23, .45);
  border-color: #0b2545;
}
.gmx-openwk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  color: #0b2545;
  cursor: pointer;
}
.gmx-openwk input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #0b2545;
}
.gmx-find-status {
  flex: 1 0 100%;
  margin: 0;
  font-size: 13px;
  color: #3a4a60;
}
.gmx-c.is-hidden,
.gmx-reg.is-hidden {
  display: none !important;
}

/* Photo moved off the first screen */
.gn-placed-photo {
  max-width: 520px;
  margin: 8px auto 16px;
}
.gn-placed-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.gn-placed-photo figcaption,
.gn-placed-photo .hero-cred {
  margin: 8px 0 0;
  font-size: 12px;
  color: #3a4a60;
}

/* Back to top */
.gn-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #0b2545;
  color: #fff !important;
  text-decoration: none;
  font: 650 13px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  /* Plus Jakarta Sans has a narrow space at 13px, and body tracking is
     -.005em, so "Back to top" was reading as "Backtotop" on desktop.
     Same word-spacing used on jump chips. Keep the label on one line. */
  letter-spacing: 0;
  word-spacing: .14em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(11, 37, 69, .28);
  cursor: pointer;
}
.gn-top.is-on { display: inline-flex; }
.gn-top-ic { display: none; width: 20px; height: 20px; flex: none; }
.gn-top-lbl { display: inline; }
.gn-top:hover,
.gn-top:focus-visible {
  background: #16365e;
  color: #fff !important;
  outline: 3px solid rgba(212, 160, 23, .7);
  outline-offset: 2px;
}
/* Phones and narrow tablets: icon-only 44px circle, clear of the tab bar. */
@media (max-width: 1099px) {
  .gn-top {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    right: 12px;
    bottom: 24px;
  }
  .gn-top-ic { display: block; }
  .gn-top-lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  /* Extra space at the end of the article so the last lines are not under the button. */
  body.mpage main {
    padding-bottom: 56px;
  }
}
@media (max-width: 760px) {
  .gn-top {
    bottom: calc(var(--tab-h, 58px) + 12px + env(safe-area-inset-bottom, 0px));
  }
}


/* Compact country / secondary jumps inside a dark hero (not full-width stacked buttons) */
.gn-hero-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}
.gn-hero-jumps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(246, 208, 107, .55);
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
  text-decoration: none;
  font: 650 14px/1.25 "Plus Jakarta Sans", system-ui, sans-serif;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
@media (max-width: 560px) {
  .gn-hero-jumps a { flex: 1 1 calc(50% - 8px); }
}
.gn-hero-jumps a:hover,
.gn-hero-jumps a:focus-visible {
  background: rgba(246, 208, 107, .2);
  color: #fff !important;
  outline: 3px solid rgba(246, 208, 107, .55);
  outline-offset: 2px;
}
body.gn-slim-ban .gmc-sb-l,
body.gn-slim-ban .gmc-sb-l i {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  background: none !important;
}

/* Homepage #top:after is a 140px navy hero fade. Never paint it on guide pages,
   even if a leftover id="top" lands on body. */
body.mpage#top:after {
  content: none !important;
  background: none !important;
  height: 0 !important;
}

/* Guide header should stay visible while reading. styles.css later sets
   .mp-top { position: relative } ("static mission page header to match"),
   which lets the bar scroll away and leaves the desktop TOC at top:84px
   with an empty gap. Scope is guide pages only. */
body.mpage:has(.guide) header.mp-top {
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Desktop TOC was tall enough to sit under the fixed Back to top button. */
@media (min-width: 1100px) {
  body.mpage .wrap.mp-grid.guide.df-tocg > .df-toc {
    max-height: calc(100vh - 164px);
    /* Span exactly the main column's rows (gn10.js sets --df-n to the visible
       count) so the TOC stays sticky to the end without stretching row 1.
       "1 / -1" only covered row 1 in an implicit grid and left a big gap
       under the Quick answer. */
    grid-row: 1 / span var(--df-n, 12) !important;
    align-self: start;
  }
}

/* Mobile: keep the footer copyright line clear of the 44px back-to-top button. */
@media (max-width: 1099px) {
  body.mpage footer.gf .gf-fine .gf-n1,
  body.mpage footer.gf .gf-fine .gf-cr {
    padding-right: 4.25rem;
  }
}

/* Plus Jakarta Sans has a narrow space at 14px; with the -.01em tracking,
   chip labels like "Who to contact" read as one word. */
.gn-jump a,
.gn-jump .gn-all > summary,
.gn-hero-jumps a {
  word-spacing: .14em;
}

/* Tap targets: "Official arrival information" style link chips were 34px
   and the dark-card action buttons 43px. Lift both to 44px. Step dots keep
   their 32px look with an invisible 44px hit area. */
body.mpage main .pg-links a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
}
body.mpage main .pg-act {
  box-sizing: border-box;
  min-height: 44px;
}
body.mpage main .pg-dots button {
  position: relative;
}
body.mpage main .pg-dots button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

/* Language copy boxes sat 18px apart while every other card is 10px. */
body.mpage .wrap.mp-grid.guide > details.gn-lang {
  margin: 0 !important;
}

/* gn10k: keep the full Home › Guides trail visible, including on phones. */
html body .gm-crow .mp-crumb{
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
@media (max-width: 640px) {
  html body .mp-crumb,
  html body .gm-crow .mp-crumb {
    font-size: 13px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  html body .mp-crumb > a,
  html body .mp-crumb > span {
    display: inline !important;
    font-size: 13px !important;
  }
  html body .mp-crumb > span {
    display: inline-block !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  html body .mp-crumb > a {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    padding: 0 1px !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  html body .mp-crumb > a:last-of-type::before {
    content: none !important;
  }
}
