/*
Theme Name: Pharmacology Mentor
Theme URI: https://pharmacologymentor.com
Author: Pharmacology Mentor
Author URI: https://pharmacologymentor.com
Description: A premium clinical pharmacology education theme with deep teal/navy palette, gold accents, and editorial design for medical professionals.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pharmacology-mentor
Tags: education, medical, pharmacology, one-column, custom-menu, featured-images
*/

/* ========================================
   DESIGN SYSTEM
   ======================================== */

:root {
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(200, 25%, 10%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(200, 25%, 10%);
  --primary: hsl(195, 60%, 16%);
  --primary-foreground: hsl(45, 100%, 96%);
  --secondary: hsl(195, 15%, 93%);
  --secondary-foreground: hsl(195, 60%, 16%);
  --muted: hsl(200, 15%, 94%);
  --muted-foreground: hsl(200, 10%, 45%);
  --accent: hsl(43, 96%, 56%);
  --accent-foreground: hsl(200, 25%, 10%);
  --border: hsl(200, 15%, 89%);
  --gold: hsl(43, 96%, 56%);
  --gold-soft: hsl(43, 80%, 70%);
  --navy: hsl(200, 50%, 8%);
  --teal: hsl(195, 60%, 16%);
  --teal-light: hsl(195, 40%, 92%);
  --radius: 0.625rem;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --hero-gradient: linear-gradient(135deg, hsl(195, 65%, 12%) 0%, hsl(200, 50%, 18%) 50%, hsl(195, 40%, 22%) 100%);
  --pm-header-height: 64px;
  --pm-admin-bar-offset: 0px;
}

body.admin-bar {
  --pm-admin-bar-offset: 32px;
}

@media (max-width: 782px) {
  body.admin-bar {
    --pm-admin-bar-offset: 46px;
  }
}

/* ========================================
   BASE RESET & TYPOGRAPHY
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  text-wrap: balance;
  line-height: 1.1;
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
.bg-navy { background-color: var(--navy); }
.bg-teal { background-color: var(--teal); }
.bg-teal-light { background-color: var(--teal-light); }
.text-teal { color: var(--teal); }
.hero-gradient { background: var(--hero-gradient); }
.bg-muted { background-color: var(--muted); }
.bg-muted-half { background-color: hsl(200, 15%, 94%, 0.5); }
.bg-card { background-color: var(--card); }
.text-muted { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes reveal-left {
  from { opacity: 0; transform: translateX(-20px); filter: blur(4px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes reveal-right {
  from { opacity: 0; transform: translateX(20px); filter: blur(4px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scroll-reveal {
  opacity: 1;
}

.js .scroll-reveal {
  opacity: 0;
}

.scroll-reveal.revealed {
  animation: reveal-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-reveal.revealed-left {
  animation: reveal-left 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-reveal.revealed-right {
  animation: reveal-right 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

/* ========================================
   ADS
   ======================================== */

.pm-ad-slot {
  width: 100%;
  min-height: 1px;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border: 0 solid transparent;
  border-radius: 1rem;
  background: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(200, 22%, 98%) 100%);
  box-shadow: 0 14px 35px -28px rgba(11, 34, 44, 0.4);
  transition: max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease, opacity 0.35s ease, border-color 0.35s ease;
}

.pm-ad-slot.pm-ad-slot-pending {
  max-height: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
}

.pm-ad-slot.pm-ad-slot-visible {
  max-height: 1200px;
  margin: 1.5rem 0 2rem;
  padding: 0.9rem 1rem 1rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  border-width: 1px;
  border-color: hsl(200, 16%, 88%);
}

.pm-ad-slot-heading {
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-align: center;
}

.pm-ad-slot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.pm-ad-slot.pm-ad-slot-visible .pm-ad-slot-frame {
  min-height: 90px;
}

