/*
Theme Name: Zyphert Field Notes
Theme URI: https://zyphertechnologies.com
Author: Zyphert Technologies
Author URI: https://zyphertechnologies.com
Description: A refined, editorial minimalist blog theme matching the official Zypher Technologies brand design.
Version: 1.3.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zyphert-field-notes
*/

:root {
  --bg: #FFFFFF;
  --bg-raised: #FFFFFF;
  --panel: #F8FAFC;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --ink: #0F172A;
  --ink-dim: #64748B;
  --brass: #0066CC;
  --brass-dim: rgba(0, 102, 204, 0.25);

  /* Zypher Technologies Brand Palette */
  --zypher-dark: #070B14;
  --zypher-dark-surface: #0B101E;
  --zypher-card-bg: #F8FAFC;
  --zypher-text-primary: #0F172A;
  --zypher-text-muted: #64748B;
  --zypher-cyan: #00D094;
  --zypher-blue: #0066CC;
  --zypher-sky: #38BDF8;
  --zypher-indigo: #1F0C6B;
  --zypher-purple-dark: #2A0845;
  --zypher-purple-deep: #15002A;
  --zypher-border-dark: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  background: 
    radial-gradient(circle at 7% 5%, rgba(81, 0, 107, 0.09), transparent 28%),
    radial-gradient(circle at 88% 7%, rgba(1, 122, 139, 0.10), transparent 30%),
    linear-gradient(#ffffff, #fbfdff 45%, #ffffff);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

p, h1, h2, h3, h4, h5, h6, span, a, li, blockquote, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--zypher-blue);
  color: #FFFFFF;
}

a {
  color: inherit;
  text-decoration: none;
}

.serif {
  font-family: 'Newsreader', serif;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

.wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
}

/* ===== Focus visibility ===== */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--zypher-blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ========================================================
   ZYPHER TECHNOLOGIES HEADER (ORIGINAL TOP POSITION)
======================================================== */
.zypher-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.zypher-navbar {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  transition: all 0.3s ease;
}

/* Brand Logo */
.zypher-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.zypher-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zypher-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.zypher-logo-text {
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.zypher-brand-primary {
  color: #0B132B;
}

.zypher-brand-accent {
  color: #0066CC;
}

.zypher-logo-text.light .zypher-brand-primary {
  color: #FFFFFF;
}

.zypher-logo-text.light .zypher-brand-accent {
  color: #38BDF8;
}

/* Nav Links */
.zypher-nav {
  display: flex;
  align-items: center;
}

.zypher-nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zypher-nav-item {
  position: relative;
}

.zypher-nav-link, .zypher-nav-list li a {
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  transition: color 0.15s ease;
  text-decoration: none;
}

.zypher-nav-link .chevron-icon {
  color: #64748B;
  transition: transform 0.2s ease, color 0.2s ease;
}

.zypher-nav-link:hover, .zypher-nav-link.active, .zypher-nav-list li.current-menu-item a {
  color: #0066CC;
}

.zypher-nav-link:hover .chevron-icon,
.zypher-nav-item:hover .chevron-icon {
  color: #0066CC;
  transform: rotate(180deg);
}

/* ================= Dropdown Menus ================= */
.zypher-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 290px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.14), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1050;
}

/* Invisible hover bridge so mouse doesn't drop hover when moving down */
.zypher-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.zypher-nav-item:hover .zypher-dropdown-menu,
.zypher-nav-item:focus-within .zypher-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.dropdown-item:hover {
  background: #F1F5F9;
}

.dropdown-item.active-page {
  background: rgba(0, 102, 204, 0.07);
}

.dropdown-item.active-page .dropdown-title {
  color: #0066CC;
}

.dropdown-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  color: #64748B;
  margin-top: 1px;
}

/* Header Actions */
.zypher-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* Expandable Header Search */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.header-search-btn:hover {
  background: #F1F5F9;
  color: #0066CC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.header-search-wrap.active .header-search-btn {
  background: #0066CC;
  color: #FFFFFF;
  border-color: #0066CC;
}

/* Expandable field on the left */
.header-search-field {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(0.85);
  transform-origin: right center;
  width: 0;
  max-width: 0;
  height: 42px;
  background: #FFFFFF;
  border: 1.5px solid transparent;
  border-radius: 9999px;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  z-index: 100;
}

.header-search-wrap.active .header-search-field {
  width: 320px;
  max-width: calc(100vw - 140px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scaleX(1);
  border-color: #0066CC;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0 12px 0 16px;
}

.search-field-icon {
  flex-shrink: 0;
  margin-right: 8px;
}

.header-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #0F172A;
  outline: none;
  padding: 0;
}

.header-search-input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.header-search-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #64748B;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  margin-left: 6px;
}

.header-search-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Call Icon Button (Mobile Contact) */
.header-call-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.header-call-btn:hover {
  background: #0066CC;
  color: #FFFFFF;
  border-color: #0066CC;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.zypher-btn-audit {
  background: linear-gradient(90deg, #320865 0%, #1F114D 38%, #0C3866 72%, #007C9D 100%);
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(45, 8, 88, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.zypher-btn-audit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45, 8, 88, 0.38);
}

.zypher-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #0F172A;
  border-radius: 8px;
}

.mobile-search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 20px 20px;
  overflow-y: auto;
}

.mobile-search-modal.active {
  display: flex !important;
}

