/* Reference shell: loaded after style.css; limited to the shared header and footer. */
html { scroll-padding-top: 96px; }
.egn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  --egn-admin-offset: 0px;
  border-bottom: 1px solid #e5e8ef;
  box-shadow: 0 2px 10px rgb(6 45 115 / 6%);
}
body.admin-bar .egn-header { top: 32px; --egn-admin-offset: 32px; }
@media (max-width: 782px) {
  body.admin-bar .egn-header { top: 46px; --egn-admin-offset: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar .egn-header { top: 0; --egn-admin-offset: 0px; }
}

.egn-header__inner {
  min-height: 80px;
  gap: 20px;
}

.egn-brand {
  min-width: 0;
  color: var(--egn-blue);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .8;
  text-decoration: none;
}

.egn-brand__text { display: grid; gap: 4px; line-height: 1; }
.egn-brand__text strong { font-weight: 900; }
.egn-brand__text span { font-weight: 500; }
.egn-brand__text--mobile { display: none; }
.egn-brand-figure {
  display: block;
  width: 58px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center bottom;
}
.egn-brand-figure--combo {
  width: 112px;
  height: 60px;
  object-position: center;
}
.egn-brand .egn-custom-logo { display: block; flex: 0 0 auto; }
.egn-brand .egn-custom-logo .custom-logo { display: block; width: auto; max-width: 80px; max-height: 62px; }

.egn-nav { position: relative; inset: auto; display: flex; flex-direction: row; width: auto; padding: 0; background: transparent; box-shadow: none; align-items: center; gap: 20px; font-weight: 800; }
.egn-nav__primary { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.egn-nav a { color: var(--egn-blue); font-family: "Roboto Condensed", Arial, sans-serif; font-size: clamp(18px, 1.65vw, 23px); font-weight: 800; line-height: 1.1; text-decoration: none; }
.egn-kings { position: relative; }
.egn-kings-toggle { display: flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: var(--egn-blue); font-family: "Roboto Condensed", Arial, sans-serif; font-size: clamp(18px, 1.65vw, 23px); font-weight: 800; line-height: 1.1; cursor: pointer; }
.egn-kings-menu { position: absolute; top: calc(100% + 14px); left: 50%; z-index: 31; display: grid; width: max-content; min-width: 265px; max-width: min(340px, calc(100vw - 32px)); padding: 12px; transform: translateX(-50%); border: 1px solid #d9e0eb; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgb(0 26 79 / 18%); }
.egn-kings-menu[hidden] { display: none; }
.egn-kings-menu a { padding: 10px 12px; border-radius: 4px; font-size: 20px; overflow-wrap: anywhere; }
.egn-kings-menu a:hover { background: #edf5ff; }
.egn-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.egn-nav .egn-join { padding: 13px 22px; border-radius: 7px; background: var(--egn-red); color: #fff; box-shadow: 0 2px 0 rgb(128 0 15 / 16%); }
.egn-nav .egn-join:hover { background: #c80f22; text-decoration: none; }
.egn-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: var(--egn-blue);
  cursor: pointer;
}
.egn-menu-toggle__bars,
.egn-menu-toggle__bars::before,
.egn-menu-toggle__bars::after { display: block; width: 26px; height: 3px; border-radius: 4px; background: currentColor; content: ""; }
.egn-menu-toggle__bars { position: relative; }
.egn-menu-toggle__bars::before { position: absolute; top: -8px; left: 0; }
.egn-menu-toggle__bars::after { position: absolute; top: 8px; left: 0; }
.egn-nav__more {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 30;
  display: grid;
  width: max-content;
  min-width: 230px;
  max-width: min(340px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid #d9e0eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(0 26 79 / 18%);
}
.egn-nav__more[hidden] { display: none; }
.egn-nav__more a { padding: 10px 12px; border-radius: 4px; font-size: 20px; overflow-wrap: anywhere; }
.egn-nav__more a:hover { background: #edf5ff; }
.egn-nav__mobile-primary { display: none; }
.egn-header a:focus-visible,
.egn-menu-toggle:focus-visible,
.egn-kings-toggle:focus-visible,
.egn-footer a:focus-visible { outline: 3px solid var(--egn-yellow); outline-offset: 3px; }

.egn-footer { padding: 29px 0; background: #062d73; }
.egn-footer__inner { min-height: 28px; gap: 24px; }
.egn-footer strong { color: #fff; font-family: "Roboto Condensed", Arial, sans-serif; font-size: clamp(21px, 2vw, 28px); font-weight: 800; line-height: 1.1; }
.egn-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.egn-footer a { color: #fff; font-size: 17px; font-weight: 400; margin: 0; }
.egn-footer a,
.egn-footer .egn-footer__settings { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.4; text-decoration: none; }
.egn-footer .egn-footer__settings {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: none;
}
.egn-footer [hidden] { display: none !important; }
.egn-footer a:hover,
.egn-footer .egn-footer__settings:hover { background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.egn-footer .egn-footer__settings:focus-visible { outline: 3px solid var(--egn-yellow); outline-offset: 4px; }
@media (max-width: 1100px) {
  .egn-footer__inner { display: grid; gap: 12px; }
  .egn-footer nav { justify-content: flex-start; }
}

@media (max-width: 1180px) {
  html { scroll-padding-top: 84px; }
  .egn-header__inner { min-height: 68px; gap: 8px; }
  .egn-brand { gap: 8px; font-size: clamp(19px, 6vw, 26px); }
  .egn-brand-figure { width: 43px; height: 52px; }
  .egn-brand-figure--combo { width: 94px; height: 50px; }
  .egn-brand .egn-custom-logo .custom-logo { max-width: 55px; max-height: 50px; }
  .egn-nav { margin-left: auto; }
  .egn-nav__primary { display: none; }
  .egn-menu-toggle { display: grid; }
  .egn-nav__more { top: calc(100% + 12px); right: 0; width: min(320px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 92px - var(--egn-admin-offset, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  .egn-nav__more a { font-size: 20px; }
  .egn-nav__mobile-primary { display: block; font-weight: 900; }
}

@media (max-width: 600px) {
  .egn-brand { gap: 6px; }
  .egn-brand-figure--combo { width: 78px; height: 44px; }
  .egn-brand__text--desktop { display: none; }
  .egn-brand__text--mobile { display: grid; gap: 2px; font-size: clamp(14px, 4.8vw, 17px); white-space: nowrap; }
  .egn-nav { flex-shrink: 0; }
}

@media (max-width: 900px) {
  .egn-footer { padding: 25px 0; }
  .egn-footer__inner { display: grid; gap: 17px; }
  .egn-footer nav { justify-content: flex-start; }
}