/* ePORTS site shell — ONE header and ONE footer on every page (final pre-deploy review, 21 Oct 2026).
   Self-contained and prefixed (.ep-*) so it sits safely on both stylesheets: workbench.css (new pages) and
   resources.css (resource hubs + calculators). Written by scripts/site_shell.py; do not hand-edit page copies.
   Decided by the panel (site/r1, r1grok): dark ink-green bar that reads as one block with the hero; 26px logo with
   the red-orange e; one marigold button "Browse the books"; menu News · Free resources · Start here; sticky;
   on phones the links fold into a no-JS <details> Menu. Contrast: links #C9D9D4 on #16302D 9.6:1; button text
   #16302D on #E8742C 6.1:1; logo e #E6472C on #16302D 3.6:1 (26px/800 = large text, and logos are exempt). */
.ep-skip{position:absolute;left:-999px;top:0;z-index:60;background:#FFFDF8;color:#16302D;padding:.6rem 1rem;font:600 .95rem/1 "Inter",system-ui,sans-serif}
.ep-skip:focus{left:1rem;top:1rem}
.ep-head{position:sticky;top:0;z-index:50;background:#16302D;color:#F5F2EA;border-bottom:1px solid #24443F;font-family:"Inter",system-ui,sans-serif}
.ep-head .ep-wrap,.ep-foot .ep-wrap,.ep-fb .ep-wrap{max-width:72rem;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.ep-head .ep-wrap{display:flex;align-items:center;gap:1.4rem;min-height:68px}
.ep-mark{font:800 1.62rem/1 "Inter",system-ui,sans-serif;letter-spacing:-.03em;color:#F5F2EA;text-decoration:none;white-space:nowrap}
.ep-mark i{font-style:normal;color:#E6472C}
/* Logo lockup (the founder, 23 Oct 2026; panel r4 chose it 3 of 3): "your ecom source." sits tight under the wordmark,
   inside the same link, on every page, so the slogan reads as part of the logo, the way video ads will say it.
   Lowercase in mist (#C9D9D4, 9.6:1 on the bar) so it never competes with the wordmark or the menu. */
.ep-head .ep-lockup{display:grid;gap:4px;line-height:1}
.ep-head .ep-tag{font:600 .8rem/1 "Inter",system-ui,sans-serif;letter-spacing:.01em;color:#C9D9D4;padding-left:2px;white-space:nowrap}
@media (max-width:760px){.ep-head .ep-tag{font-size:.74rem}}

.ep-nav{display:flex;gap:1.4rem;margin-left:auto}
.ep-nav a,.ep-menu nav a{color:#C9D9D4;text-decoration:none;font:600 .95rem/1.2 "Inter",system-ui,sans-serif}
.ep-nav a:hover,.ep-nav a[aria-current]{color:#FFFDF8;text-decoration:underline;text-decoration-color:#E8742C;text-decoration-thickness:2px;text-underline-offset:.3em}
.ep-cta{display:inline-flex;align-items:center;min-height:44px;padding:0 1.05rem;border-radius:10px;background:#E8742C;color:#16302D;font:700 .95rem/1 "Inter",system-ui,sans-serif;text-decoration:none;white-space:nowrap;box-shadow:0 2px 0 #B85A1F}
.ep-cta:hover{background:#F08A45}
.ep-menu{display:none}
.ep-head a:focus-visible,.ep-menu summary:focus-visible,.ep-foot a:focus-visible{outline:3px solid #F2A65A;outline-offset:3px;border-radius:4px}
@media (max-width:760px){
  .ep-head .ep-wrap{min-height:58px;gap:.7rem}
  .ep-mark{font-size:1.38rem}
  .ep-nav{display:none}
  .ep-cta{margin-left:auto;min-height:40px;padding:0 .8rem;font-size:.88rem}
  .ep-menu{display:block;position:static}
  /* Menu reads as a button (Femi, 27 Oct 2026): hamburger + "Menu" inside a cream outline; open = filled cream, icon becomes an X */
  .ep-menu summary{list-style:none;cursor:pointer;color:#F5F2EA;font:600 .92rem/1 "Inter",system-ui,sans-serif;min-height:40px;padding:0 .7rem;
    display:flex;align-items:center;gap:.45rem;border:1.5px solid #F5F2EA;border-radius:10px;white-space:nowrap}
  .ep-menu summary::-webkit-details-marker{display:none}
  .ep-menu summary:hover{background:rgba(245,242,234,.12)}
  .ep-menu[open] summary{background:#F5F2EA;color:#16302D}
  .ep-burger{display:inline-grid;gap:3px;width:16px}
  .ep-burger i{display:block;height:2px;border-radius:2px;background:currentColor;transition:transform .15s,opacity .15s}
  .ep-menu[open] .ep-burger i:nth-child(1){transform:translateY(5px) rotate(45deg)}
  .ep-menu[open] .ep-burger i:nth-child(2){opacity:0}
  .ep-menu[open] .ep-burger i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}
  .ep-menu nav{position:absolute;left:0;right:0;top:100%;background:#16302D;border-bottom:1px solid #24443F;display:grid;padding:.4rem 16px 1rem}
  .ep-menu nav a{padding:.8rem 0;border-top:1px solid #24443F;font-size:1rem}
}
.ep-foot{background:#16302D;color:#C9D9D4;font:400 .95rem/1.6 "Inter",system-ui,sans-serif;padding:2.2rem 0 2.6rem;margin-top:3rem}
.ep-foot .ep-mark{font-size:1.15rem}
.ep-foot a{color:#F5F2EA}
.ep-foot .ep-row{display:flex;flex-wrap:wrap;gap:.8rem 2rem;align-items:center;justify-content:space-between}
.ep-foot nav{display:flex;flex-wrap:wrap;gap:.4rem 1.3rem}
.ep-foot .ep-related{margin:0 0 1.2rem;font-size:.9rem;color:#C9D9D4}
.ep-foot .ep-social{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;margin:1rem 0 0;font-size:.9rem}
.ep-foot .ep-social span{color:#C9D9D4}
.ep-foot .ep-legal{margin:1.2rem 0 0;font-size:.85rem;max-width:66ch;color:#C9D9D4}
/* "Was this page useful?" box above the footer (30 Oct 2026; scripts/site_shell.py feedback(), assets/feedback.js) */
.ep-fb[hidden],.ep-fb [hidden]{display:none!important}
.ep-fb{background:#EFEADD;color:#16302D;font:400 .95rem/1.5 "Inter",system-ui,sans-serif;padding:1.4rem 0;margin-top:3rem;border-top:1px solid #DDD5C2}
.ep-fb:not([hidden]) + .ep-foot{margin-top:0}
.ep-fb .ep-fb-ask{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}
.ep-fb .ep-fb-h{margin:0 .6rem 0 0;font-weight:600;font-size:1rem}
.ep-fb-more .ep-fb-h,.ep-fb-done .ep-fb-h{margin:0 0 .6rem}
.ep-fb button{font:600 .95rem/1 "Inter",system-ui,sans-serif;min-height:44px;padding:0 1.1rem;border-radius:999px;border:2px solid #16302D;background:#16302D;color:#F5F2EA;cursor:pointer}
.ep-fb button[data-fb="no"]{background:transparent;color:#16302D}
.ep-fb button.ep-fb-link{background:none;border-color:transparent;color:#16302D;text-decoration:underline;padding:0 .4rem}
.ep-fb a{color:#16302D;font-weight:600}
.ep-fb .ep-fb-join{margin-left:.5rem;font-weight:600}
.ep-fb label{display:block;margin:0 0 .4rem}
.ep-fb textarea{display:block;box-sizing:border-box;width:100%;max-width:40rem;font:400 1rem/1.4 "Inter",system-ui,sans-serif;padding:.6rem .7rem;border:1.5px solid #8A9A94;border-radius:8px;background:#FFF;color:#16302D}
.ep-fb .ep-fb-note{margin:.4rem 0 .8rem;font-size:.85rem;color:#3D5752}
.ep-fb button:focus-visible,.ep-fb a:focus-visible,.ep-fb textarea:focus-visible{outline:3px solid #B5651D;outline-offset:2px}
/* Fading cream rule (the founder, 22 Oct 2026; panel GPT + Gemini, Grok dissented): only on pages that open with the dark
   hero, where it reads as a deliberate edge; on light pages it looked like a grey gap, so they keep the plain border.
   Inset 1px above the border so dark green sits beneath it; the logo's cream, fading out by 72%. Decorative only. */
body:has(main > .wb-hero:first-child) .ep-head::after{content:"";position:absolute;left:0;right:0;bottom:1px;height:2px;
  background:linear-gradient(90deg,#F5F2EA 0%,rgba(245,242,234,.8) 30%,rgba(245,242,234,0) 72%);pointer-events:none}
@media print{.ep-head::after{display:none}.ep-head{position:static}.ep-head,.ep-foot{background:none;color:#000}.ep-cta,.ep-menu,.ep-skip,.ep-fb{display:none}}
/* the narrowest phones (320-380px): the row overflowed by 9px even before the lockup; tighten so nothing scrolls sideways */
@media (max-width:380px){.ep-head .ep-wrap{gap:.45rem}.ep-head .ep-mark{font-size:1.22rem}.ep-head .ep-tag{font-size:.66rem}
  .ep-cta{padding:0 .6rem;font-size:.8rem}.ep-menu summary{font-size:.85rem;padding:0 .5rem;gap:.35rem}}
/* 320-350px phones: the outlined Menu button is wider than the old text link, so squeeze the row a little more */
@media (max-width:350px){.ep-head .ep-wrap{gap:.3rem}.ep-head .ep-mark{font-size:1.1rem}.ep-head .ep-tag{font-size:.6rem}
  .ep-cta{padding:0 .45rem;font-size:.76rem}.ep-menu summary{padding:0 .4rem;gap:.3rem;font-size:.8rem}.ep-burger{width:14px}}
