/* THE FRAME every Studio page shares (studio/shell.html): the header with its two menus, the footer, the floating WhatsApp
   (reach.css) and the smooth scroll (shell.js). His 11-15: "make the website one single entity instead of different.. but keep
   the studio site like this.. and selling pages like selling pages", and the header and footer as rich as mastheads.app's,
   "a trustable company". The frame carries its own width, colours and type, so it looks the same on the paper pages, the shop
   and the selling pages whatever they bring; the page inside keeps its own look. (11-12: "use the proper header, standard
   beautifull", "cart should be visible clearly on every page".) */
:root{--head:64px;--head-h:calc(var(--head) + env(safe-area-inset-top,0px))}
@media (max-width:719px){:root{--head:56px}}
html:has(.site-head){scroll-padding-top:var(--head-h)}
/* the frame's width: the Studio pages' own margins (theme.css --gl), on every page */
.frame{padding-left:max(16px,5vw,env(safe-area-inset-left,0px));padding-right:max(16px,5vw,env(safe-area-inset-right,0px))}
/* inside our own popup the page is a picture of a document: no header (shell.js marks the frame) */
.framed{--head-h:0px}
.framed .site-head,.framed .foot,.framed .reach{display:none}
@media print{.site-head,.foot,.reach{display:none}}
/* the smooth scroll (Lenis, shell.js) */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}

