/* The live site's furniture on the paper theme: the site links in the header, the phone menu,
   the footer, and the enquiry chat (its markup is built in app.js). Loaded after every page's
   own sheets. */
:root{--grad:linear-gradient(140deg,var(--teal-d),var(--blue));--mint:#dff5ee}

/* header: site links beside the page's own shortcut */
header nav.site a{display:inline-block}
header nav.site a.on{color:var(--ink);box-shadow:inset 0 -2px 0 var(--teal)}
header nav.site a:hover{color:var(--ink)}
.mnav{display:none;position:relative}
.mnav summary{list-style:none;cursor:pointer;width:40px;height:40px;display:grid;place-items:center;border-radius:99px;background:var(--card);box-shadow:var(--shadow);font-size:19px}
.mnav summary::-webkit-details-marker{display:none}
.mnav .msheet{position:absolute;right:0;top:48px;min-width:220px;padding:8px;background:var(--card);border-radius:16px;box-shadow:var(--shadow);display:flex;flex-direction:column}
.mnav .msheet a{text-decoration:none;font-weight:700;padding:10px 14px;border-radius:10px}
.mnav .msheet a:hover{background:var(--paper)}
/* a film's chapter rail used to stand in for the header links; the site links stay */
@media (min-width:1180px) and (min-height:560px){header nav.site a{display:inline-block}}
@media (max-width:1060px){header nav.site{display:none}.mnav{display:block}}
@media (max-width:760px){header nav.site a{display:none}header .btn{display:none}}

/* footer */
.site-foot{background:var(--ink);color:rgba(255,255,255,.72);font-size:14.5px;padding:48px clamp(16px,4vw,40px) 26px;text-align:left}
.site-foot .fgrid{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:2fr repeat(4,1fr);gap:28px}
.site-foot .brand{color:#fff;margin:0 0 12px}
.site-foot p{margin:0 0 10px;max-width:42ch}
.site-foot h5{font:600 12px var(--disp);letter-spacing:.14em;text-transform:uppercase;color:#fff;margin:4px 0 12px}
.site-foot .fgrid > div:not(.fabout) a{display:block;text-decoration:none;padding:4px 0}
.site-foot a:hover{color:#fff}
.site-foot .fsocial a{margin-right:14px}
.site-foot .fbar{max-width:1180px;margin:34px auto 0;padding-top:18px;border-top:1px solid rgba(255,255,255,.14);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px}
main{padding-left:0}
@media (min-width:1180px) and (min-height:560px){.rail ~ main{padding-left:var(--rail)}}
@media (max-width:860px){.site-foot .fgrid{grid-template-columns:1fr 1fr}.site-foot .fabout{grid-column:1/-1}}

/* enquiry chat (copied from bloom.css; markup in app.js) */
.chat-fab{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:9px;font:600 14px var(--disp);color:#fff;background:var(--grad);border:0;border-radius:999px;padding:13px 20px;cursor:pointer;box-shadow:0 10px 28px rgba(30,111,190,.32);transition:transform .14s ease,box-shadow .14s ease}
.chat-fab:hover{transform:translateY(-1px);box-shadow:0 14px 34px rgba(30,111,190,.4)}
.chat-fab-i{width:17px;height:17px;flex:none;background:currentColor;border-radius:50% 50% 50% 3px}
body.chat-open .chat-fab{display:none}
.chat-panel{position:fixed;right:20px;bottom:20px;z-index:61;width:370px;max-width:calc(100vw - 40px);height:540px;max-height:calc(100vh - 40px);display:flex;flex-direction:column;overflow:hidden;background:var(--card);border-radius:22px;box-shadow:0 24px 60px rgba(30,44,76,.22)}
.chat-panel[hidden]{display:none}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;background:var(--grad);color:#fff}
.chat-head strong{display:block;font-family:var(--disp);font-size:15px}
.chat-head span{font-size:12px;color:rgba(255,255,255,.82)}
.chat-head-btns{display:flex;align-items:center;gap:10px;flex:none}
.chat-x{font:inherit;font-size:22px;line-height:1;color:#fff;background:none;border:0;padding:0 2px;cursor:pointer;opacity:.8}
.chat-x:hover{opacity:1}
.chat-restart{font:inherit;font-size:11.5px;font-weight:600;line-height:1;white-space:nowrap;color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:6px 11px;cursor:pointer}
.chat-restart:hover{background:rgba(255,255,255,.26)}
.chat-restart[hidden]{display:none}
.chat-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:9px}
.chat-msg{max-width:84%;font-size:13.5px;line-height:1.55;padding:10px 14px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-msg.bot{align-self:flex-start;color:var(--ink);background:#fff;border:1px solid var(--line);border-bottom-left-radius:6px}
.chat-msg.me{align-self:flex-end;color:#fff;background:var(--ink);border-bottom-right-radius:6px}
.chat-chips{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 4px}
.chat-chip{font:inherit;font-size:12.5px;font-weight:600;color:var(--teal-d);background:#fff;border:1px solid rgba(43,191,161,.45);border-radius:999px;padding:7px 13px;cursor:pointer}
.chat-chip:hover{color:var(--ink);background:var(--mint)}
.chat-input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line);background:rgba(255,255,255,.6)}
.chat-input[hidden]{display:none}
.chat-input input{flex:1;min-width:0;font:inherit;font-size:14px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 16px;outline:0}
.chat-input input:focus{border-color:var(--teal)}
.chat-input button{flex:none;width:42px;font-size:17px;color:#fff;background:var(--grad);border:0;border-radius:999px;cursor:pointer}
/* on a phone the dock owns the bottom edge, so the chat button sits above it */
@media (max-width:760px){
  /* just the bubble: the full pill covered a line of copy on every page */
  .chat-fab{right:14px;bottom:calc(var(--bar) + 12px);width:50px;height:50px;padding:0;justify-content:center}
  .chat-fab-i{width:20px;height:20px}
  .chat-fab span:not(.chat-fab-i){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}
@media (max-width:480px){.chat-panel{right:0;bottom:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}}

/* a one-card page (thanks) */
.note-page{min-height:calc(100svh - var(--head) - 200px);display:grid;place-items:center;padding:56px 16px}
.note-page section{max-width:620px;background:var(--card);box-shadow:var(--shadow);border-radius:22px;padding:clamp(24px,5vw,44px)}
.note-page h1{font-size:clamp(30px,5vw,44px);margin:10px 0 14px}
.note-page .cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}

/* an inline link inside copy (bloom.css had it; the feature bullets use it) */
.text-link{color:var(--teal-d);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.text-link:hover{color:var(--ink)}
