/* Polybuzz AI Directory — Block Theme Stylesheet (v1.1.0)
 * Light, lightweight design system. One container width, one type scale,
 * one spacing rhythm shared by every template, pattern and tool.
 */
:root {
  --pbt-brand: #0f172a;
  --pbt-brand-vivid: #1e293b;
  --pbt-brand-hover: #334155;
  --pbt-accent: #4f46e5;
  --pbt-accent-soft: #eef2ff;
  --pbt-accent-border: #c7d2fe;
  --pbt-brand-soft: #f1f5f9;
  --pbt-brand-border: #cbd5e1;
  --pbt-ink: #0f172a;
  --pbt-body: #334155;
  --pbt-muted: #64748b;
  --pbt-surface: #ffffff;
  --pbt-surface-alt: #f8fafc;
  --pbt-border: #e2e8f0;
  --pbt-success: #047857;
  --pbt-container: 1200px;
  --pbt-prose: 780px;
  --pbt-gutter: 1.25rem;
  --pbt-section-y: 3.25rem;
  --pbt-radius: 14px;
  --pbt-radius-sm: 10px;
  --pbt-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --pbt-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.05);
  --pbt-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --pbt-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (min-width: 768px) {
  :root {
    --pbt-gutter: 1.5rem;
    --pbt-section-y: 4.25rem;
  }
}

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

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

body {
  margin: 0;
  background-color: var(--pbt-surface);
  color: var(--pbt-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) keeps position:sticky working on the header */
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pbt-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--pbt-brand);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--pbt-accent-border);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--pbt-accent-soft);
  color: var(--pbt-ink);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------- Layout primitives ---------- */
.pbt-container {
  width: 100%;
  max-width: calc(var(--pbt-container) + (var(--pbt-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--pbt-gutter);
}

.pbt-narrow {
  max-width: calc(var(--pbt-prose) + (var(--pbt-gutter) * 2));
}

.pbt-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pbt-brand);
  color: #ffffff;
  padding: 0.65rem 1rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.pbt-skip-link:focus {
  left: 0;
  color: #ffffff;
}

/* WordPress wraps template parts in a div; make sure it never adds space. */
.wp-site-blocks > * {
  margin-block-start: 0;
}

.wp-site-blocks > footer,
.wp-site-blocks > div:last-child {
  margin-top: 0;
}

main#main-content {
  display: block;
  margin-top: 0;
}

/* ---------- Header ---------- */
/* Block themes wrap the header in a template-part element of the same height,
   so the wrapper (not the header) must be sticky. */
.wp-site-blocks > :has(> .pbt-header),
.pbt-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.wp-site-blocks > :has(> .pbt-header) > .pbt-header {
  position: relative;
  top: auto;
}

.pbt-header {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--pbt-border);
  transition: box-shadow 0.2s ease;
}

.admin-bar .wp-site-blocks > :has(> .pbt-header) {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .wp-site-blocks > :has(> .pbt-header) {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .wp-site-blocks > :has(> .pbt-header) {
    top: 0;
  }
}

.pbt-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.pbt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.pbt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--pbt-ink);
  flex-shrink: 0;
}

.pbt-brand:hover {
  color: var(--pbt-ink);
}

.pbt-brand-icon,
.pbt-brand .custom-logo {
  display: block;
  width: auto;
  height: 36px;
}

.pbt-brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--pbt-ink);
  line-height: 1.1;
}

.pbt-nav {
  display: none;
}

.pbt-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pbt-menu li {
  position: relative;
}

.pbt-menu a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pbt-body);
  white-space: nowrap;
}

.pbt-menu a:hover,
.pbt-menu .current-menu-item > a,
.pbt-menu .current-menu-ancestor > a,
.pbt-menu .current_page_parent > a {
  color: var(--pbt-ink);
}

.pbt-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--pbt-muted);
  cursor: pointer;
  border-radius: 6px;
}

.pbt-submenu-toggle svg {
  transition: transform 0.2s var(--pbt-ease);
}

.pbt-menu li.is-sub-open > .pbt-menu-row .pbt-submenu-toggle svg {
  transform: rotate(180deg);
}

.pbt-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.1rem;
}

