

/* ==========================================================================
   DESIGN SYSTEM — CSS VARIABLES
   ==========================================================================
   The original Technix :root block has been REMOVED. It redefined global
   tokens (--red, --gray-*, etc.) that differ from this theme's tokens.css and
   would have shifted the whole site's red. With it gone, every var() below
   inherits the theme's tokens.css (the single source of truth). All tokens
   this file actually uses (--red, --red-dark, --black, --dark, --dark-2,
   --border, --white, --off-white, --gray-100/200/400/600, --font-display,
   --font-body, --max-w, --section-gap, --radius) exist in tokens.css. The two
   originals not present there (--dark-3, --mid) were unused in this file. */

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

.prota-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
}
.prota-btn:active { transform: scale(0.98) translateY(1px); }

.prota-btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(225,27,34,.25);
}
.prota-btn-red:hover {
  background: var(--red-dark);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(225,27,34,.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.prota-btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.prota-btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-1px);
  text-decoration: none;
}

.prota-btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.prota-btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ==========================================================================
   SECTION LABEL
   ========================================================================== */

.prota-section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.prota-section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* ==========================================================================
   MANUALS HUB PAGE (mhub-*)
   ========================================================================== */

/* Hero band */
.mhub-hero {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.mhub-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
}
.mhub-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.mhub-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-md);
}
.mhub-hero-eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--red);
}
.mhub-hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem) !important;
  font-weight: 800!important;
  color: var(--white) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.05 !important;
  margin: 0 0 16px !important;
}
.mhub-hero-sub {
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.7;
  max-width: 380px;
  margin: 0;
}

/* Search */
.mhub-search-form { width: 100%; }
.mhub-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.mhub-search-icon {
  position: absolute;
  left: 16px;
  width: 16px;
  height: 16px;
  color: var(--white);
  pointer-events: none;
}
.mhub-search-input {
  width: 100%;
  padding: 16px 130px 16px 46px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mhub-search-input::placeholder { color: var(--white); }
.mhub-search-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,27,34,.12);
}
.mhub-search-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.mhub-search-btn:hover { background: var(--red-dark); }

.mhub-search-hints {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mhub-search-hints span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.mhub-search-hints a {
  font-size: 0.78rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color 0.15s, border-color 0.15s;
}
.mhub-search-hints a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.25);
}

/* Body layout */
.mhub-body {
  background: var(--off-white);
  min-height: 60vh;
}
.mhub-body-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 48px 80px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Sidebar */
.mhub-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  overflow-x: hidden;
}
.mhub-sidebar::-webkit-scrollbar { width: 3px; }
.mhub-sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); }

.mhub-sidebar-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  border-top: 2px solid var(--red);
  padding: 28px;
}
.mhub-sidebar-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-black);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

/* Content area */
.mhub-content { min-width: 0; }
.mhub-content-header { margin-bottom: 32px; }
.mhub-content-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.mhub-content-sub {
  font-size: 0.9rem;
  color: var(--color-black);
  line-height: 1.65;
  margin: 0;
}

/* Cards grid */
.mhub-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.mhub-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.mhub-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.mhub-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.mhub-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray-600);
  transition: stroke 0.2s;
}
.mhub-card:hover .mhub-card-icon {
  background: rgba(225,27,34,.06);
  border-color: rgba(225,27,34,.2);
}
.mhub-card:hover .mhub-card-icon svg { stroke: var(--red); }
.mhub-card-body { min-width: 0; }
.mhub-card-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  line-height: 1.3;
}
.mhub-card-desc {
  font-size: 0.82rem;
  color: var(--color-black);
  line-height: 1.6;
  margin: 0 0 10px;
}
.mhub-card-link {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  transition: letter-spacing 0.2s;
}
.mhub-card:hover .mhub-card-link { letter-spacing: 0.12em; }

/* ==========================================================================
   SINGLE MANUAL POST (msp-*)
   ========================================================================== */

/* Body */
.msp-body {
  background: var(--off-white);
  padding: 40px 0 80px;
}

/* 3-column layout — CSS grid replacement for the original Bootstrap
   container/row/col-lg-3/6/9 markup (this theme does not load Bootstrap).
   With video: 320px TOC + fluid content + 320px video. Without: 320px + fluid.
   320px matches the hub sidebar width; collapses to one column at 991px. */
