/* pill-nav.css -- Floating pill navigation (ZeBeyond-style) for AcreetionOS.
   Replaces the retired sidebar/hamburger drawer mechanism wholesale.
   Paired with pill-nav.js. Loaded by every page of the site. */
:root{
  --pill-green:#2ecc71; --pill-green-hi:#4be389;
  --pill-glass:rgba(16,24,19,.78); --pill-glass2:rgba(18,28,22,.96);
  --pill-line:rgba(46,204,113,.25); --pill-ink:#f2f5f2; --pill-muted:#9fb3a6;
}
/* room for the fixed header */
body{ padding-top:96px; }
@media (max-width:940px){ body{ padding-top:84px; } }
@media (prefers-reduced-motion: reduce){
  .pill-top, .pill-top-in, .pill-nav, .pill-dd-menu, .pill-mobile-panel{ transition:none !important; }
}

.pill-top{ position:fixed; top:0; left:0; right:0; z-index:1200;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif; }
.pill-top-in{ max-width:1400px; margin:0 auto; padding:14px 22px; display:grid;
  grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; transition:padding .3s ease; }
.pill-top.scrolled .pill-top-in{ padding-top:8px; padding-bottom:8px; }
.pill-wordmark{ color:var(--pill-ink); text-decoration:none; font-weight:700; font-size:1.12rem;
  letter-spacing:.2px; justify-self:start; display:flex; align-items:center; gap:.55rem; white-space:nowrap; }
.pill-wordmark b{ color:var(--pill-green); }
.pill-wordmark:hover{ text-decoration:none; }
.pill-logo{ height:34px; width:34px; border-radius:8px; }
.pill-wordmark:focus-visible, .pill-nav a:focus-visible, .pill-dd-btn:focus-visible,
.pill-cta:focus-visible, .pill-icon-btn:focus-visible, .pill-mobile-panel a:focus-visible,
#why-bubble:focus-visible, #why-popover a:focus-visible, #why-close:focus-visible{
  outline:2px solid var(--pill-green-hi); outline-offset:2px; }

.pill-nav{ justify-self:center; display:flex; align-items:center; gap:2px; padding:5px;
  background:var(--pill-glass); border:1px solid var(--pill-line); border-radius:999px;
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  box-shadow:0 10px 34px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .3s ease, box-shadow .3s ease, background .3s ease; }
.pill-top.scrolled .pill-nav{ transform:scale(.96); background:var(--pill-glass2);
  box-shadow:0 16px 44px rgba(0,0,0,.6), 0 0 0 1px rgba(46,204,113,.08), inset 0 1px 0 rgba(255,255,255,.05); }
.pill-nav > a, .pill-dd-btn{ color:var(--pill-ink); text-decoration:none; font-size:.92rem; line-height:1.2;
  padding:9px 13px; border-radius:999px; white-space:nowrap; min-height:44px;
  display:inline-flex; align-items:center; }
.pill-nav > a:hover, .pill-dd-btn:hover{ background:rgba(46,204,113,.13); text-decoration:none; }
.pill-dd{ position:relative; }
.pill-dd-btn{ background:none; border:0; cursor:pointer; font:inherit; gap:6px; }
.pill-dd-btn .pill-chev{ font-size:.62rem; color:var(--pill-green); transition:transform .25s; }
.pill-dd.open .pill-dd-btn .pill-chev{ transform:rotate(180deg); }
.pill-dd-menu{ position:absolute; top:calc(100% + 12px); left:50%; transform:translate(-50%,6px); min-width:236px;
  background:var(--pill-glass2); border:1px solid var(--pill-line); border-radius:16px; padding:8px;
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  box-shadow:0 24px 60px rgba(0,0,0,.55); opacity:0; visibility:hidden;
  transition:opacity .22s, transform .22s, visibility 0s .22s; z-index:1210; }
.pill-dd.open .pill-dd-menu{ opacity:1; visibility:visible; transform:translate(-50%,0); transition:opacity .22s, transform .22s; }
.pill-dd-menu a{ display:block; color:var(--pill-ink); text-decoration:none; font-size:.92rem;
  padding:9px 12px; border-radius:9px; min-height:44px; }
.pill-dd-menu a:hover{ background:rgba(46,204,113,.13); color:var(--pill-green-hi); }
.pill-dd-menu a span{ display:block; font-size:.76rem; color:var(--pill-muted); }

