:root {
  --pct-red: #e11d2e;
  --pct-red-dark: #c9182a;
  --pct-navy: #0f172a;
  --pct-blue: #2563eb;
  --pct-text: #172033;
  --pct-muted: #64748b;
  --pct-line: #e5eaf3;
  --pct-soft: #f8fafc;
  --pct-header-height: 68px;
  --pct-shell-max: 1500px;
  --pct-readable-max: 1120px;
  --pct-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pct-text);
  background: #fff;
  font-family: var(--pct-font-sans);
  line-height: 1.6;
}
html.pct-menu-open,
body.pct-menu-open { overflow: hidden; overscroll-behavior: none; }
img { max-width: 100%; height: auto; }
a { color: var(--pct-blue); }
button, input, textarea, select { font: inherit; }

/* ---------------------------------------------------------
   Header / branding
--------------------------------------------------------- */
.pct-theme-header {
  position: relative;
  z-index: 1000000;
  width: 100%;
  min-height: var(--pct-header-height);
  border-bottom: 1px solid #edf0f5;
  background: rgba(255,255,255,.98);
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
}
.pct-theme-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 36px, var(--pct-shell-max));
  min-height: var(--pct-header-height);
  margin: 0 auto;
}
.pct-theme-brand-wrap {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 190px;
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 230px;
  text-decoration: none;
}
.custom-logo {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 46px;
}
.pct-brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pct-navy);
  text-decoration: none;
  white-space: nowrap;
}
.pct-brand-mark {
  display: inline-flex;
  width: 30px;
  height: 34px;
  color: var(--pct-red);
}
.pct-brand-mark svg { width: 100%; height: 100%; }
.pct-brand-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.035em;
}