.msp-grid {
  display: grid;
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  box-sizing: border-box;
}
.msp-grid--with-video {
  grid-template-columns: 320px minmax(0, 1fr) 320px;
}
.msp-grid--no-video {
  grid-template-columns: 320px minmax(0, 1fr);
}

/* Sidebar wrapper */
.msp-sidebar-wrap {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}
.msp-sidebar-wrap::-webkit-scrollbar { width: 3px; }
.msp-sidebar-wrap::-webkit-scrollbar-thumb { background: var(--gray-200); }

/* Content wrapper */
.msp-content-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  border-top: 2px solid var(--red);
  padding: 48px 44px;
}

/* Post header */
.msp-post-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}
.msp-post-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem) !important;
  font-weight: 800 !important;
  color: var(--black) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Post content typography */
.msp-post-content {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-black);
  line-height: 1.78;
}

/* Hide parent theme post meta */
.msp-content-wrap .postbox__meta-wrapper,
.msp-content-wrap .tp-blog-meta,
.msp-content-wrap .postbox__tag,
.msp-content-wrap .postbox__author-bio,
.msp-content-wrap .post-thumbnail,
.msp-content-wrap .tp-postbox-thumb,
.msp-content-wrap figure.wp-block-post-featured-image,
.msp-content-wrap .entry-header .entry-meta,
.msp-content-wrap .tp-blog__post-meta { display: none !important; }

.msp-post-content h1,
.msp-post-content h2,
.msp-post-content h3,
.msp-post-content h4,
.msp-post-content h5,
.msp-post-content h6 {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  color: var(--black) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  margin-top: 2em !important;
  margin-bottom: 0.75em !important;
}
.msp-post-content h2 {
  font-size: 1.35rem !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--gray-200) !important;
}
.msp-post-content h3 { font-size: 1.1rem !important; }
.msp-post-content h4 { font-size: 0.95rem !important; }

.msp-post-content p {
  margin-bottom: 1.2em !important;
  font-size: 0.95rem !important;
  color: var(--color-black) !important;
  line-height: 1.78 !important;
}
.msp-post-content a {
  color: var(--red) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-color: rgba(225,27,34,.3) !important;
}
.msp-post-content a:hover { text-decoration-color: var(--red) !important; }

.msp-post-content ul,
.msp-post-content ol {
  font-size: 0.95rem !important;
  color: var(--color-black) !important;
  line-height: 1.75 !important;
  padding-left: 1.5em !important;
  margin-bottom: 1.2em !important;
}
.msp-post-content li { margin-bottom: 0.4em !important; }

.msp-post-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--gray-200) !important;
  margin: 1.5em 0 !important;
  display: block !important;
}

.msp-post-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.875rem !important;
  margin: 1.5em 0 !important;
}
.msp-post-content table th {
  font-family: var(--font-display) !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 10px 14px !important;
  background: var(--dark) !important;
  color: var(--white) !important;
  text-align: left !important;
}
.msp-post-content table td {
  padding: 9px 14px !important;
  border-bottom: 1px solid var(--gray-100) !important;
  color: var(--color-black) !important;
  vertical-align: top !important;
}
.msp-post-content table tr:nth-child(even) td { background: var(--off-white) !important; }

.msp-post-content blockquote {
  border-left: 3px solid var(--red) !important;
  margin: 1.5em 0 !important;
  padding: 1em 1.5em !important;
  background: var(--off-white) !important;
  color: var(--color-black) !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}
.msp-post-content code {
  font-size: 0.85em !important;
  background: var(--off-white) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius) !important;
  padding: 2px 6px !important;
  color: var(--red) !important;
  font-family: 'Courier New', monospace !important;
}
.msp-post-content pre {
  background: var(--dark) !important;
  color: var(--white) !important;
  padding: 20px 24px !important;
  border-radius: var(--radius) !important;
  overflow-x: auto !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  margin: 1.5em 0 !important;
}
.msp-post-content pre code {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: inherit !important;
}

/* Prev / Next nav */
.msp-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}
.msp-post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.msp-post-nav-next {
  text-align: right;
  align-items: flex-end;
}
.msp-post-nav-label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-black);
}
.msp-post-nav-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}
.msp-post-nav-title:hover { color: var(--red); }

/* ==========================================================================
   SIDEBAR BOX (whitepaper-single-box) — used in sidebar-whitepaper.php
   ========================================================================== */

.whitepaper-single-sidebar { display: grid; gap: 16px; }

.whitepaper-single-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px !important;
}