.mobile-search-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  margin: 0 auto;
  animation: searchModalSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes searchModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .mobile-search-modal {
    padding: 0;
    background: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .mobile-search-container {
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

.mobile-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.mobile-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 9999px;
  padding: 8px 14px;
  gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-search-input-wrap:focus-within {
  border-color: #0066CC;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.search-icon-inside {
  flex-shrink: 0;
}

.mobile-search-input-field {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0F172A;
  outline: none;
}

.mobile-search-input-field::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.mobile-search-clear {
  background: transparent;
  border: none;
  color: #94A3B8;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px;
}

.mobile-search-clear.show {
  display: flex;
}

.mobile-search-submit-btn {
  background: #0066CC;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.mobile-search-submit-btn:hover {
  background: #0052A3;
  transform: translateY(-1px);
}

.mobile-search-close-icon {
  background: transparent;
  border: none;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.mobile-search-close-icon:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* ========================================================
   SEARCH RESULT HERO VIEW (MATCHING REFERENCE LAYOUT)
======================================================== */
.archive-search-hero {
  margin-bottom: 24px;
}

.archive-search-query-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  color: #0F172A;
  line-height: 1.15;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.archive-search-status {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px;
  color: #64748B;
  margin-bottom: 20px;
}

.archive-search-pill-bar {
  display: flex;
  align-items: center;
  background: #EAEFF5;
  border: 1px solid #D5DEE7;
  border-radius: 9999px;
  padding: 10px 20px;
  gap: 12px;
  max-width: 680px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.archive-search-pill-bar:focus-within {
  background: #FFFFFF;
  border-color: #0066CC;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.archive-search-pill-icon {
  color: #64748B;
  flex-shrink: 0;
}

.archive-search-pill-input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  color: #0F172A;
  outline: none;
}

.archive-search-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search-tag-badge {
  background: rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.2);
  color: #0066CC;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-tag-badge:hover {
  background: #0066CC;
  color: #FFFFFF;
}

/* Dedicated Search Results Page (.search-results-page) */
.search-results-page {
  padding-top: 100px;
  background: #FFFFFF;
  min-height: 80vh;
}

.search-page-hero {
  padding: 40px 0 24px;
  background: #FFFFFF;
}

.search-page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.15;
  margin: 0 0 10px 0;
  letter-spacing: -0.025em;
  text-transform: capitalize;
}

.search-page-status {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #64748B;
  margin-bottom: 24px;
}

.search-page-pill-form {
  max-width: 720px;
  margin-bottom: 24px;
}

.search-page-pill-bar {
  display: flex;
  align-items: center;
  background: #EEF2F6;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  padding: 12px 22px;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.search-page-pill-bar:focus-within {
  background: #FFFFFF;
  border-color: #0066CC;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.search-page-pill-icon {
  color: #64748B;
  flex-shrink: 0;
}

.search-page-pill-input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  color: #0F172A;
  outline: none;
}

.search-page-pill-input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.search-page-filters {
  margin-bottom: 12px;
}

.search-archive {
  padding-top: 20px;
}

.mobile-search-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

/* Suggestion Chips */
.search-suggestions {
  margin-bottom: 24px;
}

.suggestions-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-family: 'IBM Plex Mono', monospace;
}

.suggestions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-chip {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.suggestion-chip:hover {
  background: #0066CC;
  color: #FFFFFF;
  border-color: #0066CC;
}

/* Results List */
.mobile-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-result-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.mobile-result-card:hover, .mobile-result-card:active {
  background: #F8FAFC;
  border-color: #0066CC;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.08);
}

.mobile-result-cat {
  font-size: 11px;
  font-weight: 700;
  color: #00875A;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.mobile-result-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
}

.mobile-result-excerpt {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.45;
  margin: 2px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-result-meta {
  font-size: 12px;
  color: #94A3B8;
  font-family: 'IBM Plex Sans', sans-serif;
  margin-top: 4px;
}

.mobile-search-empty {
  text-align: center;
  padding: 48px 20px;
  color: #64748B;
  font-size: 15px;
}

.mobile-search-empty strong {
  color: #0F172A;
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

/* ========================================================
   MAIN PAGE CONTENT & HERO
======================================================== */
main {
  padding-top: 72px;
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  background-image: url('blog-bg.webp');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero .wrap,
.hero-container {
  width: 100%;
}

.hero-content {
  max-width: 570px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

/* Tag Bar: Book Icon, BLOG text, and trailing line */
.hero-tag-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-tag-icon {
  color: #818CF8;
  stroke: #818CF8;
  flex-shrink: 0;
}

.hero-tag-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #94A3B8;
  text-transform: uppercase;
  line-height: 1;
}

.hero-tag-line {
  display: inline-block;
  width: 55px;
  height: 1.5px;
  background: rgba(148, 163, 184, 0.45);
  border-radius: 2px;
}

/* Main Hero Title */
.hero-title {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #0F172A;
  margin-bottom: 20px;
}

.hero-gradient-text {
  background: linear-gradient(90deg, #2563EB 0%, #0066CC 30%, #00B97B 72%, #00D094 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Hero Subtitle */
.hero-subtitle {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color: #475569;
  max-width: 480px;
  margin-bottom: 0;
  font-weight: 400;
}

/* Category Filter Pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.hero-pill:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  border-color: rgba(203, 213, 225, 0.95);
  color: #0F172A;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ========================================================
   FEATURED INTELLIGENCE SPOTLIGHT (GOOGLE & AI ENGINE READY)
======================================================== */
.feature-spotlight {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}

.spotlight-header {
  margin-bottom: 36px;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.22);
  color: #0066CC;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.spotlight-title {
  font-size: clamp(28px, 3.2vw, 42px);
  color: #0F172A;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 8px;
}

.spotlight-desc {
  color: #64748B;
  font-size: 15.5px;
  max-width: 60ch;
  line-height: 1.6;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: start;
}

/* Primary Hero Card */
.spotlight-hero-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.spotlight-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.09);
  border-color: #CBD5E1;
}

.hero-card-visual {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.tech-diagram-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tech-metric-overlay {
  position: absolute;
  bottom: 14px;
  left: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.metric-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00D094;
  box-shadow: 0 0 8px #00D094;
}

.hero-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cat-pill.primary {
  background: rgba(0, 102, 204, 0.1);
  color: #0066CC;
}

.cat-pill.trending {
  background: rgba(239, 68, 68, 0.08);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.cat-pill.secondary {
  background: rgba(0, 208, 148, 0.12);
  color: #007A5E;
}

.read-estimate {
  font-size: 11.5px;
  color: #64748B;
  margin-left: auto;
}

.hero-card-title {
  font-size: 25px;
  line-height: 1.25;
  color: #0F172A;
  font-weight: 500;
}

.hero-card-title a:hover {
  color: #0066CC;
}

/* AI & Human TLDR Box */
.ai-insight-box {
  background: #F8FAFC;
  border-left: 3.5px solid #0066CC;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  margin: 4px 0 6px;
  border-top: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.insight-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #0066CC;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ai-insight-box p {
  color: #475569;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E2E8F0;
  padding-top: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
  gap: 16px;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066CC, #00D094);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info-text {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

.author-role {
  font-size: 12px;
  color: #64748B;
}

.btn-read-deep {
  background: #0F172A;
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-read-deep:hover {
  background: #0066CC;
  transform: translateY(-1px);
}

/* Secondary Stack */
.spotlight-side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.spotlight-side-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 22px 24px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.spotlight-side-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 102, 204, 0.08);
  border-color: #CBD5E1;
}

.side-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.metric-chip {
  font-size: 11px;
  font-weight: 600;
  color: #007A5E;
  background: rgba(0, 208, 148, 0.1);
  border-radius: 9999px;
  padding: 3px 9px;
}

.side-card-title {
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.3;
  color: #0F172A;
  margin: 2px 0;
}

.side-card-title a:hover {
  color: #0066CC;
}

.side-card-desc {
  color: #64748B;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.side-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94A3B8;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
  margin-top: 4px;
}

.side-author {
  color: #64748B;
  font-weight: 500;
}

.side-read-time {
  color: #94A3B8;
}

/* abstract SVG visuals */
.card-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===================== FILTER BAR ===================== */
/* ===================== STICKY HIGHLIGHTED FILTER BAR ===================== */
.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(0, 102, 204, 0.12);
  padding: 16px 0;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.08);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cat-btn {
  font-size: 13.5px;
  padding: 9px 18px;
  border: 1.5px solid #E2E8F0;
  color: #334155;
  background: #FFFFFF;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.cat-btn:hover {
  border-color: #0066CC;
  color: #0066CC;
  background: rgba(0, 102, 204, 0.05);
  box-shadow: 0 3px 8px rgba(0, 102, 204, 0.12);
}

.cat-btn.active {
  border-color: #0066CC;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0066CC 0%, #004DB3 100%);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.42);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 9999px;
  padding: 8px 18px;
  min-width: 270px;
  box-shadow: 0 2px 8px rgba(31, 12, 107, 0.04);
}

.search-box:focus-within {
  border-color: #0066CC;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #0F172A;
  font-size: 13.5px;
  width: 100%;
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', sans-serif;
}

.search-box input::placeholder {
  color: var(--ink-dim);
}

.search-box svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ===================== ARCHIVE GRID ===================== */
/* ========================================================
   ARCHIVE SECTION (CHRONOLOGICAL & LATEST FIRST)
======================================================== */
.archive {
  background: #FFFFFF;
  padding: 64px 0 60px;
}

.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.archive-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.2);
  color: #0066CC;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 4px;
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00D094;
  box-shadow: 0 0 6px #00D094;
}

.archive-main-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  color: #0F172A;
  margin: 0;
}

.archive-subtitle {
  font-size: 14.5px;
  color: #64748B;
  margin: 0;
}

.archive-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sort-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  color: #334155;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

#result-count {
  font-size: 12px;
  color: #0066CC;
  background: rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.18);
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
}

