/* =============================================================================
   GRIT BLUEPRINT - ACCESSIBILITY POLICY PAGE
   Scope: body.gb-accessibility-tpl only.
   Tokens come from the global colors_and_type.css; component classes
   (.dark / .bp-grid / .btn / .btn-pink) come from gb-home.css, with scoped
   fallbacks below in case the live gb-home.css is missing any of them.
   ============================================================================= */

/* ---------- HEADER OFFSET (transparent sticky Elementor header) ------------- */
body.gb-accessibility-tpl { --gb-header-h: 130px; }
@media (max-width:920px){ body.gb-accessibility-tpl { --gb-header-h: 120px; } }
@media (max-width:760px){ body.gb-accessibility-tpl { --gb-header-h: 100px; } }

body.gb-accessibility-tpl #content,
body.gb-accessibility-tpl .site-content { padding-top:0 !important; margin-top:0 !important; }

/* pull the app up under the transparent header so the hero background fills behind it */
body.gb-accessibility-tpl .gb-app {
  margin-top: calc(-1 * var(--gb-header-h)) !important;
  background: var(--gb-paper);
}

/* hero content clears the header; hero background still fills behind it */
body.gb-accessibility-tpl .ap-hero-inner {
  padding-top: calc(var(--gb-header-h) + 32px) !important;
}

/* ---------- HERO MOTION ----------------------------------------------------- */
@keyframes apGlow {
  0%,100% { opacity:.5;  transform:translate(-50%,-50%) scale(1);    }
  50%     { opacity:.72; transform:translate(-50%,-50%) scale(1.06); }
}
@keyframes apFloat {
  0%,100% { transform:translate(0,-50%); }
  50%     { transform:translate(0,-53%); }
}
@media (prefers-reduced-motion:reduce){
  body.gb-accessibility-tpl .pp-pulse { animation:none !important; }
  body.gb-accessibility-tpl .pp-mark  { animation:none !important; }
}

/* ---------- COMPONENT FALLBACKS (foundation-gap insurance) ------------------ */
/* These mirror gb-home.css. Scoped so they cannot bleed, and only assert if the
   live component library is missing them. */
body.gb-accessibility-tpl .dark { background: var(--gb-navy-900); color:#fff; }

body.gb-accessibility-tpl .bp-grid { position: relative; }
body.gb-accessibility-tpl .bp-grid::before {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 38%, rgba(14,30,54,.92) 92%),
    linear-gradient(rgba(83,140,196,.10) 1px,transparent 1px) 0 0/26px 26px,
    linear-gradient(90deg,rgba(83,140,196,.10) 1px,transparent 1px) 0 0/26px 26px,
    linear-gradient(rgba(83,140,196,.22) 1px,transparent 1px) 0 0/104px 104px,
    linear-gradient(90deg,rgba(83,140,196,.22) 1px,transparent 1px) 0 0/104px 104px;
}
body.gb-accessibility-tpl .bp-grid > * { position:relative; z-index:1; }

