/* EllGab Modern v1.0.32 — Wormhole palette, derived from the user's
   live hub.css and wh_shared_nav.css. COLOR ONLY. No markup/behavior changes.
   Loaded last so v1.0.5–v1.0.31 layout and mobile fixes stay intact. */
:root {
  --eg-bg: #0d1727;
  --eg-shell: #101e30;
  --eg-panel: #142439;
  --eg-panel-alt: #1b3145;
  --eg-panel-hover: #244158;
  --eg-border: #324d65;
  --eg-ink: #f4efe7;
  --eg-secondary: #d5e1e9;
  --eg-muted: #b8c8d8;
  --eg-gold: #eabd76;
  --eg-gold-bright: #f2d49c;
  --eg-amber-deep: #66573b;
  --wh-cyan: #77d4dd;
  --wh-line: #324d65;
  --wh-panel: #142439;
  --wh-panel-raised: #1b3145;
}
body, body#help_popup {
  color:var(--eg-ink);
  background:radial-gradient(ellipse 95% 55% at 80% 31%,#243d52 0%,#14263b 45%,#0b1524 100%);
  background-attachment:fixed;
}
#header {
  background:rgba(10,21,36,.92);
  border-color:var(--wh-line);
}
#content_section { background:#101e30; border-color:var(--wh-line); }
#footer_section { background:#0d1727; border-color:var(--wh-line); color:var(--eg-muted); }
#top_section h1.forumtitle a { color:var(--eg-ink); }
#top_section #wormhole_header_link {
  border-color:#66573b; background:rgba(234,189,118,.07); color:var(--eg-gold);
}
#top_section #wormhole_header_link:hover { background:rgba(234,189,118,.15); border-color:var(--eg-gold); }
#top_section #siteslogan { color:var(--eg-gold); }
#upper_section { border-top-color:var(--wh-line); }
#main_menu #menu_nav { border-top-color:var(--wh-line); }
#main_menu #menu_nav > li > a.firstlevel, #main_menu #menu_nav > li > a.active { color:var(--eg-secondary); }
#main_menu #menu_nav > li > a.firstlevel:hover,
#main_menu #menu_nav > li:hover > a.firstlevel,
#main_menu #menu_nav > li > a.firstlevel:focus-visible { background:#28485c; border-color:#536e83; color:#fff2db; }
#main_menu #menu_nav > li > a.active { background:#263c4d; border-color:#756748; color:#f2cb87; }
#main_menu #menu_nav > li > ul, #main_menu #menu_nav li li > ul { background:#142439; border-color:#416077; }
#main_menu #menu_nav li li a:hover, #main_menu #menu_nav li li a:focus-visible { background:#28485c; }
/* Shared form surfaces and high contrast on all pages. */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
textarea,select,.input_text,.input_password {
  background-color:#0d1727;
  color:#f4efe7;
  border-color:#45627a;
}
input::placeholder, textarea::placeholder { color:#aebdca; opacity:1; }
input:focus-visible, textarea:focus-visible, select:focus-visible,
a:focus-visible,button:focus-visible { outline-color:#eabd76; }
input[type="submit"],button[type="submit"],.button_submit,.button_reset {
  background:#eabd76;
  color:#102136;
  border-color:#d0a969;
}
input[type="submit"]:hover,button[type="submit"]:hover,.button_submit:hover { background:#f2d49c; }
/* Default SMF panel surfaces; the original class hierarchy is untouched. */
.windowbg,.windowbg2,.windowbg3,.roundframe,.information,
.cat_bar + .windowbg,.cat_bar + .windowbg2 { background-color:#142439; border-color:#324d65; }
.cat_bar,.title_bar,.sub_bar,.catbg,.titlebg,.subbg,
.cat_bar h3,.title_bar h3 { border-color:#3b5a72; }
.cat_bar,.title_bar,.sub_bar { background-color:#1b3145; }
.catbg,.titlebg,.subbg { background-color:transparent; color:#f4efe7; }
/* Preserve the forum's gold link hierarchy. */
a:link,a:visited,a.new_win:link,a.new_win:visited { color:#f2d49c; }
a:hover,a.new_win:hover { color:#fff2db; }
/* Compact mobile discussion author / message / footer distinction. */
@media screen and (max-width:700px) {
  #forumposts .post_wrapper {
    --eg-post-chrome:#1b3145;
    --eg-post-body:#142439;
    --eg-post-divider:#324d65;
    background:#142439!important;
    border-color:#3b5a72;
  }
  #forumposts .post_wrapper > .poster,
  #forumposts .post_wrapper > .moderatorbar { background:#1b3145!important; border-color:#324d65!important; }
  #forumposts .post_wrapper > .postarea { background:#142439!important; color:#f4efe7!important; }
  #forumposts .post_wrapper > .moderatorbar .signature { border-top-color:#324d65!important; }
}
/* Respect system preference rather than animating large components. */
@media (prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior:auto!important; } }