.pbt-menu .sub-menu {
  list-style: none;
  margin: 0 0 0.4rem;
  padding: 0.25rem 0 0.25rem 0.85rem;
  border-left: 2px solid var(--pbt-border);
  display: none;
  flex-direction: column;
}

.pbt-menu li.is-sub-open > .sub-menu {
  display: flex;
}

.pbt-menu .sub-menu a {
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.25rem;
}

/* Mobile drawer */
.pbt-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  background: var(--pbt-surface);
  border-bottom: 1px solid var(--pbt-border);
  padding: 0.75rem var(--pbt-gutter) 1.25rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
}

.pbt-nav.is-open .pbt-menu > li {
  border-bottom: 1px solid var(--pbt-border);
}

.pbt-nav.is-open .pbt-menu > li:last-child {
  border-bottom: 0;
}

@media (min-width: 1080px) {
  .pbt-nav,
  .pbt-nav.is-open {
    display: block;
    position: static;
    padding: 0;
    box-shadow: none;
    border: 0;
    max-height: none;
    overflow: visible;
    background: transparent;
  }

  .pbt-menu {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .pbt-menu > li > .pbt-menu-row > a,
  .pbt-menu > li > a {
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    font-size: 0.925rem;
  }

  .pbt-menu > li > .pbt-menu-row > a:hover,
  .pbt-menu > li > a:hover {
    background: var(--pbt-brand-soft);
  }

  .pbt-menu > .current-menu-item > a,
  .pbt-menu > .current-menu-item > .pbt-menu-row > a,
  .pbt-menu > .current-menu-ancestor > .pbt-menu-row > a {
    color: var(--pbt-ink);
    background: var(--pbt-brand-soft);
  }

  .pbt-menu-row {
    gap: 0;
  }

  .pbt-submenu-toggle {
    width: 22px;
    height: 28px;
    margin-left: -0.35rem;
  }

  .pbt-menu .sub-menu {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s var(--pbt-ease), visibility 0.16s;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 260px;
    margin: 0;
    background: var(--pbt-surface);
    border: 1px solid var(--pbt-border);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: var(--pbt-shadow-lg);
    z-index: 20;
  }

  /* Hover bridge so the dropdown does not close while the pointer moves down. */
  .pbt-menu .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }

  .pbt-menu li:hover > .sub-menu,
  .pbt-menu li:focus-within > .sub-menu,
  .pbt-menu li.is-sub-open > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .pbt-menu .sub-menu a {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    white-space: normal;
  }

  .pbt-menu .sub-menu a:hover,
  .pbt-menu .sub-menu .current-menu-item > a {
    background: var(--pbt-brand-soft);
    color: var(--pbt-ink);
  }
}

.pbt-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pbt-icon-btn,
.pbt-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--pbt-border);
  background: var(--pbt-surface);
  color: var(--pbt-ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pbt-icon-btn:hover,
.pbt-mobile-toggle:hover {
  border-color: var(--pbt-brand-border);
  background: var(--pbt-brand-soft);
}

.pbt-mobile-toggle .pbt-icon-close {
  display: none;
}

.pbt-mobile-toggle[aria-expanded="true"] .pbt-icon-open {
  display: none;
}

.pbt-mobile-toggle[aria-expanded="true"] .pbt-icon-close {
  display: block;
}

@media (min-width: 1080px) {
  .pbt-mobile-toggle {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.pbt-cta-btn,
.pbt-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.925rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s var(--pbt-ease), box-shadow 0.15s ease;
}

.pbt-cta-btn {
  background: var(--pbt-brand);
  color: #ffffff;
  border: 1px solid var(--pbt-brand);
  box-shadow: var(--pbt-shadow-sm);
}

.pbt-cta-btn:hover {
  background: var(--pbt-brand-vivid);
  border-color: var(--pbt-brand-vivid);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.pbt-btn-outline {
  background: var(--pbt-surface);
  color: var(--pbt-ink);
  border: 1px solid var(--pbt-brand-border);
}

.pbt-btn-outline:hover {
  background: var(--pbt-brand-soft);
  border-color: #94a3b8;
  color: var(--pbt-ink);
}

.pbt-header .pbt-cta-btn {
  min-height: 42px;
  padding: 0.55rem 1rem;
}

@media (max-width: 639px) {
  .pbt-header .pbt-cta-btn {
    display: none;
  }
}

/* Header search drawer */
.pbt-search-drawer {
  background: var(--pbt-surface-alt);
  border-top: 1px solid var(--pbt-border);
  padding: 0.9rem 0;
}

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

.pbt-header-search-form input,
.wp-block-search__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--pbt-brand-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
}

.wp-block-search__button {
  min-height: 44px;
  margin: 0;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--pbt-brand);
  background: var(--pbt-brand);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Sections ---------- */
.pbt-section {
  padding-block: var(--pbt-section-y);
}

.wp-block-group.pbt-section {
  padding: var(--pbt-section-y) var(--pbt-gutter);
  margin-block: 0;
}

.wp-block-group.pbt-section > * {
  max-width: var(--pbt-container);
  margin-left: auto !important;
  margin-right: auto !important;
}

.pbt-section-alt {
  background: var(--pbt-surface-alt);
  border-top: 1px solid var(--pbt-border);
  border-bottom: 1px solid var(--pbt-border);
}

.pbt-section-alt + .pbt-section-alt {
  border-top: 0;
}

main > .pbt-section:last-child {
  border-bottom: 0;
}

.pbt-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.pbt-section-head > div {
  max-width: 720px;
}

.pbt-kicker {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pbt-accent);
}

.pbt-section-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.4vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--pbt-ink);
}

