/* QuickDoc Pro - shared site styles (header, footer, banner, buttons, loading, trust, FAQ).
   Palette: navy #0A2463, teal #00A6A6, gold #D4AF37. Loaded AFTER each page's own CSS. */
:root{--qd-navy:#0A2463;--qd-navy-dark:#08183d;--qd-teal:#00A6A6;--qd-teal-dark:#008a8a;--qd-gold:#D4AF37;
  --qd-light:#F8FAFC;--qd-dark:#1E293B;--qd-grey:#E2E8F0;--qd-muted:#64748B;--qd-ok:#0F7B4B;--qd-err:#B42318;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
img,svg,video{max-width:100%;height:auto}
table{max-width:100%}
.qd-container{width:92%;max-width:1200px;margin:0 auto}
.qd-skip{position:absolute;left:-9999px;top:0;background:var(--qd-navy);color:#fff;padding:.75rem 1rem;z-index:10000}
.qd-skip:focus{left:8px;top:8px}
:focus-visible{outline:3px solid var(--qd-gold);outline-offset:2px}

/* ---------- header ---------- */
.qd-header{position:sticky;top:0;z-index:1000;background:#fff;padding:0;border-bottom:1px solid var(--qd-grey);box-shadow:0 2px 10px rgba(10,36,99,.05);margin:0}
.qd-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:68px}
.qd-logo{display:block;flex:0 0 auto;line-height:0}
.qd-logo img{height:45px;width:auto;display:block}
.qd-nav{display:flex;align-items:center;gap:1.5rem}
.qd-nav a{color:var(--qd-navy);font-weight:600;text-decoration:none;padding:.5rem 0;border-bottom:2px solid transparent}
.qd-nav a:hover,.qd-nav a[aria-current="page"]{color:var(--qd-teal);border-bottom-color:var(--qd-teal)}
.qd-nav a.qd-cta{background:var(--qd-teal);color:#fff;padding:.6rem 1.1rem;border-radius:8px;border-bottom:0}
.qd-nav a.qd-cta:hover{background:var(--qd-teal-dark);color:#fff}
.qd-nav a.qd-email{font-weight:500;font-size:.9rem;color:var(--qd-muted)}
.qd-toggle{display:none;background:none;border:1px solid var(--qd-grey);border-radius:8px;width:48px;height:44px;cursor:pointer;padding:0;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.qd-toggle span{display:block;width:22px;height:2px;background:var(--qd-navy);border-radius:2px}
@media(max-width:900px){
  .qd-toggle{display:flex}
  .qd-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;flex-direction:column;align-items:stretch;gap:0;padding:.5rem 4%;border-bottom:1px solid var(--qd-grey);box-shadow:0 12px 24px rgba(10,36,99,.12)}
  .qd-nav.is-open{display:flex}
  .qd-nav a{padding:.95rem .25rem;min-height:48px;border-bottom:1px solid var(--qd-grey);display:flex;align-items:center}
  .qd-nav a.qd-cta{margin:.75rem 0;justify-content:center;border-radius:8px}
}

/* ---------- breadcrumb ---------- */
.qd-breadcrumb{background:var(--qd-light);border-bottom:1px solid var(--qd-grey);font-size:.9rem;padding:.6rem 0;margin:0}
.qd-breadcrumb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.35rem}
.qd-breadcrumb li+li::before{content:"/";color:var(--qd-muted);margin-right:.35rem}
.qd-breadcrumb a{color:var(--qd-navy);text-decoration:none}
.qd-breadcrumb a:hover{color:var(--qd-teal);text-decoration:underline}
.qd-breadcrumb [aria-current]{color:var(--qd-muted)}

/* ---------- footer ---------- */
.qd-footer{background:var(--qd-navy-dark);color:#cbd5e1;padding:3rem 0 1.5rem;margin:0;border:0;font-size:.95rem}
.qd-footer a{color:#cbd5e1;text-decoration:none}
.qd-footer a:hover{color:var(--qd-teal);text-decoration:underline}
.qd-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem}
.qd-footer h4{color:var(--qd-gold);margin:0 0 .9rem;font-size:1rem}
.qd-footer ul{list-style:none;margin:0;padding:0}
.qd-footer li{margin:0 0 .5rem}
.qd-footer li a{display:inline-block;padding:.15rem 0}
.qd-footer p{margin:0 0 .6rem;line-height:1.6}
.qd-footer-bottom{margin-top:2rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.12);font-size:.85rem;color:#94a3b8;display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;justify-content:space-between}
@media(max-width:800px){.qd-footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.qd-footer-grid{grid-template-columns:1fr}}

/* ---------- buttons, cards, forms (consistent across pages) ---------- */
a.btn,button.btn,.btn{min-height:44px;border-radius:8px;transition:background-color .2s,transform .2s,box-shadow .2s,color .2s}
.btn:hover{transform:translateY(-1px)}
.btn[disabled],.btn.is-loading{opacity:.85;cursor:progress;transform:none;pointer-events:none}
.card,.template-card,.bundle-card,.pricing-card,.blog-card,.service-card{transition:transform .2s,box-shadow .2s}
.card:hover,.template-card:hover,.bundle-card:hover,.pricing-card:hover,.blog-card:hover,.service-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(10,36,99,.14)}
input,select,textarea,button{font-family:inherit}
@media(max-width:700px){input,select,textarea{font-size:16px!important}}
@media(max-width:600px){.btn{width:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ---------- loading state ---------- */
.qd-spinner{display:inline-block;width:1em;height:1em;border:2px solid rgba(255,255,255,.55);border-top-color:#fff;border-radius:50%;margin-right:.55em;vertical-align:-.15em;animation:qd-spin .7s linear infinite}
@keyframes qd-spin{to{transform:rotate(360deg)}}

/* ---------- messages ---------- */
.qd-alert{border-radius:10px;padding:1rem 1.25rem;font-weight:600;margin:1rem 0;border:1px solid transparent}
.qd-alert-success{background:#ECFDF3;color:var(--qd-ok);border-color:#ABEFC6}
.qd-alert-error{background:#FEF3F2;color:var(--qd-err);border-color:#FECDCA}
.qd-empty{text-align:center;color:var(--qd-muted);padding:2.5rem 1rem;border:1px dashed var(--qd-grey);border-radius:12px;background:var(--qd-light)}

/* ---------- trust ---------- */
.qd-trust-row{display:flex;flex-wrap:wrap;gap:.6rem 1.25rem;justify-content:center;margin:1rem 0 0;color:var(--qd-muted);font-size:.9rem}
.qd-trust-row span{display:inline-flex;align-items:center;gap:.4rem}
.qd-trust-row svg{width:18px;height:18px;flex:0 0 auto}
.qd-stripe-badge{display:inline-flex;align-items:center;gap:.5rem;border:1px solid var(--qd-grey);border-radius:999px;padding:.35rem .9rem;background:#fff;font-weight:600;color:var(--qd-navy);font-size:.9rem}
.qd-included{background:var(--qd-light);border:1px solid var(--qd-grey);border-left:4px solid var(--qd-teal);border-radius:10px;padding:1rem 1.25rem;margin:0 0 1.25rem}
.qd-included h3{margin:0 0 .5rem;font-size:1rem;color:var(--qd-navy)}
.qd-included ul{margin:0;padding-left:1.25rem}
.qd-included li{margin:.2rem 0}
.qd-included p{margin:.6rem 0 0;font-size:.9rem;color:var(--qd-muted)}

/* ---------- testimonials ---------- */
.qd-testimonials{padding:4rem 0;background:var(--qd-light)}
.qd-testimonials h2{text-align:center;color:var(--qd-navy);margin:0 0 .5rem}
.qd-testimonials .qd-sub{text-align:center;color:var(--qd-muted);margin:0 0 2rem}
.qd-quote-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem}
.qd-quote{background:#fff;border:1px solid var(--qd-grey);border-top:4px solid var(--qd-gold);border-radius:12px;padding:1.5rem}
.qd-quote blockquote{margin:0 0 1rem;font-style:italic}
.qd-quote cite{font-style:normal;font-weight:600;color:var(--qd-navy)}

/* ---------- related links / FAQ ---------- */
.qd-related{padding:2rem 0;background:#fff;border-top:1px solid var(--qd-grey)}
.qd-related h2{font-size:1.15rem;color:var(--qd-navy);margin:0 0 .75rem}
.qd-related ul{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:.6rem 1.5rem}
.qd-related a{color:var(--qd-teal);font-weight:600;text-decoration:none}
.qd-related a:hover{text-decoration:underline}
.qd-faq{max-width:820px;margin:0 auto}
.qd-faq details{background:#fff;border:1px solid var(--qd-grey);border-radius:10px;margin:0 0 .75rem;padding:0}
.qd-faq summary{cursor:pointer;font-weight:600;color:var(--qd-navy);padding:1rem 1.25rem;list-style:none;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.qd-faq summary::-webkit-details-marker{display:none}
.qd-faq summary::after{content:"+";font-size:1.4rem;color:var(--qd-teal);line-height:1}
.qd-faq details[open] summary::after{content:"\2212"}
.qd-faq details p,.qd-faq details ul{margin:0;padding:0 1.25rem 1.1rem}
.qd-faq details ul{padding-left:2.5rem}

/* ---------- cookie banner ---------- */
.qd-cookie{position:fixed;left:0;right:0;bottom:0;z-index:9999;background:#fff;border-top:3px solid var(--qd-navy);box-shadow:0 -6px 20px rgba(10,36,99,.15);padding:1rem 0}
.qd-cookie[hidden]{display:none}
.qd-cookie-inner{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between}
.qd-cookie p{margin:0;flex:1 1 320px;font-size:.95rem;color:var(--qd-dark)}
.qd-cookie a{color:var(--qd-teal);text-decoration:underline}
.qd-cookie-actions{display:flex;gap:.75rem;flex-wrap:wrap}
.qd-cookie button{min-height:44px;padding:.6rem 1.25rem;border-radius:8px;font-weight:600;cursor:pointer;font-size:.95rem}
.qd-cookie .qd-accept{background:var(--qd-navy);color:#fff;border:1px solid var(--qd-navy)}
.qd-cookie .qd-reject{background:#fff;color:var(--qd-navy);border:1px solid var(--qd-navy)}
@media(max-width:520px){.qd-cookie-actions{width:100%}.qd-cookie button{flex:1}}

/* mid-width: keep the header on one line */
@media(min-width:901px) and (max-width:1180px){.qd-nav{gap:1rem}.qd-nav a.qd-email{display:none}}

/* ================= images ================= */
.qd-step-icon{display:block;width:96px;height:96px;margin:0 auto .75rem}
.qd-sector-img{display:block;width:100%;max-width:320px;height:auto;aspect-ratio:8/5;margin:0 auto .9rem;border-radius:14px}
.qd-sector-strip{padding:3rem 0;background:var(--qd-light);border-top:1px solid var(--qd-grey)}
.qd-sector-strip h2{text-align:center;color:var(--qd-navy);margin:0 0 1.5rem}
.qd-sector-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.25rem}
.qd-sector-row figure{margin:0;text-align:center}
.qd-sector-row figcaption{font-weight:600;color:var(--qd-navy)}

/* ================= stats strip ================= */
.qd-stats{background:var(--qd-navy);color:#fff;padding:2rem 0}
.qd-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;text-align:center}
.qd-stats-grid>div>span{font-size:2.1rem;font-weight:800;color:var(--qd-gold);line-height:1.1}
.qd-stats-grid p{margin:.25rem 0 0;color:#cbd5e1;font-size:.95rem}
@media(max-width:700px){.qd-stats-grid{grid-template-columns:repeat(2,1fr);row-gap:1.5rem}}

/* ================= motion (progressive enhancement; off for reduced-motion) ================= */
@media(prefers-reduced-motion:no-preference){
  .qd-js .qd-reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease;transition-delay:var(--qd-delay,0s)}
  .qd-js .qd-reveal.qd-in{opacity:1;transform:none}
  .qd-float{animation:qd-float 6s ease-in-out infinite}
  .qd-step-icon,.qd-sector-img{transition:transform .35s ease}
  .step:hover .qd-step-icon,.sector:hover .qd-sector-img,.qd-sector-row figure:hover .qd-sector-img{transform:translateY(-6px) scale(1.03)}
  .hero h1,.hero p,.hero .btn,.page-hero h1,.page-hero p{animation:qd-rise .8s ease both}
  .hero p{animation-delay:.12s}
  .hero .btn{animation-delay:.24s}
  .btn-primary,.qd-nav a.qd-cta{background-image:linear-gradient(110deg,rgba(255,255,255,0) 40%,rgba(255,255,255,.28) 50%,rgba(255,255,255,0) 60%);background-size:250% 100%;background-position:120% 0}
  .btn-primary:hover,.qd-nav a.qd-cta:hover{background-position:-20% 0;transition:background-position .7s ease,background-color .2s,transform .2s}
  .qd-logo img{transition:transform .3s ease}
  .qd-logo:hover img{transform:scale(1.04)}
  .qd-quote,.qd-faq details{transition:box-shadow .25s ease,transform .25s ease}
  .qd-quote:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(10,36,99,.12)}
}
@keyframes qd-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes qd-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* ================= templates: full document library ================= */
.qd-library{padding:1.75rem 0 .5rem;background:var(--qd-light)}
.qd-lib-toggle{width:100%;display:flex;align-items:center;gap:1rem;background:var(--qd-navy);color:#fff;border:0;border-radius:14px;padding:1.1rem 1.5rem;min-height:64px;font-size:1.2rem;font-weight:700;cursor:pointer;text-align:left;box-shadow:0 8px 22px rgba(10,36,99,.22);border-bottom:4px solid var(--qd-gold);transition:background-color .2s,transform .2s,box-shadow .2s}
.qd-lib-toggle:hover{background:#0d2f7a;transform:translateY(-2px);box-shadow:0 12px 26px rgba(10,36,99,.28)}
.qd-lib-label{flex:1}
.qd-lib-count{background:var(--qd-gold);color:var(--qd-navy);border-radius:999px;padding:.2rem .85rem;font-size:.9rem;font-weight:800;white-space:nowrap}
.qd-lib-chevron{flex:0 0 auto;color:var(--qd-teal);background:#fff;border-radius:50%;padding:4px;width:30px;height:30px;transition:transform .3s}
.qd-lib-toggle[aria-expanded="true"] .qd-lib-chevron{transform:rotate(180deg)}
.qd-lib-js .qd-lib-panel:not(.is-open){display:none}
.qd-lib-panel{padding:1.25rem 0 .5rem}
.qd-lib-intro{color:var(--qd-muted);margin:0 0 1.25rem}
.qd-lib-group{background:#fff;border:1px solid var(--qd-grey);border-radius:14px;margin:0 0 1.25rem;overflow:hidden}
.qd-lib-group h3{margin:0;background:var(--qd-light);color:var(--qd-navy);padding:.9rem 1.25rem;border-bottom:3px solid var(--qd-teal);font-size:1.1rem;display:flex;justify-content:space-between;gap:1rem;align-items:baseline}
.qd-lib-group h3 span{font-size:.85rem;font-weight:600;color:var(--qd-muted)}
.qd-lib-list{list-style:none;margin:0;padding:0}
.qd-lib-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1.25rem;border-bottom:1px solid var(--qd-grey)}
.qd-lib-row:last-child{border-bottom:0}
.qd-lib-row:hover{background:#fbfdff}
.qd-lib-name{font-weight:600;color:var(--qd-dark);min-width:0}
.qd-lib-also{display:block;font-weight:400;font-size:.85rem;color:var(--qd-muted)}
.qd-lib-also a,.qd-lib-link{color:var(--qd-teal);font-weight:600;text-decoration:none}
.qd-lib-also a:hover,.qd-lib-link:hover{text-decoration:underline}
.qd-lib-action{display:flex;align-items:center;gap:.75rem;flex:0 0 auto;text-align:right}
.qd-lib-price{font-weight:800;color:var(--qd-navy);font-size:1.05rem}
.btn.qd-lib-buy{width:auto;min-height:40px;padding:.4rem 1.1rem;font-size:.95rem}
.qd-lib-badge{display:inline-block;background:#FFF8E5;color:#8a6d00;border:1px solid var(--qd-gold);border-radius:999px;padding:.15rem .7rem;font-size:.8rem;font-weight:700;white-space:nowrap}
@media(max-width:640px){
  .qd-lib-toggle{font-size:1.05rem;padding:1rem;flex-wrap:wrap;gap:.5rem .75rem}
  .qd-lib-row{flex-direction:column;align-items:stretch;gap:.5rem;padding:.9rem 1rem}
  .qd-lib-action{justify-content:space-between;text-align:left;flex-wrap:wrap}
  .qd-lib-group h3{flex-direction:column;gap:.15rem}
  .btn.qd-lib-buy{width:auto}
}

/* ===== catalogue v2 ===== */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.qd-price-note{display:block;font-size:.72rem;font-weight:600;color:var(--qd-muted);margin-top:2px}
.qd-btn-ghost{background:#fff!important;color:var(--qd-navy)!important;border:2px solid var(--qd-navy)!important}
.qd-lib-search input{width:100%;padding:.85rem 1rem;border:1px solid var(--qd-grey);border-radius:10px;font-size:1rem;margin:0 0 1rem;background:#fff}
.qd-lib-none{padding:1rem;color:var(--qd-muted);text-align:center}
.qd-lib-group{background:#fff;border:1px solid var(--qd-grey);border-radius:14px;margin:0 0 1rem;overflow:hidden}
.qd-lib-group>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.25rem;background:var(--qd-light);border-bottom:3px solid var(--qd-teal);min-height:56px}
.qd-lib-group>summary::-webkit-details-marker{display:none}
.qd-lib-group>summary::after{content:"+";font-size:1.5rem;color:var(--qd-teal);margin-left:.5rem}
.qd-lib-group[open]>summary::after{content:"\2212"}
.qd-lib-sector{font-weight:800;color:var(--qd-navy);font-size:1.1rem;flex:1}
.qd-lib-n{font-size:.85rem;font-weight:700;color:var(--qd-muted)}
.qd-lib-pack{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;padding:1rem 1.25rem;background:#FFF8E5;border-bottom:1px solid var(--qd-gold)}
.qd-lib-pack strong{display:block;color:var(--qd-navy)}
.qd-lib-pack span{font-size:.9rem;color:var(--qd-muted)}
.qd-lib-pack-prices{display:flex;gap:.6rem;flex-wrap:wrap}
.qd-lib-pack .btn{width:auto;min-height:42px;padding:.5rem 1rem;font-size:.95rem}
.qd-lib-section{margin:0;padding:.7rem 1.25rem;background:#fff;color:var(--qd-teal);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid var(--qd-grey)}
@media(max-width:640px){.qd-lib-pack{flex-direction:column;align-items:stretch}.qd-lib-pack-prices .btn{flex:1;text-align:center}}

/* knowledge hub */
.kh-hero{background:linear-gradient(135deg,var(--qd-navy) 0%,#0d2f7a 60%,var(--qd-teal) 140%);color:#fff;text-align:center;padding:4rem 0 3rem}
.kh-hero h1{font-size:2.6rem;margin:0 0 .5rem}
.kh-hero p{opacity:.9;font-size:1.1rem;margin:0 0 1.5rem}
.kh-search{display:block;max-width:560px;margin:0 auto}
.kh-search input{width:100%;padding:1rem 1.25rem;border:0;border-radius:999px;font-size:1rem;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.kh-featured{margin-top:-2rem;position:relative;z-index:2}
.kh-feature{display:block;background:#fff;border-radius:18px;padding:2rem 2rem 1.75rem;box-shadow:0 18px 40px rgba(10,36,99,.18);border-left:6px solid var(--qd-gold);text-decoration:none;color:inherit;transition:transform .25s,box-shadow .25s}
.kh-feature:hover{transform:translateY(-4px);box-shadow:0 24px 48px rgba(10,36,99,.24)}
.kh-feature h2{color:var(--qd-navy);margin:.6rem 0 .4rem;font-size:1.6rem}
.kh-feature p{color:var(--qd-dark);margin:0 0 1rem;max-width:62ch}
.kh-feature-cta{color:var(--qd-teal);font-weight:700}
.kh-tag{display:inline-block;background:#E6F6F6;color:#007a7a;font-weight:700;font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;padding:.25rem .7rem;border-radius:999px}
.kh-tag-gold{background:#FFF3CC;color:#8a6d00}
.kh-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin:2.5rem 0 1rem}
.kh-head h2{color:var(--qd-navy);margin:0}
.kh-head p{color:var(--qd-muted);margin:0}
.kh-rail{display:flex;gap:1.25rem;overflow-x:auto;scroll-snap-type:x proximity;padding:.5rem .25rem 1.25rem;cursor:grab;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.kh-rail.is-drag{cursor:grabbing;scroll-snap-type:none;user-select:none}
.kh-slide{flex:0 0 260px;scroll-snap-align:start;background:#fff;border:1px solid var(--qd-grey);border-radius:16px;padding:1rem;text-decoration:none;color:inherit;transition:transform .25s,box-shadow .25s,border-color .25s}
.kh-slide:hover{transform:translateY(-6px);box-shadow:0 14px 30px rgba(10,36,99,.15);border-color:var(--qd-teal)}
.kh-slide img{width:100%;height:auto;border-radius:12px;display:block;pointer-events:none}
.kh-slide h3{color:var(--qd-navy);margin:.8rem 0 .3rem;font-size:1.05rem}
.kh-slide p{margin:0;color:var(--qd-muted);font-size:.92rem}
.kh-chips{display:flex;gap:.6rem;flex-wrap:wrap;margin:0 0 1.25rem}
.kh-chip{border:2px solid var(--qd-navy);background:#fff;color:var(--qd-navy);border-radius:999px;padding:.5rem 1.1rem;font-weight:700;cursor:pointer;min-height:44px;transition:background-color .2s,color .2s}
.kh-chip.is-on,.kh-chip:hover{background:var(--qd-navy);color:#fff}
.kh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:1.25rem}
.kh-card{background:#fff;border:1px solid var(--qd-grey);border-top:4px solid var(--qd-teal);border-radius:16px;padding:1.4rem;display:flex;flex-direction:column;gap:.5rem;transition:transform .3s,box-shadow .3s,opacity .3s,max-height .3s}
.kh-card:hover{transform:translateY(-5px);box-shadow:0 14px 30px rgba(10,36,99,.14)}
.kh-card h3{margin:.2rem 0;font-size:1.15rem;line-height:1.35}
.kh-card h3 a{color:var(--qd-navy);text-decoration:none}
.kh-card p{margin:0;color:var(--qd-dark)}
.kh-meta{margin-top:auto;display:flex;justify-content:space-between;align-items:center;color:var(--qd-muted);font-size:.9rem;padding-top:.6rem}
.kh-link{color:var(--qd-teal);font-weight:700;text-decoration:none}
.kh-link:hover{text-decoration:underline}
.kh-card-ghost{border-style:dashed;border-top-style:dashed;background:var(--qd-light)}
.kh-hide{display:none}
.kh-empty{padding:1.5rem;text-align:center;color:var(--qd-muted)}
.kh-cta{background:var(--qd-navy);color:#fff;text-align:center;padding:3rem 0;margin-top:3rem}
.kh-cta h2{margin:0 0 .4rem}
.kh-cta p{margin:0 0 1.25rem;opacity:.9}
.kh-cta .btn{width:auto}
@media(max-width:700px){.kh-hero h1{font-size:2rem}.kh-feature{padding:1.4rem}.kh-slide{flex-basis:78%}}
@media(prefers-reduced-motion:no-preference){.kh-hero h1,.kh-hero p,.kh-search{animation:qd-rise .7s ease both}.kh-hero p{animation-delay:.1s}.kh-search{animation-delay:.2s}}

/* ===== layout tweaks r7 ===== */
.features{grid-template-columns:repeat(3,1fr)!important}
@media(max-width:900px){.features{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:600px){.features{grid-template-columns:1fr!important}}
.values{grid-template-columns:repeat(2,1fr)!important}
@media(max-width:700px){.values{grid-template-columns:1fr!important}}
.licensing-grid{align-items:stretch}
.licence-card{display:flex;flex-direction:column}
.licence-card ul{flex:1 1 auto}
.licence-card .btn{margin-top:auto;align-self:stretch;text-align:center}
.qd-nav{gap:1.1rem}
@media(min-width:901px) and (max-width:1280px){.qd-nav a{font-size:.92rem}.qd-nav a.qd-email{display:none}}
.ct-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:2rem;align-items:start}
.ct-info{display:grid;gap:1rem}
.ct-card{background:#fff;border:1px solid var(--qd-grey);border-left:4px solid var(--qd-teal);border-radius:12px;padding:1.1rem 1.25rem}
.ct-card h2{font-size:1rem;color:var(--qd-navy);margin:0 0 .35rem}
.ct-card p{margin:0 0 .35rem}
.ct-card a{color:var(--qd-teal);font-weight:600}
.ct-note{font-size:.88rem;color:var(--qd-muted)}
.ct-free{background:#ECFDF3;color:#0F7B4B;border-radius:8px;padding:.5rem .85rem;font-weight:600;font-size:.92rem;margin:0 0 1rem}
@media(max-width:860px){.ct-grid{grid-template-columns:1fr}}

.qd-lib-h{font-size:1rem;color:var(--qd-navy);margin:1.25rem 0 .6rem}
.qd-pk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem;margin-bottom:.5rem}
.qd-pk{background:#fff;border:1px solid var(--qd-grey);border-top:4px solid var(--qd-gold);border-radius:14px;padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.35rem}
.qd-pk h4{margin:0;color:var(--qd-navy);font-size:1rem}
.qd-pk p{margin:0;color:var(--qd-muted);font-size:.9rem}
.qd-pk-prices{display:flex;flex-direction:column;gap:.5rem;margin-top:auto;padding-top:.6rem}
.qd-pk-prices .btn{width:100%;min-height:42px;padding:.5rem .8rem;font-size:.92rem;text-align:center}

/* knowledge hub sectors */
.kh-sector{padding:2rem 0 .5rem;scroll-margin-top:84px}
.kh-sector-head{display:flex;align-items:center;gap:1rem;margin:0 0 1.25rem;padding-bottom:.9rem;border-bottom:3px solid var(--qd-teal)}
.kh-sector-head img{width:96px;height:auto;border-radius:12px;flex:0 0 auto}
.kh-sector-head h2{margin:0;color:var(--qd-navy);font-size:1.5rem}
.kh-sector-head p{margin:.2rem 0 0;color:var(--qd-muted)}
.kh-count{display:inline-block;margin-top:.5rem;font-size:.8rem;font-weight:700;color:var(--qd-teal)}
.kh-start .kh-chips{margin-top:.5rem}
.kh-suggest{padding:2.5rem 0 0}
.kh-suggest-box{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:center;justify-content:space-between;background:var(--qd-light);border:2px dashed var(--qd-teal);border-radius:16px;padding:1.5rem 1.75rem}
.kh-suggest-box h2{margin:0 0 .25rem;color:var(--qd-navy);font-size:1.25rem}
.kh-suggest-box p{margin:0;color:var(--qd-dark)}
.kh-suggest-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.kh-suggest-actions .btn{width:auto}
@media(max-width:600px){.kh-sector-head img{width:64px}.kh-suggest-actions .btn{width:100%}}
.hp-field{position:absolute!important;left:-5000px!important;height:0;overflow:hidden}
.form-group textarea{width:100%;padding:.75rem;border:1px solid var(--qd-grey);border-radius:6px;font-size:1rem;font-family:inherit;min-height:120px}

/* ---- header dropdown menus (Documents, Services, Cyber) ---- */
.qd-dd{position:relative}
.qd-dd-btn{background:none;border:0;border-bottom:2px solid transparent;font:inherit;font-weight:600;color:var(--qd-navy);padding:.5rem 0;cursor:pointer;display:flex;align-items:center;gap:.4rem}
.qd-dd-btn:after{content:"";display:inline-block;width:6px;height:6px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-3px}
.qd-dd:hover>.qd-dd-btn,.qd-dd.has-current>.qd-dd-btn,.qd-dd.is-open>.qd-dd-btn{color:var(--qd-teal);border-bottom-color:var(--qd-teal)}
.qd-dd-menu{position:absolute;top:100%;left:-14px;min-width:250px;background:#fff;border:1px solid var(--qd-grey);border-radius:10px;box-shadow:0 14px 30px rgba(10,36,99,.14);padding:.4rem;display:none;z-index:1100}
.qd-dd:hover>.qd-dd-menu,.qd-dd:focus-within>.qd-dd-menu,.qd-dd.is-open>.qd-dd-menu{display:block}
.qd-nav .qd-dd-menu a{display:block;padding:.6rem .8rem;border-radius:6px;border-bottom:0;font-weight:500;white-space:nowrap}
.qd-nav .qd-dd-menu a:hover,.qd-nav .qd-dd-menu a[aria-current="page"]{background:#F1F5F9;color:var(--qd-teal)}
.qd-basket-n:not(:empty){display:inline-block;min-width:1.4em;padding:0 .35em;margin-left:.25rem;border-radius:99px;background:#fff;color:var(--qd-navy);font-size:.8rem;text-align:center}
@media(max-width:900px){
  .qd-dd-btn{width:100%;min-height:48px;border-bottom:1px solid var(--qd-grey);padding:.95rem .25rem;justify-content:space-between}
  .qd-dd-menu{position:static;display:none;border:0;box-shadow:none;padding:0 0 .4rem .75rem;min-width:0}
  .qd-dd.is-open>.qd-dd-menu{display:block}
  .qd-dd:hover>.qd-dd-menu{display:none}
  .qd-dd.is-open:hover>.qd-dd-menu{display:block}
  .qd-nav .qd-dd-menu a{padding:.8rem .5rem;min-height:44px;white-space:normal;border-bottom:1px solid var(--qd-grey)}
}
@media(min-width:901px) and (max-width:1180px){.qd-nav{gap:.9rem}.qd-nav a,.qd-dd-btn{font-size:.9rem}}

.form-note{margin:.35rem 0 0;font-size:.88rem;color:#64748B}

/* ---------- beta notice (added by the server only while the site is in beta mode) ---------- */
.qd-beta-bar{background:#FFF4D6;color:#4A3600;border-bottom:1px solid #E8D28C;font-size:.9rem;line-height:1.4;padding:.5rem 0;text-align:center}
.qd-beta-bar a{color:inherit;font-weight:600;text-decoration:underline}

/* ---------- phones: the cookie notice takes less of the screen ---------- */
@media(max-width:520px){
  .qd-cookie{padding:.65rem 0}
  .qd-cookie-inner{gap:.55rem}
  .qd-cookie p{flex-basis:100%;font-size:.84rem;line-height:1.4}
  .qd-cookie button{min-height:42px;padding:.45rem .8rem;font-size:.88rem}
}
