/* FP Galaxy v2.0.2 — high-specificity fixes (load last).
   Palette: chalkboard green + gold only. */

/* ---- Logo: circular emblem + gold name, no white/cream box ---- */
html body .brand-lockup,
html body .brand-lockup-header,
html body .brand-lockup-footer,
html body .brand-lockup-drawer,
html body .flogo,
html body .brand a{
  background:none!important;
  background-color:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  border-radius:0!important;
}
html body .brand-lockup,
html body .brand-lockup-header,
html body .brand-lockup-footer,
html body .brand-lockup-drawer{
  display:inline-flex!important;
  align-items:center;
  gap:14px;
}
html body .brand img,
html body .brand img.logo,
html body .brand img.logo-official,
html body .brand img.logo-header,
html body .brand img.logo-emblem,
html body .flogo img,
html body .logo-official,
html body .logo-official.logo-footer,
html body .top-d img,
:root[data-logo] .brand img,
:root[data-logo][data-theme=dark] .brand img,
:root[data-logo][data-theme=dark] .top-d img,
[data-theme=dark] .brand img,
[data-theme=dark] .top-d img{
  background:none!important;
  background-color:transparent!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
  width:auto!important;
  max-width:none!important;
  object-fit:contain;
}
html body .brand img.logo-emblem,
html body .brand img.logo-header,
:root[data-logo] .brand img{
  height:104px!important;
  max-height:104px!important;
}
html body .logo-official.logo-footer,
html body .flogo img,
:root[data-logo] .flogo img{
  height:72px!important;
  max-height:72px!important;
}
html body .logo-official.logo-drawer,
html body .top-d img{
  height:64px!important;
  max-height:64px!important;
}
html body .brand-name{
  font-family:var(--font),Vazirmatn,Tahoma,sans-serif;
  font-weight:800;
  font-size:clamp(22px,2.5vw,34px);
  line-height:1.15;
  color:#EECB92!important;
  white-space:nowrap;
  text-shadow:0 1px 0 rgba(0,40,26,.25);
}
html body .brand-lockup-footer .brand-name,
html body .site-footer .brand-name{
  font-size:clamp(18px,2vw,26px);
  color:#EECB92!important;
}
html body .brand-lockup-drawer .brand-name{
  font-size:22px;
  color:#EECB92!important;
}
html body .brand .tag{
  color:#F1E5C8!important;
  border-inline-start-color:rgba(238,203,146,.4);
}
@media (max-width:900px){
  html body .brand img.logo-emblem,
  html body .brand img.logo-header,
  :root[data-logo] .brand img{height:80px!important;max-height:80px!important}
  html body .brand-name{font-size:22px}
}
@media (max-width:640px){
  html body .brand img.logo-emblem,
  html body .brand img.logo-header,
  :root[data-logo] .brand img{height:64px!important;max-height:64px!important}
  html body .brand-name{font-size:18px}
}

/* ---- Main nav: glossy green bar, one row, dropdowns ---- */
html body .mainnav{
  background:#003028!important;
  background-image:linear-gradient(180deg,#184137 0%,#06322D 46%,#003028 78%,#00281A 100%)!important;
  color:#F1E5C8!important;
  border-top:1px solid rgba(166,126,57,.35)!important;
  border-bottom:1px solid rgba(166,126,57,.28)!important;
  overflow:visible!important;
}
html body .mainnav .wrap{overflow:visible;position:relative}
html body .mainnav > .wrap > ul,
html body .mainnav ul.menu,
html body .mainnav #menu-main{
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
  overflow-x:auto;
  overflow-y:visible;
  scrollbar-width:none;
}
html body .mainnav > .wrap > ul > li,
html body .mainnav ul.menu > li,
html body .mainnav #menu-main > li{
  position:relative;
  flex:0 0 auto;
  margin:0;
  padding:0;
  border:0;
}
html body .mainnav > .wrap > ul > li > a,
html body .mainnav ul.menu > li > a,
html body .mainnav #menu-main > li > a{
  color:#F1E5C8!important;
  white-space:nowrap;
  border-bottom:3px solid transparent!important;
  border-image:none!important;
  padding:13px 14px;
  display:block;
  font-weight:700;
}
html body .mainnav > .wrap > ul > li > a:hover,
html body .mainnav ul.menu > li > a:hover,
html body .mainnav #menu-main > li > a:hover,
html body .mainnav > .wrap > ul > li > a[aria-current],
html body .mainnav .current-menu-item > a,
html body .mainnav .current-menu-ancestor > a{
  color:#EECB92!important;
  border-bottom-color:#A67E39!important;
}

/* Nested categories as dropdowns — never a flattened overflow row */
html body .mainnav ul ul,
html body .mainnav .sub-menu{
  display:none!important;
  position:absolute!important;
  top:100%;
  right:0;
  left:auto;
  min-width:230px;
  margin:0;
  padding:8px 0;
  list-style:none;
  background:#F7F4EC!important;
  box-shadow:0 12px 32px rgba(0,40,26,.28);
  border:1px solid rgba(166,126,57,.28);
  z-index:80;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  overflow:visible!important;
}
html body .mainnav li:hover > ul,
html body .mainnav li:hover > .sub-menu,
html body .mainnav li:focus-within > ul,
html body .mainnav li:focus-within > .sub-menu{
  display:block!important;
}
html body .mainnav .sub-menu li,
html body .mainnav ul ul li{
  display:block;
  margin:0;
  padding:0;
  border:0;
}
html body .mainnav .sub-menu a,
html body .mainnav ul ul a{
  color:#003028!important;
  padding:9px 16px;
  border:0!important;
  white-space:normal;
  font-weight:600;
  display:block;
}
html body .mainnav .sub-menu a:hover,
html body .mainnav ul ul a:hover{
  background:#E6EEE9;
  color:#5D2E00!important;
}

/* ---- Footer: dark glossy green, readable cream/gold type ---- */
html body footer.site-footer,
html body .site-footer{
  background:#003028!important;
  background-image:linear-gradient(180deg,#184137 0%,#06322D 42%,#003028 78%,#00281A 100%)!important;
  color:#F1E5C8!important;
}
html body .site-footer a,
html body .site-footer p,
html body .site-footer span,
html body .site-footer li,
html body .site-footer .f-credit,
html body .site-footer .f-about,
html body .site-footer .f-legal,
html body .site-footer .fbottom{
  color:#F1E5C8!important;
}
html body .site-footer h3{color:#fff!important}
html body .site-footer a:hover{color:#EECB92!important}
html body .fp-ershad-v2 .seal{
  color:#003028!important;
  background:#F7F4EC!important;
  border-color:#A67E39!important;
}

/* ---- Homepage: never show the top A1 slot (keep A1 on article/archive) ---- */
body.home aside.ad[data-ad-slot="A1"],
body.front-page aside.ad[data-ad-slot="A1"],
.home main > .wrap > aside.ad[data-ad-slot="A1"]{
  display:none!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
}
body.home .ad-lb[data-ad-slot="A1"] .ad-box{height:0!important;min-height:0!important;border:0!important}

/* Tighten the gap under the nav once A1 is gone */
body.home main#main > .wrap:first-of-type{padding-top:8px}


/* Morning newsletter removed (v2.0.3): hide any leftover theme markup */
#newsletter,
.news-cta,
.sec-cta#newsletter,
a[href="#newsletter"]{display:none!important}