body.gb-accessibility-tpl .btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-sans); font-weight:700; font-size:14px; letter-spacing:.08em;
  text-transform:uppercase; border:none; border-radius:var(--radius-pill);
  padding:16px 30px; min-height:48px; cursor:pointer; white-space:nowrap;
  text-decoration:none;
  transition:transform var(--dur) var(--ease-out),box-shadow var(--dur) var(--ease-out),background var(--dur),color var(--dur);
}
body.gb-accessibility-tpl .btn svg { width:17px; height:17px; }
body.gb-accessibility-tpl .btn:active { transform:translateY(1px); }
body.gb-accessibility-tpl .btn-pink { background:var(--gb-pink); color:#fff; box-shadow:var(--shadow-pink-glow); }
body.gb-accessibility-tpl .btn-pink:hover { box-shadow:0 16px 40px -10px rgba(255,24,148,.6); transform:translateY(-2px); }
body.gb-accessibility-tpl .btn-pink:active { background:var(--gb-pink-600); }

/* ---------- POLICY TYPOGRAPHY + LAYOUT (pp-* utilities) --------------------- */
body.gb-accessibility-tpl .pp-toc-link:hover { color:var(--gb-navy) !important; }
body.gb-accessibility-tpl .pp-toc-link:hover .pp-toc-num { color:var(--gb-pink) !important; }

body.gb-accessibility-tpl .pp-lead {
  font-family:var(--font-sans); font-size:clamp(17px,1.5vw,19.5px); line-height:1.7;
  color:var(--gb-ink-2); margin:0 0 18px;
}
body.gb-accessibility-tpl .pp-p {
  font-family:var(--font-sans); font-size:17px; line-height:1.78; color:#41526B; margin:0 0 18px;
}
body.gb-accessibility-tpl .pp-p strong { color:var(--gb-navy); font-weight:700; }
body.gb-accessibility-tpl .pp-p a,
body.gb-accessibility-tpl .pp-lead a,
body.gb-accessibility-tpl .pp-li a,
body.gb-accessibility-tpl .pp-addr a {
  color:var(--gb-blue-700); font-weight:600; text-decoration:underline; text-underline-offset:2px;
}
body.gb-accessibility-tpl .pp-p a:hover,
body.gb-accessibility-tpl .pp-lead a:hover,
body.gb-accessibility-tpl .pp-li a:hover,
body.gb-accessibility-tpl .pp-addr a:hover { color:var(--gb-pink); }

body.gb-accessibility-tpl .pp-h3 {
  font-family:var(--font-display); text-transform:uppercase; font-weight:700; font-size:17px;
  letter-spacing:.02em; color:var(--gb-navy); margin:28px 0 12px;
}

body.gb-accessibility-tpl .pp-ul {
  margin:6px 0 22px; padding:0; list-style:none; display:flex; flex-direction:column; gap:10px;
}
body.gb-accessibility-tpl .pp-li {
  position:relative; padding-left:22px; font-family:var(--font-sans); font-size:16.5px;
  line-height:1.62; color:#41526B;
}
body.gb-accessibility-tpl .pp-li::before {
  content:""; position:absolute; left:2px; top:10px; width:6px; height:6px;
  border-radius:50%; background:var(--gb-pink);
}

body.gb-accessibility-tpl .pp-ol {
  margin:6px 0 22px; padding:0; list-style:none; counter-reset:apol;
  display:flex; flex-direction:column; gap:10px;
}
body.gb-accessibility-tpl .pp-ol > li {
  position:relative; padding-left:34px; font-family:var(--font-sans); font-size:16.5px;
  line-height:1.62; color:#41526B; counter-increment:apol;
}
body.gb-accessibility-tpl .pp-ol > li::before {
  content:counter(apol,decimal-leading-zero); position:absolute; left:0; top:1px;
  font-family:var(--font-display); font-weight:700; font-size:13px; letter-spacing:.02em;
  color:var(--gb-pink); min-width:24px;
}

body.gb-accessibility-tpl .pp-sec {
  scroll-margin-top: calc(var(--gb-header-h) + 24px);
  border-top:1px solid var(--gb-line); margin-top:46px; padding-top:46px;
}
body.gb-accessibility-tpl .pp-sec-head { display:flex; align-items:baseline; gap:14px; margin-bottom:16px; }
body.gb-accessibility-tpl .pp-sec-num {
  font-family:var(--font-display); font-weight:700; font-size:15px; letter-spacing:.14em;
  color:var(--gb-pink); flex:none;
}
body.gb-accessibility-tpl .pp-sec-h2 {
  font-family:var(--font-display); font-weight:700; text-transform:uppercase; letter-spacing:.015em;
  line-height:1.02; font-size:clamp(23px,2.8vw,31px); color:var(--gb-navy); margin:0;
}

body.gb-accessibility-tpl .pp-addr {
  font-family:var(--font-sans); font-size:16px; line-height:1.7; color:#41526B; font-style:normal;
}

body.gb-accessibility-tpl .pp-toc::-webkit-scrollbar { width:5px; }
body.gb-accessibility-tpl .pp-toc::-webkit-scrollbar-thumb { background:rgba(24,53,94,.2); border-radius:99px; }

/* sticky TOC clears the transparent Elementor header */
body.gb-accessibility-tpl .pp-toc {
  top: calc(var(--gb-header-h) + 20px) !important;
  max-height: calc(100vh - var(--gb-header-h) - 40px) !important;
}

/* TOC links own their chrome. A foundation `nav a` rule otherwise gives each
   link a full border + background + box-shadow, turning the list into raised
   buttons. Strip top/right/bottom border, bg, shadow, and radius, but DO NOT
   touch border-left: the inline left accent (pink active / faint inactive) and
   the scrollspy JS both drive it. */
body.gb-accessibility-tpl .pp-toc nav a.pp-toc-link {
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  padding: 6px 0 6px 14px !important;
}

/* plain-English callout */
body.gb-accessibility-tpl .ap-callout {
  background:#fff; border:1px solid var(--gb-line); border-left:3px solid var(--gb-pink);
  border-radius:12px; padding:22px 26px; margin:0 0 8px; box-shadow:var(--shadow-card);
}
body.gb-accessibility-tpl .ap-callout .pp-p:last-child { margin-bottom:0; }

/* ---------- RESPONSIVE ------------------------------------------------------ */
@media (max-width:960px){
  body.gb-accessibility-tpl .pp-layout { grid-template-columns:1fr !important; gap:0 !important; }
  body.gb-accessibility-tpl .pp-toc { display:none !important; }
}