.pbt-section-head p {
  margin: 0;
  color: var(--pbt-muted);
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.pbt-hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(79, 70, 229, 0.07), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--pbt-border);
}

.pbt-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 960px) {
  .pbt-hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3rem;
  }
}

.pbt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--pbt-surface);
  border: 1px solid var(--pbt-border);
  box-shadow: var(--pbt-shadow-sm);
  color: var(--pbt-brand-hover);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

.pbt-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--pbt-ink);
}

.pbt-hero-lead {
  margin: 0 0 1.6rem;
  font-size: clamp(1.02rem, 1.4vw, 1.125rem);
  color: var(--pbt-body);
  max-width: 58ch;
}

.pbt-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pbt-hero-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--pbt-muted);
}

.pbt-hero-media {
  text-align: center;
}

.pbt-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--pbt-border);
  box-shadow: var(--pbt-shadow-lg);
  background: #ffffff;
}

/* Quick stat strip */
.pbt-stats-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 2.25rem 0 0;
}

@media (min-width: 600px) {
  .pbt-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .pbt-stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pbt-stat-pill {
  background: var(--pbt-surface);
  border: 1px solid var(--pbt-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  box-shadow: var(--pbt-shadow-sm);
}

.pbt-stat-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--pbt-accent-soft);
  border: 1px solid var(--pbt-accent-border);
  color: var(--pbt-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pbt-stat-pill strong {
  display: block;
  color: var(--pbt-ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.pbt-stat-pill span {
  display: block;
  color: var(--pbt-muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

/* ---------- Cards & grids ---------- */
.pbt-grid-2,
.pbt-grid-3,
.pbt-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 680px) {
  .pbt-grid-2,
  .pbt-grid-3,
  .pbt-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 980px) {
  .pbt-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pbt-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pbt-tool-link-card,
.pbt-feature-card {
  position: relative;
  background: var(--pbt-surface);
  border: 1px solid var(--pbt-border);
  border-radius: var(--pbt-radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--pbt-body);
  box-shadow: var(--pbt-shadow-sm);
}

.pbt-tool-link-card {
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--pbt-ease);
}

.pbt-tool-link-card:hover {
  border-color: var(--pbt-accent-border);
  box-shadow: var(--pbt-shadow);
  transform: translateY(-2px);
  color: var(--pbt-body);
}

.pbt-tool-link-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  color: var(--pbt-muted);
}

.pbt-tool-link-card:hover .pbt-tool-link-top > span:last-child {
  color: var(--pbt-accent);
  transform: translateX(2px);
}

.pbt-tool-link-top > span:last-child {
  transition: transform 0.18s var(--pbt-ease), color 0.18s ease;
}

.pbt-tool-link-card h3,
.pbt-feature-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--pbt-ink);
}

.pbt-tool-link-card p,
.pbt-feature-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--pbt-muted);
  flex: 1;
}

.pbt-feature-card .pbt-btn-outline {
  margin-top: 0.6rem;
  align-self: flex-start;
}

