/* ==========================================================================
   Gaiscioch Modern Site Shell (Design Tokens, Header, Subbar, Search, Footer)
   Replaces table-based header/game-browser layouts and float-based footer.
   ========================================================================== */

:root {
  /* Core Palette (aligned with failte/style.css & memberprofile/profile.css) */
  --gsch-green-primary: #22aa44;
  --gsch-green-hover: #2cd456;
  --gsch-green-dark: #124b23;
  --gsch-green-deep: #0e3019;

  --gsch-gold-primary: #d4af37;
  --gsch-gold-soft: #ccbb77;
  --gsch-gold-light: #f5d77f;
  --gsch-gold-bright: #ffee88;

  --gsch-surface-dark: #101512;
  --gsch-surface-panel: rgba(16, 22, 18, 0.96);
  --gsch-surface-elevated: rgba(24, 32, 27, 0.96);
  --gsch-border-subtle: rgba(255, 255, 255, 0.14);
  --gsch-border-gold: rgba(212, 175, 55, 0.42);

  --gsch-text-primary: #f3f0e6;
  --gsch-text-secondary: #b9c0bc;
  --gsch-text-muted: #8a948e;

  --gsch-font-display: 'Cinzel', 'Caudex', Georgia, serif;
  --gsch-font-body: 'Caudex', Georgia, serif;
  --gsch-font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --gsch-header-height: 82px;
  --gsch-radius-sm: 4px;
  --gsch-radius-md: 8px;
  --gsch-shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.72);
}

/* --------------------------------------------------------------------------
   1. Fixed Top Header & Primary Navigation
   -------------------------------------------------------------------------- */
.gsch-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.gsch-header__bar {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  min-height: 76px;
  background: #141814 url('/images/nav/bg.gif') repeat;
}

.gsch-header__action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.gsch-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--gsch-radius-md);
  font-size: 20pt;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 1px 1px 2px #000000;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.gsch-header__icon-btn:hover,
.gsch-header__icon-btn:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gsch-gold-light);
  outline: none;
}

.gsch-header__badge {
  position: absolute;
  top: 12px;
  right: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d9381e;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: var(--gsch-font-ui);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.gsch-topnav-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.gsch-topnav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 76px;
}

.gsch-topnav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.gsch-topnav__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  width: 1px;
  height: 58%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.gsch-topnav__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 9px;
  text-align: center;
  text-decoration: none;
  color: var(--gsch-gold-soft);
  font-family: var(--gsch-font-body);
  font-size: 12pt;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.gsch-topnav__link:link,
.gsch-topnav__link:visited {
  color: var(--gsch-gold-soft);
}

.gsch-topnav__link:hover,
.gsch-topnav__link:focus-visible {
  color: #ffffff;
  outline: none;
}

.gsch-topnav__sub {
  display: block;
  font-size: 8pt;
  font-weight: 400;
  color: #aaaaaa;
  line-height: 1.2;
  margin-top: 2px;
}

.gsch-topnav__logo {
  padding: 0 6px;
}

.gsch-topnav__logo img {
  display: block;
  max-height: 74px;
  width: auto;
  height: auto;
}

@media screen and (max-width: 1400px) {
  .gsch-topnav__item--tablet-hide {
    display: none;
  }
}

@media screen and (max-width: 1100px) {
  .gsch-topnav__item--mobile-hide {
    display: none;
  }
  .gsch-topnav__item::after {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .gsch-header__bar {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }
  .gsch-topnav__logo img {
    max-height: 60px;
  }
}

/* --------------------------------------------------------------------------
   2. Sub-Header Game Browser, Megamenus & Live Search Bar
   -------------------------------------------------------------------------- */
.gsch-subbar-wrap {
  margin-top: 5px;
  width: 100%;
  overflow: visible;
}

.gsch-subbar-wrap--canvas {
  background-color: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.gsch-subbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 6px 14px;
  min-height: 58px;
  overflow: visible;
}

.gsch-subbar__divider {
  width: 1px;
  height: 36px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.gsch-subbar__dropdown {
  position: relative;
  flex-shrink: 0;
}

.gsch-subbar__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--gsch-radius-sm);
  color: var(--gsch-gold-soft);
  font-family: var(--gsch-font-body);
  font-size: 12pt;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gsch-subbar__trigger:hover,
.gsch-subbar__dropdown:focus-within > .gsch-subbar__trigger {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gsch-gold-light);
}

.gsch-subbar__trigger small {
  display: block;
  font-size: 8.5pt;
  color: #ffffff;
  font-weight: 400;
}

.gsch-subbar__caret {
  font-size: 11px;
  color: var(--gsch-gold-soft);
  opacity: 0.85;
}

