/* Hoodwarts 2026-11 look: midnight green and aged parchment (the owner's ChatGPT brand spec).
   Pages move onto this one at a time; a page that loads it also sets <body data-bar> so account-chip.js draws the new top bar.
   Fonts: Cinzel for page titles, Cormorant Garamond for supporting headings, Inter for everything you read or click. */
:root{
  --night:#141A18;      /* Midnight Charcoal: backgrounds */
  --forest:#253D30;     /* Deep Forest: cards and surfaces */
  --sage:#66836A;       /* Muted Sage: borders and accents */
  --parch:#E4D4B8;      /* Aged Parchment: headlines and icons */
  --gilt:#B49A6C;       /* Antique Gold: secondary highlights */
  --flame:#D9A66C;      /* Candlelight: warm light */
  --ink:#E4D4B8;--ink2:rgba(228,212,184,.74);--ink3:rgba(228,212,184,.52);
  --line:rgba(102,131,106,.55);--line2:rgba(102,131,106,.3);
  --surface:rgba(20,26,24,.82);--surface2:rgba(37,61,48,.42);
  --title:"Cinzel",Georgia,serif;--serif:"Cormorant Garamond",Georgia,serif;--ui:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --bar-h:64px;
  --on:#C9AE7C;--on-bg:rgba(180,154,108,.17);   /* anything switched on or selected: muted gold, so it never melts into the green */
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body[data-bar]{margin:0;min-height:100vh;color:var(--ink);font:15px/1.55 var(--ui);background:var(--night)}
body[data-bar] a{color:var(--parch)}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}