.pbt-card-link::after {
  /* Makes the whole card clickable while keeping one accessible link. */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.pbt-fvp-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 1000px) {
  .pbt-fvp-split {
    grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
  }
}

.pbt-fvp-split .pb-table-scroll {
  margin: 0;
  height: 100%;
}

.pbt-worth-card {
  background: var(--pbt-surface);
  border: 1px solid var(--pbt-border);
  border-radius: var(--pbt-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.7rem;
  box-shadow: var(--pbt-shadow-sm);
}

.pbt-worth-card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  color: var(--pbt-ink);
}

.pbt-worth-card p,
.pbt-worth-card li {
  margin: 0;
  font-size: 0.92rem;
  color: var(--pbt-body);
}

.pbt-worth-card ul {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}

.pbt-worth-card .pbt-cta-btn {
  margin-top: auto;
}

.pbt-verdict-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  background: var(--pbt-surface);
  border: 1px solid var(--pbt-border);
  border-radius: var(--pbt-radius);
  padding: 1.5rem;
  margin: 1.75rem auto;
  box-shadow: var(--pbt-shadow-sm);
}

@media (min-width: 780px) {
  .pbt-verdict-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.75rem;
  }
  .pbt-verdict-col + .pbt-verdict-col {
    border-left: 1px solid var(--pbt-border);
    padding-left: 1.75rem;
  }
}

.pbt-verdict-col h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--pbt-ink);
}

.pbt-verdict-col p,
.pbt-verdict-col ul {
  margin: 0;
  font-size: 0.93rem;
  color: var(--pbt-body);
}

.pbt-verdict-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pbt-verdict-col li {
  position: relative;
  padding-left: 1.5rem;
}

.pbt-verdict-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.pbt-verdict-pros li::before {
  content: "\2713";
  color: var(--pbt-success);
}

.pbt-verdict-cons li::before {
  content: "\2715";
  color: #b91c1c;
}

/* Callouts */
.pbt-callout {
  border: 1px solid var(--pbt-accent-border);
  background: var(--pbt-accent-soft);
  border-radius: var(--pbt-radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--pbt-ink);
}

.pbt-callout p {
  margin: 0;
}

.pbt-callout p + p {
  margin-top: 0.5rem;
}

.pbt-callout-neutral {
  border-color: var(--pbt-border);
  background: var(--pbt-surface-alt);
}

/* Step list */
.pbt-steps {
  list-style: none;
  counter-reset: pbt-step;
  padding: 0;
  margin: 1.25rem auto;
  display: grid;
  gap: 0.85rem;
}

.pbt-steps > li {
  counter-increment: pbt-step;
  position: relative;
  padding: 1rem 1.15rem 1rem 3.6rem;
  background: var(--pbt-surface);
  border: 1px solid var(--pbt-border);
  border-radius: var(--pbt-radius-sm);
  margin: 0 !important;
}

.pbt-steps > li::before {
  content: counter(pbt-step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--pbt-brand);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Blog cards ---------- */
.pbt-posts-grid,
ul.wp-block-post-template.pbt-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 680px) {
  .pbt-posts-grid,
  ul.wp-block-post-template.pbt-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .pbt-posts-grid,
  ul.wp-block-post-template.pbt-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

ul.wp-block-post-template.pbt-posts-grid > li.wp-block-post {
  display: flex;
  margin: 0;
}

ul.wp-block-post-template.pbt-posts-grid > li.wp-block-post > .pbt-post-card {
  width: 100%;
  height: 100%;
}

.pbt-post-card {
  position: relative;
  background: var(--pbt-surface);
  border: 1px solid var(--pbt-border);
  border-radius: var(--pbt-radius);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--pbt-shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s var(--pbt-ease), border-color 0.18s ease;
}

.pbt-post-card:hover {
  box-shadow: var(--pbt-shadow);
  transform: translateY(-2px);
  border-color: var(--pbt-accent-border);
}

.pbt-post-card > * {
  margin: 0 !important;
}

.pbt-post-thumb-link,
.pbt-post-card .wp-block-post-featured-image {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 0 0.25rem !important;
}

.pbt-post-thumb,
.pbt-post-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--pbt-border);
  transition: transform 0.35s var(--pbt-ease);
}

.pbt-post-card:hover .pbt-post-thumb,
.pbt-post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.02);
}