/* ---------- header: the logo, two menus, the links, the cart and Get a quote; under 1080 px the links fold into a menu ---------- */
/* .site-head, a name no page uses for its own parts (the sample chapters and the sample report have their own .top) */
.site-head{position:fixed;top:0;left:0;right:0;z-index:35;padding-top:env(safe-area-inset-top,0px);background:#F7F4EE;border-bottom:1px solid rgba(31,29,26,.09);color:#1F1D1A;font-family:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
.top-in{height:var(--head);display:flex;align-items:center;gap:clamp(8px,1.2vw,18px)}
/* the logo is the film's last frame on the home (index.html .film-logo carries it here): keep the two the same */
.logo{display:flex;align-items:center;gap:12px;flex:none;margin-right:auto;text-decoration:none;color:#1F1D1A}
.logo img{width:auto;height:26px;display:block}
.logo span{position:relative;top:4px;font-size:11px;line-height:1;letter-spacing:.26em;text-transform:uppercase;color:#4F4B45}
/* the links are the phone's menu too (.nav.open, shell.js): on a wide screen they sit in the bar */
.nav{display:flex;align-items:center;gap:2px;position:static;inset:auto;width:auto;height:auto;margin:0;padding:0;border:0;background:none;color:inherit;overflow:visible}
.nav>a,.nav-drop{display:inline-flex;align-items:center;gap:4px;padding:8px 12px;border:0;border-radius:8px;background:none;font:inherit;font-size:15px;font-weight:500;line-height:1.2;color:#4F4B45;text-decoration:none;white-space:nowrap;cursor:pointer;transition:color .2s,background-color .2s}
.nav>a:hover,.nav-drop:hover{color:#1F1D1A;background:rgba(31,29,26,.05);text-decoration:none}
.nav>a[aria-current]{color:#1F1D1A;text-decoration:underline 2px #B14F25;text-underline-offset:9px}
.nav-chev{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.nav-drop[aria-expanded="true"]{color:#1F1D1A;background:rgba(31,29,26,.05)}
.nav-drop[aria-expanded="true"] .nav-chev{transform:rotate(180deg)}
/* a menu: under its name (shell.js sets --x), every item its name and one line, two columns. It is the header's own, not a
   popover: the top layer would sit over everything, the pen cursor of the paper pages too (his 11-16: "cursor is behind
   dropdown"); here the pen (z-index 300) stays above it */
.nav-panel{position:fixed;top:calc(var(--head-h) + 6px);left:var(--x,16px);margin:0;width:min(600px,calc(100vw - 32px));padding:10px;border:1px solid rgba(31,29,26,.12);border-radius:16px;background:#FCFAF8;color:#1F1D1A;box-shadow:0 1px 0 rgba(222,215,204,.6),0 30px 60px -30px rgba(31,29,26,.5);display:grid;grid-template-columns:1fr 1fr;gap:2px}
.nav-panel[hidden]{display:none}
.nav-panel a{display:block;padding:12px 14px;border-radius:10px;color:#1F1D1A;text-decoration:none;transition:background-color .2s}
.nav-panel a:hover{background:rgba(31,29,26,.05)}
.nav-panel a[aria-current]{background:rgba(177,79,37,.07)}
.nav-panel b{display:block;font-size:15px;font-weight:600;line-height:1.3}
.nav-panel small{display:block;margin-top:3px;font-size:13.5px;line-height:1.4;color:#6A655D}
.nav-app{margin-left:6px;border:1px solid rgba(43,62,107,.35)!important;border-radius:999px!important;color:#2B3E6B!important}
.nav-cart{position:relative;flex:none;display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px 0 13px;border-radius:999px;border:1px solid rgba(31,29,26,.16);background:#fff;color:#1F1D1A;font-size:15px;font-weight:500;text-decoration:none;box-shadow:0 1px 2px rgba(20,21,23,.06);transition:border-color .2s,box-shadow .2s}
.nav-cart:hover{border-color:rgba(31,29,26,.34);box-shadow:0 4px 12px -6px rgba(20,21,23,.3);text-decoration:none}
.nav-cart svg,.nav-menu svg{width:21px;height:21px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-cart b{position:absolute;top:-7px;right:-7px;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#B14F25;color:#fff;font:600 12px/21px "Geist",ui-sans-serif,system-ui,sans-serif;text-align:center;box-shadow:0 0 0 2px #F7F4EE}
.nav-cta{flex:none;display:inline-flex;align-items:center;height:42px;padding:0 18px;border-radius:10px;background:#1F1D1A;color:#F7F4EE;font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap;box-shadow:0 8px 18px -12px rgba(31,29,26,.7);transition:background-color .2s,transform .2s}
.nav-cta:hover{background:#2B3E6B;transform:translateY(-1px);text-decoration:none}
/* the Studio's button colours, theme.css's: ink black, the stamp's blue on hover (his 11-16: "studio had blue colours and black
   colours buttons"; the amber came with mastheads.app's header). A page that sells its own product (body[data-sell]: the
   website check, the dentists' page, the guides) has its own buy button, no Get a quote ("which are not needed") */
[data-sell] .nav-cta{display:none}
.nav-menu{display:none}
@media (max-width:1079px){
  .nav-cart{width:42px;padding:0;justify-content:center}
  .nav-cart span{display:none}
  .nav-menu{display:grid;place-items:center;flex:none;width:42px;height:42px;margin:0;padding:0;border:0;border-radius:999px;background:transparent;color:#1F1D1A;cursor:pointer}
  .nav-menu:hover{background:rgba(31,29,26,.06)}
  /* the menu drops from under the header, every group open in it; a tap outside, a link or Esc closes it (shell.js). The header's
     own, not a popover: the top layer hid the pen cursor (his 11-16 on the home, phone: "curser hidden if pressed menu") */
  .nav{display:none}
  .nav.open{position:fixed;inset:var(--head-h) 0 auto;width:auto;height:auto;max-height:calc(100dvh - var(--head-h));overflow-y:auto;margin:0;padding:6px max(16px,5vw,env(safe-area-inset-left,0px)) 16px;display:grid;gap:0;border:0;border-bottom:1px solid rgba(31,29,26,.12);background:#F7F4EE;box-shadow:0 24px 40px -24px rgba(31,29,26,.35);color:#1F1D1A}
  .nav.open .nav-drop{pointer-events:none;padding:18px 4px 6px;font-family:"Geist Mono",ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#7A756C}
  .nav.open .nav-chev{display:none}
  .nav.open .nav-panel{display:grid!important;grid-template-columns:1fr;position:static;width:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none} /* every group open in the phone menu, whatever its [hidden] */
  .nav.open .nav-panel a{padding:10px 4px;border-radius:0}
  .nav.open>a{padding:14px 4px;border-radius:0;font-size:17px;border-top:1px solid rgba(31,29,26,.08)}
  .nav.open>a[aria-current]{text-underline-offset:6px}
  .nav.open .nav-app{margin:14px 0 0;justify-content:center;border-top:1px solid rgba(43,62,107,.35)!important}
}
@media (max-width:719px){.logo span{display:none}.nav-cta{height:40px;padding:0 14px;font-size:14px}}

/* ---------- footer: the company and every page of ours, in columns (his 11-15, mastheads.app's footer: "this is what rich
   footer looks like"); the copyright centred under it (founder 2026-10-20: "copyright must be in centre") ---------- */
.foot{border-top:1px solid rgba(31,29,26,.1);background:#F7F4EE;color:#2B2925;padding-block:72px calc(88px + env(safe-area-inset-bottom,0px));font-family:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
.foot-in{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(4,minmax(0,1fr));gap:40px 32px;align-items:start}
.foot-brand .logo{margin:0;width:max-content}
.foot-line{margin:18px 0 0;max-width:34ch;font-size:15px;line-height:1.6;color:#5A5650}
.foot-reach{display:grid;gap:4px;margin:16px 0 0;font-size:14.5px}
.foot-reach a,.foot-col a{color:#3B3833;text-decoration:none;transition:color .2s}
.foot-reach a:hover,.foot-col a:hover{color:#1F1D1A;text-decoration:underline 1px #B14F25;text-underline-offset:4px}
.foot-social{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 0;max-width:220px}
.foot-social a{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(31,29,26,.14);border-radius:50%;background:#FCFAF8;transition:border-color .2s,transform .2s}
.foot-social a:hover{border-color:rgba(31,29,26,.34);transform:translateY(-1px)}
.foot-social img{display:block;width:24px;height:24px}
.foot-col{display:grid;align-content:start;gap:2px}
.foot-h{margin:0 0 12px;font-family:"Geist Mono",ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#7A756C}
.foot-col a{padding:5px 0;font-size:15px}
.foot-base{margin-top:56px}
.foot-base .foot-small{padding-top:24px;border-top:1px solid rgba(31,29,26,.1);text-align:center}
.foot-small{margin:0;font-family:"Geist Mono",ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:#7A756C}
@media (max-width:1079px){.foot-in{grid-template-columns:repeat(2,minmax(0,1fr))}.foot-brand{grid-column:1/-1}}
@media (max-width:420px){.foot{padding-top:52px}.foot-in{gap:32px 20px}}

/* ---------- the cart, where the visitor is (shell.js): from the right on a laptop, from the bottom on a phone; under the pen cursor's
   z-index (300), over the header (35) ---------- */
.cart-back{position:fixed;inset:0;z-index:59;background:rgba(31,29,26,.38)}
.cart-panel{position:fixed;z-index:60;top:0;right:0;bottom:0;width:min(420px,100vw);display:flex;flex-direction:column;background:#F7F4EE;color:#1F1D1A;font-family:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;box-shadow:-24px 0 48px -24px rgba(31,29,26,.45);outline:none}
.cart-panel[hidden],.cart-back[hidden],.cart-foot[hidden]{display:none}
.cart-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(14px + env(safe-area-inset-top,0px)) 20px 14px;border-bottom:1px solid rgba(31,29,26,.1)}
.cart-panel h2{margin:0;font-size:19px;font-weight:600;letter-spacing:-.01em}
.cart-x,.cart-drop{display:grid;place-items:center;border-radius:50%;cursor:pointer;color:#4F4B45;transition:background-color .2s,color .2s}
.cart-x{width:40px;height:40px;border:1px solid rgba(31,29,26,.16);background:#fff}
.cart-drop{width:32px;height:32px;border:0;background:none}
.cart-x:hover,.cart-drop:hover{background:rgba(31,29,26,.06);color:#1F1D1A}
.cart-x svg,.cart-drop svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.cart-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:6px 20px 20px}
.cart-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto 32px;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid rgba(31,29,26,.08)}
.cart-art{display:block;width:54px;height:72px;object-fit:cover;border-radius:6px;box-shadow:0 6px 14px -8px rgba(31,29,26,.5)}
.cart-doc{display:grid;place-items:center;background:#2B3E6B;color:#fff}.cart-doc svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6}
.cart-row b{display:block;font-size:15px;font-weight:600;line-height:1.3}
.cart-row small{display:block;margin-top:3px;font-size:13px;color:#6A655D}
.cart-pay{font-size:15px;font-weight:600;text-align:right;white-space:nowrap}
.cart-pay s{display:block;font-size:12.5px;font-weight:400;color:#8E897F}
.cart-empty{margin:28px 0 16px;font-size:16px;color:#3B3833}
.cart-empty a{color:#2B3E6B}
.cart-wait{margin:28px 0;color:#6A655D}
.cart-shelf,.cart-go{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 24px;border-radius:10px;background:#1F1D1A;color:#F7F4EE;font-size:15px;font-weight:600;text-decoration:none;transition:background-color .2s}
.cart-shelf:hover,.cart-go:hover{background:#2B3E6B;text-decoration:none}
.cart-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(31,29,26,.1);background:#FCFAF8}
.cart-foot p{margin:0;display:grid}
.cart-foot p span{font-size:13px;color:#6A655D}
.cart-total{font-size:22px;letter-spacing:-.01em}
.cart-saved{font-size:13px;color:#1B7A44}
html.cart-open{overflow:hidden}
@media (max-width:719px){.cart-panel{top:auto;left:0;width:auto;max-height:85dvh;border-radius:20px 20px 0 0;box-shadow:0 -24px 48px -24px rgba(31,29,26,.45)}}

/* ---------- save and share (shell.js): the buttons and the notice a tap leaves, on the shelf and a guide's page ---------- */
.acts{display:flex;gap:6px}
.act{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid rgba(31,29,26,.12);border-radius:50%;background:rgba(255,255,255,.95);box-shadow:0 2px 6px rgba(20,18,15,.14);color:#3B3D42;cursor:pointer;transition:transform .14s var(--ease)}
.act:active{transform:scale(.88)}
.act svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.act[aria-pressed=true]{color:#C0412F;border-color:rgba(192,65,47,.35)}
.act[aria-pressed=true] svg{fill:currentColor}
.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:200;transform:translateX(-50%);width:max-content;max-width:min(92vw,440px);margin:0;padding:10px 16px;border-radius:10px;background:#1F1D1A;color:#fff;font:500 13.5px/1.35 "Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-align:center;box-shadow:0 10px 30px -10px rgba(20,18,15,.5)}
.toast[hidden]{display:none}
.cart-sum{margin:14px 0 0}.cart-sum div{display:flex;justify-content:space-between;gap:12px;font-size:15px;font-weight:600;color:#1B7A44}.cart-sum dt,.cart-sum dd{margin:0}