/* 2-Column Archive Layout */
.archive-body-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: start;
}

.archive-main-stream {
  min-width: 0;
}

.archive-sidebar {
  width: 100%;
}

.popular-widget-sticky {
  position: sticky;
  top: 100px;
}

/* Most Popular Widget (Creative Light Aesthetic) */
.popular-widget-card {
  background: #FFFFFF;
  background: radial-gradient(circle at 90% 8%, rgba(0, 102, 204, 0.05) 0%, rgba(255, 255, 255, 0) 65%), #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 24px 20px 20px;
  position: relative;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.05), 0 2px 8px -2px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.popular-widget-card:hover {
  border-color: rgba(0, 102, 204, 0.25);
  box-shadow: 0 16px 36px -6px rgba(0, 102, 204, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

.popular-widget-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, #EF4444 0%, #F97316 45%, #0066CC 100%);
  border-radius: 0 0 4px 4px;
}

.popular-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.popular-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.popular-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #FEF2F2;
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #DC2626;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.08);
}

.popular-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
  animation: pulseHot 1.8s infinite ease-in-out;
}

@keyframes pulseHot {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.popular-widget-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
  color: #0F172A;
  letter-spacing: -0.03em;
  margin: 0;
}

.popular-trending-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(249, 115, 22, 0.12) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #EA580C;
  transition: transform 0.2s ease, background 0.2s ease;
}

.popular-widget-card:hover .popular-trending-box {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(249, 115, 22, 0.2) 100%);
}

.popular-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popular-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 8px;
  border-radius: 8px;
  border-bottom: 1px solid #E2E8F0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.popular-post-item:hover {
  background: #F8FAFC;
  transform: translateX(3px);
}

.popular-post-item:last-child {
  border-bottom: none;
}

.popular-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 6px;
  background: #F0F7FF;
  color: #0284C7;
  border: 1px solid rgba(2, 132, 199, 0.18);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rank 1: Soft Royal Blue Tint */
.popular-post-item:nth-child(1) .popular-rank {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid rgba(29, 78, 216, 0.22);
}