.pbt-post-cat,
.pbt-post-card .wp-block-post-terms a {
  align-self: flex-start;
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--pbt-accent-soft);
  color: #3730a3;
  border: 1px solid var(--pbt-accent-border);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.pbt-post-card h2,
.pbt-post-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.pbt-post-card h2 a,
.pbt-post-card h3 a {
  color: var(--pbt-ink);
  text-decoration: none;
}

.pbt-post-card h2 a:hover,
.pbt-post-card h3 a:hover {
  color: var(--pbt-accent);
}

.pbt-post-card p,
.pbt-post-card .wp-block-post-excerpt {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--pbt-body);
  flex: 1;
}

.pbt-post-card .wp-block-post-excerpt__excerpt {
  margin: 0;
}

.pbt-post-card .wp-block-post-excerpt__more-text {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.pbt-post-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: var(--pbt-muted);
  border-top: 1px solid var(--pbt-border);
  padding-top: 0.7rem;
  margin-top: auto !important;
}

.pbt-post-card-foot a {
  font-weight: 600;
  text-decoration: none;
}

.pbt-post-card-foot .wp-block-post-author__name,
.pbt-post-card-foot .wp-block-post-date {
  margin: 0;
}

.wp-block-query-pagination {
  margin-top: 2rem;
  gap: 0.5rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid var(--pbt-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--pbt-ink);
}

.wp-block-query-pagination .page-numbers.current {
  background: var(--pbt-brand);
  border-color: var(--pbt-brand);
  color: #ffffff;
}

/* ---------- FAQ ---------- */
.pbt-faq-list {
  display: grid;
  gap: 0.75rem;
}

.pbt-faq-item {
  background: var(--pbt-surface);
  border: 1px solid var(--pbt-border);
  border-radius: 12px;
  padding: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pbt-faq-item[open] {
  border-color: var(--pbt-brand-border);
  box-shadow: var(--pbt-shadow-sm);
}

.pbt-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--pbt-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  line-height: 1.45;
}

.pbt-faq-item summary::-webkit-details-marker {
  display: none;
}

.pbt-faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--pbt-muted);
  border-bottom: 2px solid var(--pbt-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--pbt-ease);
}

.pbt-faq-item[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.pbt-faq-item > :not(summary) {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  font-size: 0.96rem;
  color: var(--pbt-body);
}

/* ---------- Page header & breadcrumbs ---------- */
.pbt-page-header {
  padding: 2.25rem 0 2rem;
  background:
    radial-gradient(900px 260px at 90% -20%, rgba(79, 70, 229, 0.06), transparent 60%),
    var(--pbt-surface-alt);
  border-bottom: 1px solid var(--pbt-border);
}

.wp-block-group.pbt-page-header {
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--pbt-gutter) clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
}

.wp-block-group.pbt-page-header > * {
  margin-left: auto !important;
  margin-right: auto !important;
}

.pbt-page-header h1,
.pbt-page-header .wp-block-post-title,
.pbt-page-header .wp-block-query-title {
  margin: 0.6rem auto 0 !important;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  color: var(--pbt-ink);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.pbt-page-lead {
  margin: 0.75rem auto 0 !important;
  font-size: 1.06rem;
  color: var(--pbt-muted);
}

.pbt-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--pbt-muted);
}

.pbt-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.pbt-breadcrumbs a {
  color: var(--pbt-muted);
  text-decoration: none;
}

.pbt-breadcrumbs a:hover {
  color: var(--pbt-ink);
  text-decoration: underline;
}

.pbt-breadcrumbs [aria-current="page"] {
  color: var(--pbt-body);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

.pbt-crumb-sep {
  color: #94a3b8;
}

.pbt-post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0.9rem auto 0 !important;
  font-size: 0.875rem;
  color: var(--pbt-muted);
}

.pbt-post-meta-bar .pbt-meta-dot {
  color: #cbd5e1;
}

/* ---------- Long-form content (prose) ---------- */
.pbt-entry {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--pbt-body);
}

/* Readable measure: text is centred at ~780px, interactive tools/tables/grids go wide. */
.pbt-entry > * {
  max-width: var(--pbt-prose);
  margin-left: auto !important;
  margin-right: auto !important;
}

