/* HeyMyPDF v5.11 — cohesive finishing layer.
   Deliberately scoped to surfaces, typography, focus, scrollbars and footer.
   No positioning/height overrides for the navigation or functional editor. */
:root {
  --polish-navy:#182e61;
  --polish-ink:#294675;
  --polish-muted:#526b92;
  --polish-blue:#386dff;
  --polish-lavender:#8370ed;
  --polish-rule:#dce6f7;
  --polish-shadow:0 12px 34px rgba(42,76,147,.075);
}
html {scrollbar-width:thin;scrollbar-color:#9bb5e2 #f3f7ff;}
/* Polished but visible scroll handles in panels and across the site. */
body,body * {scrollbar-width:thin;scrollbar-color:#a8bee7 transparent;}
::-webkit-scrollbar {width:9px;height:9px;}
::-webkit-scrollbar-track {background:transparent;border-radius:12px;}
::-webkit-scrollbar-thumb {background:linear-gradient(180deg,#b0c5ef,#91a9dd);border:2px solid transparent;background-clip:padding-box;border-radius:15px;}
::-webkit-scrollbar-thumb:hover {background:#7797d5;border:2px solid transparent;background-clip:padding-box;}
::-webkit-scrollbar-corner {background:transparent;}
body {background:linear-gradient(145deg,#f9fbff 0%,#f5f8ff 55%,#f8f7ff 100%)!important;color:var(--polish-navy);}
/* Consistent, gentle emphasis on real controls without changing their logic. */
:where(.hm-card,.hm-tool-card,.hm-category,.hm-directory-group,.hm-groups-summary,.bt-studio,.pc-workspace,.pc-v5-settings,.compression-card,.related-pill,.faq-grid article) {
  border-color:var(--polish-rule)!important;
  box-shadow:var(--polish-shadow);
}
:where(.hm-card,.hm-tool-card,.hm-category,.hm-directory-group,.bt-studio,.pc-workspace,.pc-v5-settings) {
  background-color:#fff;
}
:where(.hm-card,.hm-tool-card,.hm-category,.related-pill,.hm-directory-group) {
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease,background-color .2s ease;
}
@media (hover:hover){
  :where(.hm-card,.hm-tool-card,.hm-category,.related-pill,.hm-directory-group):hover {
    border-color:#bfd1fa!important;
    box-shadow:0 16px 34px rgba(50,82,154,.13)!important;
    transform:translateY(-2px);
  }
}
.hm-home-hero {isolation:isolate;position:relative;}
.hm-home-hero::before {content:"";pointer-events:none;position:absolute;z-index:-1;inset:3% -1% auto 18%;height:80%;
 background:radial-gradient(ellipse at 28% 40%,rgba(226,239,255,.47),transparent 50%),radial-gradient(ellipse at 82% 42%,rgba(231,224,255,.48),transparent 55%);}
.hm-v5-benefits>div {border-color:#dce8fa!important;border-radius:16px!important;
 background:linear-gradient(155deg,rgba(255,255,255,.97),rgba(247,249,255,.92))!important;
 box-shadow:0 6px 18px rgba(58,87,143,.055);}
.hm-v5-hero-privacy,.hm-privacy-banner,.bt-privacy,.pc-privacy {box-shadow:0 9px 26px rgba(45,92,146,.07)!important;}
/* PDF editor: mild polish only; leave preview sizing and controls in their tested geometry. */
.hm-editor-route .pc-workspace {border-radius:19px!important;box-shadow:0 13px 40px rgba(46,83,154,.09)!important;}
.hm-editor-route .pc-v5-settings {border-radius:16px!important;box-shadow:0 6px 20px rgba(36,65,128,.05)!important;}
.hm-editor-route .pc-v5-empty {background:radial-gradient(ellipse at 45% 0%,#eaf2ff 0%,#f5f9ff 70%,#f9faff 100%)!important;}
.hm-editor-route .pc-v5-empty-art {border:1px solid #e3eaff;box-shadow:0 11px 25px rgba(83,114,207,.14)!important;}
.hm-editor-route .pc-tools {scrollbar-color:#a9bee9 transparent;}
:where(.bt-upload,.pc-drop,.compression-drop) {transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease;}
:where(.bt-upload,.pc-drop,.compression-drop):hover {border-color:#8eaef0!important;box-shadow:0 3px 18px rgba(76,115,195,.07)!important;}
:where(.bt-options input:not([type=checkbox]),.bt-options select,.bt-options textarea,.pc-panel input,.pc-panel select,.pc-panel textarea) {border-radius:10px;transition:border-color .18s ease,box-shadow .18s ease;}
:where(.bt-options input:not([type=checkbox]),.bt-options select,.bt-options textarea,.pc-panel input,.pc-panel select,.pc-panel textarea):focus-visible {border-color:#6e99ed!important;box-shadow:0 0 0 4px rgba(69,115,235,.13)!important;}
@media(hover:hover) {
  :where(.hm-cta,.btn.primary,.bt-run.primary,.compression-submit):not(:disabled):hover {filter:brightness(1.025);box-shadow:0 10px 22px rgba(40,90,235,.21)!important;}
}
/* FOOTER — airy periwinkle with dark, fully readable text. Explicit specificity
   intentionally overrides old readability-focus-v57.css white-on-dark rules. */
footer.footer {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:linear-gradient(112deg,#e8f1ff 0%,#e4edff 55%,#eae6ff 100%)!important;
  border-top:1px solid #cdddf9!important;
  color:#203963!important;
  padding:54px max(25px,calc((100% - 1190px)/2)) 22px!important;
  margin-top:36px!important;
}
footer.footer::before {content:"";position:absolute;z-index:-1;pointer-events:none;width:420px;height:420px;right:-125px;top:-280px;border-radius:50%;background:radial-gradient(circle,rgba(178,173,246,.33),transparent 70%);}
footer.footer .footer-top {display:grid;grid-template-columns:minmax(250px,1.5fr) repeat(2,minmax(130px,1fr));gap:clamp(25px,4.5vw,82px)!important;align-items:start;}
footer.footer .footer-top>div {min-width:0;}
footer.footer .footer-top .brand,
footer.footer .footer-top a.brand,
footer.footer .footer-top .brand-strong {font-size:26px!important;line-height:1.3!important;font-weight:850!important;color:#193770!important;letter-spacing:-.8px;}
footer.footer .footer-top a.brand {min-height:36px;}
footer.footer .footer-top .brand-dot{color:#7267e8!important;}
footer.footer .footer-top p{max-width:305px;margin:14px 0 0;font-size:15px!important;line-height:1.75!important;color:#405a82!important;}
footer.footer .footer-top>div:not(:first-child){display:flex;flex-direction:column;gap:7px!important;}
footer.footer .footer-top strong,
footer.footer .footer-top b{display:block;margin-bottom:10px;font-size:15px!important;line-height:1.5!important;color:#1e3769!important;letter-spacing:.01em;}
footer.footer .footer-top>div:not(:first-child) a{display:inline-flex;align-items:center;align-self:flex-start;min-height:37px;padding:5px 2px;font-size:15px!important;line-height:1.55!important;color:#375682!important;transition:color .16s ease,transform .16s ease;}
footer.footer .footer-top>div:not(:first-child) a:hover{color:#315bf1!important;text-decoration:underline;text-underline-offset:4px;transform:translateX(2px);}
footer.footer .foot-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px 35px;flex-wrap:wrap;border-top:1px solid #c1d2f1!important;padding-top:20px;margin-top:34px;color:#445e84!important;}
footer.footer .foot-bottom span,
footer.footer .foot-bottom a,
footer.footer .foot-bottom{font-size:13px!important;line-height:1.55!important;color:#445e84!important;}
footer.footer a:focus-visible{outline:3px solid #537cea!important;outline-offset:4px;border-radius:4px;}
@media(max-width:760px){
 footer.footer{padding:39px 23px 23px!important;margin-top:24px!important;}
 footer.footer .footer-top{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 19px!important;}
 footer.footer .footer-top>div:first-child{grid-column:1/-1!important;}
 footer.footer .foot-bottom{align-items:flex-start;flex-direction:column;margin-top:24px;padding-top:17px;}
}
@media(max-width:420px){
 footer.footer .footer-top{gap:20px 12px!important;}
 footer.footer .footer-top>div:not(:first-child) a{font-size:14px!important;}
}
@media(prefers-reduced-motion:reduce){
 :where(.hm-card,.hm-tool-card,.hm-category,.related-pill,.hm-directory-group,.bt-upload,.pc-drop,.compression-drop,footer.footer a){transition:none!important;transform:none!important;}
}