/* Rank 2: Soft Mint / Emerald Tint */
.popular-post-item:nth-child(2) .popular-rank {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

/* Rank 3: Soft Cyan / Sky Tint */
.popular-post-item:nth-child(3) .popular-rank {
  background: #F0F9FF;
  color: #0284C7;
  border: 1px solid rgba(14, 165, 233, 0.22);
}

/* Rank 4: Soft Emerald Tint */
.popular-post-item:nth-child(4) .popular-rank {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid rgba(34, 197, 94, 0.22);
}

/* Rank 5: Soft Sky Blue Tint */
.popular-post-item:nth-child(5) .popular-rank {
  background: #F0F9FF;
  color: #0369A1;
  border: 1px solid rgba(14, 165, 233, 0.22);
}

/* Rank 6: Soft Indigo / Violet Tint */
.popular-post-item:nth-child(6) .popular-rank {
  background: #F5F3FF;
  color: #6D28D9;
  border: 1px solid rgba(139, 92, 246, 0.22);
}

/* Rank 7: Soft Amber / Coral Tint */
.popular-post-item:nth-child(7) .popular-rank {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.popular-post-item:hover .popular-rank {
  transform: scale(1.1);
}

.square-bullet {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #0066CC;
  flex-shrink: 0;
  margin-top: 6px;
}

.popular-post-link {
  color: #1E293B;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
  flex: 1;
}

.popular-post-item:hover .popular-post-link {
  color: #0066CC;
}

.popular-accent-shadow {
  display: none !important;
}

.popular-widget-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popular-footer-note {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.post-bar-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid #E2E8F0;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.post-bar-item:last-child {
  border-bottom: none;
}

.post-bar-item:hover .post-bar-title a {
  color: #0066CC;
}

.post-bar-item:hover .post-bar-thumb img,
.post-bar-item:hover .post-bar-thumb svg {
  transform: scale(1.04);
}

/* Left Image */
.post-bar-thumb {
  flex-shrink: 0;
  width: 250px;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  position: relative;
  display: block;
}

.post-bar-thumb img, .post-bar-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

/* Right Content */
.post-bar-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-bar-cat {
  color: #00875A;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.post-bar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.32;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}

.post-bar-title a {
  color: inherit;
  transition: color 0.15s ease;
}

.post-bar-excerpt {
  color: #64748B;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 2px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-bar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748B;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.post-bar-author {
  color: #475569;
  font-weight: 500;
}

.post-bar-separator {
  color: #94A3B8;
}

.post-bar-date {
  color: #64748B;
}

.post-bar-read {
  font-size: 11.5px;
  color: #94A3B8;
}

.new-post-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #00D094;
  color: #070B14;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 208, 148, 0.4);
}

.empty-state {
  padding: 80px 0;
  text-align: center;
  color: var(--ink-dim);
  background: #FFFFFF;
  border-radius: 16px;
  display: none;
}

.empty-state.show {
  display: block;
}

.empty-state .serif {
  font-size: 22px;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}

/* ========================================================
   ZYPHER TECHNOLOGIES FOOTER
======================================================== */
.zypher-footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: var(--zypher-dark);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', sans-serif;
  padding: 80px 0 40px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zypher-footer-inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
  box-sizing: border-box;
}

/* Footer Top Grid */
.zypher-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 56px;
}

.brand-col {
  padding-right: 20px;
}

.footer-logo {
  margin-bottom: 14px;
}

.zypher-footer-tagline {
  color: var(--zypher-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.zypher-footer-desc {
  color: #94A3B8;
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.zypher-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 208, 148, 0.35);
  background: rgba(0, 208, 148, 0.06);
  color: var(--zypher-cyan);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
}

.zypher-badge-pill svg {
  flex-shrink: 0;
}

/* Column Headings & Links */
.footer-col-title {
  color: var(--zypher-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
}

.footer-col-title svg {
  color: var(--zypher-cyan);
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list li a {
  color: #CBD5E1;
  font-size: 13.5px;
  line-height: 1.4;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-links-list li a:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

/* Middle Floating Contact & Newsletter Card */
.zypher-contact-card {
  background: var(--zypher-card-bg);
  border-radius: 20px;
  padding: 28px 36px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  color: var(--zypher-text-primary);
}

.zypher-contact-points {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.contact-item.linkable {
  transition: opacity 0.15s ease;
}

.contact-item.linkable:hover {
  opacity: 0.85;
}

.contact-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 208, 148, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
}

/* Newsletter in Card */
.zypher-newsletter-box {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.newsletter-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.newsletter-title-wrap h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.newsletter-title-wrap p {
  font-size: 12.5px;
  color: #64748B;
}

.zypher-newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zypher-newsletter-form input {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0F172A;
  outline: none;
  min-width: 200px;
}

.zypher-newsletter-form input:focus {
  border-color: #007A5E;
}

.zypher-newsletter-form button {
  background: #007A5E;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.zypher-newsletter-form button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Footer Bottom */
.zypher-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.zypher-copyright {
  font-size: 13px;
  color: #94A3B8;
}

.zypher-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zypher-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  transition: all 0.2s ease;
}

.zypher-social-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .zypher-footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
  .brand-col {
    grid-column: span 3;
    padding-right: 0;
  }
}

@media (max-width: 1024px) {
  .archive-body-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .popular-widget-sticky {
    position: static;
  }
}

@media (max-width: 980px) {
  .wrap {
    padding: 0 20px;
  }
  .zypher-header-wrap {
    top: 0;
  }
  .zypher-navbar {
    padding: 14px 20px;
  }
  .zypher-nav {
    display: none;
  }
  .zypher-nav.active {
    display: flex;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #E2E8F0;
  }
  .zypher-nav.active .zypher-nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .zypher-nav-item {
    width: 100%;
  }
  .zypher-nav-link {
    width: 100%;
    justify-content: space-between;
  }
  .zypher-dropdown-menu {
    position: static;
    transform: none;
    min-width: 100%;
    box-shadow: none;
    border: none;
    padding: 6px 0 6px 12px;
    background: #F8FAFC;
    border-left: 2px solid #E2E8F0;
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .zypher-nav-item.open .zypher-dropdown-menu {
    display: block;
  }
  .zypher-btn-audit {
    display: none !important;
  }
  .header-search-field {
    display: none !important;
  }
  .header-call-btn {
    display: flex;
  }
  .zypher-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    color: #0F172A;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .zypher-mobile-toggle:hover {
    background: #E2E8F0;
  }
  .hero {
    padding: 70px 0 65px;
    min-height: 460px;
    display: flex;
    align-items: center;
    background-image: url('blog-bg-mobile.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-bottom: 1px solid var(--line);
  }
  .hero-container {
    width: 100%;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-tag-bar {
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.015em;
  }
  .hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    max-width: 100%;
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-card-content {
    padding: 24px;
  }
  .spread-row {
    grid-template-columns: 1fr;
  }
  .spread-row .spread-visual {
    border-right: none;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 16/9;
  }
  .spread-row.reverse .spread-visual {
    border-left: none;
  }
  .spread-text {
    padding: 36px;
  }
  .post-bar-item {
    gap: 20px;
    padding: 20px 0;
  }
  .post-bar-thumb {
    width: 180px;
  }
  .filter-bar {
    top: 63px;
    padding: 10px 0;
    border-bottom: 2px solid rgba(0, 102, 204, 0.15);
    box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.10);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  .filter-inner {
    flex-direction: row;
    align-items: center;
    width: 100%;
    overflow: hidden;
  }
  .cats,
  .search-page-filters .cats {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 6px 4px 8px;
    gap: 8px;
    width: 100%;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  .cats::-webkit-scrollbar,
  .search-page-filters .cats::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .zypher-contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================== SEARCH RESULTS PAGE ===================== */
.search-results-page {
  min-height: 80vh;
}

.search-page-hero {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 50px 0 36px;
}

.search-page-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  color: #0F172A;
  margin-bottom: 8px;
}

.search-page-status {
  font-size: 14px;
  color: #64748B;
  font-family: 'IBM Plex Sans', sans-serif;
  margin-bottom: 24px;
}

.search-page-pill-form {
  max-width: 640px;
  margin-bottom: 24px;
}

.search-page-pill-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 9999px;
  padding: 10px 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.search-page-pill-bar:focus-within {
  border-color: #0066CC;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.search-page-pill-icon {
  color: #64748B;
  flex-shrink: 0;
}

.search-page-pill-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0F172A;
}

.search-page-filters {
  margin-top: 14px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .search-page-hero {
    padding: 36px 0 24px;
  }
  .post-bar-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
  }
  .post-bar-thumb {
    width: 100%;
    aspect-ratio: 16/9;
  }
  .zypher-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .brand-col {
    grid-column: span 1;
  }
  .zypher-contact-points {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .zypher-newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  .zypher-newsletter-form input {
    width: 100%;
  }
  .zypher-newsletter-form button {
    width: 100%;
  }
}

/* ===================== SINGLE POST ARTICLE ===================== */
.single-article {
  padding: 60px 0 100px;
  max-width: 860px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 36px;
  text-align: left;
}

.article-header h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  color: #0F172A;
  margin: 16px 0 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #64748B;
  font-family: 'IBM Plex Sans', sans-serif;
}

.article-content {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  line-height: 1.75;
  color: #1E293B;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2, .article-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0F172A;
  margin: 40px 0 16px;
  font-weight: 700;
}

/* ===================== ARCHIVE & SEARCH PAGINATION ===================== */
.archive-pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #E2E8F0;
  width: 100%;
}

.archive-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  min-width: 42px;
  padding: 0 14px;
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0F172A;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
  outline: none;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #0066CC;
  color: #0066CC;
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0);
}

.pagination-num {
  min-width: 42px;
  padding: 0 12px;
}

.pagination-num.active {
  background: #0066CC;
  color: #FFFFFF;
  border-color: #0066CC;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.28);
  cursor: default;
  pointer-events: none;
}

.pagination-arrow {
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pagination-prev:hover:not(:disabled) svg {
  transform: translateX(-3px);
}

.pagination-next:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.pagination-btn:disabled,
.pagination-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #E2E8F0;
  background: #F8FAFC;
  color: #94A3B8;
  box-shadow: none;
  pointer-events: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 42px;
  font-size: 16px;
  color: #94A3B8;
  letter-spacing: 2px;
  user-select: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

button.pagination-ellipsis:hover {
  color: #0066CC;
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.pagination-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
  color: #64748B;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
}

@media (max-width: 640px) {
  .pagination-btn {
    height: 42px;
    min-width: 42px;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 10px;
  }
  .pagination-arrow {
    padding: 0 12px;
    min-width: 42px;
  }
  .pagination-arrow svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.6;
  }
  .archive-pagination-wrap {
    margin-top: 30px;
    padding-top: 20px;
  }
  .pagination-arrow span {
    display: none;
  }
}

/* ==========================================================================
   PEOPLE DATA LABS (PDL) EDITORIAL SINGLE BLOG POST LAYOUT
   ========================================================================== */

/* Top Reading Progress Bar */
.pdl-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #0066CC 0%, #00D094 100%);
  z-index: 99999;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 10px rgba(0, 208, 148, 0.5);
}

/* Breadcrumb Bar & Category Filter */
.pdl-breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 8px;
}

