/* Class of 2000: presentation-only polish. Load after mobile.css.
   Keeps the existing Bootstrap behavior, content, and school colors. */

:root {
  --bs-body-line-height: 1.65;
  --bs-border-radius: .625rem;
  --bs-border-radius-lg: 1rem;
  --ghhs-line: #dfe5ed;
  --ghhs-surface-2: #f6f7fa;
}

body { overflow-wrap: break-word; }
h1, h2, h3, .h1, .h2, .h3 { letter-spacing: -.025em; }
h1, .h1 { line-height: 1.15; }
h2, h3, .h2, .h3 { line-height: 1.3; }
p { text-wrap: pretty; }
a { text-underline-offset: .2em; }
.btn { padding: .6rem 1rem; line-height: 1.4; }
.btn-sm { padding: .45rem .8rem; }
.btn-lg { padding: .85rem 1.35rem; font-size: 1rem; }
.btn:hover, .navbar-brand:hover, .nav-link:hover { text-decoration: none; }

/* Give the brand, search, and account actions their own desktop row.
   The full navigation remains available on a separate, wrapping row. */
.navbar-ghhs {
  padding-block: .85rem;
  border-bottom-width: 1px;
  box-shadow: 0 4px 18px rgb(11 44 92 / 8%);
}
.navbar-brand-ghhs { gap: .8rem; margin-right: 0; }
.navbar-brand-ghhs .brand-badge { width: 44px; height: 44px; border-width: 1px; }
.navbar-brand-ghhs .brand-text { line-height: 1.2; }
.navbar-brand-ghhs .brand-text small {
  margin-top: .3rem;
  font-size: .625rem;
  letter-spacing: .1em;
}
.navbar-ghhs .nav-link {
  border-bottom-width: 2px;
  border-radius: .35rem .35rem 0 0;
  font-size: .875rem;
}
.navbar-ghhs .nav-link:hover { background: rgb(255 255 255 / 5%); }
#navSearchForm { min-width: 0; }
#navSearchForm .input-group { flex-wrap: nowrap; }
#navSearchInput { min-width: 0 !important; }
#navSearchForm .form-control { background: #fff; }
#navSearchForm .btn { padding-inline: .75rem; }
.navbar-ghhs .dropdown-menu { padding: .5rem; border-radius: .75rem; }
.navbar-ghhs .dropdown-item { padding: .6rem .75rem; border-radius: .35rem; }

@media (min-width: 992px) {
  .navbar-ghhs > .container {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(10rem, 15rem) auto;
    column-gap: 1.5rem;
    row-gap: .85rem;
    align-items: center;
  }
  .navbar-ghhs .navbar-brand { grid-column: 1; grid-row: 1; }
  .navbar-ghhs #primaryNav { display: contents !important; }
  #primaryNav > .navbar-nav:first-child {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .35rem;
    margin: 0 !important;
    padding-top: .65rem;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  #primaryNav > .navbar-nav:first-child .nav-link { padding: .45rem .6rem; }
  #primaryNav > #navSearchForm { grid-column: 2; grid-row: 1; margin: 0 !important; }
  #primaryNav > .navbar-nav:last-child {
    grid-column: 3;
    grid-row: 1;
    gap: .2rem;
    margin: 0 !important;
  }
  #primaryNav > .navbar-nav:last-child .nav-link { white-space: nowrap; padding-inline: .5rem; }
}