.pm-ad-slot .adsbygoogle {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.article-body > .pm-ad-slot.pm-ad-slot-visible:first-child,
.article-body > * + .pm-ad-slot.pm-ad-slot-visible {
  margin-top: 1.35rem;
}

.pmt-tool-body > .pm-ad-slot.pm-ad-slot-visible {
  margin-top: 1.5rem;
}

.pmt-showcase-grid + .pm-ad-slot.pm-ad-slot-visible {
  margin-top: 0.75rem;
}

[data-no-ads="true"] .pm-ad-slot,
.pmt-showcase-disclaimer .pm-ad-slot,
.wppd-disclaimer-container .pm-ad-slot,
#wppd-disclaimer-container .pm-ad-slot,
header .pm-ad-slot,
.site-header .pm-ad-slot {
  display: none !important;
}

@media (max-width: 768px) {
  .pm-ad-slot.pm-ad-slot-visible {
    margin: 1.25rem 0 1.5rem;
    padding: 0.8rem 0.8rem 0.9rem;
    border-radius: 0.875rem;
  }

  .pm-ad-slot-heading {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }
}

/* ========================================
   NAVBAR
   ======================================== */

.site-header {
  position: fixed;
  top: var(--pm-admin-bar-offset);
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(210, 20%, 98%);
  border-bottom: 1px solid hsl(200, 15%, 89%, 0.5);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.site-logo .logo-mark {
  display: flex;
  align-items: center;
}

.site-logo .logo-mark-image .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo .custom-logo {
  width: auto;
  max-width: min(200px, 38vw);
  height: 42px;
  object-fit: contain;
}

.site-logo .logo-mark-fallback {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
}

.site-logo .logo-text {
  line-height: 1.15;
}

.site-logo .logo-text .brand-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
  display: block;
}

.site-logo .logo-text .brand-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: -2px;
  display: block;
}

@media (max-width: 639px) {
  .site-logo .custom-logo {
    max-width: min(168px, 48vw);
    height: 36px;
  }
}

.nav-links {
  display: none;
  list-style: none;
  gap: 0.25rem;
}

.nav-links > li {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-links > li.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.7rem;
}

.nav-links > li > a,
.nav-links > li > .pm-nav-parent {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  color: hsl(200, 12%, 38%);
}

.pm-nav-parent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: hsl(200, 12%, 38%);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: none;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.pm-nav-parent svg {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.nav-links > li:hover > .pm-nav-parent svg,
.nav-links > li:focus-within > .pm-nav-parent svg,
.nav-links > li.current-menu-parent > .pm-nav-parent svg,
.nav-links > li.current-menu-ancestor > .pm-nav-parent svg {
  transform: rotate(180deg);
}

.nav-links a:hover,
.nav-links li:hover > .pm-nav-parent,
.nav-links li:focus-within > .pm-nav-parent,
.nav-links .current-menu-item a,
.nav-links .current_page_item a,
.nav-links .current-menu-parent > .pm-nav-parent,
.nav-links .current-menu-ancestor > .pm-nav-parent {
  color: var(--foreground);
  background: var(--muted);
}

.nav-links .sub-menu {
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 20rem;
  max-height: min(70vh, 34rem);
  padding: 0.55rem;
  margin: 0;
  display: none;
  list-style: none;
  border: 1px solid hsl(200, 15%, 89%, 0.6);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 46px rgba(8, 26, 34, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
}

.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
  display: grid;
  gap: 0.2rem;
}

.nav-links .sub-menu li {
  list-style: none;
}

.nav-links .sub-menu a {
  display: block;
  padding: 0.7rem 0.8rem;
  line-height: 1.4;
}

.nav-cta {
  display: none;
}

.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid hsl(200, 15%, 85%, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 10px 24px rgba(9, 27, 35, 0.08);
}

.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
  background: var(--muted);
  border-color: hsl(200, 15%, 80%, 0.95);
}

.header-search-panel {
  border-top: 1px solid hsl(200, 15%, 89%, 0.5);
  background: rgba(248, 251, 252, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-search-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.header-search-panel .container {
  padding-top: 0.9rem;
  padding-bottom: 0.95rem;
}

.header-search-form {
  display: grid;
  gap: 0.75rem;
}

.header-search-input,
.mobile-menu-search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--foreground);
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.header-search-submit {
  border: 0;
  border-radius: 0.95rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.mobile-toggle:hover {
  background: var(--muted);
}

.mobile-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--foreground);
}

.mobile-menu {
  display: none;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem 1.25rem;
}