.whitepaper-single-box h3 {
  font-family: var(--font-display) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--color-black) !important;
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid var(--gray-200) !important;
  line-height: 1 !important;
}

/* Sidebar sticky wrappers */
.whitepaper-left-sidebar-sticky,
.msp-sidebar-wrap {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  overflow-x: hidden;
}
.whitepaper-left-sidebar-sticky::-webkit-scrollbar,
.msp-sidebar-wrap::-webkit-scrollbar { width: 3px; }
.whitepaper-left-sidebar-sticky::-webkit-scrollbar-thumb,
.msp-sidebar-wrap::-webkit-scrollbar-thumb { background: var(--gray-200); }

/* Right sidebar video */
.whitepaper-right-sidebar-sticky {
  position: sticky;
  top: 88px;
}
.whitepaper-video-box { display: block; }
.whitepaper-video-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}
.whitepaper-video-thumb img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.whitepaper-video-thumb:hover img { transform: scale(1.03); }
.whitepaper-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 16px;
  padding-left: 3px;
  box-shadow: 0 4px 16px rgba(225,27,34,.4);
  transition: background 0.2s, transform 0.2s;
}
.whitepaper-video-thumb:hover .whitepaper-play-btn {
  background: var(--red-dark);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ==========================================================================
   DLUBAL NAV TREE — consolidated, single source of truth
   ========================================================================== */

.manual-tree-container { margin-top: 4px; }

/* Search box */
.toc-search-box {
  position: relative;
  margin-bottom: 16px !important;
}
.toc-search-box input {
  width: 100% !important;
  padding: 8px 12px 8px 30px !important;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  color: var(--black) !important;
  background: var(--off-white) !important;
  border: 1px solid var(--gray-200) !important;
  border-radius: var(--radius) !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  transition: border-color 0.2s !important;
}
.toc-search-box input::placeholder { color: var(--color-black); }
.toc-search-box input:focus {
  border-color: var(--red) !important;
  background: var(--white) !important;
  box-shadow: 0 0 0 3px rgba(225,27,34,.08) !important;
}
.toc-search-box svg {
  position: absolute !important;
  left: 9px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 13px !important;
  height: 13px !important;
  fill: var(--gray-400) !important;
  pointer-events: none !important;
}

/* Tree root */
.dlubal-nav-tree {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Folder item */
.dlubal-folder {
  margin-bottom: 3px !important;
  padding: 0 !important;
}

/* Folder header */
.dlubal-folder > .dlubal-folder-header {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 10px !important;
  cursor: pointer !important;
  border-radius: var(--radius) !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  transition: background 0.15s !important;
}
.dlubal-folder > .dlubal-folder-header:hover {
  background: var(--off-white) !important;
}

/* Arrow */
.dlubal-toggle-arrow {
  display: inline-block !important;
  flex-shrink: 0 !important;
  width: 5px !important;
  height: 5px !important;
  min-width: 5px !important;
  min-height: 5px !important;
  border-right: 1.5px solid var(--gray-400) !important;
  border-bottom: 1.5px solid var(--gray-400) !important;
  transform: rotate(-45deg) !important;
  transition: transform 0.2s, border-color 0.2s !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
.dlubal-folder.is-open > .dlubal-folder-header .dlubal-toggle-arrow {
  transform: rotate(45deg) !important;
  border-color: var(--red) !important;
}

/* Folder title */
.dlubal-folder-title {
  font-family: var(--font-display) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: var(--color-black) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}
/* Nested folder title */
.dlubal-post-list .dlubal-folder-title {
  font-size: 0.65rem !important;
  color: var(--color-black) !important;
  letter-spacing: 0.08em !important;
}

/* Post list */
.dlubal-post-list {
  list-style: none !important;
  padding: 0 0 4px 14px !important;
  margin: 0 0 2px 9px !important;
  border-left: 1px solid var(--gray-200) !important;
  display: none !important;
}
.dlubal-folder.is-open > .dlubal-post-list {
  display: block !important;
}

/* Post item */
.dlubal-post-item {
  margin: 1px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.dlubal-post-item > a {
  display: block !important;
  padding: 6px 10px !important;
  font-family: var(--font-body) !important;
  font-size: 0.81rem !important;
  font-weight: 400 !important;
  color: var(--color-black) !important;
  text-decoration: none !important;
  border-radius: var(--radius) !important;
  line-height: 1.4 !important;
  border-left: 2px solid transparent !important;
  background: none !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  transition: color 0.15s, background 0.15s !important;
  margin: 0 !important;
}
.dlubal-post-item > a:hover {
  color: var(--red) !important;
  background: rgba(225,27,34,.04) !important;
  border-left-color: rgba(225,27,34,.3) !important;
}
.dlubal-post-item.current-post > a {
  color: var(--red) !important;
  font-weight: 700 !important;
  background: rgba(225,27,34,.06) !important;
  border-left-color: var(--red) !important;
}

/* Sub-post list */
.dlubal-subpost-list {
  list-style: none !important;
  padding: 0 0 0 12px !important;
  margin: 2px 0 2px 4px !important;
  border-left: 1px dashed var(--gray-200) !important;
}
.dlubal-subpost-item > a {
  display: block !important;
  padding: 5px 8px !important;
  font-family: var(--font-body) !important;
  font-size: 0.76rem !important;
  font-weight: 400 !important;
  color: var(--color-black) !important;
  text-decoration: none !important;
  border-radius: var(--radius) !important;
  transition: color 0.15s, background 0.15s !important;
}
.dlubal-subpost-item > a:hover {
  color: var(--red) !important;
  background: var(--off-white) !important;
}
.dlubal-subpost-item.current-post > a {
  color: var(--red) !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   FILTER SHORTCODE (technix-*)
   ========================================================================== */

.technix-filter-container {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.technix-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.technix-sidebar .filter-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}
.filter-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
  margin: 0 0 10px;
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.83rem;
  color: var(--color-black);
  transition: color 0.15s;
}
.filter-checkbox:hover { color: var(--black); }
.filter-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: var(--red);
  margin: 0;
}
.technix-main-content { min-width: 0; }
.technix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.technix-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.technix-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.technix-card .card-link { display: block; text-decoration: none; color: inherit; }
.technix-card .card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: var(--off-white);
}
.technix-card .card-content { padding: 20px; }
.technix-card .card-content h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  margin: 0 0 10px;
  transition: color 0.2s;
}
.technix-card:hover .card-content h4 { color: var(--red); }
.technix-card .read-more {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
#technix-loader { text-align: center; padding: 40px; }
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: prota-spin 0.7s linear infinite;
  margin: 0 auto;
}
@keyframes prota-spin { to { transform: rotate(360deg); } }
.technix-pagination { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.technix-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.technix-pagination a:hover { border-color: var(--red); color: var(--red); }
.technix-pagination a.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ==========================================================================
   BADGES & MISC
   ========================================================================== */

.whitepaper-topic-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gray-200);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.whitepaper-topic-badge:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.whitepaper-related-list { display: grid; gap: 14px; }
.whitepaper-related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.whitepaper-related-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  display: block;
}
.whitepaper-related-content h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  line-height: 1.4;
}
.whitepaper-related-content h4 a { text-decoration: none; color: inherit; transition: color 0.2s; }
.whitepaper-related-content h4 a:hover { color: var(--red); }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
  .technix-filter-container { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .mhub-hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 32px; }
  .mhub-hero-sub { max-width: 100%; }
  .mhub-body-inner { grid-template-columns: 280px minmax(0,1fr); padding: 36px 32px 64px; }
  .msp-body { padding: 28px 0 64px; }
  .msp-content-wrap { padding: 36px 28px; }
}

@media (max-width: 991px) {
  .technix-filter-container { grid-template-columns: 1fr; }
  .technix-sidebar { position: static; }
  .msp-grid--with-video,
  .msp-grid--no-video { grid-template-columns: 1fr; }
  .whitepaper-left-sidebar-sticky,
  .whitepaper-right-sidebar-sticky,
  .msp-sidebar-wrap,
  .mhub-sidebar { position: static; max-height: none; }
}

@media (max-width: 768px) {
  .mhub-hero-inner { padding: 40px 20px; }
  .mhub-body-inner { grid-template-columns: 1fr; padding: 28px 20px 56px; }
  .mhub-cards-grid { grid-template-columns: 1fr; }
  .mhub-search-input { padding-right: 100px; }
  .msp-content-wrap { padding: 28px 20px; }
  .msp-post-nav { grid-template-columns: 1fr; }
  .msp-post-nav-next { text-align: left; align-items: flex-start; }
  .technix-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Narrow the absolutely-positioned button and match the input's right
     padding so the placeholder/typed text never slides under it on phones. */
  .mhub-search-btn { padding: 0 12px; letter-spacing: 0.06em; }
  .mhub-search-input { padding-right: 84px; }
}