.pdl-breadcrumb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.pdl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.pdl-back-link:hover {
  color: #0066CC;
  transform: translateX(-2px);
}

.pdl-breadcrumb-separator {
  color: #CBD5E1;
}

.pdl-current-category {
  color: #0F172A;
  font-weight: 600;
}

/* Category Button Bar */
.pdl-category-selector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pdl-selector-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.pdl-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdl-cat-btn:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #0F172A;
  transform: translateY(-1px);
}

.pdl-cat-btn.active {
  background: #0066CC;
  color: #FFFFFF;
  border-color: #0066CC;
  box-shadow: 0 2px 10px rgba(0, 102, 204, 0.28);
  font-weight: 600;
}

/* Boxed Container for PDL Blog on Larger Screens */
.pdl-breadcrumb-bar,
.pdl-article-layout,
.pdl-related-section {
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
}

/* Main Layout Grid (People Data Labs Spec: 1 Col Sidebar + 2 Col Main) */
.pdl-article-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 36px;
  padding-bottom: 90px;
  width: 100%;
  box-sizing: border-box;
}

/* Left Sticky Sidebar */
.pdl-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* TOC Card (PDL Spec: Soft Purple-Gray Card) */
.pdl-toc-card {
  background: #F8F8FC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pdl-toc-header {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 12px;
  padding-bottom: 8px;
  text-align: left;
  cursor: default;
  pointer-events: none;
  font-family: inherit;
}

.pdl-toc-header-content {
  display: block;
}

.pdl-toc-label {
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
  letter-spacing: -0.01em;
  display: block;
}

.pdl-toc-active-topic {
  display: none;
}

.pdl-toc-chevron {
  display: none;
}

.pdl-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdl-toc-link {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #64748B;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.pdl-toc-link:hover {
  color: #0066CC;
}

.pdl-toc-link.active {
  color: #0066CC;
  font-weight: 600;
}

/* Author Card (PDL Spec) */
.pdl-author-card {
  background: #F8F8FC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdl-author-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.pdl-author-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.pdl-author-avatar-wrap {
  display: flex;
}

.pdl-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  image-rendering: -webkit-optimize-contrast;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pdl-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdl-author-name {
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
}

.pdl-author-role {
  font-size: 14px;
  color: #64748B;
  font-weight: 400;
}