.mobile-menu.active {
  display: block;
  animation: fade-in 0.2s ease-out;
  max-height: calc(100vh - var(--pm-header-height) - var(--pm-admin-bar-offset));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-list,
.mobile-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-nav:empty {
  display: none;
}

.mobile-menu li {
  list-style: none;
}

.mobile-menu a,
.mobile-menu .pm-nav-parent {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid hsl(200, 15%, 89%, 0.5);
  color: var(--muted-foreground);
  text-align: center;
  width: 100%;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
}

.mobile-menu-list > li:last-child > a,
.mobile-menu-list > li:last-child > .pm-nav-parent {
  border-bottom: none;
}

.mobile-menu .current-menu-item a,
.mobile-menu .current_page_item a,
.mobile-menu .current-menu-parent > .pm-nav-parent,
.mobile-menu .current-menu-ancestor > .pm-nav-parent {
  color: var(--foreground);
}

.mobile-menu .pm-dynamic-quizzes {
  margin-top: 0.2rem;
}

.mobile-menu .pm-dynamic-quizzes > .pm-nav-parent {
  display: inline-flex;
  justify-content: center;
  gap: 0.4rem;
}

.mobile-menu .pm-dynamic-quizzes > .sub-menu {
  display: none;
  gap: 0;
  margin: 0.35rem 0 0.6rem;
  padding: 0 0.95rem;
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--background) 70%, white);
  border: 1px solid hsl(200, 15%, 89%, 0.55);
  max-height: min(50vh, 24rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu .pm-dynamic-quizzes.is-open > .sub-menu,
.mobile-menu .pm-dynamic-quizzes.current-menu-parent > .sub-menu,
.mobile-menu .pm-dynamic-quizzes.current-menu-ancestor > .sub-menu {
  display: grid;
}

.mobile-menu .pm-dynamic-quizzes.is-open > .pm-nav-parent svg,
.mobile-menu .pm-dynamic-quizzes.current-menu-parent > .pm-nav-parent svg,
.mobile-menu .pm-dynamic-quizzes.current-menu-ancestor > .pm-nav-parent svg {
  transform: rotate(180deg);
}

.mobile-menu .pm-dynamic-quizzes > .sub-menu a {
  padding: 0.72rem 0;
  font-size: 0.82rem;
}

.mobile-menu .pm-dynamic-quizzes > .sub-menu li:last-child a {
  border-bottom: 0;
}

.mobile-menu-cta {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 94%, white), color-mix(in srgb, var(--navy) 88%, white));
  box-shadow: 0 18px 36px rgba(10, 32, 44, 0.16);
}

.mobile-menu-cta-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsla(45, 100%, 96%, 0.72);
}

.mobile-menu-cta-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--primary-foreground);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  border-bottom: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.mobile-menu-cta-button span {
  color: var(--primary-foreground);
}

.mobile-menu-cta-button svg {
  margin-left: auto;
  flex-shrink: 0;
  stroke: var(--primary-foreground);
}

.mobile-menu-cta-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.mobile-menu-search-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.mobile-menu-search-input {
  background: rgba(255, 255, 255, 0.96);
  color: var(--foreground);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: block;
  }
  .mobile-toggle {
    display: none;
  }
  .header-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .header-search-submit {
    white-space: nowrap;
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  height: 40px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  filter: brightness(1.1);
}

.btn-sm {
  height: 36px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  height: 48px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-xl {
  height: 56px;
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-hero {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.btn-hero:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  filter: brightness(1.05);
}

.btn-hero-outline {
  border: 2px solid hsla(45, 100%, 96%, 0.3);
  color: var(--primary-foreground);
  background: transparent;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.btn-hero-outline:hover {
  background: hsla(45, 100%, 96%, 0.1);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(242, 190, 37, 0.18), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(115, 214, 213, 0.18), transparent 24%),
    var(--navy);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
}

.hero::before {
  width: 16rem;
  height: 16rem;
  top: -6rem;
  right: -5rem;
  background: rgba(242, 190, 37, 0.12);
}

.hero::after {
  width: 14rem;
  height: 14rem;
  left: -4rem;
  bottom: -5rem;
  background: rgba(115, 214, 213, 0.14);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.34;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.hero-shell {
  position: relative;
  padding-top: calc(var(--pm-header-height) + var(--pm-admin-bar-offset) + 1rem);
  padding-bottom: 2.55rem;
  display: grid;
  gap: 1.2rem;
  align-items: start;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 44rem;
  gap: 0;
  min-width: 0;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding: 0.625rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fade-in 0.6s ease-out 0.1s forwards;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--primary-foreground);
  line-height: 1.05;
  max-width: 13ch;
  opacity: 0;
  animation: fade-in 0.6s ease-out 0.25s forwards;
}

.hero-subtitle {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: hsla(45, 100%, 96%, 0.8);
  max-width: 34rem;
  line-height: 1.65;
  opacity: 0;
  animation: fade-in 0.6s ease-out 0.4s forwards;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  animation: fade-in 0.6s ease-out 0.55s forwards;
}

.hero-search-form {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.8rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(4, 16, 22, 0.18);
  opacity: 0;
  animation: fade-in 0.6s ease-out 0.62s forwards;
}

.hero-search-input {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.95rem;
  background: rgba(8, 22, 30, 0.38);
  color: var(--primary-foreground);
  padding: 0.95rem 1rem;
  font: inherit;
}

.hero-search-input::placeholder {
  color: hsla(45, 100%, 96%, 0.62);
}

.hero-search-input:focus {
  outline: none;
  border-color: rgba(242, 190, 37, 0.55);
  box-shadow: 0 0 0 4px rgba(242, 190, 37, 0.14);
}

.hero-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  border: 0;
  border-radius: 0.95rem;
  background: var(--gold);
  color: hsl(200, 25%, 10%);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(8, 22, 30, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(8, 22, 30, 0.24);
}

.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.95rem;
  opacity: 0;
  animation: fade-in 0.6s ease-out 0.7s forwards;
}

.hero-proof-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: hsla(45, 100%, 96%, 0.88);
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-rail {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.hero-insight-card,
.hero-focus-card,
.hero-mini-stats {
  background: rgba(7, 22, 30, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.28rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 60px rgba(4, 16, 22, 0.25);
}

.hero-insight-card {
  padding: 1.02rem;
}

.hero-quick-grid {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.95rem;
  opacity: 0;
  animation: fade-in 0.6s ease-out 0.85s forwards;
}

.hero-quick-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.88rem 0.95rem;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(4, 16, 22, 0.18);
}

.hero-quick-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(242, 190, 37, 0.24), rgba(255, 255, 255, 0.12));
  color: var(--primary-foreground);
}

