/* Greenhead policies page layout (policies.html only). Loaded after style.css, pages.css and policies.css.
   Layout: green hero, contents cards, numbered clause cards, sticky side list on desktop,
   a floating 'Contents' button on phones, and a CTA. Wording and anchors are untouched (see tools/build_policies_hub.py). */

/* Hero */
.gh-policies .pol-top .hero-copy{max-width:780px}
.gh-policies .pol-top h1 span:not(.h1k){color:#9debc1}
.gh-policies .pol-top .lead a{color:#ffffff;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.gh-policies .pol-top .btn-row{margin-top:24px}
.gh-policies .pol-top a.btn.pol-download{background:#ffffff;color:#065837;border-color:#ffffff}
.gh-policies .pol-top a.btn.pol-download:hover{background:#e9fbea;color:#05372c;border-color:#e9fbea}

/* Contents cards */
.gh-policies .pol-index{padding:56px 0 48px}
.gh-policies .pol-index .eyebrow{color:#087b44}
.gh-policies .pol-index h2{color:#05372c}
.gh-policies .pol-index h2 em{color:#098949}
.gh-policies .pol-ix{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.gh-policies .pol-ix a{display:flex;align-items:center;gap:14px;height:100%;box-sizing:border-box;padding:16px 18px;background:#ffffff;border:2px solid #daf2e6;border-radius:18px;color:#05372c;text-decoration:none;font-family:"Fredoka",sans-serif;font-weight:600;font-size:18px;line-height:1.25;box-shadow:0 6px 16px rgba(5,55,44,.05);transition:border-color .2s,transform .2s}
.gh-policies .pol-ix a:hover{border-color:#2bb673;transform:translateY(-2px)}
.gh-policies .pol-ix a:focus-visible{outline:3px solid #065837;outline-offset:2px}
.gh-policies .pol-ix-num{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#098949;color:#ffffff;font-family:"Anton",sans-serif;font-size:19px;box-shadow:0 4px 0 #065837}

/* Policies band */
.gh-policies .pol-band{background:#e9fbea;padding:48px 0 96px}
.gh-policies .pol-side{border-color:#daf2e6}
.gh-policies .pol-policy{border-color:#daf2e6;padding:0 0 22px;overflow:hidden}
.gh-policies .pol-policy-hd{background:#065837;padding:24px 28px 20px;margin:0 0 22px;border-bottom:5px solid #2bb673}
.gh-policies .pol-policy-hd .pol-kicker{color:#9debc1}
.gh-policies .pol-policy-hd h2{color:#ffffff}
.gh-policies .pol-policy-hd .pol-meta{color:#e9fbea}
.gh-policies .pol-text{padding:0 28px}

/* Section headings and numbered clause cards */
.gh-policies .pol-sec{padding:0 0 10px;margin:0 0 14px}
.gh-policies .pol-sec h3{color:#065837;padding:0 0 8px;border-bottom:2px solid #e9fbea;margin:6px 0 14px}
.gh-policies .pol-part{background:#e9fbea}
.gh-policies .pol-cl{max-width:none;background:#f5fdf6;border:1px solid #daf2e6;border-radius:14px;padding:12px 16px;margin:0 0 10px;grid-template-columns:3.4em minmax(0,1fr)}
.gh-policies .pol-cl b{display:inline-grid;place-items:center;align-self:start;min-width:2.6em;height:1.9em;padding:0 .4em;box-sizing:border-box;border-radius:999px;background:#ffffff;border:2px solid #a8d5ba;color:#065837;font-size:15px;line-height:1}
.gh-policies .pol-cl .pol-cl{background:#ffffff}
.gh-policies .pol-p,.gh-policies .pol-bul,.gh-policies .pol-box,.gh-policies .pol-field{max-width:none}

/* Floating 'Contents' button: phones and tablets only, after scrolling past the contents */
.gh-policies .pol-back{display:none}
@media (max-width:900px){
  .gh-policies .pol-back{display:inline-flex;align-items:center;gap:8px;position:fixed;left:16px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:60;padding:11px 18px;border-radius:999px;background:#065837;color:#ffffff;font-family:"Fredoka",sans-serif;font-weight:600;font-size:16px;text-decoration:none;box-shadow:0 8px 20px rgba(5,55,44,.3);opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .25s,transform .25s}
  .gh-policies .pol-back::before{content:"";width:9px;height:9px;border-left:2px solid currentColor;border-top:2px solid currentColor;transform:translateY(2px) rotate(45deg)}
  .gh-policies .pol-back.show{opacity:1;transform:none;pointer-events:auto}
  .gh-policies .pol-back[hidden]{display:none}
  .gh-policies .pol-ix{grid-template-columns:1fr 1fr}
  .gh-policies .pol-policy:first-of-type{margin-top:0}
}
@media (max-width:640px){
  .gh-policies .pol-index{padding:40px 0 32px}
  .gh-policies .pol-ix{grid-template-columns:1fr;gap:10px}
  .gh-policies .pol-ix a{font-size:17px;padding:12px 14px}
  .gh-policies .pol-band{padding:28px 0 72px}
  .gh-policies .pol-policy{padding:0 0 14px}
  .gh-policies .pol-policy-hd{padding:18px 16px 16px}
  .gh-policies .pol-text{padding:0 14px}
  .gh-policies .pol-cl{padding:10px 12px;grid-template-columns:3em minmax(0,1fr);gap:0 8px}
  .gh-policies .pol-cl b{font-size:14px;min-width:2.4em}
}
@media (prefers-reduced-motion:reduce){.gh-policies .pol-back,.gh-policies .pol-ix a{transition:none}}

/* CTA links */
.gh-policies .cta p a{color:inherit;font-weight:700;text-decoration:underline}