.pdl-author-company {
  font-size: 14px;
  color: #64748B;
  font-weight: 400;
}

.pdl-author-bio {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}

/* Right Main Article Column */
.pdl-main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Header Section (PDL Spec) */
.pdl-article-header {
  margin-bottom: 24px;
}

.pdl-header-top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pdl-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: #E0F2FE;
  border: 1px solid #BAE6FD;
  color: #0284C7;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}

.pdl-badge-pill:hover {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.pdl-badge-pill.secondary {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pdl-badge-pill.secondary:hover {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.pdl-badge-pill.pulse {
  animation: badgePop 0.35s ease-out;
}

@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.pdl-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00D094;
  box-shadow: 0 0 6px rgba(0, 208, 148, 0.8);
}

.pdl-badge-dot.purple {
  background: #818CF8;
  box-shadow: 0 0 6px rgba(129, 140, 248, 0.8);
}

.pdl-badge-dot.cyan {
  background: #00D094;
  box-shadow: 0 0 6px rgba(0, 208, 148, 0.8);
}

.pdl-article-title {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin-bottom: 12px;
}

.pdl-article-subtitle {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.45;
  color: #64748B;
  font-weight: 400;
  margin-bottom: 28px;
}

/* Author Meta Pill Bar (PDL Layout: Gray Container with Author, Date, Time & Share Button) */
.pdl-meta-pill-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.pdl-meta-pill-left {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 18px;
  background: #F1F3F9;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #0F172A;
  max-width: 100%;
}

.pdl-meta-author-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pdl-meta-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  image-rendering: -webkit-optimize-contrast;
}

.pdl-meta-author {
  font-weight: 600;
  color: #0F172A;
}

.pdl-meta-date,
.pdl-meta-time {
  font-weight: 500;
  color: #475569;
}

.pdl-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #0F172A;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pdl-share-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

.pdl-header-divider {
  height: 1px;
  background: #E2E8F0;
  margin-top: 36px;
  margin-bottom: 24px;
}

/* Article Body Typography & Components */
.pdl-article-body {
  font-size: 17.5px;
  line-height: 1.8;
  color: #334155;
}

.pdl-section {
  margin-bottom: 36px;
}

.pdl-heading-2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-top: 36px;
  margin-bottom: 16px;
  scroll-margin-top: 110px;
}

.pdl-heading-3 {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 700;
  color: #0066CC;
  letter-spacing: -0.01em;
  margin-top: 24px;
  margin-bottom: 12px;
  scroll-margin-top: 110px;
}

.pdl-paragraph {
  margin-bottom: 18px;
  color: #334155;
}

.pdl-section-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 36px 0;
}

/* Architectural Diagram Card */
.pdl-diagram-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  margin: 28px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.pdl-diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.pdl-diagram-badge {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: #0066CC;
  background: #E0F2FE;
  padding: 3px 10px;
  border-radius: 6px;
}

.pdl-diagram-caption {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.pdl-diagram-svg-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pdl-svg-canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 0;
}

/* 2-Column Cards Grid */
.pdl-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.pdl-feature-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
}

.pdl-feature-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #E0F2FE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pdl-feature-icon-badge.green {
  background: #D1FAE5;
}

.pdl-feature-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.pdl-feature-card-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
}

/* Callout Pro-Tip Banner (PDL Spec) */
.pdl-callout-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
  border: 1px solid #312E81;
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pdl-callout-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0066CC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.pdl-callout-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.pdl-callout-header {
  font-size: 11.5px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: #38BDF8;
  letter-spacing: 0.08em;
}

.pdl-callout-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: #E2E8F0;
}

.pdl-callout-link-wrap {
  margin-top: 6px;
}

.pdl-callout-link {
  font-size: 14px;
  font-weight: 700;
  color: #00D094;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.pdl-callout-link:hover {
  color: #38BDF8;
  text-decoration: underline;
}

/* Strategy Grid */
.pdl-strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.pdl-strategy-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.pdl-strategy-tag {
  display: inline-block;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.pdl-strategy-tag.top-down {
  background: #FEF3C7;
  color: #B45309;
}

.pdl-strategy-tag.bottom-up {
  background: #E0F2FE;
  color: #0369A1;
}

.pdl-list {
  padding-left: 20px;
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
}

/* 5 DP Patterns Archetypes */
.pdl-patterns-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.pdl-pattern-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pdl-pattern-item:hover {
  border-color: #0066CC;
  transform: translateX(4px);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.05);
}

.pdl-pattern-number {
  font-size: 20px;
  font-weight: 800;
  font-family: 'IBM Plex Mono', monospace;
  color: #0066CC;
  background: #E0F2FE;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdl-pattern-details {
  min-width: 0;
  flex: 1;
  overflow-wrap: break-word;
}