.hero-quick-card strong {
  display: block;
  color: var(--primary-foreground);
  font-size: 0.96rem;
}

.hero-quick-card p {
  margin-top: 0.2rem;
  color: hsla(45, 100%, 96%, 0.74);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-card-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-insight-card h2 {
  color: var(--primary-foreground);
  font-size: clamp(1.2rem, 1.75vw, 1.58rem);
  line-height: 1.15;
  margin: 0.5rem 0 0.8rem;
}

.hero-focus-card {
  padding: 0.88rem 0.98rem 0.98rem;
}

.hero-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-focus-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(242, 190, 37, 0.14);
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-focus-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.hero-focus-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-focus-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(242, 190, 37, 0.24);
}

.hero-feature-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.hero-feature-list li {
  display: grid;
  gap: 0.14rem;
  padding-left: 0.9rem;
  position: relative;
}

.hero-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(242, 190, 37, 0.14);
}

.hero-feature-list strong {
  color: var(--primary-foreground);
  font-size: 0.93rem;
}

.hero-feature-list span {
  color: hsla(45, 100%, 96%, 0.72);
  font-size: 0.86rem;
  line-height: 1.42;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem;
}

.hero-mini-stat {
  text-align: center;
  padding: 0.55rem 0.3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.hero-mini-stat:last-child {
  grid-column: 1 / -1;
}

.hero-mini-value {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.65vw, 1.7rem);
  color: var(--primary-foreground);
}

.hero-mini-label {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsla(45, 100%, 96%, 0.7);
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .hero-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .hero-search-submit {
    padding: 0 1.15rem;
  }

  .hero-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-mini-stat:last-child {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 1.45rem;
    padding-top: calc(var(--pm-header-height) + var(--pm-admin-bar-offset) + 1.35rem);
    padding-bottom: 3.15rem;
  }

  .hero-rail {
    padding-top: 0.1rem;
  }
}

@media (max-width: 767px) {
  .hero-shell {
    padding-top: calc(var(--pm-header-height) + var(--pm-admin-bar-offset) + 0.85rem);
    padding-bottom: 2rem;
    gap: 0.95rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-subtitle {
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-buttons {
    width: 100%;
    margin-top: 1.5rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-proof-strip {
    display: grid;
    width: 100%;
  }

  .hero-proof-strip span {
    width: 100%;
    justify-content: center;
  }

  .hero-quick-grid {
    margin-top: 0.9rem;
  }

  .hero-quick-card {
    padding: 0.85rem 0.9rem;
  }

  .hero-insight-card,
  .hero-focus-card,
  .hero-mini-stats {
    border-radius: 1.15rem;
  }

  .hero-insight-card h2 {
    font-size: 1.15rem;
  }

  .hero-focus-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
  position: relative;
  z-index: 10;
  margin-top: -3rem;
}

.stats-card {
  background: var(--card);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  border: 1px solid hsl(200, 15%, 89%, 0.5);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--foreground);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ========================================
   SECTION STYLES
   ======================================== */

.section {
  padding: 6rem 0;
}

.section-lg {
  padding: 2rem 0;
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
}

.section-header p {
  margin-top: 1rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ========================================
   FEATURE CARDS
   ======================================== */

.features-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid hsl(200, 15%, 89%, 0.5);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  display: block;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon.teal {
  background: var(--teal-light);
  color: var(--teal);
}

.feature-icon.amber {
  background: hsl(45, 100%, 95%);
  color: hsl(38, 92%, 40%);
}

.feature-icon.emerald {
  background: hsl(152, 76%, 94%);
  color: hsl(160, 84%, 28%);
}

.feature-icon.sky {
  background: hsl(205, 92%, 94%);
  color: hsl(205, 78%, 40%);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1rem;
  transition: gap 0.2s ease;
}

.feature-card:hover .feature-link {
  gap: 0.5rem;
}

/* ========================================
   PATHWAYS GRID
   ======================================== */

.pathways-grid {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pathways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pathways-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pathway-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid hsl(200, 15%, 89%, 0.5);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.pathway-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border-color: hsla(43, 96%, 56%, 0.3);
}

.pathway-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}

.pathway-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  flex: 1;
}

.pathway-chevron {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.pathway-card:hover .pathway-chevron {
  color: var(--gold);
}

/* ========================================
   CTA BANNER
   ======================================== */

.cta-banner {
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, hsla(43, 96%, 56%, 0.08), transparent 50%);
}

.cta-banner > * {
  position: relative;
}

.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsla(43, 96%, 56%, 0.8);
  margin-bottom: 1rem;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: hsla(45, 100%, 96%, 0.6);
  max-width: 32rem;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 4rem;
  }
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--navy);
  color: hsla(45, 100%, 96%, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-brand .brand-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: hsla(43, 96%, 56%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.footer-brand .brand-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 20rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsla(45, 100%, 96%, 0.68);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: hsla(45, 100%, 96%, 0.86);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--primary-foreground);
}