.pbt-entry > :is([class*="pb-"], [class*="pbt-grid"], .pbt-verdict-grid, .pbt-fvp-split, .alignwide, .wp-block-table, .wp-block-columns),
.pbt-entry-wide > * {
  max-width: var(--pbt-container);
}

.pbt-entry > .alignfull {
  max-width: none;
}

.pbt-entry > * + * {
  margin-top: 1.15em;
  margin-bottom: 0;
}

.pbt-entry > :first-child {
  margin-top: 0;
}

.pbt-entry > :is([class*="pb-"], [class*="pbt-grid"], .pbt-verdict-grid, .pbt-callout, .pbt-steps, .wp-block-table, figure) {
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.pbt-entry h2 {
  margin-top: 2.6rem;
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--pbt-ink);
}

.pbt-entry h3 {
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  line-height: 1.35;
  color: var(--pbt-ink);
}

.pbt-entry h4 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--pbt-ink);
}

.pbt-entry h2 + *,
.pbt-entry h3 + *,
.pbt-entry h4 + * {
  margin-top: 0.7em;
}

.pbt-entry p {
  margin-bottom: 0;
}

.pbt-entry :is(ul, ol):not([class*="pb-"]):not(.pbt-steps) {
  padding-left: 1.35rem;
}

.pbt-entry li + li {
  margin-top: 0.45em;
}

.pbt-entry li > :is(ul, ol) {
  margin-top: 0.45em;
}

.pbt-entry li::marker {
  color: var(--pbt-muted);
}

.pbt-entry strong {
  color: var(--pbt-ink);
  font-weight: 650;
}

.pbt-entry a:not([class]) {
  text-decoration: underline;
  text-decoration-color: var(--pbt-accent-border);
  text-decoration-thickness: 2px;
}

.pbt-entry a:not([class]):hover {
  text-decoration-color: currentColor;
}

.pbt-entry blockquote {
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--pbt-accent);
  background: var(--pbt-surface-alt);
  border-radius: 0 10px 10px 0;
  color: var(--pbt-ink);
}

.pbt-entry blockquote p {
  margin: 0;
}

.pbt-entry code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  background: var(--pbt-brand-soft);
  border: 1px solid var(--pbt-border);
  border-radius: 6px;
  color: var(--pbt-ink);
  overflow-wrap: anywhere;
}

.pbt-entry pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--pbt-brand-soft);
  border: 1px solid var(--pbt-border);
  border-radius: 10px;
}

.pbt-entry pre code {
  padding: 0;
  border: 0;
  background: none;
}

.pbt-entry hr {
  border: 0;
  border-top: 1px solid var(--pbt-border);
  margin-block: 2.5rem;
}

.pbt-entry img {
  border-radius: 12px;
}

.pbt-entry figure {
  margin-inline: auto;
}

.pbt-entry figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--pbt-muted);
  text-align: center;
}

/* Tables written in content (core table block or raw HTML) */
.pbt-entry .wp-block-table,
.pbt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--pbt-border);
  border-radius: 12px;
  background: var(--pbt-surface);
}

.pbt-entry .wp-block-table table,
.pbt-table-wrap table,
.pbt-entry > table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}

.pbt-entry .wp-block-table th,
.pbt-entry .wp-block-table td,
.pbt-table-wrap th,
.pbt-table-wrap td {
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--pbt-border);
  text-align: left;
  vertical-align: top;
}

.pbt-entry .wp-block-table thead th,
.pbt-table-wrap thead th {
  background: var(--pbt-surface-alt);
  color: var(--pbt-ink);
  font-weight: 700;
  white-space: nowrap;
}

.pbt-entry .wp-block-table tbody tr:last-child td,
.pbt-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.pbt-entry .wp-block-table tbody th,
.pbt-table-wrap tbody th {
  color: var(--pbt-ink);
  font-weight: 650;
}

.pbt-entry .wp-block-table figcaption {
  padding: 0.5rem 1rem;
}

/* Tool pages: first tool sits right under the header without a gap */
.pbt-tool-page .pbt-entry > p:first-child {
  font-size: 1.1rem;
  color: var(--pbt-body);
}

/* Table of contents */
.pbt-toc-box {
  background: var(--pbt-surface-alt);
  border: 1px solid var(--pbt-border);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  margin: 0 auto 2rem;
  max-width: var(--pbt-prose);
}

