/* The page of a site made from PDFs (lib/pdf-site.js). --bg and --ink are set
   by the page: the color the owner chose, and black or white to read on it. */
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-text-size-adjust:100%}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}

/* The strip with the logo and the name, and the tabs of the documents. */
#top{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 16px 10px;font-size:19px;font-weight:700;line-height:1.2;text-align:center}
#top img{height:44px;max-width:160px;object-fit:contain;border-radius:6px;flex:none}
/* The tabs of the documents: one strip, the open one filled. They stay on top
   while the sheets go by. */
#tabs{position:sticky;top:0;z-index:5;display:flex;padding:8px 12px 10px;background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
#tabs .track{display:flex;gap:2px;max-width:100%;margin:0 auto;padding:4px;border-radius:14px;background:color-mix(in srgb,var(--ink) 9%,transparent);overflow-x:auto;scrollbar-width:none}
#tabs .track::-webkit-scrollbar{display:none}
#tabs a{flex:none;padding:9px 18px;border-radius:10px;color:color-mix(in srgb,var(--ink) 72%,transparent);font-size:15px;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap;transition:background .15s,color .15s}
#tabs a:hover{color:var(--ink)}
#tabs a.on{background:var(--ink);color:var(--bg);box-shadow:0 1px 3px rgba(0,0,0,.18)}
#tabs a:focus-visible,#contact a:focus-visible,#get:focus-visible{outline:2px solid #6db3ff;outline-offset:2px}

/* The button that downloads the PDF. */
#get{position:fixed;left:14px;bottom:14px;z-index:6;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:999px;background:rgba(20,20,23,.88);color:#fff;font-size:14px;font-weight:600;text-decoration:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 2px 10px rgba(0,0,0,.2)}
#get svg{width:16px;height:16px}

/* The sheets, one under the other. */
#pages{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:10px;overflow-x:auto;padding-bottom:96px}
.page{position:relative;flex:none;margin:0 auto;background:#fff;overflow:hidden}
.page canvas{display:block;width:100%;height:100%}
.page a{position:absolute;display:block}
@media (min-width:1140px){#pages{gap:16px}.page{box-shadow:0 1px 4px rgba(0,0,0,.16)}}

#note{margin:0;padding:30vh 24px 0;text-align:center;font-size:16px;opacity:.75}
#note[hidden]{display:none}
#note a{color:inherit;font-weight:700}

/* WhatsApp, call, how to get there. */
#contact{position:fixed;right:14px;bottom:14px;z-index:6;display:flex;flex-direction:column;gap:10px}
#contact a{display:grid;place-items:center;width:52px;height:52px;border-radius:999px;background:#17171a;color:#fff;box-shadow:0 3px 12px rgba(0,0,0,.28)}
#contact a.wa{background:#25d366}
#contact svg{width:26px;height:26px}

/* What the sheets say: read by search engines and screen readers, not shown. */
#words{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

@media print{#get,#contact,#tabs{display:none}}