.footer-bottom {
  margin-top: 0;
  padding: 1.5rem 0;
  border-top: 1px solid hsla(45, 100%, 96%, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: hsla(45, 100%, 96%, 0.72);
}

.footer-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1rem;
}

.footer-bottom-nav a {
  color: hsla(45, 100%, 96%, 0.84);
  transition: color 0.15s ease;
}

.footer-bottom-nav a:hover {
  color: var(--primary-foreground);
}

.cookie-consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: min(28rem, calc(100vw - 2rem));
}

.cookie-consent-shell {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid hsl(200, 15%, 84%, 0.92);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--foreground);
  box-shadow: 0 20px 42px rgba(8, 26, 34, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-consent-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.cookie-consent-copy p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.cookie-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.cookie-consent-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--foreground);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent-btn {
  flex: 1 1 10rem;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.cookie-consent-btn:hover {
  transform: translateY(-1px);
}

.cookie-consent-btn-muted {
  background: var(--muted);
  border-color: var(--border);
  color: var(--foreground);
}

.cookie-consent-btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 12px 24px rgba(10, 32, 44, 0.12);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 639px) {
  .cookie-consent-banner {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 0.75rem;
  }
}

/* ========================================
   PAGE HEADERS
   ======================================== */

.page-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(242, 190, 37, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(115, 214, 213, 0.16), transparent 24%),
    var(--hero-gradient);
  padding: calc(var(--pm-header-height) + var(--pm-admin-bar-offset) + 0.9rem) 0 5.75rem;
  text-align: left;
}

.page-header::before,
.page-header::after,
.article-header::before,
.article-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
}

.page-header::before,
.article-header::before {
  width: 16rem;
  height: 16rem;
  top: -6rem;
  left: -4rem;
  background: rgba(242, 190, 37, 0.12);
}

.page-header::after,
.article-header::after {
  width: 14rem;
  height: 14rem;
  right: -4rem;
  bottom: -5rem;
  background: rgba(115, 214, 213, 0.12);
}

.page-header .container,
.article-header .container {
  position: relative;
  z-index: 1;
}

.page-header .header-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-header h1 {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--primary-foreground);
  max-width: 48rem;
  margin: 0;
  line-height: 1.05;
}

.page-header > p,
.page-header .header-desc {
  margin-top: 1.25rem;
  color: hsla(45, 100%, 96%, 0.78);
  max-width: 42rem;
  margin-left: 0;
  margin-right: 0;
  line-height: 1.65;
}

/* ========================================
   BLOG / ARCHIVE
   ======================================== */

.blog-featured {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .blog-featured {
    grid-template-columns: repeat(2, 1fr);
  }
}

.featured-post {
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid hsl(200, 15%, 89%, 0.5);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
  display: block;
}

.featured-post:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.featured-post .post-banner {
  height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.featured-post .post-banner .post-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.featured-post .post-body {
  padding: 1.75rem;
}

.featured-post h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.featured-post:hover h3 {
  color: var(--primary);
}

.featured-post .post-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: hsla(200, 10%, 45%, 0.7);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Post list items */
.post-list-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid hsl(200, 15%, 89%, 0.5);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.post-list-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border-color: hsla(43, 96%, 56%, 0.2);
}

@media (min-width: 640px) {
  .post-list-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.post-list-item .post-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.post-list-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.post-list-item:hover h3 {
  color: var(--primary);
}

.post-list-item .post-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.post-list-item:hover .read-more {
  gap: 0.5rem;
}

/* ========================================
   SINGLE POST / ARTICLE
   ======================================== */

.article-header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(242, 190, 37, 0.18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(115, 214, 213, 0.16), transparent 24%),
    var(--hero-gradient);
  padding: calc(var(--pm-header-height) + var(--pm-admin-bar-offset) + 0.9rem) 0 5.75rem;
}