.pbt-toc-box h2 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pbt-muted);
}

.pbt-toc-box ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.95rem;
}

.pbt-toc-box a {
  text-decoration: none;
  font-weight: 500;
  color: var(--pbt-ink);
}

.pbt-toc-box a:hover {
  color: var(--pbt-accent);
  text-decoration: underline;
}

h2[id],
h3[id] {
  scroll-margin-top: 96px;
}

/* Single post layout */
.pbt-single-media {
  max-width: var(--pbt-prose);
  margin: 0 auto 2rem !important;
}

.pbt-single-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--pbt-border);
}

.pbt-post-tags {
  max-width: var(--pbt-prose);
  margin: 2rem auto 0 !important;
  font-size: 0.9rem;
  color: var(--pbt-muted);
}

.pbt-post-nav {
  max-width: var(--pbt-prose);
  margin: 2.25rem auto 0 !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pbt-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.pbt-post-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--pbt-ink);
}

.pbt-post-nav a:hover {
  color: var(--pbt-accent);
}

.pbt-author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--pbt-surface-alt);
  border: 1px solid var(--pbt-border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin: 2.25rem auto 0;
  max-width: var(--pbt-prose);
}

.pbt-author-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pbt-brand);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pbt-author-box h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  color: var(--pbt-ink);
}

.pbt-author-box p {
  margin: 0;
  font-size: 0.92rem;
}

.pbt-author-box a {
  font-weight: 600;
  font-size: 0.9rem;
}

.pbt-related-section {
  max-width: var(--pbt-container);
  margin: 3rem auto 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--pbt-border);
}

.pbt-related-section > h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  color: var(--pbt-ink);
}

/* Explore-more links block (bottom of pages) */
.pbt-next-steps {
  margin: 2.75rem auto 0 !important;
  max-width: var(--pbt-container) !important;
  padding-top: 2rem;
  border-top: 1px solid var(--pbt-border);
}

.pbt-next-steps h2 {
  margin: 0 0 1rem !important;
  font-size: 1.2rem;
  color: var(--pbt-ink);
}

/* ---------- Alternative detail ---------- */
.pbt-alt-detail-layout {
  max-width: var(--pbt-container);
  margin: 0 auto;
}

.pbt-alt-spec-card {
  background: var(--pbt-surface);
  border: 1px solid var(--pbt-border);
  border-radius: var(--pbt-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--pbt-shadow-sm);
}

.pbt-spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 0 1.25rem;
  font-size: 0.93rem;
}

@media (min-width: 680px) {
  .pbt-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

.pbt-spec-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--pbt-border);
}

.pbt-spec-grid dt,
.pbt-spec-grid strong {
  color: var(--pbt-muted);
  font-weight: 600;
}

.pbt-spec-grid dd {
  margin: 0;
  text-align: right;
  color: var(--pbt-ink);
  font-weight: 500;
}

.pbt-spec-actions,
.pbt-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pbt-policy-links {
  margin: 0.5rem 0 0;
}

.pbt-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 680px) {
  .pbt-pros-cons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pbt-pc-card {
  background: var(--pbt-surface);
  border: 1px solid var(--pbt-border);
  border-radius: var(--pbt-radius);
  padding: 1.25rem 1.35rem;
}

.pbt-pc-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
  color: var(--pbt-ink);
}

.pbt-pc-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}

.pbt-alt-privacy-box {
  background: var(--pbt-surface-alt);
  border: 1px solid var(--pbt-border);
  border-radius: var(--pbt-radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
}

.pbt-alt-privacy-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  color: var(--pbt-ink);
}

.pbt-alt-privacy-box p {
  margin: 0;
}

/* Category pills */
.pbt-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pbt-cat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--pbt-brand-border);
  background: var(--pbt-surface);
  color: var(--pbt-body);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pbt-cat-pill:hover {
  background: var(--pbt-brand-soft);
  color: var(--pbt-ink);
}

.pbt-cat-pill.is-active {
  background: var(--pbt-brand);
  border-color: var(--pbt-brand);
  color: #ffffff;
}

.pbt-archive-desc {
  margin: 0.75rem auto 0 !important;
  color: var(--pbt-muted);
  max-width: 720px;
}

.pbt-archive-desc p {
  margin: 0;
}