/* Desktop and mobile navigation use separate DOM surfaces. */
.pct-theme-primary-navigation {
  flex: 1 1 auto;
  min-width: 0;
}
.pct-theme-primary-navigation > ul { list-style: none; }
.pct-theme-desktop-navigation { display: block; }
.pct-theme-mobile-navigation { display: none; }
.pct-theme-primary-menu { margin: 0; padding: 0; }
.pct-theme-fallback-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.pct-theme-fallback-menu a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  color: var(--pct-text);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.pct-theme-fallback-menu a:hover { color: var(--pct-red); background: #fff7f8; }
.pct-theme-fallback-menu .pct-theme-report-link { color: #fff; background: var(--pct-red); }
.pct-theme-fallback-menu .pct-theme-report-link:hover { color: #fff; background: var(--pct-red-dark); }

.pct-theme-menu-toggle,
.pct-theme-drawer-head,
.pct-theme-mobile-search,
.pct-theme-nav-backdrop { display: none; }

/* Header search: compact and independent from navigation plugin code. */
.pct-theme-search-wrap { position: relative; flex: 0 0 auto; }
.pct-theme-search-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  color: #334155;
  background: #fff;
  cursor: pointer;
}
.pct-theme-search-toggle:hover,
.pct-theme-search-toggle[aria-expanded="true"] { color: var(--pct-blue); background: #f5f8ff; border-color: #cfdcf8; }
.pct-theme-search-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pct-theme-search-panel {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  width: min(360px, calc(100vw - 30px));
  padding: 12px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15,23,42,.16);
}
.pct-theme-search-panel[hidden] { display: none !important; }
.pct-theme-search-panel .search-form,
.pct-theme-mobile-search .search-form { display: flex; gap: 8px; margin: 0; }
.pct-theme-search-panel .search-field,
.pct-theme-mobile-search .search-field {
  min-width: 0;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d8e0ea;
  border-radius: 9px;
  outline: none;
}
.pct-theme-search-panel .search-field:focus,
.pct-theme-mobile-search .search-field:focus { border-color: #9bb8f6; box-shadow: 0 0 0 3px rgba(37,99,235,.11); }
.pct-theme-search-panel .search-submit,
.pct-theme-mobile-search .search-submit {
  min-width: 74px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--pct-navy);
  font-weight: 800;
  cursor: pointer;
}

/* ---------------------------------------------------------
   Global content shell
   Never impose a theme container on tool/workspace pages.
--------------------------------------------------------- */
.pct-site-content {
  width: 100%;
  min-width: 0;
  padding: 0;
}
.pct-theme-main { width: 100%; min-width: 0; }
.pct-theme-main--front { margin: 0; padding: 0; }
.pct-content-shell { width: 100%; margin: 0 auto; }
.pct-content-shell--full { max-width: none; padding: 0; }
.pct-content-shell--readable { max-width: var(--pct-readable-max); padding: 46px 24px 70px; }
.pct-content-shell--article { max-width: 920px; padding: 52px 24px 76px; }
/* Core workspace is a true viewport surface. The site shell must never sit above it. */
body.hn-convert-workspace-open .pct-theme-header,
body.pct-mobile-workspace-open .pct-theme-header {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

body.pct-theme-full-width .pct-site-content,
body.pct-theme-full-width .pct-theme-main,
body.pct-theme-full-width .pct-content-shell,
body.pct-direct-workspace-page .pct-site-content,
body.pct-direct-workspace-page .pct-theme-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.pct-page-entry,
.pct-entry-content { width: 100%; min-width: 0; }
.pct-entry-header { margin: 0 0 28px; }
.pct-entry-title {
  margin: 0;
  color: var(--pct-navy);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.pct-entry-meta { margin: 9px 0 0; color: var(--pct-muted); font-size: 14px; }
.pct-entry-content > :first-child { margin-top: 0; }
.pct-entry-content > :last-child { margin-bottom: 0; }

/* v1.0.37 — Managed full-width WordPress block normalization.
   Core Gutenberg wrappers are normalized by the Theme, not by Layout or a page-builder compatibility rule. */
body.pct-theme-full-width .pct-theme-main > .wp-block-shortcode:first-child,
body.pct-theme-full-width .pct-theme-main > .wp-block-html:first-child,
body.pct-theme-full-width .pct-theme-main > .wp-block-group:first-child,
body.pct-theme-full-width .pct-entry-content > .wp-block-shortcode:first-child,
body.pct-theme-full-width .pct-entry-content > .wp-block-html:first-child,
body.pct-theme-full-width .pct-entry-content > .wp-block-group:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.pct-theme-full-width .pct-theme-main > .wp-block-shortcode:first-child > :first-child,
body.pct-theme-full-width .pct-theme-main > .wp-block-html:first-child > :first-child,
body.pct-theme-full-width .pct-theme-main > .wp-block-group:first-child > :first-child,
body.pct-theme-full-width .pct-entry-content > .wp-block-shortcode:first-child > :first-child,
body.pct-theme-full-width .pct-entry-content > .wp-block-html:first-child > :first-child,
body.pct-theme-full-width .pct-entry-content > .wp-block-group:first-child > :first-child {
  margin-top: 0;
}
.pct-featured-image { margin: 0 0 30px; }
.pct-featured-image img { display: block; width: 100%; border-radius: 18px; }

/* Blog/index/search */
.pct-index-header { margin-bottom: 28px; }
.pct-index-header h1 { margin: 0; color: var(--pct-navy); font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.pct-post-list { display: grid; gap: 18px; }
.pct-post-card { padding: 24px; border: 1px solid var(--pct-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(15,23,42,.05); }
.pct-post-card h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.2; }
.pct-post-card h2 a { color: var(--pct-navy); text-decoration: none; }
.pct-post-card h2 a:hover { color: var(--pct-red); }
.navigation.pagination { margin-top: 32px; }

/* 404 */
.pct-404-main { background: #f8fafc; }
.pct-404-card { min-height: 58vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.pct-404-code { color: var(--pct-red); font-size: 15px; font-weight: 900; letter-spacing: .14em; }
.pct-404-card h1 { margin: 6px 0 10px; color: var(--pct-navy); font-size: clamp(38px, 6vw, 64px); line-height: 1; letter-spacing: -.045em; }
.pct-404-card p { max-width: 620px; margin: 0; color: var(--pct-muted); font-size: 17px; }
.pct-404-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pct-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border: 1px solid #dbe2ea; border-radius: 10px; color: var(--pct-navy); background: #fff; font-weight: 800; text-decoration: none; }
.pct-button--primary { color: #fff; border-color: var(--pct-red); background: var(--pct-red); }

/* ---------------------------------------------------------
   Theme-owned footer
--------------------------------------------------------- */
.pct-theme-footer {
  width: 100%;
  margin: 0;
  padding: 44px 22px 20px;
  color: #d6deea;
  background: #0f172a;
}
.pct-theme-footer-inner { width: min(100%, 1240px); margin: 0 auto; }
.pct-theme-footer-brand a { color: #fff; font-size: 21px; font-weight: 900; letter-spacing: -.02em; text-decoration: none; }
.pct-theme-footer-brand p { max-width: 650px; margin: 8px 0 0; color: #aebcd0; font-size: 13px; line-height: 1.65; }
.pct-theme-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 9px 22px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.pct-theme-footer-links a { color: #c6d0de; font-size: 12.5px; font-weight: 650; text-decoration: none; }
.pct-theme-footer-links a:hover { color: #fff; }
.pct-theme-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #8291a6;
  font-size: 12px;
}
.pct-theme-footer-bottom a { color: #aebcd0; text-decoration: none; }

/* ---------------------------------------------------------
   Mobile navigation - owned entirely by PDF Core Tools Theme.
--------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --pct-header-height: 62px; }
  .pct-theme-header-inner { width: calc(100% - 28px); gap: 10px; }
  .pct-theme-brand-wrap { min-width: 0; flex: 1 1 auto; }
  .custom-logo-link { max-width: 205px; }
  .custom-logo { max-width: 205px; max-height: 40px; }
  .pct-brand-text { font-size: 18px; }
  .pct-brand-mark { width: 27px; height: 31px; }

  .pct-theme-search-wrap { display: none; }
  .pct-theme-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e0e6ee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .pct-theme-menu-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--pct-navy); transition: transform .18s ease, opacity .18s ease; }
  .pct-theme-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .pct-theme-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .pct-theme-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .pct-theme-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000001;
    border: 0;
    background: rgba(15,23,42,.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .08s ease-out, visibility .08s linear;
  }
  .pct-theme-nav-backdrop.is-open { opacity: 1; visibility: visible; }
  .pct-theme-nav-backdrop[hidden] { display: none !important; }

  .pct-theme-primary-navigation {
    position: fixed !important;
    top: 0;
    right: 0;
    z-index: 1000002 !important;
    width: min(92vw, 430px);
    height: 100dvh;
    min-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: -24px 0 60px rgba(15,23,42,.2);
    transform: translate3d(100%,0,0);
    visibility: hidden;
    will-change: transform;
    contain: layout paint;
    transition: transform .09s ease-out, visibility .09s linear;
  }
  .pct-theme-primary-navigation.is-open { transform: translate3d(0,0,0); visibility: visible; }
  .pct-theme-drawer-head {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 14px 0 17px;
    border-bottom: 1px solid #e8edf3;
    background: rgba(255,255,255,.98);
  }
  .pct-theme-drawer-brand { color: var(--pct-navy); font-size: 18px; font-weight: 900; letter-spacing: -.03em; text-decoration: none; }
  .pct-theme-drawer-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0 0 3px;
    border: 1px solid #e0e6ee;
    border-radius: 9px;
    color: #475569;
    background: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
  }
  .pct-theme-mobile-search { display: block; padding: 13px 14px; border-bottom: 1px solid #edf1f5; background: #f8fafc; }
  .pct-theme-primary-navigation > .pct-theme-primary-menu,
  .pct-theme-primary-navigation > .pct-custom-header-menu { padding-bottom: 22px !important; }

  .pct-theme-fallback-menu { display: block; padding: 8px 14px 20px; }
  .pct-theme-fallback-menu li { border-bottom: 1px solid #eef2f7; }
  .pct-theme-fallback-menu a { width: 100%; min-height: 50px; justify-content: flex-start; }

  body.admin-bar .pct-theme-primary-navigation { top: 32px; height: calc(100dvh - 32px); min-height: calc(100vh - 32px); }

  .pct-content-shell--readable,
  .pct-content-shell--article { padding-left: 18px; padding-right: 18px; }
  .pct-theme-footer-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 782px) {
  body.admin-bar .pct-theme-primary-navigation { top: 46px; height: calc(100dvh - 46px); min-height: calc(100vh - 46px); }
}

@media (max-width: 560px) {
  .pct-theme-header-inner { width: calc(100% - 22px); }
  .custom-logo-link { max-width: 188px; }
  .custom-logo { max-width: 188px; }
  .pct-brand-text { font-size: 17px; }
  .pct-theme-footer { padding-left: 18px; padding-right: 18px; }
  .pct-theme-footer-links { grid-template-columns: 1fr; }
  .pct-theme-footer-bottom { flex-direction: column; }
  .pct-404-actions { width: 100%; }
  .pct-404-actions .pct-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   v1.0.2 — Theme-owned mobile category accordion
   Layout provides registry-driven markup; Theme owns behavior/surface.
========================================================= */
@media (max-width: 921px) {
  .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-dropdown {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 52px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    background: #fff !important;
  }

  .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-dropdown > a.pct-nav-parent-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 0 18px !important;
    color: var(--pct-navy) !important;
    background: #fff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
  }

  .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-dropdown.is-open > a.pct-nav-parent-link {
    color: var(--pct-red) !important;
    background: #fff8f9 !important;
  }

  .pct-theme-primary-navigation .pct-nav-mobile-toggle {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    place-items: center !important;
    width: 52px !important;
    height: 58px !important;
    min-width: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #eef2f7 !important;
    border-radius: 0 !important;
    color: #334155 !important;
    background: #fff !important;
    cursor: pointer !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .pct-theme-primary-navigation .pct-nav-mobile-toggle::before {
    content: "" !important;
    width: 10px !important;
    height: 10px !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    transform: rotate(45deg) translate(-2px, -2px) !important;
    transform-origin: center !important;
    transition: transform .08s ease-out !important;
  }

  .pct-theme-primary-navigation .pct-nav-dropdown.is-open > .pct-nav-mobile-toggle {
    color: var(--pct-red) !important;
    background: #fff8f9 !important;
  }

  .pct-theme-primary-navigation .pct-nav-dropdown.is-open > .pct-nav-mobile-toggle::before {
    transform: rotate(225deg) translate(-1px, -1px) !important;
  }

  .pct-theme-primary-navigation .pct-nav-parent-link .pct-nav-chevron {
    display: none !important;
  }

  .pct-theme-primary-navigation .pct-custom-header-menu .pct-nav-panel.sub-menu,
  .pct-theme-primary-navigation .pct-custom-header-menu .pct-nav-wide-panel.sub-menu,
  .pct-theme-primary-navigation .pct-custom-header-menu .pct-nav-image-panel.sub-menu,
  .pct-theme-primary-navigation .pct-custom-header-menu .pct-nav-directory-panel.sub-menu,
  .pct-theme-primary-navigation .pct-custom-header-menu .pct-nav-mega-panel.sub-menu {
    position: static !important;
    grid-column: 1 / -1 !important;
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid #e9edf3 !important;
    border-radius: 0 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  .pct-theme-primary-navigation .pct-custom-header-menu .pct-nav-dropdown.is-open > .pct-nav-panel.sub-menu,
  .pct-theme-primary-navigation .pct-custom-header-menu .pct-nav-dropdown.is-open > .pct-nav-wide-panel.sub-menu,
  .pct-theme-primary-navigation .pct-custom-header-menu .pct-nav-dropdown.is-open > .pct-nav-image-panel.sub-menu,
  .pct-theme-primary-navigation .pct-custom-header-menu .pct-nav-dropdown.is-open > .pct-nav-directory-panel.sub-menu,
  .pct-theme-primary-navigation .pct-custom-header-menu .pct-nav-dropdown.is-open > .pct-nav-mega-panel.sub-menu {
    display: block !important;
  }

  .pct-theme-primary-navigation .pct-nav-panel > .pct-nav-panel-shell {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px !important;
    background: #f8fafc !important;
  }

  .pct-theme-primary-navigation .pct-nav-section-grid,
  .pct-theme-primary-navigation .pct-nav-image-grid .pct-nav-group-links,
  .pct-theme-primary-navigation .pct-nav-directory-grid,
  .pct-theme-primary-navigation .pct-nav-compact-grid,
  .pct-theme-primary-navigation .pct-nav-mega-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .pct-theme-primary-navigation .pct-nav-section,
  .pct-theme-primary-navigation .pct-nav-mega-column {
    min-width: 0 !important;
  }

  .pct-theme-primary-navigation .pct-nav-tool-link {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* ==========================================================
   v1.0.4 — Complete mobile navigation ownership
   Layout provides menu data/markup only. The Theme explicitly resets the
   desktop flex navigation so the drawer content can never disappear on mobile.
========================================================== */
@media (max-width: 921px) {
  html body.pct-theme-active .pct-theme-primary-navigation > ul.pct-theme-primary-menu,
  html body.pct-theme-active .pct-theme-primary-navigation > ul.pct-custom-header-menu,
  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu {
    display: block !important;
    flex: none !important;
    flex-flow: initial !important;
    flex-wrap: initial !important;
    align-items: initial !important;
    justify-content: initial !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 22px !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu > li {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-dropdown {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 52px !important;
    align-items: stretch !important;
  }

  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-contact,
  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-report,
  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-direct {
    display: block !important;
  }

  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-contact > a.menu-link,
  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-report > a.menu-link,
  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-direct > a.menu-link {
    display: flex !important;
    width: auto !important;
    min-height: 50px !important;
    margin: 8px 14px 0 !important;
    padding: 0 15px !important;
    justify-content: flex-start !important;
  }

  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu > li.pct-nav-report > a.menu-link {
    justify-content: center !important;
  }

  html body.pct-theme-active .pct-theme-primary-navigation .pct-custom-header-menu > li.current-menu-item > a.menu-link::after {
    display: none !important;
  }
}


/* =========================================================
   v1.0.9 — Dedicated mobile navigation bundled in theme.css
   This block intentionally lives at the END of the primary stylesheet so
   it remains authoritative even when plugin styles load later, without relying on a second CSS file.
========================================================= */
/*
 * PDF Core Tools Theme v1.0.9
 * Dedicated mobile navigation surface. Desktop mega-menu markup is never
 * repurposed here, so Layout desktop submenu geometry cannot interfere.
 */
@media (max-width: 1180px) {
  .pct-theme-desktop-navigation { display: none !important; }
  .pct-theme-mobile-navigation { display: block !important; width: 100%; }

  #pct-primary-navigation {
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .pct-mobile-nav-menu {
    display: block;
    width: 100%;
    padding: 8px 12px 24px;
  }

  .pct-mobile-nav-category {
    --mobile-accent: #2563eb;
    --mobile-accent-soft: #eff6ff;
    margin: 0 0 10px;
    border: 1px solid #e5eaf2;
    border-radius: 15px;
    background: #fff;
    overflow: clip;
    box-shadow: 0 3px 12px rgba(15,23,42,.035);
  }
  .pct-mobile-nav-category.pct-mobile-tone-pdf { --mobile-accent:#e11d2e; --mobile-accent-soft:#fff1f2; }
  .pct-mobile-nav-category.pct-mobile-tone-image { --mobile-accent:#ea580c; --mobile-accent-soft:#fff7ed; }
  .pct-mobile-nav-category.pct-mobile-tone-optimize { --mobile-accent:#7c3aed; --mobile-accent-soft:#f5f3ff; }
  .pct-mobile-nav-category.pct-mobile-tone-more { --mobile-accent:#059669; --mobile-accent-soft:#ecfdf5; }
  .pct-mobile-nav-category.pct-mobile-tone-all { --mobile-accent:#0f172a; --mobile-accent-soft:#f1f5f9; }

  .pct-mobile-nav-category > summary {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 28px;
    align-items: center;
    gap: 11px;
    min-height: 66px;
    padding: 10px 13px;
    color: #0f172a;
    background: #fff;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .pct-mobile-nav-category > summary::-webkit-details-marker { display:none; }
  .pct-mobile-nav-category > summary::marker { content:""; }
  .pct-mobile-nav-category[open] > summary { background: var(--mobile-accent-soft); }

  .pct-mobile-category-icon {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border-radius:12px;
    color:#fff;
    background:var(--mobile-accent);
    font-size:18px;
    font-weight:900;
    box-shadow:0 5px 12px color-mix(in srgb, var(--mobile-accent) 20%, transparent);
  }
  .pct-mobile-category-copy { min-width:0; }
  .pct-mobile-category-copy strong {
    display:block;
    color:#0f172a;
    font-size:15px;
    line-height:1.2;
    font-weight:900;
  }
  .pct-mobile-category-copy small {
    display:block;
    margin-top:3px;
    color:#64748b;
    font-size:11.5px;
    line-height:1.3;
    font-weight:650;
  }
  .pct-mobile-category-chevron {
    width:10px;
    height:10px;
    justify-self:center;
    border-right:2px solid #64748b;
    border-bottom:2px solid #64748b;
    transform:rotate(45deg) translate(-2px,-2px);
    transition:transform .12s ease;
  }
  .pct-mobile-nav-category[open] .pct-mobile-category-chevron {
    transform:rotate(225deg) translate(-1px,-1px);
    border-color:var(--mobile-accent);
  }

  .pct-mobile-nav-body {
    padding: 12px;
    border-top:1px solid #e8edf4;
    background:#fbfcfe;
  }
  .pct-mobile-category-page {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:42px;
    margin:0 0 12px;
    padding:0 12px;
    border:1px solid color-mix(in srgb, var(--mobile-accent) 22%, #e5e7eb);
    border-radius:10px;
    color:var(--mobile-accent);
    background:var(--mobile-accent-soft);
    font-size:12.5px;
    font-weight:850;
    text-decoration:none;
  }

  .pct-mobile-nav-group {
    margin:0 0 14px;
    padding:0;
  }
  .pct-mobile-nav-group:last-child { margin-bottom:0; }
  .pct-mobile-group-head {
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 2px 7px;
    color:#475569;
    font-size:11px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.055em;
    text-transform:uppercase;
  }
  .pct-mobile-group-head span {
    display:grid;
    place-items:center;
    width:25px;
    height:25px;
    border-radius:8px;
    color:var(--mobile-accent);
    background:var(--mobile-accent-soft);
    font-size:13px;
  }

  .pct-mobile-tool-list {
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
  }
  .pct-mobile-tool-link {
    position:relative;
    display:grid;
    grid-template-columns:66px minmax(0,1fr) 18px;
    align-items:center;
    gap:10px;
    min-height:51px;
    padding:7px 10px 7px 8px;
    border:1px solid #e7ebf1;
    border-radius:11px;
    color:#172033;
    background:#fff;
    text-decoration:none;
    box-shadow:0 1px 2px rgba(15,23,42,.025);
  }
  .pct-mobile-tool-link::after {
    content:"›";
    justify-self:end;
    color:#94a3b8;
    font-size:20px;
    line-height:1;
  }
  .pct-mobile-tool-link:active { transform:scale(.995); }
  .pct-mobile-tool-link.is-current {
    border-color:color-mix(in srgb, var(--mobile-accent) 35%, #e7ebf1);
    background:var(--mobile-accent-soft);
  }
  .pct-mobile-tool-title {
    min-width:0;
    color:#172033;
    font-size:13px;
    line-height:1.25;
    font-weight:800;
  }

  /* Reuse Layout v1.3.60's distinct visual language inside mobile rows. */
  .pct-mobile-tool-link .pct-directory-tool-visual {
    width:66px;
    min-width:66px;
    height:34px;
    margin:0;
    border-radius:8px;
    box-shadow:none;
  }
  .pct-mobile-tool-link .pct-visual-format { font-size:9px; }
  .pct-mobile-tool-link .pct-visual-arrow { font-size:11px; }
  .pct-mobile-tool-link .pct-visual-symbol { font-size:12px; }
  .pct-mobile-tool-link .pct-visual-label { font-size:8px; }

  .pct-mobile-all-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:10px;
  }
  .pct-mobile-all-shortcut {
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:68px;
    padding:11px;
    border:1px solid #e5eaf2;
    border-radius:11px;
    color:#172033;
    background:#fff;
    text-decoration:none;
  }
  .pct-mobile-all-shortcut strong { font-size:12px; font-weight:900; }
  .pct-mobile-all-shortcut small { margin-top:2px; color:#64748b; font-size:10px; line-height:1.25; }
  .pct-mobile-all-link {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    border-radius:11px;
    color:#fff;
    background:#0f172a;
    font-size:12.5px;
    font-weight:900;
    text-decoration:none;
  }

  .pct-mobile-nav-utilities {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:12px;
  }
  .pct-mobile-utility-link {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 10px;
    border:1px solid #e5eaf2;
    border-radius:11px;
    color:#334155;
    background:#fff;
    font-size:12px;
    font-weight:850;
    text-decoration:none;
  }
  .pct-mobile-utility-link.pct-mobile-report { color:#b91c1c; background:#fff7f7; border-color:#fecdd3; }
}

@media (min-width: 1181px) {
  .pct-theme-desktop-navigation { display:block !important; }
  .pct-theme-mobile-navigation { display:none !important; }
}


/* =========================================================
   v1.0.10 — Compact desktop/tablet header breakpoint
   The full desktop navigation requires more horizontal room than 922px.
   At 1180px and below the header now uses the dedicated drawer, preventing
   Search / Contact / Report an Error collisions without shrinking controls.
========================================================= */
@media (max-width: 1180px) {
  .pct-theme-header-inner { max-width: none; }
}


/* ---------------------------------------------------------
   v1.0.14 — predictive header/mobile search
   Matches the compact directory-search language: one field,
   embedded search action, clear control and live predictions.
--------------------------------------------------------- */
.pct-predictive-search { position: relative; width: 100%; min-width: 0; }
.pct-predictive-search-form {
  position: relative;
  display: block !important;
  width: 100%;
  margin: 0 !important;
}
.pct-predictive-search-leading {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  z-index: 2;
}
.pct-predictive-search-leading svg,
.pct-predictive-search-submit svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.pct-predictive-search-input {
  display: block;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 82px 0 42px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #0f172a !important;
  font: inherit !important;
  font-size: 14px !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}
.pct-predictive-search-input:focus {
  border-color: #8fb2f3 !important;
  box-shadow: 0 0 0 3px rgba(37,96,235,.10) !important;
}
.pct-predictive-search-clear,
.pct-predictive-search-submit {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  cursor: pointer;
  z-index: 3;
}
.pct-predictive-search-clear {
  right: 45px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
}
.pct-predictive-search-clear:hover { background: #f1f5f9; color: #334155; }
.pct-predictive-search-submit {
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #0f172a;
  color: #fff;
}
.pct-predictive-search-submit:hover { background: #1e293b; }
.pct-predictive-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  z-index: 10030;
  max-height: min(390px, 55vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  padding: 6px;
  border: 1px solid #dde4ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15,23,42,.16);
}
.pct-predictive-search-results[hidden] { display: none !important; }
.pct-predictive-search-option {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 7px 9px;
  border-radius: 9px;
  color: #0f172a;
  text-decoration: none !important;
  touch-action: pan-y;
}
.pct-predictive-search-option:hover,
.pct-predictive-search-option.is-active {
  background: #f6f8fb;
  color: #0f172a;
}
.pct-predictive-search-option-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #334155;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .02em;
}
.pct-predictive-search-option-copy { min-width: 0; }
.pct-predictive-search-option-copy strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pct-predictive-search-option-copy small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pct-predictive-search-option-group {
  max-width: 108px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pct-predictive-search-empty {
  padding: 12px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}
.pct-theme-search-panel .pct-predictive-search { width: 100%; }
.pct-theme-search-panel { width: min(410px, calc(100vw - 30px)); }
.pct-theme-search-panel .pct-predictive-search-input { height: 44px !important; min-height: 44px !important; }

@media (max-width:1180px) {
  .pct-theme-mobile-search { padding: 13px 14px !important; overflow: visible !important; }
  .pct-theme-mobile-search .pct-predictive-search-input {
    height: 48px !important;
    min-height: 48px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
  }
  .pct-theme-mobile-search .pct-predictive-search-results {
    position: absolute;
    max-height: min(420px, 52vh);
  }
}

/* v1.0.20 — predictive results are scroll-safe buttons on touch devices. */
.pct-predictive-search-option {
  width:100%;
  border:0;
  background:transparent;
  font:inherit;
  text-align:left;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.pct-theme-mobile-search .pct-predictive-search-results {
  overflow-y:auto !important;
  overscroll-behavior-y:contain !important;
  -webkit-overflow-scrolling:touch !important;
  touch-action:pan-y !important;
}

/* v1.0.32 — mobile predictive rows keep native vertical scrolling while the
   complete row becomes the click target. No child owns an independent gesture. */
@media (max-width:1180px) {
  .pct-predictive-search--mobile .pct-predictive-search-option-mobile {
    cursor: pointer !important;
    touch-action: pan-y !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: rgba(15,23,42,.05) !important;
  }
  .pct-predictive-search--mobile .pct-predictive-search-option-mobile > * {
    pointer-events: none !important;
  }
  .pct-predictive-search--mobile .pct-predictive-search-option-group-mobile {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:4px !important;
    max-width:108px !important;
  }
  .pct-predictive-search--mobile .pct-predictive-search-open-arrow {
    flex:0 0 auto !important;
    color:#64748b !important;
    font-size:18px !important;
    font-weight:800 !important;
    line-height:1 !important;
  }
  .pct-predictive-search--mobile .pct-predictive-search-option-mobile:active {
    background:#f1f5f9 !important;
  }
}

/* v1.0.31 — Predictive search owns the clear control.
   Hide browser-native search decorations/cancel affordances so only the
   Theme's .pct-predictive-search-clear button is visible on every device. */
.pct-predictive-search-input::-webkit-search-cancel-button,
.pct-predictive-search-input::-webkit-search-decoration,
.pct-predictive-search-input::-webkit-search-results-button,
.pct-predictive-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pct-predictive-search-input::-ms-clear,
.pct-predictive-search-input::-ms-reveal {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}


/* =========================================================
   v1.0.59 — Mobile drawer scroll ownership.
   Body scroll stays locked while the drawer is open, but the fixed drawer
   itself remains the native vertical scroll container on Android/iOS. The
   bottom safe-space ensures every language choice is reachable.
========================================================= */
@media (max-width:1180px) {
  html body.pct-theme-active #pct-primary-navigation {
    height:100vh !important;
    height:100dvh !important;
    max-height:100dvh !important;
    min-height:0 !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior-y:contain !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-y pinch-zoom !important;
    contain:none !important;
  }
  html body.pct-theme-active #pct-primary-navigation .pct-theme-mobile-navigation,
  html body.pct-theme-active #pct-primary-navigation .pct-mobile-nav-menu,
  html body.pct-theme-active #pct-primary-navigation .pct-ml-mobile-switcher {
    touch-action:pan-y !important;
  }
  html body.pct-theme-active #pct-primary-navigation .pct-mobile-nav-menu {
    padding-bottom:calc(32px + env(safe-area-inset-bottom,0px)) !important;
  }
  html body.pct-theme-active #pct-primary-navigation .pct-ml-mobile-switcher {
    margin-bottom:calc(28px + env(safe-area-inset-bottom,0px)) !important;
  }
}