.article-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsla(45, 100%, 96%, 0.72);
  margin-bottom: 1.15rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.article-header .back-link:hover {
  color: var(--primary-foreground);
  transform: translateX(-2px);
}

.article-header .post-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-foreground);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.article-header .post-meta {
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: hsla(45, 100%, 96%, 0.72);
}

.article-body {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.65rem 0 1.5rem;
}

.article-body > :first-child {
  margin-top: 0 !important;
}

.article-body p {
  color: hsla(200, 25%, 10%, 0.8);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

.article-body > h2:first-of-type,
.article-body > .wp-block-heading:first-of-type {
  margin-top: 2rem;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: hsla(200, 25%, 10%, 0.8);
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted-foreground);
}

.article-separator {
  height: 1px;
  background: var(--border);
  margin: 4rem 0;
}

/* Related Posts */
.related-posts h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2rem;
}

.related-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid hsl(200, 15%, 89%, 0.5);
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.related-post-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border-color: hsla(43, 96%, 56%, 0.2);
}

.related-post-item .post-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(37, 88%, 34%);
}

.related-post-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-top: 0.25rem;
  transition: color 0.2s ease;
  font-family: var(--font-sans);
}

.related-post-item:hover h4 {
  color: var(--primary);
}

/* ========================================
   KNOWLEDGE & TOOLS CARDS
   ======================================== */

.category-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid hsl(200, 15%, 89%, 0.5);
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: block;
}

.category-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  border-color: hsla(43, 96%, 56%, 0.2);
}

.category-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.category-card .article-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: hsla(200, 10%, 45%, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.category-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-stats-card {
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
}

.about-stat {
  margin-bottom: 1.5rem;
}

.about-stat:last-child {
  margin-bottom: 0;
}

.about-stat .stat-value {
  font-size: 3rem;
  color: var(--gold);
}

.about-stat .stat-label {
  color: hsla(45, 100%, 96%, 0.5);
}

.about-stat-divider {
  height: 1px;
  background: hsla(45, 100%, 96%, 0.1);
  margin: 1.5rem 0;
}

.values-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  text-align: center;
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--teal);
}

.value-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ========================================
   SEARCH BAR
   ======================================== */

.search-bar {
  position: relative;
  flex: 1;
}

.search-bar input {
  width: 100%;
  height: 40px;
  padding: 0 1rem 0 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--foreground);
  outline: none;
  transition: box-shadow 0.15s ease;
}

.search-bar input:focus {
  box-shadow: 0 0 0 2px var(--primary);
}

.search-bar svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--muted);
  color: var(--muted-foreground);
}

.filter-tag:active {
  transform: scale(0.95);
}

.filter-tag.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ========================================
   404 PAGE
   ======================================== */

.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 4rem 2rem;
}

.page-404 h1 {
  font-size: 6rem;
  font-weight: 700;
  color: var(--muted-foreground);
  opacity: 0.3;
}

