/* PDFnook site shell: the one header and footer on every page (tool pages and public/ pages).
   Pages keep their own content styles; nothing else may style .topbar, .topnav or .site-footer.
   Palette (also in src/style.css): teal #0A7F6E, deep teal #075E52, mint #DDF2EA, ink #10212B,
   paper #FFFAF2, amber #F2B33D, coral #E8735A. */
@font-face{font-family:Manrope;src:url('/fonts/manrope-400.woff2?v=a30ddcd349') format('woff2');font-weight:400 800;font-display:swap}
:root{--shell-ink:#10212B;--shell-ink-2:#3B4A57;--shell-line:#E3E8EE;--shell-accent:#0A7F6E;--shell-accent-dk:#075E52;--shell-soft:#DDF2EA;--shell-deep:#10212B;--r-card:14px;--r-pill:999px}
html{scroll-padding-top:84px}

.topbar{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.94);-webkit-backdrop-filter:saturate(1.4) blur(10px);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--shell-line);font-family:Manrope,sans-serif}
.topbar-in{max-width:1240px;margin:0 auto;padding:0 clamp(16px,3vw,32px);min-height:64px;display:flex;align-items:center;gap:28px}
.brand{display:inline-flex;align-items:center;gap:10px;flex:none;min-height:44px;color:var(--shell-ink);text-decoration:none;font-weight:800;font-size:21px;letter-spacing:-.03em}
.brand svg{width:32px;height:32px;flex:none}
.brand b{color:var(--shell-accent);font-weight:800}
.topnav{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:2px}
.topnav a,.topnav button{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 12px;border:1px solid transparent;border-radius:10px;background:none;color:var(--shell-ink-2);font:600 17px/1.3 Manrope,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
.topnav a:hover,.topnav button:hover{background:#F2F5F7;color:var(--shell-ink)}
.topnav a[aria-current=page]{background:var(--shell-soft);color:var(--shell-accent-dk)}
.topnav a:focus-visible,.topnav button:focus-visible,.brand:focus-visible,.menu-btn:focus-visible{outline:3px solid #F2B33D;outline-offset:2px}
.topnav .verify{margin-left:auto;color:var(--shell-accent-dk);font-size:14.5px}
.topnav .verify svg{width:17px;height:17px;flex:none}
.topnav .account{border-color:var(--shell-line);color:var(--shell-ink);background:#fff;min-height:42px;padding:0 16px}
.topnav .account[hidden]{display:none}
.menu-btn{display:none}

.site-footer{background:var(--shell-deep);color:#AFC0CA;font-family:Manrope,sans-serif}
.footer-in{max-width:1240px;margin:0 auto;padding:56px clamp(16px,3vw,32px) 84px;display:grid;grid-template-columns:1.4fr repeat(4,minmax(0,1fr));gap:32px;align-items:start;font-size:15px}
.account-in-header .footer-in{padding-bottom:40px}
.footer-about .brand{color:#fff}.footer-about .brand b{color:#5AD1BD}
.footer-note{margin:14px 0 0;max-width:30ch;color:#AFC0CA;font-size:14.5px;line-height:1.6}
.footer-col{display:flex;flex-direction:column;align-items:flex-start}
.footer-h{margin:4px 0 8px;color:#fff;font-size:14px;font-weight:700;letter-spacing:.02em}
.site-footer a{display:inline-flex;align-items:center;min-height:36px;color:#AFC0CA;text-decoration:none;text-underline-offset:3px}
.site-footer a:hover{color:#fff;text-decoration:underline}
.site-footer a:focus-visible{outline:3px solid #F2B33D;outline-offset:2px}
.site-footer .tw-xlinks,.site-footer .tw-related{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:0 20px;align-items:center;margin:0;padding:16px 0 0;border-top:1px solid rgba(255,255,255,.14);font-size:14px}

@media (max-width:1060px){
  .topnav a,.topnav button{padding:0 9px;font-size:16px}
  .footer-in{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footer-about{grid-column:1/-1}
}
/* Phones: a Menu button opens the links as a sheet under the bar (the header script adds .has-menu).
   Without the script the links stay in one row that scrolls sideways, so nothing is lost. */
@media (max-width:1000px){
  html{scroll-padding-top:72px}
  .topbar-in{min-height:58px;gap:12px}
  .brand{font-size:19px}.brand svg{width:30px;height:30px}
  .topnav{overflow-x:auto;scrollbar-width:none}
  .topnav::-webkit-scrollbar{display:none}
  .has-menu .menu-btn{display:inline-flex;align-items:center;gap:8px;margin-left:auto;min-height:42px;padding:0 14px;border:1px solid var(--shell-line);border-radius:10px;background:#fff;color:var(--shell-ink);font:700 15px/1 Manrope,sans-serif;cursor:pointer}
  .menu-btn svg{width:20px;height:20px}
  .has-menu .topnav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:2px;padding:8px clamp(16px,3vw,32px) 16px;background:#fff;border-bottom:1px solid var(--shell-line);box-shadow:0 18px 30px -24px rgba(16,33,43,.5);overflow:visible}
  .has-menu.open .topnav{display:flex}
  .has-menu .topnav a,.has-menu .topnav button{min-height:48px;font-size:16px;padding:0 12px}
  .has-menu .topnav .verify{margin-left:0}
  .has-menu .topnav .account{justify-content:center;margin-top:6px}
  .footer-in{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;padding-top:44px}
}
@media print{.topbar{position:static}.topnav,.menu-btn{display:none}}

/* Account stays visible outside the mobile navigation sheet. */
.account-wrap{position:relative;flex:none;width:88px}
.topbar .account{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:88px;min-height:44px;padding:0 8px;border:1px solid var(--shell-line);border-radius:10px;background:#fff;color:var(--shell-ink);font:650 15px/1.2 Manrope,sans-serif;white-space:nowrap;cursor:pointer}
.topbar .account.is-member{border-color:transparent;background:transparent}
.topbar .account:hover,.topbar .account[aria-expanded=true]{background:var(--shell-soft)}
.topbar .account:focus-visible,.account-menu button:focus-visible{outline:3px solid #F2B33D;outline-offset:2px}
.account-avatar,.account-menu-avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#0A7F6E;color:#fff;font:650 17px/1 Manrope,sans-serif;flex:none}
.account-avatar svg,.account-menu-avatar svg{width:21px;height:21px}
.account-chevron{display:inline-flex}.account-chevron svg{width:16px;height:16px}
.account[aria-expanded=true] .account-chevron{transform:rotate(180deg)}
.account-menu{position:absolute;right:0;top:calc(100% + 12px);width:min(304px,calc(100vw - 32px));padding:8px;border:1px solid var(--shell-line);border-radius:16px;background:#fff;box-shadow:0 12px 40px #10212b1f;color:var(--shell-ink);font:500 14px/1.5 Manrope,sans-serif}
.account-menu[hidden]{display:none}
.account-summary{display:flex;align-items:center;gap:12px;padding:14px 10px}
.account-summary>div{min-width:0}.account-summary strong{display:block;font-size:15px}.account-email{display:block;overflow:hidden;text-overflow:ellipsis;color:var(--shell-ink-2);font-size:13px}
.account-plan{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 8px 8px;padding:12px 0;border-top:1px solid var(--shell-line);border-bottom:1px solid var(--shell-line)}
.account-plan span{padding:3px 8px;border-radius:6px;background:var(--shell-soft);color:var(--shell-accent-dk);font-size:12px;font-weight:700}.account-plan small{color:var(--shell-ink-2);font-size:11px}
.account-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:8px;background:#fff;color:var(--shell-ink);font:600 14px/1.4 Manrope,sans-serif;text-align:left;cursor:pointer}
.account-menu button:hover{background:#F2F5F7}.account-menu .account-signout{color:#A33323}.account-signout svg{width:18px;height:18px}
@media(max-width:1000px){.account-wrap{order:1;margin-left:auto}.topbar-in>.account{order:1;margin-left:auto}.topbar .menu-btn{order:2;margin-left:0}.topbar .account{width:64px}.account-wrap{width:64px}.topbar .account:not(.is-member){font-size:14px;padding:0 4px}.account-menu{position:fixed;right:16px;top:66px}.has-menu .topnav{order:3}}
@media(max-width:540px){.has-menu .menu-btn{font-size:0;gap:0;padding:0 10px}.has-menu .menu-btn svg{width:20px;height:20px}.topbar-in{gap:8px}}
@media print{.account-wrap,.topbar>.account,.topbar-in>.account{display:none}}