/* A little more breathing room and a clearer headline hierarchy. */
.hero-ghhs {
  padding-block: clamp(3.5rem, 6vw, 6rem) !important;
  background:
    radial-gradient(ellipse at 95% 0%, rgb(201 162 39 / 14%), transparent 55%),
    linear-gradient(115deg, #0b2c5c, #153c6d);
  border-bottom-width: 2px;
}
.hero-ghhs h1 {
  max-width: 18ch;
  margin-bottom: 1.15rem !important;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-ghhs .lead {
  max-width: 48ch;
  margin-bottom: 1.75rem !important;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: #e0e8f2;
}
.hero-ghhs .badge {
  margin-bottom: 1.25rem !important;
  padding: .55rem .8rem;
  border-radius: .4rem;
  letter-spacing: .06em;
}
.hero-ghhs .btn { margin-bottom: .5rem; }
.hero-ghhs .btn-outline-light { --bs-btn-border-color: rgb(255 255 255 / 45%); }
.page-header { margin-bottom: 2rem !important; }
.title-accent { padding-bottom: .8rem; }
.title-accent::after { width: 2.25rem; height: 3px; background: var(--ghhs-gold); }

/* Quiet, consistent surfaces across events, forms, and directories. */
.card {
  box-shadow: 0 3px 14px rgb(11 44 92 / 4%);
  --bs-card-spacer-x: 1.5rem;
  --bs-card-spacer-y: 1.5rem;
  --bs-card-cap-padding-x: 1.5rem;
  --bs-card-cap-padding-y: 1rem;
}
.card-featured { border-top-width: 3px; }
.card-hover:hover { box-shadow: 0 8px 24px rgb(11 44 92 / 9%); }
.card-title { line-height: 1.35; }
.card-text { line-height: 1.7; }
.card-footer { border-top-color: #edf0f5; }
.badge-blue-soft { padding: .5rem .65rem; }
.form-control, .form-select { padding: .65rem .85rem; }
.form-control-sm, .form-select-sm { padding: .4rem .65rem; }
.input-group-sm > .form-control { padding: .5rem .75rem; }
.form-label { margin-bottom: .45rem; }
.ad-slot { margin-inline: auto; }
.ad-slot-label { color: var(--ghhs-muted); }
.ad-slot-body > a > img { border-radius: .5rem; }
.ad-slot-body > img { border-radius: .5rem; }
.c2k-empty-state {
  padding: 3.5rem 1.5rem;
  border: 1px solid var(--ghhs-line);
  border-radius: 1rem;
  background: #fff;
  color: var(--ghhs-muted);
  text-align: center;
}
.c2k-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  color: var(--ghhs-blue);
  background: var(--ghhs-blue-050);
  font-size: 1.35rem;
}

.site-footer { border-top-width: 2px; }
.site-footer p { max-width: 38ch; line-height: 1.75; }
.site-footer h6 { margin-bottom: 1rem; letter-spacing: .1em; }
.site-footer li { margin-bottom: .55rem !important; }
.site-footer .footer-bottom { margin-top: 2.25rem !important; padding-top: 1.25rem !important; }

@media (max-width: 991.98px) {
  .navbar-ghhs { padding-block: .7rem; }
  .navbar-ghhs #primaryNav { max-height: 70vh; max-height: 70dvh; overflow-y: auto; }
  #primaryNav > .navbar-nav:first-child { padding-top: 1rem; }
  .navbar-ghhs .nav-link { padding-block: .65rem; }
  #navSearchForm { margin-block: 1rem !important; }
  #primaryNav > .navbar-nav:last-child { align-items: stretch; padding-bottom: .75rem; }
  #primaryNav > .navbar-nav:last-child .btn { margin-top: .5rem; }
  body.has-bottom-nav { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
  .c2k-bottom-nav { box-shadow: 0 -4px 16px rgb(11 44 92 / 12%); }
  .c2k-bottom-nav a { min-height: 4rem; gap: .3rem; font-size: .7rem; }
}

@media (max-width: 575.98px) {
  .navbar-brand-ghhs { font-size: 1.1rem; }
  .navbar-brand-ghhs .brand-text small { font-size: .55rem; }
  .hero-ghhs { padding-block: 3rem !important; }
  .hero-ghhs .btn { display: block; width: 100%; margin-right: 0 !important; }
  .card { --bs-card-spacer-x: 1.25rem; --bs-card-spacer-y: 1.25rem; --bs-card-cap-padding-x: 1.25rem; }
  .card-footer { flex-wrap: wrap; gap: .75rem; }
}

/* Keep keyboard focus visible on both light and dark surfaces. */
.navbar-ghhs a:focus-visible,
.navbar-ghhs button:focus-visible,
.hero-ghhs .btn:focus-visible,
.site-footer a:focus-visible,
.c2k-bottom-nav a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .card-hover:hover { transform: none; }
}

/* Center constrained reunion headings and keep long account names contained. */
.hero-ghhs .text-center h1,
.hero-ghhs .text-center .lead { margin-inline: auto; }
@media (min-width: 992px) {
  #primaryNav > .navbar-nav:last-child .dropdown-toggle {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