.pdl-pattern-name {
  font-size: 16.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.pdl-pattern-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

/* Developer Code Block */
.pdl-code-card {
  background: #0B101E;
  border: 1px solid #1E293B;
  border-radius: 14px;
  overflow: hidden;
  margin: 24px 0 32px;
  box-shadow: 0 8px 24px rgba(7, 11, 20, 0.25);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pdl-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #070B14;
  border-bottom: 1px solid #1E293B;
  flex-wrap: wrap;
  gap: 8px;
}

.pdl-code-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdl-lang-pill {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.pdl-lang-pill.python {
  background: #1E3A8A;
  color: #93C5FD;
}

.pdl-lang-pill.cpp {
  background: #064E3B;
  color: #6EE7B7;
}

.pdl-code-filename {
  font-size: 12.5px;
  font-family: 'IBM Plex Mono', monospace;
  color: #94A3B8;
}

.pdl-copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1E293B;
  border: 1px solid #334155;
  color: #E2E8F0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdl-copy-code-btn:hover {
  background: #334155;
  color: #FFFFFF;
}

.pdl-code-pre {
  padding: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #E2E8F0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Code Syntax Highlighting Tokens */
.token-keyword { color: #F43F5E; font-weight: 600; }
.token-function { color: #38BDF8; font-weight: 600; }
.token-string { color: #00D094; }
.token-comment { color: #64748B; font-style: italic; }
.token-type { color: #F59E0B; }
.token-number { color: #A78BFA; }
.token-decorator { color: #FB923C; }

/* Complexity Table */
.pdl-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pdl-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.pdl-table th {
  background: #0F172A;
  color: #FFFFFF;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.pdl-table td {
  padding: 14px 16px;
  border-top: 1px solid #E2E8F0;
  color: #334155;
}

.pdl-table tr:nth-child(even) td {
  background: #F8FAFC;
}

.badge-red {
  display: inline-block;
  padding: 2px 8px;
  background: #FEE2E2;
  color: #991B1B;
  border-radius: 4px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

.badge-green {
  display: inline-block;
  padding: 2px 8px;
  background: #D1FAE5;
  color: #065F46;
  border-radius: 4px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

.badge-cyan {
  display: inline-block;
  padding: 2px 8px;
  background: #E0F2FE;
  color: #0369A1;
  border-radius: 4px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

/* Summary Takeaways Card */
.pdl-takeaways-card {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 16px;
  padding: 28px;
  margin: 32px 0;
}

.pdl-takeaway-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #DCFCE7;
}

.pdl-takeaway-title {
  font-size: 18px;
  font-weight: 700;
  color: #14532D;
}

.pdl-takeaway-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.65;
  color: #166534;
}

/* Category Footer Section */
.pdl-category-footer-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}

.pdl-cat-footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* Related Dispatches Section */
.pdl-related-section {
  padding-top: 56px;
  padding-bottom: 84px;
  border-top: 1px solid #E2E8F0;
  position: relative;
}

.pdl-related-header-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.pdl-related-header {
  flex: 1;
}

.pdl-related-badge {
  font-size: 11.5px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: #0066CC;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pdl-related-title {
  font-size: 28px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Mobile Carousel Navigation Arrows & Counter (Hidden on Desktop) */
.pdl-carousel-nav {
  display: none;
  align-items: center;
  gap: 10px;
}

.pdl-carousel-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  padding: 0;
  flex-shrink: 0;
}

.pdl-carousel-arrow:hover:not(:disabled) {
  border-color: #0066CC;
  color: #0066CC;
  background: #F0F7FF;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.15);
}

.pdl-carousel-arrow:active:not(:disabled) {
  transform: translateY(0);
}

.pdl-carousel-counter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  padding: 0 2px;
}

.pdl-related-carousel-track {
  width: 100%;
  position: relative;
}

.pdl-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pdl-related-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  position: relative;
}

.pdl-related-card:hover {
  border-color: #0066CC;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 102, 204, 0.08);
}

.pdl-related-cat {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: #0066CC;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.pdl-related-headline {
  font-size: 17px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.4;
  margin: 0 0 10px 0;
  transition: color 0.15s ease;
}

.pdl-related-card:hover .pdl-related-headline {
  color: #0066CC;
}

.pdl-related-summary {
  font-size: 14px;
  line-height: 1.55;
  color: #64748B;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.pdl-related-meta {
  font-size: 12px;
  color: #94A3B8;
  font-family: 'IBM Plex Mono', monospace;
}

/* Dots indicator (hidden on desktop) */
.pdl-carousel-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.pdl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdl-dot.active {
  background: #0066CC;
  width: 24px;
  border-radius: 10px;
}

/* Toast Notification */
.pdl-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 999999;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdl-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Share Article Popup Modal */
.pdl-share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.pdl-share-modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pdl-share-modal {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  border: 1px solid #E2E8F0;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.pdl-share-modal-overlay.show .pdl-share-modal {
  transform: scale(1) translateY(0);
}

.pdl-share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
}

.pdl-share-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.pdl-share-modal-close {
  background: #F1F5F9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdl-share-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.pdl-share-copy-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  margin-bottom: 22px;
}

.pdl-share-copy-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: #334155;
  min-width: 0;
}

.pdl-share-copy-btn {
  background: #0066CC;
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.pdl-share-copy-btn:hover {
  background: #0052A3;
}

.pdl-share-platforms-label {
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.pdl-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pdl-share-platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  text-decoration: none;
  color: #0F172A;
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdl-share-platform-btn:hover {
  background: #FFFFFF;
  border-color: #0066CC;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.12);
  color: #0066CC;
}

.pdl-share-platform-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.pdl-share-platform-icon.twitter { background: #0F172A; }
.pdl-share-platform-icon.linkedin { background: #0A66C2; }
.pdl-share-platform-icon.whatsapp { background: #25D366; }
.pdl-share-platform-icon.email { background: #64748B; }

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Supports: Large 4K, Desktops, Laptops, Tablets, Phablets, Mobile Phones,
   Older/Newer Models, Foldables (Galaxy Fold, Pixel Fold), Dual Screen (Duo), Flip
   ========================================================================== */

/* Laptop & Medium Desktops */
@media (max-width: 1200px) {
  .pdl-article-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    padding-top: 24px;
    padding-bottom: 70px;
  }

  .pdl-article-title {
    font-size: clamp(32px, 4vw, 46px);
  }

  .pdl-meta-pill-left {
    gap: 20px;
  }
}

/* Tablets (iPad, Surface, Large Screens in Portrait) */
@media (max-width: 1024px) {
  .wrap,
  .zypher-footer-inner {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  .pdl-breadcrumb-bar {
    padding-top: 24px;
    padding-bottom: 8px;
    gap: 12px;
  }

  .pdl-article-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 16px;
    padding-bottom: 60px;
    width: 100%;
    max-width: 100%;
  }
  
  .pdl-main-column,
  .pdl-sidebar {
    display: contents;
  }

  .pdl-article-header {
    order: 1;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
  }

  .pdl-toc-card {
    order: 2;
  }

  .pdl-article-body {
    order: 3;
    font-size: 16.5px;
    width: 100%;
    max-width: 100%;
  }

  .pdl-author-card {
    order: 4;
    width: 100%;
    max-width: 100%;
  }

  .pdl-article-title {
    font-size: clamp(26px, 5.5vw, 38px);
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .pdl-article-subtitle {
    font-size: clamp(17px, 2.5vw, 21px);
    margin-bottom: 22px;
  }

  .pdl-meta-pill-bar {
    gap: 12px;
  }

  .pdl-meta-pill-left {
    gap: 16px;
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Mobile Sticky Collapsible Dropdown Table of Contents */
  .pdl-toc-card {
    position: sticky;
    top: 72px;
    z-index: 850;
    background: rgba(248, 248, 252, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 0 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .pdl-toc-card.open {
    border-color: #0066CC;
    box-shadow: 0 10px 32px rgba(0, 102, 204, 0.14);
  }

  .pdl-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 0;
    padding-bottom: 12px;
    cursor: pointer;
    pointer-events: auto;
    background: transparent;
    border: none;
    border-radius: 14px;
    outline: none;
    transition: background 0.15s ease;
  }

  .pdl-toc-header:hover {
    background: rgba(0, 102, 204, 0.04);
  }

  .pdl-toc-header-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    min-width: 0;
    flex: 1;
    padding-right: 12px;
  }

  .pdl-toc-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0066CC;
    font-family: 'IBM Plex Mono', monospace;
  }

  .pdl-toc-active-topic {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pdl-toc-chevron {
    display: block;
    color: #64748B;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  }

  .pdl-toc-card.open .pdl-toc-chevron {
    transform: rotate(180deg);
    color: #0066CC;
  }

  .pdl-toc-nav {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0 18px;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, padding 0.2s ease;
    border-top: 1px solid transparent;
  }

  .pdl-toc-card.open .pdl-toc-nav {
    max-height: 380px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding: 6px 18px 16px;
    border-top: 1px solid #E2E8F0;
    -webkit-overflow-scrolling: touch;
  }

  .pdl-toc-link {
    padding: 8px 0;
    font-size: 13.5px;
    border-bottom: 1px solid #F1F5F9;
  }

  .pdl-toc-link:last-child {
    border-bottom: none;
  }

  .pdl-cards-grid,
  .pdl-strategy-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }
}

/* Tablets Portrait, Large Phones, Foldables Unfolded */
@media (max-width: 768px) {
  .wrap,
  .zypher-footer-inner {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .pdl-heading-2 {
    font-size: clamp(22px, 4.5vw, 26px);
    margin-top: 28px;
    margin-bottom: 14px;
  }

  .pdl-heading-3 {
    font-size: clamp(17px, 3.5vw, 20px);
    margin-top: 20px;
  }

  .pdl-related-section {
    padding-top: 40px;
    padding-bottom: 60px;
    width: 100%;
    max-width: 100%;
  }

  .pdl-related-header-wrapper {
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .pdl-related-title {
    font-size: 22px;
  }

  .pdl-carousel-nav {
    display: inline-flex;
  }

  .pdl-carousel-dots {
    display: flex;
  }

  .pdl-related-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 4px 4px 14px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
  }

  .pdl-related-grid::-webkit-scrollbar {
    display: none;
  }

  .pdl-related-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
    padding: 20px;
  }

  .pdl-code-pre {
    padding: 16px;
    font-size: 12.5px;
  }
}

/* Mobile Devices (iPhone 14/15/16, Galaxy, Pixel) */
@media (max-width: 640px) {
  .wrap,
  .zypher-footer-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .pdl-breadcrumb-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 18px;
  }

  .pdl-category-selector-bar {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pdl-category-selector-bar::-webkit-scrollbar {
    display: none;
  }

  .pdl-meta-pill-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .pdl-meta-pill-left {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 8px 12px;
    font-size: 11.5px;
    border-radius: 8px;
  }

  .pdl-meta-author-group {
    gap: 8px;
  }

  .pdl-meta-avatar {
    width: 22px;
    height: 22px;
  }

  .pdl-share-btn {
    padding: 7px 13px;
    font-size: 12.5px;
  }

  .pdl-toc-card,
  .pdl-author-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .pdl-diagram-card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .pdl-callout-box {
    padding: 18px 16px;
    border-radius: 14px;
    gap: 14px;
  }

  .pdl-takeaways-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .pdl-pattern-item {
    padding: 14px 16px;
  }

  .pdl-pattern-number {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

/* Compact Mobiles, Older iPhones (SE, 5s), Folded Screens (Galaxy Z Fold, Flip) */
@media (max-width: 480px) {
  .pdl-callout-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pdl-pattern-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pdl-cards-grid,
  .pdl-strategy-grid {
    grid-template-columns: 1fr;
  }

  .pdl-diagram-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pdl-code-header {
    padding: 8px 12px;
  }

  .pdl-code-filename {
    font-size: 11px;
  }

  .pdl-copy-code-btn {
    padding: 3px 8px;
    font-size: 11px;
  }

  .pdl-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

/* Ultra Narrow & Fold Cover Displays (<= 340px, e.g. Galaxy Z Fold folded at 280px) */
@media (max-width: 340px) {
  .wrap,
  .zypher-footer-inner {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .pdl-article-title {
    font-size: 22px;
    line-height: 1.15;
  }

  .pdl-article-subtitle {
    font-size: 15px;
  }

  .pdl-meta-pill-left {
    width: 100%;
    justify-content: flex-start;
    gap: 6px 12px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .pdl-share-btn {
    width: 100%;
    justify-content: center;
  }

  .pdl-author-body {
    gap: 12px;
  }

  .pdl-author-avatar {
    width: 52px;
    height: 52px;
  }

  .pdl-author-name {
    font-size: 16px;
  }

  .pdl-author-company {
    font-size: 12.5px;
  }

  .pdl-author-bio {
    font-size: 12.5px;
  }

  .pdl-toc-card,
  .pdl-author-card,
  .pdl-takeaways-card,
  .pdl-related-card {
    padding: 14px 12px;
  }

  .pdl-related-headline {
    font-size: 15px;
  }

  .pdl-related-summary {
    font-size: 13px;
  }

  .pdl-carousel-arrow {
    width: 32px;
    height: 32px;
  }
}

/* Dual-Screen & Foldable Hardware Spanning (Surface Duo, Fold spanned across dual displays) */
@media (spanning: single-fold-vertical), (horizontal-viewport-segments: 2) {
  .pdl-article-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .pdl-main-column {
    display: flex;
  }

  .pdl-sidebar {
    position: sticky;
    top: 96px;
  }
}

@media (spanning: single-fold-horizontal), (vertical-viewport-segments: 2) {
  .pdl-article-layout {
    gap: 40px;
  }
}


