/* ErynOT v113 - final home cleanup. Loaded last on purpose. */

body.mp-home { --ery-navy-0:#050b11; --ery-navy-1:#08131d; --ery-navy-2:#0d2132; --ery-navy-3:#123b59; --ery-line:#395d76; --ery-gold:#d5a943; --ery-text:#dce4e9; --ery-muted:#9fb0ba; }

/* Four real home cards */
body.mp-home section.mp5-dashboard-grid { align-items:stretch !important; }
body.mp-home section.mp5-dashboard-grid > article.mp5-panel {
  position:relative !important; display:flex !important; flex-direction:column !important; min-height:304px !important;
  overflow:hidden !important; border:1px solid #456b84 !important; border-radius:6px !important;
  background:linear-gradient(180deg,#0b1721,#071019) !important; background-image:linear-gradient(180deg,#0b1721,#071019) !important;
  box-shadow:inset 0 1px 0 rgba(73,137,179,.12),0 8px 18px rgba(0,0,0,.30) !important;
}
body.mp-home section.mp5-dashboard-grid > article.mp5-panel::before,
body.mp-home section.mp5-dashboard-grid > article.mp5-panel::after { content:none !important; display:none !important; }

body.mp-home section.mp5-dashboard-grid > article.mp5-panel > header,
body.mp-home section.mp5-dashboard-grid > article.mp5-ranking-panel > header.mp5-tabs {
  flex:0 0 44px !important; min-height:44px !important; height:44px !important; padding:0 12px !important;
  background:linear-gradient(180deg,#123b59 0%,#0c2941 58%,#071a2a 100%) !important; background-image:linear-gradient(180deg,#123b59 0%,#0c2941 58%,#071a2a 100%) !important;
  border:0 !important; border-bottom:1px solid #7e692f !important; box-shadow:inset 0 1px 0 rgba(96,157,195,.12) !important;
}
body.mp-home section.mp5-dashboard-grid > article.mp5-panel > header h3,
body.mp-home section.mp5-dashboard-grid > article.mp5-ranking-panel > header.mp5-tabs h3 { color:#f1d58d !important; text-shadow:0 1px 2px #000 !important; }
body.mp-home section.mp5-dashboard-grid > article.mp5-panel > header h3::before { color:#58a9d4 !important; }
body.mp-home section.mp5-dashboard-grid > article.mp5-panel > header a { color:#d1ad5a !important; }

/* News */
body.mp-home article.mp5-news-panel > .mp5-news-list {
  flex:1 1 auto !important; padding:10px !important; background:linear-gradient(180deg,#0d1924,#08121b) !important; background-image:linear-gradient(180deg,#0d1924,#08121b) !important; color:var(--ery-text) !important;
}
body.mp-home article.mp5-news-panel .mp5-news-item {
  min-height:76px !important; padding:10px !important; border:1px solid #304e63 !important; border-radius:4px !important;
  background:#101f2b !important; background-image:none !important; color:var(--ery-text) !important;
}
body.mp-home article.mp5-news-panel .mp5-news-item:hover { background:#14293a !important; border-color:#4b7895 !important; }
body.mp-home article.mp5-news-panel .mp5-news-item b { color:#f0d28a !important; }
body.mp-home article.mp5-news-panel .mp5-news-item p { color:#c8d2d8 !important; }
body.mp-home article.mp5-news-panel .mp5-news-item small { color:#91a5b1 !important; }
body.mp-home article.mp5-news-panel .mp5-empty { color:#b7c4cb !important; }

/* Ranking */
body.mp-home article.mp5-ranking-panel { background:linear-gradient(180deg,#0b1721,#071019) !important; }
body.mp-home article.mp5-ranking-panel > .mp5-ranking-list { flex:1 1 auto !important; padding:8px 10px !important; background:linear-gradient(180deg,#0d1924,#08121b) !important; }
body.mp-home article.mp5-ranking-panel > .mp5-ranking-list > a {
  min-height:42px !important; margin:0 0 5px !important; padding:5px 8px !important; border:1px solid #2f4d62 !important; border-radius:4px !important;
  background:#101f2b !important; background-image:none !important; color:var(--ery-text) !important;
}
body.mp-home article.mp5-ranking-panel > .mp5-ranking-list > a:hover { background:#14293a !important; border-color:#4b7895 !important; }
body.mp-home article.mp5-ranking-panel .mp5-rank-name { color:#f0d28a !important; }
body.mp-home article.mp5-ranking-panel .mp5-rank-level,
body.mp-home article.mp5-ranking-panel .mp5-rank-voc { color:#b9c6ce !important; }
body.mp-home article.mp5-ranking-panel .mp5-empty { color:#b7c4cb !important; }

/* Events */
body.mp-home article.mp5-events-panel > .mp5-events-list { flex:1 1 auto !important; padding:8px 10px !important; background:linear-gradient(180deg,#0d1924,#08121b) !important; }
body.mp-home article.mp5-events-panel > .mp5-events-list > div {
  min-height:68px !important; padding:6px 0 !important; border:0 !important; border-bottom:1px solid #29485d !important;
  background:transparent !important; background-image:none !important;
}
body.mp-home article.mp5-events-panel > .mp5-events-list > div:last-child { border-bottom:0 !important; }
body.mp-home article.mp5-events-panel .mp5-events-list time {
  background:linear-gradient(180deg,#143f60,#09253d) !important; background-image:linear-gradient(180deg,#143f60,#09253d) !important;
  border:1px solid #527c96 !important; box-shadow:inset 0 1px rgba(255,255,255,.06) !important;
}
body.mp-home article.mp5-events-panel .mp5-events-list time b { color:#f1d58d !important; }
body.mp-home article.mp5-events-panel .mp5-events-list time small { color:#9fc1d5 !important; }
body.mp-home article.mp5-events-panel .mp5-events-list img { border:1px solid #456b84 !important; }
body.mp-home article.mp5-events-panel .erynot-event-copy b { color:#f0d28a !important; }
body.mp-home article.mp5-events-panel .erynot-event-copy small { color:#aebdc6 !important; }

/* Shared buttons */
body.mp-home article.mp5-ranking-panel > .mp5-rank-button,
body.mp-home article.mp5-events-panel > .mp5-rank-button {
  flex:0 0 auto !important; width:72% !important; min-height:34px !important; margin:10px auto !important;
  border:1px solid #a47c2d !important; border-radius:4px !important;
  background:linear-gradient(180deg,#164c76,#0b304f) !important; background-image:linear-gradient(180deg,#164c76,#0b304f) !important;
  color:#f4d996 !important; box-shadow:inset 0 1px rgba(255,255,255,.08),0 3px 7px rgba(0,0,0,.28) !important;
}
body.mp-home article.mp5-ranking-panel > .mp5-rank-button:hover,
body.mp-home article.mp5-events-panel > .mp5-rank-button:hover { filter:brightness(1.1) !important; }

/* Quick access */
body.mp-home article.mp5-quick-panel { background:linear-gradient(180deg,#0b1721,#071019) !important; }
body.mp-home article.mp5-quick-panel > nav { flex:1 1 auto !important; padding:7px 10px !important; background:linear-gradient(180deg,#0d1924,#08121b) !important; background-image:linear-gradient(180deg,#0d1924,#08121b) !important; }
body.mp-home article.mp5-quick-panel > nav > a {
  min-height:51px !important; padding:4px 2px !important; border:0 !important; border-bottom:1px solid #29485d !important;
  background:transparent !important; background-image:none !important; color:var(--ery-text) !important;
}
body.mp-home article.mp5-quick-panel > nav > a:last-child { border-bottom:0 !important; }
body.mp-home article.mp5-quick-panel > nav > a:hover { background:linear-gradient(90deg,rgba(28,83,120,.34),rgba(8,18,27,.05)) !important; }
body.mp-home article.mp5-quick-panel > nav > a b { color:#f0d28a !important; }
body.mp-home article.mp5-quick-panel > nav > a small { color:#9fb0ba !important; }
body.mp-home article.mp5-quick-panel > nav > a em { color:#d5a943 !important; }
body.mp-home article.mp5-quick-panel .erynot-quick-icon { background:linear-gradient(145deg,#123b5d,#081c2e 68%,#050d16) !important; border-color:#80652d !important; }
body.mp-home article.mp5-quick-panel .erynot-quick-icon svg { stroke:#d8a542 !important; }

/* No brown legacy text inside the four cards */
body.mp-home section.mp5-dashboard-grid > article.mp5-panel p,
body.mp-home section.mp5-dashboard-grid > article.mp5-panel span,
body.mp-home section.mp5-dashboard-grid > article.mp5-panel small,
body.mp-home section.mp5-dashboard-grid > article.mp5-panel em { -webkit-text-fill-color:currentColor !important; }

/* Footer Discord icon is a real SVG, not a stray letter D */
body.mp-home .ery-social-discord-svg { width:17px !important; height:17px !important; fill:#d9e4ff !important; display:block !important; }

/* Stable header + visible languages: keep width independent from labels */
@media (min-width:1151px) {
  body.mp-home .erynot-header { grid-template-columns:360px minmax(650px,1fr) 390px !important; }
  body.mp-home .erynot-brand { width:360px !important; min-width:360px !important; max-width:360px !important; box-sizing:border-box !important; }
  body.mp-home .erynot-nav { display:grid !important; grid-template-columns:repeat(7,minmax(82px,1fr)) !important; min-width:650px !important; }
  body.mp-home .erynot-nav > a { min-width:0 !important; width:auto !important; padding:0 7px !important; }
  body.mp-home .erynot-header-actions { width:390px !important; min-width:390px !important; max-width:390px !important; padding:0 12px !important; gap:9px !important; }
  body.mp-home .erynot-lang { flex:0 0 150px !important; min-width:150px !important; width:150px !important; justify-content:center !important; }
  body.mp-home .erynot-lang a { display:flex !important; min-width:34px !important; opacity:1 !important; visibility:visible !important; }
}

/* Mobile/card stacking */
@media (max-width:760px) {
  body.mp-home section.mp5-dashboard-grid > article.mp5-panel { min-height:0 !important; }
  body.mp-home article.mp5-news-panel > .mp5-news-list,
  body.mp-home article.mp5-ranking-panel > .mp5-ranking-list,
  body.mp-home article.mp5-events-panel > .mp5-events-list,
  body.mp-home article.mp5-quick-panel > nav { padding:8px !important; }
  body.mp-home article.mp5-ranking-panel > .mp5-rank-button,
  body.mp-home article.mp5-events-panel > .mp5-rank-button { width:calc(100% - 20px) !important; }
}


/* v114 cache safety */
body.mp-home .erynot-footer{background:linear-gradient(180deg,#0b1721,#071018 62%,#04090d)!important;background-image:linear-gradient(180deg,#0b1721,#071018 62%,#04090d)!important;}

/* ==========================================================================\n   ErynOT v116 - HOME READABILITY PASS\n   ========================================================================== */
body.mp-home section.mp5-dashboard-grid > article.mp5-panel { font-size:12px !important; }
body.mp-home section.mp5-dashboard-grid > article.mp5-panel > header,
body.mp-home section.mp5-dashboard-grid > article.mp5-ranking-panel > header.mp5-tabs {
  min-height:46px !important; height:46px !important;
}
body.mp-home section.mp5-dashboard-grid > article.mp5-panel > header h3,
body.mp-home section.mp5-dashboard-grid > article.mp5-ranking-panel > header.mp5-tabs h3 {
  font-size:17px !important; line-height:1 !important; color:#ffe2a0 !important; letter-spacing:.01em !important;
}
body.mp-home section.mp5-dashboard-grid > article.mp5-panel > header a {
  font-size:9px !important; color:#f0c96a !important; opacity:1 !important;
}

/* News */
body.mp-home article.mp5-news-panel .mp5-news-item { min-height:86px !important; padding:12px !important; }
body.mp-home article.mp5-news-panel .mp5-news-item b {
  color:#ffe29a !important; font-size:13px !important; line-height:1.25 !important; font-weight:700 !important;
}
body.mp-home article.mp5-news-panel .mp5-news-item p {
  color:#eef3f6 !important; font-size:11px !important; line-height:1.45 !important; margin:5px 0 6px !important;
}
body.mp-home article.mp5-news-panel .mp5-news-item small {
  color:#c7d4dc !important; font-size:9px !important;
}

/* Ranking */
body.mp-home article.mp5-ranking-panel > .mp5-ranking-list > a {
  min-height:48px !important; grid-template-columns:30px 30px minmax(0,1fr) 78px 84px !important; gap:7px !important;
}
body.mp-home article.mp5-ranking-panel .mp5-rank-name {
  color:#ffe29a !important; font-size:12px !important; font-weight:700 !important;
}
body.mp-home article.mp5-ranking-panel .mp5-rank-level,
body.mp-home article.mp5-ranking-panel .mp5-rank-voc {
  color:#eef3f6 !important; font-size:10px !important; font-weight:600 !important;
}

/* Events */
body.mp-home article.mp5-events-panel > .mp5-events-list > div { min-height:72px !important; }
body.mp-home article.mp5-events-panel .erynot-event-copy b {
  color:#ffe29a !important; font-size:12px !important; line-height:1.25 !important; font-weight:700 !important;
}
body.mp-home article.mp5-events-panel .erynot-event-copy small {
  color:#dce7ed !important; font-size:9px !important; line-height:1.3 !important;
}
body.mp-home article.mp5-events-panel .mp5-events-list time b { font-size:17px !important; }
body.mp-home article.mp5-events-panel .mp5-events-list time small { font-size:8px !important; color:#d7e8f2 !important; }

/* Quick access */
body.mp-home article.mp5-quick-panel > nav > a b {
  color:#ffe29a !important; font-size:11px !important; line-height:1.2 !important; font-weight:700 !important;
}
body.mp-home article.mp5-quick-panel > nav > a small {
  color:#d6e0e6 !important; font-size:9px !important; line-height:1.25 !important;
}

/* Action bars: full-width dark strip + readable single-line CTA */
body.mp-home .ery-v115-actionbar {
  flex:0 0 48px !important; min-height:48px !important; padding:7px 12px !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  background:#08131d !important; background-image:none !important; border-top:1px solid #29485d !important;
  box-sizing:border-box !important;
}
body.mp-home .ery-v115-actionbar .mp5-rank-button {
  width:min(230px,90%) !important; min-width:180px !important; min-height:34px !important; height:34px !important;
  margin:0 auto !important; padding:0 16px !important; display:flex !important; align-items:center !important; justify-content:center !important;
  white-space:nowrap !important; line-height:1 !important; text-align:center !important;
  font-size:10px !important; font-weight:700 !important; letter-spacing:.01em !important;
  color:#ffe29a !important; text-decoration:none !important;
  background:linear-gradient(180deg,#174f79,#0b314f) !important; border:1px solid #b78731 !important;
  border-radius:4px !important; box-shadow:inset 0 1px rgba(255,255,255,.08),0 3px 7px rgba(0,0,0,.28) !important;
}

/* Do not allow old brown text-fill to leak back in. */
body.mp-home section.mp5-dashboard-grid .mp5-news-item *,
body.mp-home section.mp5-dashboard-grid .mp5-ranking-list *,
body.mp-home section.mp5-dashboard-grid .mp5-events-list *,
body.mp-home section.mp5-dashboard-grid .mp5-quick-panel nav * {
  -webkit-text-fill-color:currentColor !important;
  text-shadow:none !important;
}

@media (max-width:760px) {
  body.mp-home section.mp5-dashboard-grid > article.mp5-panel > header h3,
  body.mp-home section.mp5-dashboard-grid > article.mp5-ranking-panel > header.mp5-tabs h3 { font-size:15px !important; }
  body.mp-home .ery-v115-actionbar .mp5-rank-button { width:100% !important; min-width:0 !important; }
}


/* ErynOT v117 - hard readability lock */
body.mp-home article.mp5-news-panel .mp5-news-item,
body.mp-home article.mp5-news-panel .mp5-news-item * {
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
}
body.mp-home article.mp5-news-panel .mp5-news-item b {
  color:#ffe39a !important;
  -webkit-text-fill-color:#ffe39a !important;
}
body.mp-home article.mp5-news-panel .mp5-news-item p {
  color:#f1f5f7 !important;
  -webkit-text-fill-color:#f1f5f7 !important;
}
body.mp-home article.mp5-news-panel .mp5-news-item small {
  color:#b8c9d4 !important;
  -webkit-text-fill-color:#b8c9d4 !important;
}


/* ==========================================================================
   ErynOT v118 - RATES BAR READABILITY LOCK
   ========================================================================== */
body.mp-home section.erynot-stats {
  min-height:84px !important;
  height:84px !important;
  background:linear-gradient(180deg,#0d1b27 0%,#08131d 55%,#050c12 100%) !important;
  border:1px solid #58738a !important;
  box-shadow:
    inset 0 1px 0 rgba(105,168,207,.15),
    inset 0 -1px 0 rgba(210,164,67,.16),
    0 6px 18px rgba(0,0,0,.28) !important;
}

body.mp-home section.erynot-stats > div {
  min-height:82px !important;
  height:82px !important;
  padding:0 18px !important;
  gap:13px !important;
  border-right:1px solid #29485e !important;
}

body.mp-home section.erynot-stats > div:last-child {
  border-right:0 !important;
}

body.mp-home section.erynot-stats > div > span {
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:4px !important;
  min-width:0 !important;
}

body.mp-home section.erynot-stats small {
  display:block !important;
  margin:0 !important;
  color:#d9e4ea !important;
  -webkit-text-fill-color:#d9e4ea !important;
  opacity:1 !important;
  font:700 10px/1.15 Arial,sans-serif !important;
  letter-spacing:.075em !important;
  text-shadow:0 1px 2px rgba(0,0,0,.8) !important;
  white-space:nowrap !important;
}

body.mp-home section.erynot-stats strong,
body.mp-home section.erynot-stats strong *,
body.mp-home section.erynot-stats .erynot-up {
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  margin:0 !important;
  color:#ffe39a !important;
  -webkit-text-fill-color:#ffe39a !important;
  opacity:1 !important;
  font:700 20px/1.05 Georgia,serif !important;
  text-shadow:0 2px 2px #000 !important;
  white-space:nowrap !important;
}

body.mp-home .erynot-stat-icon {
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  border:1px solid #b18434 !important;
  border-radius:8px !important;
  background:linear-gradient(145deg,#143e5f,#09243a 67%,#06131f) !important;
  box-shadow:
    inset 0 1px 0 rgba(117,181,222,.18),
    0 3px 10px rgba(0,0,0,.34) !important;
}

body.mp-home .erynot-stat-icon svg {
  width:27px !important;
  height:27px !important;
  stroke:#f0b841 !important;
  fill:none !important;
  stroke-width:1.9 !important;
  opacity:1 !important;
  filter:none !important;
}

body.mp-home section.erynot-stats > div:nth-child(2) .erynot-stat-icon svg {
  fill:#f0b841 !important;
  stroke:#f0b841 !important;
}

body.mp-home .erynot-up > b {
  width:10px !important;
  height:10px !important;
  min-width:10px !important;
  border-radius:50% !important;
  background:#3ce875 !important;
  box-shadow:0 0 9px rgba(60,232,117,.72) !important;
}

@media (max-width:1000px) {
  body.mp-home section.erynot-stats > div {
    padding:0 10px !important;
    gap:9px !important;
  }
  body.mp-home section.erynot-stats small {
    font-size:9px !important;
  }
  body.mp-home section.erynot-stats strong,
  body.mp-home section.erynot-stats strong *,
  body.mp-home section.erynot-stats .erynot-up {
    font-size:17px !important;
  }
}

@media (max-width:620px) {
  body.mp-home section.erynot-stats {
    height:auto !important;
  }
  body.mp-home section.erynot-stats > div {
    min-height:72px !important;
    height:72px !important;
  }
}



/* ==========================================================================
   ErynOT v119 - FINAL HOME LOWER AREA: REMOVE BROWN + MAX READABILITY
   ========================================================================== */
body.mp-home .erynot-dashboard,
body.mp-home .erynot-dashboard-grid,
body.mp-home .erynot-dashboard-card,
body.mp-home .erynot-dashboard-card > header,
body.mp-home .erynot-dashboard-card .card-header,
body.mp-home .erynot-home-panels,
body.mp-home .erynot-home-panels > *,
body.mp-home .erynot-community,
body.mp-home .erynot-community-strip,
body.mp-home .erynot-footer,
body.mp-home footer,
body.mp-home #footer,
body.mp-home .footer {
  background-color:#07131d !important;
  background-image:none !important;
  color:#edf6fb !important;
}

/* dashboard headers: brown -> navy */
body.mp-home .erynot-dashboard-card > header,
body.mp-home .erynot-dashboard-card .card-header,
body.mp-home .erynot-panel-title,
body.mp-home .erynot-card-title {
  background:#0d2638 !important;
  border-color:#3e6d8a !important;
  color:#ffe39a !important;
  box-shadow:inset 0 -1px 0 rgba(224,169,56,.45) !important;
}

/* dashboard bodies */
body.mp-home .erynot-dashboard-card,
body.mp-home .erynot-dashboard-card .card-body,
body.mp-home .erynot-news-card,
body.mp-home .erynot-ranking-card,
body.mp-home .erynot-events-card,
body.mp-home .erynot-quick-card {
  background:#091a27 !important;
  border-color:#42647b !important;
}

/* all useful text in this lower home section */
body.mp-home .erynot-dashboard-card p,
body.mp-home .erynot-dashboard-card span,
body.mp-home .erynot-dashboard-card small,
body.mp-home .erynot-dashboard-card a,
body.mp-home .erynot-dashboard-card td,
body.mp-home .erynot-dashboard-card li,
body.mp-home .erynot-community p,
body.mp-home .erynot-community span,
body.mp-home footer p,
body.mp-home footer span,
body.mp-home footer a,
body.mp-home footer li {
  color:#edf6fb !important;
  -webkit-text-fill-color:#edf6fb !important;
  opacity:1 !important;
  text-shadow:0 1px 1px rgba(0,0,0,.8) !important;
}

body.mp-home .erynot-dashboard-card h1,
body.mp-home .erynot-dashboard-card h2,
body.mp-home .erynot-dashboard-card h3,
body.mp-home .erynot-dashboard-card h4,
body.mp-home .erynot-dashboard-card strong,
body.mp-home .erynot-community h2,
body.mp-home .erynot-community h3,
body.mp-home footer h2,
body.mp-home footer h3,
body.mp-home footer strong {
  color:#ffe39a !important;
  -webkit-text-fill-color:#ffe39a !important;
  opacity:1 !important;
}

/* news box itself */
body.mp-home .erynot-news-card article,
body.mp-home .erynot-news-card .news-item,
body.mp-home .erynot-news-item {
  background:#102634 !important;
  color:#f3f7fa !important;
  border-color:#b98a2e !important;
}
body.mp-home .erynot-news-card article *,
body.mp-home .erynot-news-card .news-item *,
body.mp-home .erynot-news-item * {
  color:#f3f7fa !important;
  -webkit-text-fill-color:#f3f7fa !important;
  opacity:1 !important;
}

/* event/ranking rows */
body.mp-home .erynot-ranking-card tr,
body.mp-home .erynot-ranking-card .ranking-row,
body.mp-home .erynot-events-card .event-row,
body.mp-home .erynot-quick-card a {
  background:#0d2230 !important;
  border-color:#31536a !important;
}
body.mp-home .erynot-ranking-card tr *,
body.mp-home .erynot-ranking-card .ranking-row *,
body.mp-home .erynot-events-card .event-row *,
body.mp-home .erynot-quick-card a * {
  color:#f5f8fa !important;
  -webkit-text-fill-color:#f5f8fa !important;
}

/* preserve gold for names/titles/actions */
body.mp-home .erynot-ranking-card strong,
body.mp-home .erynot-events-card strong,
body.mp-home .erynot-quick-card strong,
body.mp-home .erynot-quick-card b,
body.mp-home .erynot-dashboard-card .title {
  color:#ffe39a !important;
  -webkit-text-fill-color:#ffe39a !important;
}

/* community bar */
body.mp-home .erynot-community,
body.mp-home .erynot-community-strip {
  background:linear-gradient(90deg,#081722,#0a1c29,#07131d) !important;
  border-color:#42647b !important;
}

/* footer: kill the large brown slab */
body.mp-home footer,
body.mp-home #footer,
body.mp-home .footer,
body.mp-home .erynot-footer {
  background:linear-gradient(180deg,#081722 0%,#050d14 100%) !important;
  border-color:#42647b !important;
}
body.mp-home footer > *,
body.mp-home #footer > *,
body.mp-home .footer > *,
body.mp-home .erynot-footer > * {
  background-color:transparent !important;
  background-image:none !important;
}

/* aggressive legacy brown cleanup, home only */
body.mp-home [style*="#4"],
body.mp-home [style*="#5"],
body.mp-home [style*="brown"] {
  --erynot-v119-legacy:1;
}


/* ==========================================================================
   ErynOT v120 - HEADER POSITION LOCK + NEWS MULTILANGUAGE
   ========================================================================== */

/* Prevent the entire centered site from shifting when vertical scrollbar
   appears/disappears between pages. */
html {
  overflow-y:scroll !important;
  scrollbar-gutter:stable !important;
}

/* Header geometry is now identical on home and internal pages. */
body .erynot-header {
  width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  grid-template-columns:360px minmax(650px,1fr) 390px !important;
  box-sizing:border-box !important;
}

body .erynot-brand {
  width:360px !important;
  min-width:360px !important;
  max-width:360px !important;
  height:100% !important;
  margin:0 !important;
  padding:0 18px 0 28px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  box-sizing:border-box !important;
  transform:none !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
}

body .erynot-brand img {
  position:static !important;
  width:auto !important;
  height:62px !important;
  max-height:62px !important;
  margin:0 !important;
  transform:none !important;
  flex:0 0 auto !important;
}

body .erynot-brand span {
  position:static !important;
  margin:0 !important;
  transform:none !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}

body .erynot-nav {
  min-width:650px !important;
  display:grid !important;
  grid-template-columns:repeat(7,minmax(82px,1fr)) !important;
  box-sizing:border-box !important;
}

body .erynot-header-actions {
  width:390px !important;
  min-width:390px !important;
  max-width:390px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

/* Hover/active state cannot resize header cells. */
body .erynot-nav > a,
body .erynot-nav > a:hover,
body .erynot-nav > a.active {
  box-sizing:border-box !important;
  margin:0 !important;
  min-width:0 !important;
  width:auto !important;
  transform:none !important;
}

/* Tablet keeps the brand anchored to the same left edge. */
@media (max-width:1150px) and (min-width:761px) {
  body .erynot-header {
    grid-template-columns:270px minmax(490px,1fr) 300px !important;
  }
  body .erynot-brand {
    width:270px !important;
    min-width:270px !important;
    max-width:270px !important;
    padding-left:18px !important;
  }
  body .erynot-brand img {
    height:54px !important;
    max-height:54px !important;
  }
  body .erynot-nav {
    min-width:490px !important;
    grid-template-columns:repeat(7,minmax(66px,1fr)) !important;
  }
  body .erynot-header-actions {
    width:300px !important;
    min-width:300px !important;
    max-width:300px !important;
  }
}

/* Mobile uses the normal compact header; do not impose desktop widths. */
@media (max-width:760px) {
  html {
    overflow-y:auto !important;
    scrollbar-gutter:auto !important;
  }
  body .erynot-header {
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  body .erynot-brand {
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    padding-left:10px !important;
  }
  body .erynot-brand img {
    height:52px !important;
    max-height:52px !important;
  }
  body .erynot-nav,
  body .erynot-header-actions {
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
  }
}


/* ==========================================================================
   ErynOT v121 - BRAND HARD LOCK
   Same logo size, position and background on every non-mobile page.
   ========================================================================== */

@media (min-width:761px) {
  body .erynot-header {
    min-height:78px !important;
    height:78px !important;
    background:#07131d !important;
    background-image:linear-gradient(180deg,#0a1a26 0%,#07131d 100%) !important;
    border-top:1px solid #9c762c !important;
    border-bottom:1px solid #9c762c !important;
    box-sizing:border-box !important;
  }

  body .erynot-brand {
    position:relative !important;
    width:330px !important;
    min-width:330px !important;
    max-width:330px !important;
    height:78px !important;
    min-height:78px !important;
    max-height:78px !important;
    margin:0 !important;
    padding:0 18px 0 22px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:12px !important;
    overflow:hidden !important;
    background:#07131d !important;
    background-image:linear-gradient(180deg,#0a1a26 0%,#07131d 100%) !important;
    border:0 !important;
    box-shadow:none !important;
    transform:none !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    box-sizing:border-box !important;
  }

  body .erynot-brand::before,
  body .erynot-brand::after {
    content:none !important;
    display:none !important;
  }

  body .erynot-brand img {
    position:static !important;
    width:58px !important;
    min-width:58px !important;
    max-width:58px !important;
    height:58px !important;
    min-height:58px !important;
    max-height:58px !important;
    margin:0 !important;
    padding:0 !important;
    object-fit:contain !important;
    transform:none !important;
    flex:0 0 58px !important;
    filter:drop-shadow(0 2px 3px rgba(0,0,0,.55)) !important;
  }

  body .erynot-brand span {
    position:static !important;
    display:block !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    color:#f2d58e !important;
    -webkit-text-fill-color:#f2d58e !important;
    font-family:Georgia,"Times New Roman",serif !important;
    font-size:38px !important;
    line-height:1 !important;
    font-weight:700 !important;
    letter-spacing:-.02em !important;
    white-space:nowrap !important;
    text-shadow:0 2px 2px #000 !important;
    transform:none !important;
    flex:0 0 auto !important;
  }

  /* Remove the older tablet shrink that caused the logo to jump/resize. */
  body .erynot-header {
    grid-template-columns:330px minmax(560px,1fr) 360px !important;
  }

  body .erynot-nav {
    min-width:560px !important;
    height:78px !important;
    grid-template-columns:repeat(7,minmax(72px,1fr)) !important;
  }

  body .erynot-header-actions {
    width:360px !important;
    min-width:360px !important;
    max-width:360px !important;
    height:78px !important;
  }
}

/* Only phones get a smaller brand. */
@media (max-width:760px) {
  body .erynot-brand {
    height:64px !important;
    padding-left:10px !important;
    gap:8px !important;
    background:#07131d !important;
  }

  body .erynot-brand img {
    width:46px !important;
    min-width:46px !important;
    max-width:46px !important;
    height:46px !important;
    min-height:46px !important;
    max-height:46px !important;
    flex-basis:46px !important;
  }

  body .erynot-brand span {
    font-size:29px !important;
    line-height:1 !important;
  }
}

