/* ECOS 2027 Plan Finder pages on state sections built by the shared state-site generator (California), and on
 * Arizona's own template (html.pf-az, below). Georgia (html.pf-ga) maps its pine / clay names.
 * Loaded after the section's own site.css and /nevada/plan-finder.css on <html class="pf-shell">.
 * - The page keeps the section's own root size, so its header and footer match every other page there;
 *   --pf-rem keeps the finder's text at the same 18px-based sizes as the Nevada finder.
 * - The Nevada token names plan-finder.css uses are re-pointed at the section's palette.
 * - The few Nevada page-level classes the finder markup still carries (sr-only, form-group,
 *   form-submit-btn, highlight) get section-style rules. */
html.pf-shell{
  font-size:100%;--pf-rem:1.125rem;
  --navy:var(--lake-dark);--blue:var(--lake);--teal:#3f7fa8;--teal-light:var(--lake-tint);
  --gold-hover:var(--gold-deep);--gold-light:#fbf3e3;
  --white:var(--surface);--off-white:var(--paper);--light-gray:var(--line);
  --text-primary:var(--ink);--text-secondary:var(--ink-soft);--text-muted:#5b6670;
  --success:var(--spruce);--best-border:var(--spruce);
  --shadow-md:var(--shadow);--shadow-lg:0 12px 40px rgba(28,38,48,.18);
  --max-width:var(--maxw);--font-display:var(--display);--font-body:var(--body);
  --pf-focus:var(--focus)
}

/* Georgia (html.pf-shell.pf-ga): Georgia's pages share the generator markup but name their colours pine / clay
   (georgia/site.css), so the names the rules above use are pointed at Georgia's own. */
html.pf-shell.pf-ga{--lake:var(--pine);--lake-dark:var(--pine-dark);--lake-tint:var(--pine-tint);--maple:var(--clay);--spruce:#2d6b3f}

/* Arizona (html.pf-shell.pf-az): Arizona's own template and palette (arizona/assets/styles.css). The names the rules
   above use are given Arizona's colours, and the Nevada names Arizona's own pages also use (--navy, --teal) keep
   Arizona's values, so the header and footer look as they do on every other Arizona page. */
html.pf-shell.pf-az{
  --lake:#155e5a;--lake-dark:#0d423f;--lake-tint:#e4efed;--gold-deep:#9c6f17;
  --surface:#fffdf8;--paper:#f6efe2;--spruce:#2d7d46;--maple:#bd4f29;--focus:#0d423f;
  --display:"Fraunces",Georgia,"Times New Roman",serif;--body:"Libre Franklin",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --step-0:clamp(1.13rem,1.08rem + .25vw,1.25rem);--step-2:clamp(1.6rem,1.4rem + 1vw,2.2rem);--step-3:clamp(2rem,1.6rem + 2vw,3rem);
  --radius-sm:10px;--tap:56px;
  --navy:#0f2a43;--teal:#155e5a
}
.pf-az .inner-hero.pf-hero .inner-hero-band{padding:34px 0 32px}
.pf-az .pf-hero h1{font-size:clamp(1.8rem,3.6vw,2.6rem);margin-bottom:.35em}
.pf-az .pf-hero h1 .highlight,.pf-az .pf-hero .eyebrow{color:#f3c977}
.pf-az .pf-hero .lede{max-width:62ch;margin-bottom:0}
.pf-az .pf-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:1rem}
.pf-az .pf-main .section{padding-block:clamp(2rem,1.5rem + 2vw,3.2rem)}
:where(.pf-az .pf-main) h2{font-size:var(--step-2)}
.pf-az .pf-main p,.pf-az dialog.pf-dialog p{max-width:none}
.pf-az .section.pf-alt{background:var(--sand-deep)}
.pf-az main>.section:last-child{padding:0 0 40px}
.pf-az .tpmo-links{margin-top:-.4em}
.pf-az .cta-strip{margin-bottom:28px}

/* The section's scroll-reveal fades whole sections in once 12% of them is on screen; a long plan table
   or results list never reaches that on a phone, so the finder pages show everything at once. */
.pf-shell .reveal{opacity:1;transform:none;transition:none}

/* Hero: the section's paper hero, one column, no landscape scene */
.hero.pf-hero{min-height:0;border-bottom:1px solid var(--line)}
.pf-hero .hero__inner{grid-template-columns:1fr;padding-bottom:clamp(1.6rem,1.2rem + 2vw,2.6rem)}
.pf-hero h1{font-size:var(--step-3)}
.pf-hero h1 .highlight{color:var(--lake)}
.pf-hero .hero__sub{max-width:62ch}
.pf-hero .pf-badges{margin:.4rem 0 .8rem}

/* Finder content */
.pf-scope .section{padding-block:clamp(2rem,1.5rem + 2vw,3.2rem)}
:where(.pf-scope) h2{font-size:var(--step-2)}
.pf-scope p,dialog.pf-dialog p{max-width:none}
.pf-shell .pf-card h3 a,.pf-shell .cmp-lock-plans li a{text-decoration:none}
.pf-shell .pf-card h3 a:hover{color:var(--maple)}
/* The Nevada template zeroes every margin; this section's stylesheet leaves the browser's <dd> indent.
   A long word in a key fact wraps inside its box instead of widening the grid past a phone screen. */
.pf-shell .pf-fact{min-width:0}.pf-shell .pf-fact dd{margin:0;overflow-wrap:break-word}

/* Nevada page-level classes the finder markup and plan-finder.js still use */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.pf-shell .form-group{margin-bottom:.9rem}
.pf-shell .form-group label{display:block;font-weight:700;font-size:1rem;margin-bottom:.3rem}
.pf-shell .form-group input,.pf-shell .form-group select,.pf-shell .form-group textarea{width:100%;min-height:var(--tap);padding:.6rem .85rem;font:inherit;font-size:1.05rem;color:var(--ink);background:#fff;border:1.5px solid #b3ad9c;border-radius:var(--radius-sm)}
.pf-shell .form-group input:focus,.pf-shell .form-group select:focus,.pf-shell .form-group textarea:focus{border-color:var(--lake);outline:3px solid var(--focus);outline-offset:1px}
.pf-shell .pf-grid .form-group input,.pf-shell .pf-grid select{min-height:48px}
.pf-shell .form-submit-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:var(--tap);margin-top:.3rem;padding:.7rem 1.5rem;font:700 var(--step-0)/1.1 var(--body);color:#fff;background:var(--lake);border:2px solid transparent;border-radius:999px;box-shadow:var(--shadow-sm);cursor:pointer;transition:background-color .15s ease}
.pf-shell .form-submit-btn:hover{background:var(--lake-dark)}
.pf-shell .form-submit-btn:disabled{opacity:.6;cursor:wait}
.pf-shell .pf-free input,.pf-shell .pf-sig-typed input,.pf-shell .dir-filters select,.pf-shell .cmp-add select{border-color:#b3ad9c;background:#fff;color:var(--ink)}

@media print{
  html.pf-shell{font-size:7.5pt;--pf-rem:1rem}
  .pf-hero h1{font-size:12pt;margin:0}
  .pf-hero .eyebrow.crumb,.pf-hero .hero__sub,.footer-logo,.footer-areas,.footer-net,.enroll-self{display:none!important}
  .pf-hero .hero__inner{padding:0}
  .hero.pf-hero{border:0}
  .site-footer .disclaimer{color:#000;border:none;margin:0;padding:2px 0;font-size:6.5pt}
  .site-footer .disclaimer strong{color:#000}
}