/* ---------- the site bar (built by account-chip.js) ---------- */
.hwbar{position:relative;z-index:40;height:var(--bar-h);display:flex;align-items:center;gap:20px;padding:0 max(20px,calc((100vw - 1240px)/2));
  background:linear-gradient(180deg,rgba(14,19,17,.92),rgba(14,19,17,.66));border-bottom:1px solid var(--line2);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.hwbar .home{display:flex;align-items:center;flex:none;line-height:0}
.hwbar .home img{height:30px;width:auto}
.hwbar .links{display:flex;align-items:stretch;justify-content:center;gap:4px;flex:1;height:100%;margin:0;padding:0;list-style:none}
.hwbar .links>li{position:relative;display:flex}
.hwbar .links>li>a{display:flex;align-items:center;padding:0 14px;color:var(--ink2);text-decoration:none;white-space:nowrap;
  font:500 12.5px/1 var(--ui);letter-spacing:.12em;text-transform:uppercase;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s,border-color .15s}
.hwbar .links>li>a:hover,.hwbar .links>li:focus-within>a{color:var(--parch)}
.hwbar .links>li>a[aria-current=page],.hwbar .links>li.here>a{color:var(--parch);border-bottom-color:var(--on)}
.hwbar .links>li>a.owner{color:var(--gilt);font-style:italic}
/* the smaller pages under a link (Swapagon Alley, Mints FAQ) drop down from it */
.hwbar .sub{position:absolute;top:100%;left:50%;transform:translateX(-50%);min-width:190px;padding:6px;margin-top:1px;border:1px solid var(--line);border-radius:10px;
  background:rgba(18,24,22,.98);box-shadow:0 14px 30px rgba(0,0,0,.55);display:none;flex-direction:column}
.hwbar .links>li:hover .sub,.hwbar .links>li:focus-within .sub{display:flex}
.hwbar .sub a{padding:9px 12px;border-radius:7px;color:var(--ink2);text-decoration:none;font:500 14px/1.2 var(--ui);white-space:nowrap}
.hwbar .sub a:hover,.hwbar .sub a:focus-visible,.hwbar .sub a[aria-current=page]{background:var(--on-bg);color:var(--parch);outline:none}
.hwbar .right{display:flex;align-items:center;gap:10px;flex:none;margin-left:auto}
/* Sign in with X / your picture and handle */
.hwbar .signin{display:inline-flex;align-items:center;gap:9px;height:38px;padding:0 16px 0 12px;border:1px solid var(--sage);border-radius:8px;
  background:rgba(37,61,48,.55);color:var(--parch);text-decoration:none;font:500 13.5px/1 var(--ui);white-space:nowrap;transition:border-color .15s,background .15s}
.hwbar .signin:hover,.hwbar .signin:focus-visible{border-color:var(--gilt);background:rgba(37,61,48,.85);outline:none}
.hwbar .signin svg{width:15px;height:15px;fill:currentColor;flex:none}
.hwbar .signin.me{padding-left:4px}
.hwbar .signin .av{width:30px;height:30px;border-radius:6px;object-fit:cover;flex:none;background:var(--forest);display:inline-flex;align-items:center;justify-content:center;font:600 13px/1 var(--ui)}
.hwbar .env{font:600 10.5px/1 var(--ui);letter-spacing:.1em;padding:4px 7px;border-radius:5px;border:1px solid var(--gilt);color:var(--gilt)}
/* the page's own icon beside its name (pages with <body data-icon>) */
.hwbar .links>li>a .pi{width:28px;height:28px;margin-right:8px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))}
.hwbar .where{display:none;align-items:center;gap:7px;min-width:0;color:var(--parch);text-decoration:none;font:500 12px/1 var(--ui);letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.hwbar .where .wi{position:relative;display:block;width:26px;height:26px;flex:none}.hwbar .where .wi img{display:block;width:26px;height:26px}
.hwbar .where .wi .pf{position:absolute;left:28.8%;top:23.4%;width:42.4%;height:45.6%;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px #141A18}
.hwbar .where.always{display:flex;padding-left:16px;margin-left:4px;border-left:1px solid var(--line2);height:30px}

@media (min-width:981px) and (max-width:1240px){.hwbar .where.always>span:last-child{display:none}}   /* tight laptops: icon only, so the links keep their room */
.hwbar .links{min-width:0}
/* desktop: the two ends share the width equally, so the page links sit on the page's centre (over the landing logo) whether
   the right end holds "Sign in with X" or the smaller account chip (owner, 22 Nov 2026) */
@media (min-width:981px){.hwbar .home,.hwbar .right{flex:1 1 0;min-width:max-content}.hwbar .right{justify-content:flex-end}.hwbar .links{flex:0 1 auto}}
/* the ☰ menu with every page, on every screen size; phones show only the logo, sign in and ☰ */
.hwbar .burger{display:inline-flex;width:40px;height:38px;padding:0;border:1px solid var(--line);border-radius:8px;background:rgba(37,61,48,.4);cursor:pointer;
  flex-direction:column;align-items:center;justify-content:center;gap:4px}
.hwbar .burger i{display:block;width:17px;height:1.5px;border-radius:2px;background:var(--parch);transition:transform .18s,opacity .18s}
.hwbar .burger[aria-expanded=true] i:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.hwbar .burger[aria-expanded=true] i:nth-child(2){opacity:0}
.hwbar .burger[aria-expanded=true] i:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}
.hwdrawer{position:fixed;z-index:99000;   /* above the page, below Privy's windows (999999+) */top:calc(var(--bar-h) + 6px);right:max(10px,calc((100vw - 1240px) / 2));left:10px;max-width:360px;margin-left:auto;padding:8px;border:1px solid var(--line);border-radius:12px;
  background:#121816;box-shadow:0 18px 40px rgba(0,0,0,.6);display:flex;flex-direction:column}
.hwdrawer a{display:block;padding:12px 14px;border-radius:8px;color:var(--parch);text-decoration:none;font:500 13.5px/1.2 var(--ui);letter-spacing:.1em;text-transform:uppercase}
.hwdrawer a.subl{padding:9px 14px 9px 30px;font:500 15px/1.2 var(--ui);letter-spacing:0;text-transform:none;color:var(--ink2)}
.hwdrawer a.owner{color:var(--gilt);font-style:italic}
.hwdrawer a:hover,.hwdrawer a:focus-visible{background:rgba(102,131,106,.16);outline:none}
.hwdrawer a[aria-current=page]{background:var(--on-bg);box-shadow:inset 3px 0 0 var(--on)}
.hwdrawer hr{border:0;border-top:1px solid var(--line2);margin:5px 8px}
@media (max-width:980px){
  .hwbar{gap:10px;padding:0 14px}
  .hwbar .links{display:none}
  .hwbar .where,.hwbar .where.always{display:none}   /* phones and tablets: no page name or icon in the bar (it crowded the STG/PRD tag) */
}
@media (max-width:480px){
  :root{--bar-h:58px}
  .hwbar .home img{height:25px}
  .hwbar .signin{height:36px;padding:0 12px 0 10px;font-size:13px}
  .hwbar .signin .who{display:none}.hwbar .signin.me{padding:0 3px}
}
@media (max-width:360px){.hwbar .signin .long{display:none}}

/* ---------- shared pieces for the pages ---------- */
.hw-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:4px;
  box-shadow:inset 0 0 0 4px rgba(20,26,24,.9),inset 0 0 0 5px var(--line2),0 12px 30px rgba(0,0,0,.45)}
.hw-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 20px;border:1px solid var(--sage);border-radius:6px;
  background:rgba(37,61,48,.7);color:var(--parch);font:500 14px/1 var(--ui);cursor:pointer;text-decoration:none}
.hw-btn:hover{border-color:var(--gilt)}
.hw-divider{display:block;width:min(100%,760px);height:auto;margin:0 auto;opacity:.9}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