.page-404 h2 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.page-404 p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* ========================================
   PAGINATION (WordPress)
   ======================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.pagination a {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.pagination a:hover {
  background: var(--muted);
}

.pagination .current {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
}

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */

.alignleft { float: left; margin: 0 1.5rem 1.5rem 0; }
.alignright { float: right; margin: 0 0 1.5rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1.5rem; }
.alignwide { max-width: 72rem; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); width: 100vw; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.5rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.gallery-item { margin: 0; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========================================
   CONTENT LAYOUTS
   ======================================== */

.site-main {
  padding-top: 0;
  min-height: calc(100vh - var(--pm-header-height) - var(--pm-admin-bar-offset));
}

.content-shell {
  padding: 0 0 5rem;
}

.content-shell-overlap {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.content-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.content-grid.no-sidebar {
  max-width: 52rem;
  margin: 0 auto;
}

.content-main {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: clamp(1.1rem, 2vw, 1.75rem);
  box-shadow: 0 28px 60px rgba(10, 32, 44, 0.08);
}

.content-sidebar {
  position: relative;
}

.article-summary {
  margin-top: 1.25rem;
  color: hsla(45, 100%, 96%, 0.78);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.editorial-hero {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.editorial-hero-main,
.editorial-hero-side {
  min-width: 0;
}

.editorial-kicker-row,
.editorial-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.editorial-kicker-row {
  margin-bottom: 1rem;
}

.editorial-chip,
.editorial-meta-label {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-chip {
  color: hsla(45, 100%, 96%, 0.78);
}

.editorial-meta-card {
  padding: 1.2rem;
  border-radius: 1.4rem;
  background: rgba(7, 22, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 60px rgba(4, 16, 22, 0.22);
}

.editorial-fact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.editorial-fact {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editorial-fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.editorial-fact span {
  color: hsla(45, 100%, 96%, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-fact strong {
  color: var(--primary-foreground);
  font-size: 0.98rem;
  text-align: right;
}

.editorial-note {
  margin-top: 1rem;
  color: hsla(45, 100%, 96%, 0.72);
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (min-width: 1024px) {
  .editorial-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 2rem;
  }

  .editorial-hero.editorial-hero-no-side {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article-featured-media {
  margin-bottom: 0.5rem;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(10, 32, 44, 0.08);
}

.article-featured-media img {
  width: 100%;
  object-fit: cover;
}

.article-body > * + * {
  margin-top: 1.25rem;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.article-body strong {
  color: var(--foreground);
}

.article-body .katex-eq[data-katex-display="true"],
.page-main .article-body .katex-eq[data-katex-display="true"] {
  display: block;
  margin: 1.5rem 0;
  padding: 0.25rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.article-body .katex-eq[data-katex-display="false"] {
  display: inline-block;
  max-width: 100%;
}

.article-body .katex-display {
  margin: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  scroll-margin-top: 6rem;
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption,
.article-body .wp-caption-text {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(10, 32, 44, 0.05);
}

.article-body th,
.article-body td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: color-mix(in srgb, var(--primary) 8%, white);
  color: var(--foreground);
  font-weight: 700;
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-body pre,
.article-body code,
.article-body kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article-body pre {
  background: var(--navy);
  color: var(--primary-foreground);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

.article-body code:not(pre code) {
  background: color-mix(in srgb, var(--primary) 8%, white);
  color: var(--primary);
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
}

.article-body .wp-block-quote,
.article-body blockquote {
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 1rem 1rem 0;
}

.article-body .wp-block-image img,
.article-body .wp-block-cover,
.article-body iframe {
  border-radius: 1rem;
}

.article-body .wp-block-button__link {
  background: var(--primary);
  color: var(--primary-foreground);
}

.article-body .wp-block-separator {
  margin: 2.5rem auto;
  border-color: var(--border);
}

.page-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  font-weight: 600;
}

.page-links a,
.page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.post-taxonomy {
  margin-top: 2.5rem;
}

.post-taxonomy-label,
.sidebar-highlight-label,
.comments-kicker,
.author-label,
.nav-card-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(37, 88%, 34%);
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.tag-pill:hover {
  color: var(--foreground);
  border-color: var(--primary);
}

.author-box,
.post-navigation-cards {
  margin-top: 2.5rem;
}

.related-posts {
  margin-top: 3rem;
}

.author-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 4%, white), var(--card));
}

.author-avatar img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.author-copy h3 {
  font-size: 1.25rem;
  margin: 0.25rem 0 0.5rem;
}

.author-copy p:last-child {
  color: var(--muted-foreground);
}

.post-navigation-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-card {
  display: block;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(10, 32, 44, 0.04);
}

.nav-card strong {
  display: block;
  margin-top: 0.4rem;
  color: var(--foreground);
  line-height: 1.4;
}

.nav-card-next {
  text-align: right;
}

.post-navigation-cards .nav-card:only-child {
  grid-column: 1 / -1;
}

/* ========================================
   SIDEBAR
   ======================================== */

.content-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.sidebar-card {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(10, 32, 44, 0.04);
  position: relative;
  overflow: hidden;
}

.sidebar-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--primary) 70%, white));
}

.sidebar-highlight {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, white), var(--card));
}

.widget-title {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.sidebar-link-list,
.widget ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.sidebar-link-list li,
.widget ul li {
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 85%, white);
}

.sidebar-link-list li:last-child,
.widget ul li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-link-list a,
.widget ul a {
  color: var(--muted-foreground);
  font-weight: 600;
  line-height: 1.45;
}

.sidebar-link-list a:hover,
.widget ul a:hover {
  color: var(--foreground);
}

.widget select,
.widget input[type="text"],
.widget input[type="email"],
.widget input[type="url"],
.widget textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: color-mix(in srgb, var(--background) 70%, white);
  color: var(--foreground);
  padding: 0.8rem 0.95rem;
  font: inherit;
}

.widget table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.widget table th,
.widget table td {
  padding: 0.45rem;
  text-align: center;
  border: 1px solid var(--border);
}

.widget table caption {
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.widget .tagcloud,
.widget .wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.widget .tagcloud a,
.widget .wp-block-tag-cloud a {
  font-size: 0.8rem !important;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 65%, white);
}

.widget .wp-block-latest-posts,
.widget .wp-block-categories,
.widget .wp-block-archives {
  list-style: none;
  padding: 0;
}

.sidebar-highlight h3 {
  font-size: 1.3rem;
  margin: 0.35rem 0 0.6rem;
}

.sidebar-highlight p:last-of-type {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.search-form,
.wp-block-search__inside-wrapper {
  display: flex;
  gap: 0.625rem;
}

.search-form label {
  flex: 1;
}

.search-field,
.search-form input[type="search"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: color-mix(in srgb, var(--background) 70%, white);
  color: var(--foreground);
  padding: 0.8rem 0.95rem;
  font: inherit;
}

.search-submit,
.wp-block-search__button {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 0;
  border-radius: 0.875rem;
  padding: 0.8rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* ========================================
   COMMENTS
   ======================================== */

.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comments-shell {
  display: grid;
  gap: 1.5rem;
}

.comments-header {
  max-width: 42rem;
}

.comments-title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.comments-description,
.comment-notes,
.no-comments {
  color: var(--muted-foreground);
}

.comments-count {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.comment-reply-title {
  margin-bottom: 1rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.comment-list .children {
  list-style: none;
  padding-left: 1rem;
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.pm-comment-card {
  margin: 0;
}

.pm-comment-card .comment-body {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.comment-avatar img {
  border-radius: 50%;
}

.comment-content-wrap {
  flex: 1;
  min-width: 0;
}

.comment-author-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.comment-author-name {
  font-weight: 700;
  color: var(--foreground);
}

.comment-date-link,
.comment-meta-separator {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.comment-awaiting-moderation {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 0.875rem;
}

.comment-copy {
  color: color-mix(in srgb, var(--foreground) 85%, white);
}

.comment-copy p + p {
  margin-top: 0.9rem;
}

.comment-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.comment-reply-link,
.comment-edit-link a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.pm-comment-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.comment-form textarea {
  min-height: 180px;
  resize: vertical;
}

.comment-form-cookies-consent {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  color: var(--muted-foreground);
}

.comment-form-cookies-consent input {
  margin-top: 0.2rem;
}

.form-submit {
  margin-top: 0.25rem;
}

.comment-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-widget-row {
  margin-top: 2rem;
}

.footer-cta-widget {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 1024px) {
  .content-grid.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .content-sidebar {
    position: sticky;
    top: calc(88px + var(--pm-admin-bar-offset));
  }
}

@media (max-width: 767px) {
  .archive-header h1 {
    max-width: 100%;
    font-size: clamp(1.65rem, 8.4vw, 2.2rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  body.single-post,
  body.pm-tool-page {
    overflow-x: clip;
  }

  .single-post .site-header,
  .single-post .site-main,
  .single-post .content-shell,
  .single-post .content-main.article-main,
  .pm-tool-page .site-header,
  .pm-tool-page .site-main,
  .pm-tool-page .content-shell,
  .pm-tool-page .content-main.page-main {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header nav {
    padding: 0 0.85rem;
    gap: 0.7rem;
  }

  .site-logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-logo .custom-logo {
    max-width: min(156px, 50vw);
    height: 34px;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .single-post .content-shell > .container,
  .pm-tool-page .content-shell > .container {
    padding-left: 0;
    padding-right: 0;
  }

  .single-post .content-main.article-main,
  .pm-tool-page .content-main.page-main {
    border-radius: 0;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }

  .single-post .content-main.article-main,
  .pm-tool-page .content-main.page-main {
    padding: 1.15rem;
  }

  .single-post .article-body > *,
  .pm-tool-page .article-body > * {
    max-width: 100%;
  }

  .single-post .article-body table,
  .single-post .article-body .wp-block-table,
  .pm-tool-page .article-body table,
  .pm-tool-page .article-body .wp-block-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .single-post .article-body iframe,
  .single-post .article-body img,
  .pm-tool-page .article-body iframe,
  .pm-tool-page .article-body img {
    max-width: 100%;
  }

  .page-header,
  .article-header {
    padding: calc(var(--pm-header-height) + var(--pm-admin-bar-offset) + 0.75rem) 0 4.2rem;
  }

  .content-shell-overlap {
    margin-top: -1.75rem;
  }

  .editorial-fact {
    flex-direction: column;
    align-items: flex-start;
  }

  .editorial-fact strong {
    text-align: left;
  }

  .author-box,
  .pm-comment-card .comment-body {
    flex-direction: column;
  }

  .post-navigation-cards {
    grid-template-columns: 1fr;
  }

  .nav-card-next {
    text-align: left;
  }

  .search-form,
  .wp-block-search__inside-wrapper {
    flex-direction: column;
  }
}