/* 404 */
.pbt-404-links {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 0.6rem;
}

/* ---------- Footer (light) ---------- */
.pbt-footer {
  background: var(--pbt-surface-alt);
  color: var(--pbt-body);
  border-top: 1px solid var(--pbt-border);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.75rem;
}

.pbt-footer a {
  color: var(--pbt-body);
  text-decoration: none;
}

.pbt-footer a:hover {
  color: var(--pbt-accent);
  text-decoration: underline;
}

.pbt-footer .pbt-brand,
.pbt-footer .pbt-brand:hover {
  color: var(--pbt-ink);
  text-decoration: none;
}

.pbt-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.pbt-footer-col {
  min-width: 0;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .pbt-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pbt-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .pbt-footer-grid {
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
    gap: 2.25rem;
  }
  .pbt-footer-brand {
    grid-column: auto;
  }
}

.pbt-footer-desc {
  margin: 0.9rem 0 0.75rem;
  font-size: 0.92rem;
  color: var(--pbt-muted);
  max-width: 36ch;
}

.pbt-footer-contact {
  margin: 0;
  font-size: 0.92rem;
  color: var(--pbt-muted);
}

.pbt-footer-contact a {
  color: var(--pbt-ink);
  font-weight: 600;
}

.pbt-footer-col h2 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pbt-ink);
}

.pbt-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.pbt-footer-bottom {
  border-top: 1px solid var(--pbt-border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.84rem;
  color: var(--pbt-muted);
}

.pbt-disclaimer {
  margin: 0;
  max-width: 80ch;
}

.pbt-copyright {
  margin: 0;
  white-space: nowrap;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pbt-tool-link-card:hover,
  .pbt-post-card:hover,
  .pbt-cta-btn:hover {
    transform: none;
  }
}

@media print {
  .pbt-header,
  .pbt-footer,
  .pbt-skip-link {
    display: none !important;
  }
}

.pbt-fvp-split > * {
  margin: 0 !important;
  max-width: none !important;
}

/* Tool pages: header, intro text and tools share one left edge (docs-style). */
.pbt-tool-page .pbt-entry > * {
  margin-left: max(0px, calc((100% - var(--pbt-container)) / 2)) !important;
  margin-right: auto !important;
}

.pbt-tool-page .pbt-entry > :is([class*="pb-"], [class*="pbt-grid"], .pbt-verdict-grid, .pbt-fvp-split, .alignwide, .wp-block-table, .wp-block-columns, .pbt-next-steps, .pbt-table-wrap, .pbt-faq-list) {
  max-width: var(--pbt-container);
}

/* Only one top-level item looks "current": a direct match wins over ancestors. */
@media (min-width: 1080px) {
  .pbt-menu:has(> .current-menu-item) > .current-menu-ancestor > .pbt-menu-row > a {
    background: transparent;
  }
}

/* Comfortable tap targets for small inline links */
.pbt-breadcrumbs a,
.pb-safety-foot a,
.pbt-post-card-foot a {
  display: inline-block;
  padding-block: 0.3rem;
}

/* Official-site CTA inside the mobile drawer (header CTA is hidden on phones) */
.pbt-nav-cta {
  display: none;
}

@media (max-width: 639px) {
  .pbt-nav.is-open .pbt-nav-cta {
    display: flex;
    width: 100%;
    margin-top: 1rem;
  }
}

.pbt-entry > .pb-contact-card {
  max-width: var(--pbt-prose);
}

.pbt-alt-details .pbt-spec-grid {
  grid-template-columns: 1fr !important;
}

.pbt-alt-details .pbt-spec-grid > div {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 1rem;
}

.pbt-alt-details .pbt-spec-grid dd {
  text-align: left;
}

.pbt-header-terms {
  margin: 0.75rem auto 0 !important;
  font-size: 0.78rem;
}

.pbt-header-terms a {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--pbt-accent-soft);
  border: 1px solid var(--pbt-accent-border);
  color: #3730a3;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 560px) {
  .pbt-alt-details .pbt-spec-grid > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Grid children must be allowed to shrink below their content width on very small screens. */
.pbt-fvp-split > *,
.pbt-grid-2 > *,
.pbt-grid-3 > *,
.pbt-grid-4 > * {
  min-width: 0;
}
