/* ==========================================================================
   PDFongo compact header – one slim row on desktop, slide-down menu on mobile
   Breakpoints: >=1280 full · 1025–1279 compact (icon-only pills) · <=1024 menu button
   ========================================================================== */

.pdgh {
  --h-ink: #0f1a15;
  --h-soft: #4b5d55;
  --h-green: #27ae60;
  --h-green-d: #12805a;
  --h-dark: #0b3d2e;
  --h-tint: #e9f7ef;
  --h-line: #e3ece7;
  position: relative;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--h-line);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
.pdgh *, .pdgh *::before, .pdgh *::after { box-sizing: border-box; }
/* the legacy stylesheet sets a font on every element (*); inherit ours instead (zero specificity keeps icon fonts working) */
:where(.pdgh) * { font-family: inherit; }
.pdgh-in {
  max-width: 1440px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 18px;
}
.pdgh-logo { flex: none; display: flex; align-items: center; }
.pdgh-logo img { height: 40px; width: auto; display: block; }

.pdgh-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.pdgh-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 12px;
  margin: 0;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--h-ink);
  font: 600 .88rem/1 inherit;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pdgh-link i { color: var(--h-green); font-size: .86rem; width: 15px; text-align: center; }
.pdgh-link:hover { background: var(--h-tint); color: var(--h-dark); }
.pdgh-link.is-active, .pdgh-dd.is-active > .pdgh-link { background: var(--h-tint); color: var(--h-dark); }
.pdgh-link.is-active::after, .pdgh-dd.is-active > .pdgh-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--h-green);
}
.pdgh-link:focus-visible, .pdgh-pill:focus-visible, .pdgh-burger:focus-visible { outline: 3px solid #3ddc84; outline-offset: 2px; }
.pdgh-mobile { display: none !important; }

/* dropdown */
.pdgh-dd { position: relative; }
.pdgh-caret { font-size: .62rem !important; color: var(--h-soft) !important; width: auto !important; transition: transform .2s; }
.pdgh-dd.is-open .pdgh-caret { transform: rotate(180deg); }
.pdgh-new-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; margin-left: -2px; box-shadow: 0 0 0 2px #fff; }
.pdgh-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 280px; padding: 8px;
  background: #fff;
  border: 1px solid var(--h-line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(11, 61, 46, .16);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.pdgh-dd.is-open .pdgh-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1025px) {
  .pdgh-dd:hover .pdgh-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .pdgh-dd:hover .pdgh-caret { transform: rotate(180deg); }
  .pdgh-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }   /* hover bridge */
}
.pdgh-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  color: var(--h-ink); text-decoration: none;
}
.pdgh-menu a:hover, .pdgh-menu a.is-active { background: var(--h-tint); }
.pdgh-menu a > i {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; background: var(--h-tint); color: var(--h-green-d);
}
.pdgh-menu a span { display: grid; gap: 2px; }
.pdgh-menu b { font-size: .9rem; font-weight: 700; }
.pdgh-menu b em { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #ff5f57; color: #fff; font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.pdgh-menu small { font-size: .76rem; color: var(--h-soft); }

/* right side pills */
.pdgh-right { flex: none; display: flex; align-items: center; gap: 8px; }
.pdgh-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border: 1px solid #c9ebd6; border-radius: 999px;
  background: #fff;
  color: var(--h-green-d);
  font: 600 .84rem/1 inherit; font-family: inherit;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.pdgh-pill:hover { background: var(--h-dark); border-color: var(--h-dark); color: #fff; }
.pdgh-pill.is-solid { background: var(--h-green); border-color: var(--h-green); color: #fff; }
.pdgh-pill.is-solid:hover, .pdgh-pill.is-active { background: var(--h-dark); border-color: var(--h-dark); color: #fff; }

/* menu button */
.pdgh-burger {
  display: none;
  width: 44px; height: 44px; margin: 0 0 0 auto; padding: 0;
  border: 0; border-radius: 12px; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.pdgh-burger:hover { background: var(--h-tint); }
.pdgh-burger span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--h-ink); transition: transform .2s, opacity .2s; }
.pdgh.is-open .pdgh-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.pdgh.is-open .pdgh-burger span:nth-child(2) { opacity: 0; }
.pdgh.is-open .pdgh-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- compact laptops ---------- */
@media (max-width: 1279px) {
  .pdgh-in { gap: 10px; padding: 0 16px; }
  .pdgh-link { padding: 0 9px; font-size: .84rem; gap: 6px; }
  .pdgh-pill { width: 36px; padding: 0; justify-content: center; }
  .pdgh-pill span { display: none; }
}

/* ---------- tablets & phones: slide-down menu ---------- */
@media (max-width: 1024px) {
  .pdgh-in { height: 60px; }
  .pdgh-logo img { height: 36px; }
  .pdgh-right { display: none; }
  .pdgh-burger { display: flex; }
  .pdgh-mobile { display: flex !important; }
  .pdgh-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100vh - 60px); overflow: auto;
    padding: 10px 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--h-line);
    box-shadow: 0 20px 40px rgba(11, 61, 46, .14);
    display: none;
  }
  .pdgh.is-open .pdgh-nav { display: flex; }
  .pdgh-link { height: 46px; padding: 0 14px; font-size: .95rem; justify-content: flex-start; }
  .pdgh-link.is-active::after, .pdgh-dd.is-active > .pdgh-link::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .pdgh-dd-btn { width: 100%; }
  .pdgh-caret { margin-left: auto; }
  .pdgh-menu { position: static; width: auto; margin: 2px 0 6px 14px; padding: 4px; box-shadow: none; border: 0; border-left: 2px solid var(--h-line); border-radius: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .pdgh-dd.is-open .pdgh-menu { display: block; transform: none; }
  .pdgh-mobile-pills { gap: 8px; padding: 12px 4px 0; margin-top: 6px; border-top: 1px solid var(--h-line); }
  .pdgh-mobile-pills .pdgh-pill { flex: 1; justify-content: center; height: 42px; }
}
@media (max-width: 480px) {
  .pdgh-in { padding: 0 12px; }
}

/* ==========================================================================
   "Get the app" menu – Windows, Mac & Android
   ========================================================================== */
.pdgh-apps-btn {
  gap: 9px; padding: 0 12px 0 10px; cursor: pointer;
  background: linear-gradient(135deg, #2ecc71, #12805a) !important;
  border: 0 !important;
  box-shadow: 0 6px 16px rgba(18, 128, 90, .28);
  transition: box-shadow .15s, transform .15s, filter .15s;
}
.pdgh-apps-btn:hover, .pdgh-apps.is-open .pdgh-apps-btn { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(18, 128, 90, .36); }
.pdgh-apps-btn.is-active { background: var(--h-dark) !important; box-shadow: none; }
.pdgh-os { display: inline-flex; align-items: center; gap: 1px; padding: 0 6px 0 4px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.pdgh-os i { width: 17px; text-align: center; font-size: .84rem; }
.pdgh-apps-btn .pdgh-caret { color: rgba(255, 255, 255, .85) !important; margin-left: -2px; }

.pdgh-apps .pdgh-menu { left: auto; right: 0; width: 300px; transform: translateY(-6px); }
.pdgh-apps.is-open .pdgh-menu { transform: none; }
@media (hover: hover) and (min-width: 1025px) {
  .pdgh-apps:hover .pdgh-menu { transform: none; }
}
.pdgh-apps-head { display: grid; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--h-line); }
.pdgh-apps-head b { font-size: .95rem; color: var(--h-dark); }
.pdgh-apps-head small { font-size: .76rem; color: var(--h-soft); }
.pdgh-menu--apps a > i:first-child { font-size: 1.05rem; }
.pdgh-menu--apps .pdgh-app-win > i { background: #e8f1fb; color: #0078d4; }
.pdgh-menu--apps .pdgh-app-mac > i { background: #eef0f2; color: #1d1d1f; }
.pdgh-menu--apps .pdgh-app-android > i:first-child { background: #e3f9ec; color: #2bb673; }
.pdgh-menu--apps .pdgh-ext { margin-left: auto; font-size: .7rem; color: var(--h-soft); }
.pdgh-menu--apps a.pdgh-apps-all {
  justify-content: center; gap: 8px; margin-top: 4px; padding: 10px;
  border-top: 1px solid var(--h-line); border-radius: 0 0 10px 10px;
  font-size: .84rem; font-weight: 700; color: var(--h-green-d);
}
.pdgh-menu--apps a.pdgh-apps-all i { font-size: .74rem; }

@media (max-width: 1279px) {
  .pdgh-apps-btn { width: auto; padding: 0 8px 0 6px; }
  .pdgh-apps-btn .pdgh-apps-label { display: none; }
  .pdgh-apps-btn span.pdgh-os { display: inline-flex; }
}

/* mobile menu: app buttons */
.pdgh-mobile-apps { flex-direction: column; gap: 10px; padding: 14px 4px 2px; margin-top: 6px; border-top: 1px solid var(--h-line); }
.pdgh-mobile-apps-title { display: grid; gap: 2px; }
.pdgh-mobile-apps-title b { font-size: .95rem; color: var(--h-dark); }
.pdgh-mobile-apps-title small { font-size: .78rem; color: var(--h-soft); }
.pdgh-mobile-apps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pdgh-app-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 8px;
  border: 1px solid var(--h-line); border-radius: 12px;
  background: #f7faf8; color: var(--h-ink);
  text-decoration: none; font-weight: 700; font-size: .86rem; line-height: 1.15;
}
.pdgh-app-btn i { font-size: 1.3rem; color: var(--h-dark); }
.pdgh-app-btn span { display: grid; }
.pdgh-app-btn small { font-size: .68rem; font-weight: 500; color: var(--h-soft); }
.pdgh-app-btn.is-android i { color: #2bb673; }
/* on Android phones, the Play Store button is the obvious choice */
.pdgh.is-android .pdgh-app-btn.is-android { order: -1; background: #0f1a15; border-color: #0f1a15; color: #fff; }
.pdgh.is-android .pdgh-app-btn.is-android i { color: #3ddc84; }
.pdgh.is-android .pdgh-app-btn.is-android small { color: rgba(255, 255, 255, .7); }
.pdgh-mobile-api { justify-content: center; height: 42px; }
@media (max-width: 360px) {
  .pdgh-app-btn { flex-direction: column; gap: 4px; text-align: center; }
}

/* ==========================================================================
   Shared store badges (home + download page)
   ========================================================================== */
.pdg-store-btn {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 54px; padding: 8px 20px 8px 16px;
  border-radius: 12px; border: 1px solid #000;
  background: #000; color: #fff;
  text-decoration: none; line-height: 1.1;
  transition: transform .18s, box-shadow .18s;
}
.pdg-store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .25); color: #fff; }
.pdg-store-btn > i { font-size: 1.55rem; }
.pdg-store-btn > i.fa-google-play {
  background: linear-gradient(135deg, #00d7fe 10%, #00f076 40%, #ffd500 65%, #ff3a44 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pdg-store-btn span { display: grid; text-align: left; }
.pdg-store-btn small { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.pdg-store-btn b { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.pdg-store-btn.is-light { background: #fff; color: #000; border-color: rgba(255, 255, 255, .6); }
.pdg-store-btn.is-light:hover { color: #000; }
.pdgh-menu--apps a > i.pdgh-ext { width: auto; height: auto; background: none; color: var(--h-soft); font-size: .7rem; }
.pdgh-mobile-pills .pdgh-pill, .pdgh-mobile-api { width: auto !important; padding: 0 16px !important; }
