/* ===========================================================================
   PAND — base styles + shared design tokens
   Tokens mirror the values already used consistently across the section
   library, so partials keep working whether or not they redeclare their own.
   =========================================================================== */

:root{
  --pand-ink:#12293F;
  --pand-muted:#5D6B7A;
  --pand-blue:#1D63AC;
  --pand-blue-dk:#114B93;
  --pand-green:#49A647;
  --pand-green-dk:#1E9F49;
  --pand-paper:#EEF2F7;
  --pand-line:#E2E8F0;
  --pand-ease:cubic-bezier(.22,.61,.36,1);
  --pand-spring:cubic-bezier(.2,.9,.3,1);
  --pand-sans:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;
  --pand-display:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  --pand-fa:'Vazirmatn',system-ui,sans-serif;
  --pand-maxw:1180px;
}

/* --- reset ------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--pand-sans);
  color:var(--pand-ink);
  background:#fff;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;   /* full-bleed sections must never cause horizontal scroll */
}
img,svg,video{max-width:100%;height:auto}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}

/* No 1140px content cap here — that rule was Hello Elementor's, and removing it
   is precisely what lets the full-bleed section designs render as authored. */

/* --- Font Awesome ------------------------------------------------------
   The section partials lock font-family site-wide (to stop a theme swapping
   their fonts), which also catches icon glyphs since icons inherit
   font-family. Re-assert the icon font globally, after those rules. */
i.fa-solid,i.fa-regular,i.fa-brands,
span.fa-solid,span.fa-regular,span.fa-brands,
i[class*="fa-"],span[class*="fa-"]{font-family:"Font Awesome 6 Free" !important}
i.fa-brands,span.fa-brands,
i[class*="fa-brands"],span[class*="fa-brands"]{font-family:"Font Awesome 6 Brands" !important}
i.fa-solid,span.fa-solid{font-weight:900}
i.fa-brands,span.fa-brands{font-weight:400}

/* --- accessibility ----------------------------------------------------- */
.screen-reader-text{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.pand-skip-link{
  position:absolute;left:-9999px;top:0;z-index:9999;
  background:var(--pand-ink);color:#fff;padding:12px 20px;border-radius:0 0 8px 0;
  font-weight:600;text-decoration:none;
}
.pand-skip-link:focus{left:0}
:focus-visible{outline:2px solid var(--pand-blue);outline-offset:3px}

/* --- generic page shell (used by page.php / single.php / 404 / search) --- */
.pand-shell{max-width:var(--pand-maxw);margin:0 auto;padding:clamp(96px,14vh,150px) clamp(20px,6vw,48px) clamp(64px,10vh,110px)}
.pand-shell h1{font-family:var(--pand-display);font-weight:600;font-size:clamp(30px,4.5vw,46px);line-height:1.16;margin:0 0 20px;color:var(--pand-ink)}
.pand-shell h2{font-family:var(--pand-display);font-weight:600;font-size:clamp(23px,3vw,32px);margin:40px 0 14px}
.pand-shell h3{font-family:var(--pand-display);font-weight:600;font-size:20px;margin:28px 0 10px}
.pand-shell p,.pand-shell li{font-size:16.5px;line-height:1.75;color:#354658}
.pand-shell a{color:var(--pand-blue);text-underline-offset:3px}
.pand-shell img{border-radius:12px}
.pand-shell table{width:100%;border-collapse:collapse;margin:20px 0}
.pand-shell th,.pand-shell td{border:1px solid var(--pand-line);padding:10px 12px;text-align:left}
.pand-lede{font-size:18.5px;line-height:1.65;font-weight:500;color:#38495C;max-width:60ch}

/* --- RTL / Farsi content ------------------------------------------------ */
.pand-rtl{direction:rtl;text-align:right;font-family:var(--pand-fa)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* --- logo wordmark fallback -------------------------------------------
   "Community" image (pand-community.png) isn't in the media library yet;
   parts/logo.php renders styled text instead so the lockup still reads. */
.pand-wordmark-fallback{
  display:block;
  font-family:var(--pand-display);
  font-weight:500;
  letter-spacing:.055em;
  line-height:1;
  font-size:11px;
  white-space:nowrap;
}

/* The nav inverts the wordmark IMAGES to white while it floats over the hero
   (.pn:not(.is-solid)) and returns them to ink once it goes solid. The text
   fallback isn't an image, so it has to follow those same states explicitly —
   otherwise it renders dark-on-dark over the hero and disappears. */
.pn-word .pand-wordmark-fallback{color:var(--pand-ink);transition:color .6s var(--pand-ease)}
.pn:not(.is-solid) .pn-word .pand-wordmark-fallback{color:#fff}
.pn.is-solid .pn-word .pand-wordmark-fallback{color:var(--pand-ink)}
.pn.is-open .pn-word .pand-wordmark-fallback{color:var(--pand-ink)}

/* Footer sits on the dark brand gradient — always white. */
.pf-word .pand-wordmark-fallback{color:#fff}