.pill-actions{ justify-self:end; display:flex; align-items:center; gap:10px; }
.pill-icon-btn{ width:44px; height:44px; border-radius:999px; display:flex; align-items:center; justify-content:center;
  background:var(--pill-glass); border:1px solid var(--pill-line); color:var(--pill-ink); cursor:pointer;
  font-size:1rem; text-decoration:none; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.pill-icon-btn:hover{ border-color:var(--pill-green); color:var(--pill-green-hi); text-decoration:none; }
.pill-cta{ background:var(--pill-green); color:#07130b; font-weight:700; text-decoration:none; font-size:.92rem;
  padding:11px 18px; border-radius:999px; box-shadow:0 8px 26px rgba(46,204,113,.35); white-space:nowrap;
  min-height:44px; display:inline-flex; align-items:center; }
.pill-cta:hover{ background:var(--pill-green-hi); text-decoration:none; }
.pill-menu-btn{ display:none; }

.pill-mobile-panel{ display:none; margin:2px 14px 0; background:rgba(13,20,16,.985);
  border:1px solid var(--pill-line); border-radius:18px; padding:8px 16px 16px;
  backdrop-filter:blur(18px); box-shadow:0 24px 60px rgba(0,0,0,.55);
  max-height:calc(100vh - 110px); overflow-y:auto; }
.pill-mobile-panel.open{ display:block; }
.pill-mobile-panel h3{ margin:14px 0 4px; font-size:.7rem; text-transform:uppercase;
  letter-spacing:.14em; color:var(--pill-muted); font-weight:700; }
.pill-mobile-panel a{ display:block; color:var(--pill-ink); text-decoration:none; padding:10px 0;
  font-size:1.02rem; border-bottom:1px solid rgba(255,255,255,.05); min-height:44px; }

@media (max-width:940px){
  .pill-nav{ display:none; }
  .pill-actions .pill-status-ic{ display:none; }
  .pill-menu-btn{ display:flex; }
  .pill-top-in{ grid-template-columns:1fr auto; padding:12px 14px; }
}
/* Mid range (incl. 200% zoom on a 1920 screen = 960 CSS px): tighten the pill
   so wordmark + pill + actions still fit on one centered row. */
@media (min-width:941px) and (max-width:1150px){
  .pill-actions .pill-status-ic{ display:none; }
  .pill-nav > a, .pill-dd-btn{ padding:8px 9px; font-size:.87rem; }
  .pill-top-in{ gap:10px; padding-left:14px; padding-right:14px; }
  .pill-wordmark{ font-size:1.02rem; }
  .pill-logo{ height:30px; width:30px; }
  .pill-cta{ padding:10px 14px; font-size:.88rem; }
}

/* ---------- "Why the redesign?" bubble + popover ---------- */
#why-bubble{ position:fixed; right:18px; bottom:18px; z-index:1600; width:44px; height:44px; border-radius:50%;
  background:var(--pill-glass2); color:var(--pill-green-hi); border:1px solid var(--pill-line);
  font-size:1.15rem; font-weight:700; cursor:pointer; box-shadow:0 10px 30px rgba(0,0,0,.5);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); line-height:1; }
#why-bubble:hover{ border-color:var(--pill-green); color:#fff; }
#why-popover{ position:fixed; right:18px; bottom:74px; z-index:1601; width:min(362px, calc(100vw - 36px));
  max-height:min(72vh, 600px); overflow-y:auto;
  background:rgba(15,23,18,.985); border:1px solid var(--pill-line); border-radius:16px;
  box-shadow:0 24px 60px rgba(0,0,0,.6); padding:18px 18px 14px; color:var(--pill-ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif; }
#why-popover[hidden]{ display:none; }
#why-popover h2{ margin:0 26px 8px 0; font-size:1.02rem; color:var(--pill-ink); }
#why-popover p{ margin:0 0 9px; font-size:.9rem; line-height:1.55; color:#cfdccf; }
#why-popover a{ color:var(--pill-green); }
#why-close{ position:absolute; top:8px; right:8px; width:36px; height:36px; border-radius:50%;
  background:none; border:0; color:var(--pill-muted); font-size:1.15rem; cursor:pointer; line-height:1; }
#why-close:hover{ color:#fff; background:rgba(46,204,113,.13); }

/* Footer styling formerly carried by the retired sidebar.css (footer only --
   no drawer rules). Keeps .page-footer looking as it did. */
.page-footer{text-align:center;padding:2rem;margin-top:3rem;border-top:1px solid var(--acreetion-box-border,#333);color:#999;font-size:.85rem}
.page-footer p{color:#999;margin-bottom:.5rem;line-height:1.6}
.page-footer a{color:var(--acreetion-green,#2ecc71);text-decoration:underline;text-underline-offset:3px}
.page-footer a:hover{text-decoration-thickness:2px}
.page-footer strong{color:#bbb}
