/* Oakvale: Open Sourced (the newsletter): footer and menu links, the sign-up prompt (public/newsletter.js),
   the application receipt note, and the phone-sized Ask Oakvale launcher.
   Linked before button-hover.css, which adds the shared gold hover to .nl-pop-subscribe.
   Self-hosted Chakra Petch (OFL, assets/fonts/chakra-petch-OFL.txt); no remote fetches. */
@font-face{font-family:'Chakra Petch';src:url('/assets/fonts/chakra-petch-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Chakra Petch';src:url('/assets/fonts/chakra-petch-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}

/* Footer and menu links */
.footer-newsletter{margin-top:24px}
.footer-newsletter>p{margin-bottom:4px;text-transform:uppercase}
.footer-newsletter a{display:inline-block;font-size:13px;color:#e8ce8c;border-bottom:1px solid #e8ce8c80;padding-block:4px}
.footer-newsletter a:hover,.footer-newsletter a:focus-visible{color:#fff;border-bottom-color:#fff}
.menu-end a.menu-newsletter{color:#e8ce8c}
.menu-end a.menu-newsletter:hover{color:#fff}

/* Sign-up prompt: a small cream card, bottom-right on desktop, bottom sheet on phones */
.nl-pop-scrim{position:fixed;inset:0;z-index:58;background:#0d1a1229}
.nl-pop{
  --nl-paper:#fcf8ef;--nl-line:#e2dbcb;--nl-ink:#1e2622;--nl-text:#333a35;--nl-gold-text:#765a23;--nl-gold:#b3924a;--nl-green-deep:#1b2a23;
  position:fixed;z-index:60;right:24px;bottom:24px;width:min(380px,calc(100vw - 48px));
  background:var(--nl-paper);color:var(--nl-text);border:1px solid var(--nl-line);border-radius:14px;
  padding:26px 26px 22px;box-shadow:0 18px 50px #0d1a1238,0 2px 8px #0d1a1214;
  font-family:Manrope,Arial,Helvetica,sans-serif;animation:nl-pop-in .4s cubic-bezier(.16,1,.3,1) both}
.nl-pop:focus{outline:none}
.nl-pop:focus-visible{outline:none} /* focus lands on the card itself (tabindex=-1); its controls keep visible rings */
.nl-pop-kicker{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-family:'Chakra Petch',Manrope,Arial,sans-serif;font-weight:600;
  font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--nl-gold-text)}
.nl-pop-leaf{display:inline-block;width:22px;height:15px;background:var(--nl-gold);
  -webkit-mask:url('/assets/oakvale-leaf.svg') center/contain no-repeat;mask:url('/assets/oakvale-leaf.svg') center/contain no-repeat}
.nl-pop h2{margin:0 30px 10px 0;font-family:'Chakra Petch',Manrope,Arial,sans-serif;font-weight:700;font-size:23px;line-height:1.15;
  letter-spacing:-.01em;color:var(--nl-ink);text-wrap:balance}
.nl-pop-body{margin:0 0 20px;font-size:14.5px;line-height:1.6}
.nl-pop-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.nl-pop-subscribe{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 20px;border-radius:999px;
  background:var(--nl-green-deep);color:var(--nl-paper);font-weight:700;font-size:14px;line-height:1.2;text-decoration:none}
.nl-pop-subscribe:focus-visible,.nl-pop-later:focus-visible,.nl-pop-close:focus-visible{outline:2px solid #203c2e;outline-offset:3px}
.nl-pop-later{min-height:44px;padding:8px 2px;border:0;background:none;color:var(--nl-text);font:inherit;font-size:14px;
  text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--nl-gold);cursor:pointer}
.nl-pop-later:hover{color:var(--nl-ink)}
.nl-pop-close{position:absolute;top:10px;right:10px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;
  background:none;color:var(--nl-ink);font:inherit;font-size:24px;line-height:1;cursor:pointer}
.nl-pop-close:hover{background:#efe8d8}
@keyframes nl-pop-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media (max-width:700px){
  .nl-pop{left:0;right:0;bottom:0;width:auto;border-radius:16px 16px 0 0;border-bottom:0;
    padding:24px 22px calc(20px + env(safe-area-inset-bottom,0px));max-height:85svh;overflow:auto}
  .nl-pop h2{font-size:21px}
  .nl-pop-subscribe{flex:1 1 auto}
}
.nl-pop.nl-pop-still{animation:none}
@media (prefers-reduced-motion:reduce){.nl-pop{animation:none}}
html.reduce-motion .nl-pop{animation:none}

/* Keep Ask Oakvale out of the way of the prompt and the menu */
body.nl-pop-open .guide-launch,body.nl-pop-open .guide-panel,
body:has(.menu-overlay:not([hidden])) .guide-launch{visibility:hidden}

/* Phones: Ask Oakvale is a compact round icon tucked into the corner (its text stays its
   accessible name), and it slides out of the way while the visitor reads downwards. */
@media (max-width:700px){
  html body .guide-launch.guide-launch{width:44px;height:44px;min-height:0;padding:0;gap:0;font-size:0;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    right:calc(10px + env(safe-area-inset-right,0px));bottom:calc(10px + env(safe-area-inset-bottom,0px));
    transition:transform .25s ease,opacity .25s ease,visibility 0s linear 0s}
  html body .guide-launch.guide-launch .guide-symbol{font-size:17px}
  html.guide-tucked body .guide-launch.guide-launch[aria-expanded="false"]{transform:translateY(calc(100% + 24px));opacity:0;visibility:hidden;
    transition:transform .25s ease,opacity .25s ease,visibility 0s linear .25s}
  html.reduce-motion body .guide-launch.guide-launch{transition:none}
  html body .guide-panel{bottom:calc(64px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:700px) and (prefers-reduced-motion:reduce){html body .guide-launch.guide-launch{transition:none}}

/* Application receipt: a short Oakvale: Open Sourced note */
.receipt-newsletter{margin:28px 0 0;padding:18px 0 0;border-top:1px solid #d9dccb}
.receipt-newsletter p{margin:0 0 6px;font-weight:700}
.nl-name{white-space:nowrap} /* keep the newsletter name on one line */
.receipt-newsletter a{color:#42653a;text-decoration:underline;text-underline-offset:4px}

/* Never print or bake the prompt into the manifesto PDF */
@media print{.nl-pop,.nl-pop-scrim{display:none!important}}
