/* PokePolis Engine Rebrand Finish 1.4.0 — focused navigation/footer polish.
   Extends Navigation 2.0; does NOT replace menu mechanics. */
:root{--ppr14-ink:#0f2747;--ppr14-coral:#ff6b4a;--ppr14-blue:#3b82f6;--ppr14-cloud:#eaeff5}

/* Widen ONLY the header's brand+navigation bar, not articles or homepage sections. */
@media(min-width:922px){
 .pkp-header .pp-r14-header-row{width:min(1400px,calc(100% - 48px))!important;max-width:1400px!important;margin-left:auto!important;margin-right:auto!important}
 .pkp-header #pkp-nav2-menu{gap:clamp(2px,.55vw,12px)}
 .pkp-header #pkp-nav2-menu>li>a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding-inline:clamp(7px,.8vw,13px);min-height:46px;color:var(--ppr14-ink)}
 .pkp-header #pkp-nav2-menu>li>a:hover,.pkp-header #pkp-nav2-menu>li>a:focus-visible{color:var(--ppr14-ink)}
}
.pkp-header{border-bottom-color:rgba(15,39,71,.12)!important}
/* Replace the typographic down-tick with a clean branded chevron, no new menu JavaScript. */
#pkp-nav2-menu>li>a .pp-r14-chevron{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:14px;height:14px;color:#365477;transition:transform .18s ease,color .18s ease}
#pkp-nav2-menu>li>a .pp-r14-chevron svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#pkp-nav2-menu>li:hover>a .pp-r14-chevron,#pkp-nav2-menu>li:focus-within>a .pp-r14-chevron{color:var(--ppr14-coral);transform:rotate(180deg)}
/* A dropdown's position/visibility are owned by Navigation 2.0. We only skin it. */
@media(min-width:922px){
 #pkp-nav2-menu>li>.pp-r14-dropdown,
 #pkp-nav2-menu>li>.pp-r14-dropdown .pp-r14-dropdown{
  border:1px solid #dce5f0!important;border-top:3px solid var(--ppr14-coral)!important;
  border-radius:14px!important;background:#fff!important;
  box-shadow:0 18px 42px rgba(15,39,71,.16)!important;
 }
 #pkp-nav2-menu .pp-r14-dropdown h2,
 #pkp-nav2-menu .pp-r14-dropdown h3,
 #pkp-nav2-menu .pp-r14-dropdown h4{color:var(--ppr14-ink)!important;letter-spacing:.025em}
 #pkp-nav2-menu .pp-r14-dropdown a{border-radius:7px;color:#294466}
 #pkp-nav2-menu .pp-r14-dropdown a:hover,
 #pkp-nav2-menu .pp-r14-dropdown a:focus-visible{color:#0f2747;background:#f2f6ff}
 #pkp-nav2-menu .pp-r14-dropdown a:focus-visible{outline:2px solid var(--ppr14-blue);outline-offset:2px}
}
/* Keep current mobile menu functionality. Only improve touch comfort/contrast. */
@media(max-width:921px){
 #pkp-nav2-menu>li>a{min-height:44px}
 #pkp-nav2-menu .pp-r14-chevron{margin-left:3px}
}
.pkp-header :is(a,button):focus-visible{outline:2px solid var(--ppr14-blue);outline-offset:3px}

/* Footer: logo to the LEFT of the four existing menus instead of above them. */
@media(min-width:900px){
 .pkp-footer .pp-r14-footer-layout{
  display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;
  align-items:start!important;column-gap:clamp(32px,4vw,72px)!important;row-gap:24px!important;
 }
 .pkp-footer .pp-r14-footer-layout.pp-r14-footer-flat{
  grid-template-columns:180px repeat(4,minmax(0,1fr))!important;
 }
 .pkp-footer .pp-r14-footer-brand{grid-column:1!important;grid-row:1!important;max-width:180px}
 .pkp-footer .pp-r14-footer-menu{grid-column:2!important;grid-row:1!important;min-width:0;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:clamp(12px,2vw,30px)!important}
 .pkp-footer .pp-r14-footer-col{grid-row:1!important;min-width:0}
 .pkp-footer .pp-r14-footer-below{grid-column:1/-1!important}
 .pkp-footer .pp-r14-footer-brand img{width:min(100%,176px)!important;height:auto!important;max-height:none!important;object-fit:contain;object-position:left top}
}
@media(max-width:899px){
 .pkp-footer .pp-r14-footer-layout{display:block}
 .pkp-footer .pp-r14-footer-brand{margin-bottom:24px!important}
 .pkp-footer .pp-r14-footer-brand img{max-width:184px;height:auto}
 .pkp-footer .pp-r14-footer-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 20px}
}
@media(max-width:520px){.pkp-footer .pp-r14-footer-menu{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pkp-footer .pp-r14-footer-layout h3,.pkp-footer .pp-r14-footer-layout h4{color:var(--ppr14-coral)!important}
.pkp-footer .pp-r14-footer-layout a{color:#becfe9!important}
.pkp-footer .pp-r14-footer-layout a:hover,.pkp-footer .pp-r14-footer-layout a:focus-visible{color:#fff!important;text-decoration:underline;text-underline-offset:3px}
@media(prefers-reduced-motion:reduce){#pkp-nav2-menu>li>a .pp-r14-chevron{transition:none}}
