/*
Theme Name: PrinterDriversHub Rebuild
Template: superfast
Version: 1.0.0
Description: Lightweight child theme for the verified PrinterDriversHub rebuild.
*/

:root {
  --pdh-ink: #19362c;
  --pdh-text: #3b5148;
  --pdh-muted: #65766d;
  --pdh-green: #186447;
  --pdh-green-dark: #124d37;
  --pdh-lime: #d9efb3;
  --pdh-pale: #eef4e8;
  --pdh-wash: #f7f8f3;
  --pdh-paper: #fff;
  --pdh-line: #dce4db;
  --pdh-warn: #7a5d27;
  --pdh-radius: 12px;
  --pdh-shadow: 0 14px 42px rgba(25, 54, 44, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.pdh-site { margin: 0; background: var(--pdh-wash); color: var(--pdh-ink); font: 15px/1.68 "Segoe UI", Arial, sans-serif; }
body.pdh-site button, body.pdh-site input, body.pdh-site select, body.pdh-site textarea { font: inherit; }
body.pdh-site a { color: var(--pdh-green); text-decoration: none; }
body.pdh-site a:hover { text-decoration: underline; }
body.pdh-site img { max-width: 100%; height: auto; }
body.pdh-site :focus-visible { outline: 3px solid #739f2e; outline-offset: 3px; }
.pdh-wrap { width: calc(100% - 80px); max-width: 1160px; margin: 0 auto; }
.pdh-skip { position: fixed; top: -80px; left: 20px; z-index: 1000; padding: 10px 14px; background: var(--pdh-green); color: #fff !important; border-radius: 6px; }
.pdh-skip:focus { top: 10px; }
.pdh-header { background: #fff; border-bottom: 1px solid var(--pdh-line); }
.pdh-header__inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.pdh-logo { display: inline-flex; align-items: center; gap: 11px; color: var(--pdh-ink) !important; font-weight: 750; line-height: 1.05; letter-spacing: -.35px; flex: 0 0 auto; }
.pdh-logo:hover { text-decoration: none !important; }
.pdh-logo__mark { width: 40px; height: 40px; display: block; flex: 0 0 auto; }
.pdh-logo small { display: block; margin-top: 4px; color: var(--pdh-muted); font-size: 9px; font-weight: 600; letter-spacing: 1.35px; text-transform: uppercase; }
.pdh-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.pdh-nav a { color: var(--pdh-text) !important; font-size: 13px; font-weight: 650; }
.pdh-header-search { width: 230px; display: flex; align-items: center; border: 1px solid var(--pdh-line); background: var(--pdh-wash); border-radius: 7px; overflow: hidden; }
.pdh-header-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pdh-header-search input { min-width: 0; width: 100%; padding: 10px 11px; border: 0; background: transparent; color: var(--pdh-ink); }
.pdh-header-search button { min-width: 42px; align-self: stretch; border: 0; color: var(--pdh-green); background: transparent; cursor: pointer; font-weight: 750; }
.pdh-independent { padding: 5px 15px; color: var(--pdh-muted); background: #f1f4ed; text-align: center; font-size: 11px; }
.pdh-main { min-height: 60vh; }
.pdh-crumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0 18px; color: var(--pdh-muted); font-size: 12px; }
.pdh-crumb a { color: var(--pdh-muted) !important; }
.pdh-eyebrow { margin-bottom: 15px; color: var(--pdh-green); font-size: 11px; font-weight: 750; letter-spacing: 1.75px; text-transform: uppercase; }
.pdh-title { margin: 0 0 16px; font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -2px; font-weight: 700; }
.pdh-title--small { font-size: clamp(32px, 4vw, 45px); }
.pdh-lead { max-width: 670px; color: var(--pdh-muted); font-size: 17px; }
.pdh-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--pdh-green); border-radius: 6px; color: #fff !important; background: var(--pdh-green); font-size: 13px; font-weight: 700; cursor: pointer; }
.pdh-button:hover { background: var(--pdh-green-dark); text-decoration: none !important; }
.pdh-button--secondary { color: var(--pdh-green) !important; background: #fff; border-color: #cad6ca; }
.pdh-button--secondary:hover { background: var(--pdh-pale); }
.pdh-hero { padding: 64px 0 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.pdh-hero__panel { min-height: 330px; position: relative; display: grid; place-items: center; overflow: hidden; padding: 30px; border-radius: 16px; background: #e9eee0; }
.pdh-hero__panel:before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(#abbba3 1px, transparent 1px), linear-gradient(90deg, #abbba3 1px, transparent 1px); background-size: 40px 40px; }
.pdh-hero__panel span { position: relative; max-width: 260px; color: var(--pdh-ink); font: 28px/1.25 Georgia, serif; text-align: center; }
.pdh-search { max-width: 680px; display: flex; gap: 8px; margin: 26px 0 13px; padding: 6px; background: #fff; border: 1px solid #bacbbb; border-radius: 9px; box-shadow: 0 5px 14px rgba(24, 50, 40, .04); }
.pdh-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pdh-search input { min-width: 0; width: 100%; padding: 11px 12px; border: 0; background: transparent; }
.pdh-section { padding: 44px 0; }
.pdh-section__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.pdh-section h2 { margin: 0 0 13px; font-size: 27px; line-height: 1.25; letter-spacing: -.65px; }
.pdh-brand-grid, .pdh-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pdh-brand-card, .pdh-model-card { display: block; min-height: 130px; padding: 22px; color: var(--pdh-ink) !important; border: 1px solid var(--pdh-line); border-radius: 10px; background: #fff; }
.pdh-brand-card:hover, .pdh-model-card:hover { border-color: #82a283; box-shadow: var(--pdh-shadow); text-decoration: none !important; }
.pdh-brand-card strong, .pdh-model-card strong { display: block; font-size: 19px; }
.pdh-brand-card span, .pdh-model-card span { display: block; margin-top: 9px; color: var(--pdh-muted); font-size: 12px; }
.pdh-model-card { min-height: 150px; }
.pdh-help { margin-bottom: 50px; padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 38px; color: #fff; background: var(--pdh-ink); border-radius: 12px; }
.pdh-help h2 { color: #fff; }
.pdh-help p { color: #bed0c4; }
.pdh-help a { display: block; padding: 11px 0; color: #f2f8eb !important; border-bottom: 1px solid #4b6358; }
.pdh-product-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; align-items: center; padding: 7px 0 28px; }
.pdh-product-hero__image { min-height: 185px; display: grid; place-items: center; padding: 22px; border-radius: 12px; background: #edf1e7; }
.pdh-product-hero__image img { max-height: 145px; width: auto; object-fit: contain; mix-blend-mode: normal; }
.pdh-product-hero__missing { color: var(--pdh-muted); font-size: 12px; text-align: center; }
.pdh-jump { position: sticky; top: 0; z-index: 20; display: flex; gap: 27px; overflow-x: auto; white-space: nowrap; background: var(--pdh-wash); border-top: 1px solid var(--pdh-line); border-bottom: 1px solid var(--pdh-line); }
.pdh-jump a { padding: 13px 0; color: var(--pdh-muted) !important; font-size: 13px; }
.pdh-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 35px; align-items: start; padding: 30px 0 45px; }
.pdh-content-section { margin-bottom: 38px; scroll-margin-top: 70px; }
.pdh-content-section > h2 { display: flex; align-items: center; gap: 10px; font-size: 25px; }
.pdh-content-section > h2 span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: var(--pdh-green); border: 1px solid #bcccb4; border-radius: 50%; font-size: 10px; }
.pdh-snapshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pdh-snapshot-card { padding: 17px 18px; background: #fff; border: 1px solid var(--pdh-line); border-radius: 9px; }
.pdh-snapshot-card strong { display: block; margin-bottom: 5px; color: var(--pdh-ink); font-size: 13px; }
.pdh-snapshot-card span { color: var(--pdh-muted); font-size: 12px; }
.pdh-note { margin: 16px 0; padding: 15px 18px; color: #405a46; background: var(--pdh-pale); border-left: 3px solid #83a162; border-radius: 0 7px 7px 0; font-size: 13px; }
.pdh-note--warn { color: var(--pdh-warn); background: #faf6e9; border-color: #bd9a55; }
.pdh-chooser { margin: 17px 0; padding: 20px; background: #fff; border: 1px solid var(--pdh-line); border-radius: 11px; }
.pdh-chooser__row { display: flex; gap: 17px; align-items: end; flex-wrap: wrap; }
.pdh-field { min-width: 190px; flex: 1; }
.pdh-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.pdh-field select, .pdh-field input, .pdh-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--pdh-ink); background: #fff; border: 1px solid #cdd7c8; border-radius: 6px; }
.pdh-purpose { display: flex; flex-wrap: wrap; gap: 6px; }
.pdh-purpose button { min-height: 42px; padding: 9px 12px; color: var(--pdh-text); background: #f6f8f2; border: 1px solid #dfe6da; border-radius: 6px; cursor: pointer; }
.pdh-purpose button[aria-pressed="true"] { color: #284f28; background: #eaf2df; border-color: #6a9156; font-weight: 700; }
.pdh-download-list { display: grid; gap: 12px; }
.pdh-download-card { overflow: hidden; border: 1px solid var(--pdh-line); border-radius: 10px; background: #fff; }
.pdh-download-card[hidden] { display: none !important; }
.pdh-download-card__body { padding: 20px; }
.pdh-download-card h3 { margin: 7px 0 10px; font-size: 17px; line-height: 1.35; }
.pdh-tag { display: inline-block; padding: 3px 8px; color: #416540; background: #eaf2e3; border-radius: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .45px; }
.pdh-file-meta { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 12px; border-top: 1px solid #edf0e8; color: var(--pdh-muted); font-size: 11px; }
.pdh-file-meta strong { display: block; color: var(--pdh-text); font-size: 12px; font-weight: 650; }
.pdh-download-card__action { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 20px; background: #fcfdf9; border-top: 1px solid var(--pdh-line); }
.pdh-download-card__action small { color: var(--pdh-muted); }
.pdh-download-status { margin: 12px 0; min-height: 22px; color: var(--pdh-text); font-size: 13px; }
.pdh-download-status.is-error { padding: 12px 14px; color: #7c2d22; background: #fff0ed; border-radius: 7px; }
.pdh-download-status.is-success { padding: 12px 14px; color: #27543b; background: var(--pdh-pale); border-radius: 7px; }
.pdh-steps { padding: 0; list-style: none; counter-reset: pdh-step; }
.pdh-steps li { position: relative; padding: 0 0 23px 44px; counter-increment: pdh-step; }
.pdh-steps li:before { content: counter(pdh-step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; color: #41603a; background: #eaf0df; border-radius: 50%; font-size: 12px; font-weight: 700; }
.pdh-steps h3 { margin: 0 0 5px; font-size: 15px; }
.pdh-steps p { margin: 0; color: var(--pdh-muted); font-size: 13px; }
.pdh-check { display: flex; gap: 12px; padding: 17px 19px; background: var(--pdh-pale); border-radius: 8px; }
.pdh-faq { border-bottom: 1px solid var(--pdh-line); }
.pdh-faq:first-child { border-top: 1px solid var(--pdh-line); }
.pdh-faq summary { padding: 16px 28px 16px 0; cursor: pointer; font-weight: 650; }
.pdh-faq p { margin: 0 0 16px; color: var(--pdh-text); font-size: 13px; }
.pdh-source-list { padding: 0; list-style: none; }
.pdh-source-list li { padding: 11px 0; border-bottom: 1px solid var(--pdh-line); }
.pdh-source-list small { display: block; color: var(--pdh-muted); }
.pdh-aside { position: sticky; top: 70px; }
.pdh-aside__card { margin-bottom: 20px; padding: 20px; background: #fff; border: 1px solid var(--pdh-line); border-radius: 10px; }
.pdh-aside__card--tint { background: #edf1e5; border: 0; }
.pdh-aside__card h2, .pdh-aside__card h3 { margin-top: 0; font-size: 16px; }
.pdh-aside__card p { color: var(--pdh-muted); font-size: 12px; }
.pdh-legacy-details { padding: 20px; background: #fff; border: 1px solid var(--pdh-line); border-radius: 10px; }
.pdh-legacy-details table { width: 100%; max-width: 100%; display: block; overflow-x: auto; }
.pdh-list-head { padding: 38px 0 25px; }
.pdh-list { display: grid; gap: 1px; background: var(--pdh-line); border: 1px solid var(--pdh-line); border-radius: 10px; overflow: hidden; }
.pdh-list-item { display: flex; justify-content: space-between; gap: 20px; padding: 20px; color: var(--pdh-ink) !important; background: #fff; }
.pdh-list-item:hover { background: #f0f5e8; text-decoration: none !important; }
.pdh-list-item h2 { margin: 0 0 4px; font-size: 17px; }
.pdh-list-item p { margin: 0; color: var(--pdh-muted); font-size: 12px; }
.pdh-pagination { margin: 28px 0 45px; }
.pdh-pagination .nav-links { display: flex; gap: 7px; flex-wrap: wrap; }
.pdh-pagination .page-numbers { padding: 8px 12px; color: var(--pdh-green); background: #fff; border: 1px solid var(--pdh-line); border-radius: 5px; }
.pdh-pagination .current { color: #fff; background: var(--pdh-green); }
.pdh-empty, .pdh-article { max-width: 780px; margin: 0 auto; padding: 46px 0; }
.pdh-article { color: var(--pdh-text); }
.pdh-article h1 { color: var(--pdh-ink); }
.pdh-article h2 { margin-top: 30px; color: var(--pdh-ink); font-size: 24px; }
.pdh-article table { width: 100%; display: block; overflow-x: auto; }
.pdh-footer { padding: 35px 0 24px; color: var(--pdh-muted); background: #eef2e8; border-top: 1px solid var(--pdh-line); }
.pdh-footer__top { display: flex; justify-content: space-between; gap: 25px; }
.pdh-footer__links { display: flex; flex-wrap: wrap; align-content: start; gap: 16px 20px; font-size: 12px; }
.pdh-footer__bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #d8e0d1; font-size: 11px; }
.pdh-cookie-settings { padding: 0; color: var(--pdh-green); background: transparent; border: 0; cursor: pointer; font-size: inherit; text-decoration: underline; }
.pdh-consent[hidden] { display: none !important; }
.pdh-consent { position: fixed; z-index: 100; right: 22px; bottom: 22px; left: 22px; max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; background: #fff; border: 1px solid #b9c9b7; border-radius: 12px; box-shadow: 0 18px 55px rgba(25, 54, 44, .2); }
.pdh-consent__copy { min-width: 0; }
.pdh-consent__copy strong { display: block; margin-bottom: 4px; color: var(--pdh-ink); font-size: 16px; }
.pdh-consent__copy p { margin: 0; color: var(--pdh-text); font-size: 13px; line-height: 1.5; }
.pdh-consent__actions { display: flex; flex: 0 0 auto; gap: 8px; }
#download-message, #download-countdown { display: none !important; }

@media (max-width: 900px) {
  .pdh-wrap { width: calc(100% - 48px); }
  .pdh-nav { gap: 14px; }
  .pdh-header-search { width: 190px; }
  .pdh-brand-grid, .pdh-card-grid { grid-template-columns: repeat(2, 1fr); }
  .pdh-content-grid { grid-template-columns: 1fr; }
  .pdh-aside { position: static; display: grid; grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  .pdh-wrap { width: calc(100% - 34px); }
  .pdh-header__inner { min-height: 0; padding: 13px 0; flex-wrap: wrap; gap: 10px; }
  .pdh-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .pdh-nav a { min-height: 40px; display: inline-flex; align-items: center; font-size: 12px; }
  .pdh-header-search { width: auto; flex: 1; }
  .pdh-independent { font-size: 10px; }
  .pdh-hero { display: block; padding: 38px 0 30px; }
  .pdh-hero__panel { display: none; }
  .pdh-title { letter-spacing: -1.25px; }
  .pdh-search { flex-direction: column; }
  .pdh-search .pdh-button { width: 100%; }
  .pdh-brand-grid, .pdh-card-grid { grid-template-columns: 1fr 1fr; }
  .pdh-brand-card { min-height: 105px; padding: 17px; }
  .pdh-help { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .pdh-product-hero { grid-template-columns: minmax(0, 1fr) 105px; gap: 14px; align-items: start; }
  .pdh-product-hero__image { min-height: 96px; padding: 10px; }
  .pdh-product-hero__image img { max-height: 82px; }
  .pdh-product-hero__missing { font-size: 10px; }
  .pdh-jump { gap: 22px; scrollbar-width: none; }
  .pdh-jump::-webkit-scrollbar { display: none; }
  .pdh-content-grid { padding-top: 22px; }
  .pdh-snapshot-grid { grid-template-columns: 1fr; }
  .pdh-chooser { padding: 16px; }
  .pdh-field { min-width: 135px; }
  .pdh-purpose button { min-height: 44px; }
  .pdh-download-card__action { align-items: stretch; flex-direction: column; }
  .pdh-download-card__action .pdh-button { width: 100%; }
  .pdh-aside { display: block; }
  .pdh-footer__top, .pdh-footer__bottom { display: block; }
  .pdh-footer__links { margin-top: 18px; }
  .pdh-footer__bottom > * { display: block; margin-top: 8px; }
  .pdh-consent { right: 12px; bottom: 12px; left: 12px; display: block; padding: 17px; }
  .pdh-consent__actions { margin-top: 14px; flex-direction: column-reverse; }
  .pdh-consent__actions .pdh-button { width: 100%; }
}

@media (max-width: 420px) {
  .pdh-brand-grid, .pdh-card-grid { grid-template-columns: 1fr; }
  .pdh-product-hero { grid-template-columns: minmax(0, 1fr) 92px; }
  .pdh-product-hero .pdh-lead { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}
