/* HuntPDF shared header — included on every page */
.hp-header {
  position: sticky; top: 0; z-index: 100;
  background: #FFFFFF; border-bottom: 1px solid rgba(0,0,0,0.10);
}
.hp-header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 8px; height: 62px;
}
.hp-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #0A0A0A; flex-shrink: 0; }
.hp-logo img { height: 32px; width: auto; }
.hp-logo strong { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }

.hp-nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; flex: 1; }
.hp-nav > a, .hp-nav > .hp-drop > button {
  background: none; border: 0; font-family: inherit; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: #3A3A38;
  padding: 8px 10px; border-radius: 8px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.hp-nav > a:hover, .hp-nav > .hp-drop > button:hover { background: #FEE7E7; color: #DC2626; }
.hp-nav .caret { font-size: 9px; opacity: 0.6; }

/* Dropdown */
.hp-drop { position: relative; }
.hp-drop-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid rgba(0,0,0,0.12); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.14); padding: 8px;
  min-width: 230px; display: none;
  max-height: 70vh; overflow-y: auto;
}
.hp-drop:hover .hp-drop-menu { display: block; }
.hp-drop-menu.wide { min-width: 460px; column-count: 2; }
.hp-drop-menu a {
  display: block; padding: 7px 11px; border-radius: 7px;
  font-size: 13px; color: #3A3A38; text-decoration: none;
  break-inside: avoid; white-space: nowrap;
}
.hp-drop-menu a:hover { background: #FEE7E7; color: #DC2626; }
.hp-drop-menu a .soon {
  font-size: 9px; font-weight: 700; background: #EEE; color: #999;
  padding: 1px 5px; border-radius: 5px; margin-left: 6px; vertical-align: middle;
}
.hp-drop-menu a.is-soon { color: #999; }

.hp-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hp-btn-ghost {
  font-size: 13.5px; font-weight: 600; color: #3A3A38; text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
}
.hp-btn-ghost:hover { background: #F2F2F0; }
.hp-btn-solid {
  font-size: 13.5px; font-weight: 700; color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; background: #DC2626;
}
.hp-btn-solid:hover { background: #B91C1C; }

/* Mobile */
.hp-burger { display: none; background: none; border: 0; cursor: pointer; font-size: 22px; padding: 6px; }
@media (max-width: 1100px) {
  .hp-nav { display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px; gap: 2px; border-bottom: 1px solid rgba(0,0,0,0.12);
    max-height: 80vh; overflow-y: auto; }
  .hp-nav.open { display: flex; }
  .hp-burger { display: block; }
  .hp-drop-menu { position: static; display: block; box-shadow: none;
    border: 0; padding: 4px 0 4px 16px; min-width: 0; column-count: 1; }
  .hp-drop-menu.wide { column-count: 1; min-width: 0; }
  .hp-drop > button { width: 100%; justify-content: space-between; }
}

/* Category "View all" link at top of each dropdown */
.hp-drop-menu .hp-drop-all {
  font-weight: 700; color: #DC2626;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 4px; padding-bottom: 9px;
  column-span: all;
}
.hp-drop-menu .hp-drop-all:hover { background: #FEE7E7; }

/* Get Chrome App (extension) button — before Login */
.hp-btn-ext {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #0F172A; text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.18); background: #fff;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.hp-btn-ext:hover { background: #0F172A; color: #fff; border-color: #0F172A; transform: translateY(-1px); }
.hp-btn-ext .hp-ext-ic { font-size: 13px; }
@media (max-width: 1100px) { .hp-btn-ext { display: none; } }

/* ===== All Tools mega-dropdown (iLovePDF-style) ===== */
.hp-drop-mega { position: relative; }
.hp-drop-menu.hp-mega {
  left: 0; right: auto;
  min-width: min(920px, 95vw);
  padding: 14px 16px 16px;
  max-height: 82vh; overflow-y: auto;
}
.hp-drop-menu .hp-mega-all,
.hp-drop-menu a.hp-mega-all {
  display: inline-block; font-weight: 800; color: #DC2626 !important;
  font-size: 13px; padding: 4px 8px 10px; text-decoration: none;
}
.hp-drop-menu .hp-mega-all:hover { color: #B91C1C !important; }
.hp-mega-grid {
  display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 0 16px; align-items: start;
}
.hp-mega-col { min-width: 0; }
.hp-mega-h {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  color: #0A0A0A; padding: 6px 8px 6px; margin-top: 4px;
  border-bottom: 1px solid rgba(0,0,0,0.10); margin-bottom: 4px;
}
.hp-mega .hp-mega-col a {
  display: block; padding: 6px 8px; border-radius: 7px;
  font-size: 12.5px; color: #3A3A38; text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hp-mega .hp-mega-col a:hover { background: #FEE7E7; color: #DC2626; }
.hp-mega .hp-mega-col a.is-soon { color: #9AA0A6; }

@media (max-width: 1100px) {
  .hp-drop-menu.hp-mega { min-width: 0; max-height: none; }
  .hp-mega-grid { grid-template-columns: 1fr; gap: 0; }
  .hp-mega-h { margin-top: 8px; }
}

/* Contact link in header actions */
.hp-nav-contact{font-size:14px;font-weight:600;color:#0A0A0A;text-decoration:none;padding:8px 12px;border-radius:8px;transition:color .15s,background .15s}
.hp-nav-contact:hover{color:#DC2626;background:#FEE7E7}
@media (max-width:1100px){ .hp-nav-contact{display:none} }

/* Subscription button (outline) after Login */
.hp-btn-outline{font-size:13.5px;font-weight:700;color:#DC2626;text-decoration:none;padding:8px 16px;border-radius:999px;background:#fff;border:1.5px solid #DC2626;transition:background .15s,color .15s}
.hp-btn-outline:hover{background:#DC2626;color:#fff}