/* Megamenu Panel */
.gsch-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 220;
  width: min(94vw, 1080px);
  padding: 14px;
  border-radius: var(--gsch-radius-md);
  border: 1px solid var(--gsch-border-gold);
  background: linear-gradient(180deg, rgba(16, 23, 18, 0.98) 0%, rgba(10, 14, 11, 0.98) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(212, 175, 55, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  box-sizing: border-box;
}

.gsch-megamenu--narrow {
  width: min(92vw, 660px);
}

.gsch-subbar__dropdown:hover > .gsch-megamenu,
.gsch-subbar__dropdown:focus-within > .gsch-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.gsch-megamenu__grid {
  display: grid;
  grid-template-columns: 1.02fr 1.02fr 1.12fr 1.24fr;
  gap: 12px;
  align-items: stretch;
  text-align: left;
}

.gsch-megamenu__grid--2col {
  grid-template-columns: 2fr 3fr;
}

.gsch-megamenu__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gsch-megamenu__heading {
  margin: 0 0 8px;
  padding: 6px 8px;
  border-radius: var(--gsch-radius-sm);
  background: linear-gradient(180deg, #27633b 0%, #1b4a2b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f7f4ea;
  font-family: var(--gsch-font-body);
  font-size: 8.8pt;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.gsch-megamenu__cards {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gsch-megamenu__cards--2x2 {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* Image Cards: Low-Saturation Resting State -> Vivid Pop on Hover */
.gsch-megamenu__card {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: #0e1410;
  overflow: hidden;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: border-color 0.22s ease, transform 0.2s ease, box-shadow 0.22s ease;
}

.gsch-megamenu__card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(82%) saturate(0.32) brightness(0.72);
  transform: scale(1);
  transition: filter 0.28s ease, transform 0.35s ease;
  z-index: 0;
}

.gsch-megamenu__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 12, 9, 0.18) 0%, rgba(5, 8, 6, 0.56) 100%);
  transition: opacity 0.25s ease;
  z-index: 1;
  pointer-events: none;
}

.gsch-megamenu__card:hover,
.gsch-megamenu__card:focus-visible,
.gsch-megamenu__card.is-selected {
  border-color: var(--gsch-gold-light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(245, 215, 127, 0.35);
  outline: none;
}

.gsch-megamenu__card:hover,
.gsch-megamenu__card:focus-visible {
  transform: translateY(-1px);
}

.gsch-megamenu__card:hover .gsch-megamenu__card-bg,
.gsch-megamenu__card:focus-visible .gsch-megamenu__card-bg,
.gsch-megamenu__card.is-selected .gsch-megamenu__card-bg {
  filter: grayscale(0%) saturate(1.18) brightness(1.02);
  transform: scale(1.06);
}

.gsch-megamenu__card:hover::after,
.gsch-megamenu__card:focus-visible::after,
.gsch-megamenu__card.is-selected::after {
  opacity: 0.42;
}

.gsch-megamenu__card--tall {
  min-height: 122px;
}

.gsch-megamenu__card--charity {
  min-height: 164px;
}

.gsch-megamenu__card img {
  position: relative;
  z-index: 2;
  max-height: 48px;
  max-width: 84%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.gsch-megamenu__card:hover img,
.gsch-megamenu__card:focus-visible img,
.gsch-megamenu__card.is-selected img {
  opacity: 1;
  transform: scale(1.05);
}

.gsch-megamenu__card--charity img {
  max-height: 82px;
}

/* Column 3: Adventures List with Mini Art Swatches + Bottom CTA */
.gsch-megamenu__list {
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gsch-megamenu__list li {
  flex: 1 1 0;
  display: flex;
  margin: 0;
  padding: 0;
}

.gsch-megamenu__adv-row {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 5px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  color: #ece8db;
  font-family: var(--gsch-font-body);
  font-size: 9pt;
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gsch-megamenu__adv-thumb {
  flex-shrink: 0;
  width: 34px;
  height: 20px;
  border-radius: 3px;
  background-color: #16241a;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  filter: grayscale(85%) saturate(0.3) brightness(0.78);
  transition: filter 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.gsch-megamenu__adv-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsch-megamenu__adv-count {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(34, 170, 68, 0.18);
  border: 1px solid rgba(34, 170, 68, 0.35);
  color: #9be8ad;
  font-family: var(--gsch-font-ui);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.gsch-megamenu__adv-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--gsch-font-ui);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.gsch-megamenu__adv-row:hover,
.gsch-megamenu__adv-row:focus-visible {
  background: rgba(34, 85, 51, 0.36);
  border-color: rgba(212, 175, 55, 0.48);
  color: var(--gsch-gold-light);
  outline: none;
}

.gsch-megamenu__adv-row:hover .gsch-megamenu__adv-thumb,
.gsch-megamenu__adv-row:focus-visible .gsch-megamenu__adv-thumb {
  filter: grayscale(0%) saturate(1.2) brightness(1.05);
  border-color: var(--gsch-gold-light);
  transform: scale(1.06);
}

.gsch-megamenu__adv-row:hover .gsch-megamenu__adv-arrow,
.gsch-megamenu__adv-row:focus-visible .gsch-megamenu__adv-arrow {
  color: var(--gsch-gold-light);
  transform: translateX(2px);
}

.gsch-megamenu__cta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 5px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.06) 100%);
  color: var(--gsch-gold-light);
  font-family: var(--gsch-font-body);
  font-size: 9pt;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.gsch-megamenu__cta i {
  font-size: 10px;
  transition: transform 0.18s ease;
}

.gsch-megamenu__cta:hover,
.gsch-megamenu__cta:focus-visible {
  background: rgba(212, 175, 55, 0.26);
  border-color: var(--gsch-gold-bright);
  color: #ffffff;
  outline: none;
}

.gsch-megamenu__cta:hover i,
.gsch-megamenu__cta:focus-visible i {
  transform: translateX(3px);
}

/* Column 4: Historic Chapters Full-Height Banner Cards */
.gsch-megamenu__chapters {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gsch-megamenu__chapter {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #101713;
  color: #f3f0e6;
  text-decoration: none;
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}

.gsch-megamenu__chapter-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(86%) saturate(0.28) brightness(0.55);
  transform: scale(1);
  transition: filter 0.26s ease, transform 0.32s ease;
  z-index: 0;
}

.gsch-megamenu__chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 15, 12, 0.92) 0%, rgba(10, 15, 12, 0.74) 58%, rgba(10, 15, 12, 0.42) 100%);
  transition: opacity 0.22s ease;
  z-index: 1;
  pointer-events: none;
}

.gsch-megamenu__chapter:hover,
.gsch-megamenu__chapter:focus-visible,
.gsch-megamenu__chapter.is-selected {
  border-color: var(--gsch-gold-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  outline: none;
}

.gsch-megamenu__chapter:hover,
.gsch-megamenu__chapter:focus-visible {
  transform: translateX(2px);
}

.gsch-megamenu__chapter:hover .gsch-megamenu__chapter-bg,
.gsch-megamenu__chapter:focus-visible .gsch-megamenu__chapter-bg,
.gsch-megamenu__chapter.is-selected .gsch-megamenu__chapter-bg {
  filter: grayscale(0%) saturate(1.18) brightness(0.95);
  transform: scale(1.06);
}

.gsch-megamenu__chapter:hover::after,
.gsch-megamenu__chapter:focus-visible::after,
.gsch-megamenu__chapter.is-selected::after {
  opacity: 0.72;
}

.gsch-megamenu__chapter-badge {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(34, 85, 51, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gsch-gold-light);
  font-family: var(--gsch-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gsch-megamenu__chapter-title {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--gsch-font-body);
  font-size: 9.2pt;
  font-weight: 700;
  color: #f7f4eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  transition: color 0.18s ease;
}

.gsch-megamenu__chapter:hover .gsch-megamenu__chapter-title,
.gsch-megamenu__chapter:focus-visible .gsch-megamenu__chapter-title {
  color: var(--gsch-gold-bright);
}

.gsch-megamenu__chapter-year {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  font-family: var(--gsch-font-ui);
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(230, 236, 232, 0.72);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

@media screen and (max-width: 1020px) {
  .gsch-megamenu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Live Search Strip */
.gsch-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: visible;
}

.gsch-search-field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  overflow: visible;
}

.gsch-search-field__label {
  font-family: var(--gsch-font-body);
  font-size: 8.5pt;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.gsch-search-field__input {
  width: 122px;
  padding: 5px 8px;
  border-radius: var(--gsch-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 12, 9, 0.9);
  color: #f3f0e6;
  font-family: var(--gsch-font-ui);
  font-size: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.gsch-search-field__input::placeholder {
  color: #7c8680;
}

.gsch-search-field__input:focus {
  outline: none;
  border-color: var(--gsch-green-primary);
  background: rgba(12, 24, 15, 0.96);
  box-shadow: 0 0 0 2px rgba(34, 170, 68, 0.28);
}

/* Modern Search Results Dropdown (overrides legacy #guilds/#members/#characters/#items in style-1.0.css) */
#guilds.gsch-search-dropdown,
#members.gsch-search-dropdown,
#characters.gsch-search-dropdown,
#items.gsch-search-dropdown,
.gsch-search-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: auto;
  width: 300px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 250;
  display: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border-radius: var(--gsch-radius-md);
  border: 1px solid var(--gsch-border-gold);
  background: var(--gsch-surface-panel);
  box-shadow: var(--gsch-shadow-lg);
  text-align: left;
}

.gsch-search-dropdown__header {
  padding: 7px 10px;
  font-family: var(--gsch-font-body);
  font-size: 9pt;
  font-weight: 700;
  color: var(--gsch-gold-light);
  background: rgba(34, 85, 51, 0.65);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.gsch-search-dropdown__empty {
  padding: 12px 10px;
  font-family: var(--gsch-font-ui);
  font-size: 12px;
  color: var(--gsch-text-muted);
  text-align: center;
}

.gsch-search-dropdown__empty--error {
  color: #f29d8d;
}

.gsch-search-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 4px;
}

.gsch-search-dropdown__item {
  margin: 0;
  padding: 0;
}

.gsch-search-dropdown__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--gsch-radius-sm);
  color: var(--gsch-text-primary);
  text-decoration: none;
  font-family: var(--gsch-font-ui);
  font-size: 12px;
  transition: background-color 0.14s ease;
}

.gsch-search-dropdown__link:hover,
.gsch-search-dropdown__link.is-active {
  background-color: rgba(34, 170, 68, 0.26);
  color: #ffffff;
}

.gsch-search-dropdown__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.gsch-search-dropdown__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gsch-search-dropdown__title {
  font-weight: 700;
  color: var(--gsch-gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsch-search-dropdown__sub {
  font-size: 11px;
  color: var(--gsch-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsch-search-dropdown__meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 11px;
  color: var(--gsch-text-secondary);
  text-align: right;
}

/* --------------------------------------------------------------------------
   3. Modern CSS Grid Footer
   -------------------------------------------------------------------------- */
.gsch-footer {
  background: #0d100d url('/images/nav/footer.gif') repeat;
  color: var(--gsch-text-secondary);
}

.gsch-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 20px 18px;
}

.gsch-footer__grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(5, minmax(145px, 1fr));
  gap: 20px;
  align-items: start;
}

.gsch-footer__brand {
  text-align: left;
  font-size: 9.5pt;
  line-height: 1.5;
  color: #b5bcb7;
}

.gsch-footer__logo-link {
  display: block;
  text-align: center;
  margin-bottom: 10px;
}

.gsch-footer__logo-link img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border: 0;
}

.gsch-footer__brand strong {
  font-family: var(--gsch-font-body);
  font-size: 12pt;
  color: #ffffff;
}

.gsch-footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.gsch-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.gsch-footer__social a:hover,
.gsch-footer__social a:focus-visible {
  background: var(--gsch-green-primary);
  color: #ffffff;
  transform: translateY(-2px);
  outline: none;
}

.gsch-footer__col {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 14px;
  text-align: left;
}

.gsch-footer__heading {
  display: block;
  margin: 0 0 8px;
  font-family: var(--gsch-font-body);
  font-weight: 700;
  font-size: 12pt;
  color: #ffffff;
  text-decoration: none;
}

.gsch-footer__heading:hover {
  color: var(--gsch-gold-light);
}

.gsch-footer__heading--spaced {
  margin-top: 16px;
}

.gsch-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gsch-footer__list li {
  font-family: var(--gsch-font-ui);
  font-size: 12px;
  color: #777e79;
  line-height: 1.35;
}

.gsch-footer__list a {
  color: #b4bbb6;
  text-decoration: none;
  transition: color 0.16s ease;
}

.gsch-footer__list a:hover {
  color: var(--gsch-gold-light);
}

.gsch-footer__cta {
  color: var(--gsch-gold-soft) !important;
  font-weight: 700;
}

.gsch-footer__memorial {
  font-family: var(--gsch-font-body);
  font-style: italic;
  font-size: 10.5pt;
  color: #ffffff;
  text-align: center;
  margin: 14px 0;
}

.gsch-footer__memorial a {
  color: var(--gsch-gold-light);
  text-decoration: none;
}

.gsch-footer__memorial a:hover {
  text-decoration: underline;
}

.gsch-footer__legal {
  text-align: center;
  font-family: var(--gsch-font-ui);
  font-size: 11px;
  color: #888f8a;
  line-height: 1.5;
  padding-top: 8px;
}

.gsch-footer__timing {
  text-align: center;
  font-size: 11px;
  color: #5b635e;
  padding-top: 6px;
}

@media screen and (max-width: 1150px) {
  .gsch-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gsch-footer__brand {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto 8px;
    text-align: center;
  }
}

@media screen and (max-width: 640px) {
  .gsch-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .gsch-footer__col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
  }
}

/* --------------------------------------------------------------------------
   4. Back-to-Top Floating Button
   -------------------------------------------------------------------------- */
#to-top.gsch-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gsch-border-gold);
  background: rgba(18, 75, 35, 0.92);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.18s ease;
  z-index: 100;
}

#to-top.gsch-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#to-top.gsch-to-top:hover {
  background: var(--gsch-green-primary);
}
