/* PF Core — Guide pages
   Path: wp-content/mu-plugins/pf-core/frontend/assets/css/guides.css
   Scoped to .pf-guide-page so it doesn’t leak elsewhere.
*/

.pf-guide-page {
  background: var(--pf-bg-dark, #050816);
  color: var(--pf-text-main, #f9fafb);
}

.pf-guide-page .pf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 72px;
}

/* ---------------------------------------------
   HERO
--------------------------------------------- */

.pf-guide-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0 24px;
  border-bottom: 1px solid rgba(148,163,184,0.28);
}

.pf-guide-hero-main {
  max-width: 720px;
}

.pf-guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-text-muted, #cbd5f5);
  margin-bottom: 6px;
}

.pf-guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pf-primary, #2596be);
  box-shadow: 0 0 12px var(--pf-primary-glow, rgba(37,150,190,0.6));
}

.pf-guide-title {
  margin: 0 0 10px;
  font-family: var(--pf-font-head, "Space Grotesk", system-ui, sans-serif);
  font-size: 2.4rem;
  line-height: 1.15;
  color: #fff;
}

.pf-guide-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: var(--pf-text-muted, #cbd5f5);
  max-width: 640px;
}

.pf-guide-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pf-guide-meta-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--pf-border-light, rgba(148,163,184,0.4));
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pf-text-muted, #cbd5f5);
}

.pf-guide-hero-aside {
  flex: 0 0 260px;
}

.pf-guide-hero-card {
  background: radial-gradient(circle at top left, rgba(15,23,42,0.96), #020617);
  border-radius: 18px;
  border: 1px solid var(--pf-border-light, rgba(148,163,184,0.48));
  padding: 18px 20px 16px;
  font-size: 0.9rem;
  color: var(--pf-text-muted, #cbd5f5);
  box-shadow: 0 18px 40px rgba(15,23,42,0.85);
}

.pf-guide-hero-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-family: var(--pf-font-head, "Space Grotesk", system-ui, sans-serif);
  color: #fff;
}

.pf-guide-hero-card p {
  margin: 0 0 8px;
}

.pf-guide-hero-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

/* ---------------------------------------------
   DIRECTORY WRAPPER INSIDE GUIDE
   (tighten spacing between list and guide body)
--------------------------------------------- */

/* Main directory wrapper (class names from pf directory CSS). */
.pf-guide-page .pf-dir-wrap,
.pf-guide-page .pf-dir {
  margin-top: 24px;
  margin-bottom: 28px;
}

/* If the cards are wrapped in a specific grid/container, avoid extra bottom gaps. */
.pf-guide-page .pf-card-grid,
.pf-guide-page .pf-cards-wrap,
.pf-guide-page .pf-dir-main {
  margin-bottom: 0;
}

/* ---------------------------------------------
   GUIDE LIST SECTION (legacy / optional cards)
--------------------------------------------- */

.pf-guide-list-section {
  margin-top: 24px;
}

.pf-guide-list-heading {
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-text-muted, #cbd5f5);
}

.pf-guide-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-guide-card {
  display: flex;
  align-items: stretch;
  gap: 18px;
  border-radius: 18px;
  border: 1px solid var(--pf-border-light, rgba(148,163,184,0.38));
  background:
    radial-gradient(circle at top left, rgba(37,150,190,0.12), rgba(5,8,22,0.96));
  padding: 16px 18px;
}

.pf-guide-card .id {
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-guide-card .logo2 {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: #020617;
  border: 1px solid rgba(148,163,184,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pf-guide-card .logo2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pf-guide-card .stats {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
}

.pf-guide-card .kpi {
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.9);
  padding: 6px 10px;
  background:
    radial-gradient(circle at top left, rgba(148,163,184,0.10), rgba(15,23,42,0.96));
}

.pf-guide-card .kpi .t {
  font-size: 0.75rem;
  color: var(--pf-text-muted, #cbd5f5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.pf-guide-card .kpi .v {
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}

.pf-guide-card .kpi.rate .v {
  color: var(--pf-accent-green, #fbbf24);
}

.pf-guide-card .actions {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: right;
}

/* Buttons inside guide cards – scoped so we don’t touch global .pf-btn */
.pf-guide-card .btn,
.pf-guide-card .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background .15s ease-in-out,
    border-color .15s ease-in-out,
    color .15s ease-in-out,
    transform .1s ease-in-out,
    box-shadow .15s ease-in-out;
}

.pf-guide-card .btn {
  background: var(--pf-primary, #2596be);
  border-color: var(--pf-primary, #2596be);
  color: #fff;
}

.pf-guide-card .btn:hover {
  background: #1f7fa0;
  border-color: #1f7fa0;
  box-shadow: 0 14px 30px rgba(15,23,42,0.8);
  transform: translateY(-1px);
}

.pf-guide-card .btn-ghost {
  background: rgba(15,23,42,0.94);
  border-color: var(--pf-border-light, rgba(148,163,184,0.4));
  color: var(--pf-text-muted, #cbd5f5);
}

.pf-guide-card .btn-ghost:hover {
  background: rgba(15,23,42,1);
  color: #fff;
}

/* ---------------------------------------------
   EDITORIAL BODY CONTENT
--------------------------------------------- */

/* Main article body inside a guide */
.pf-guide-body {
  max-width: 900px;
  margin: 32px 0 36px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--pf-text-main, #f9fafb);
  text-align: left;
}

.pf-guide-body p {
  margin: 0 0 1em;
  color: var(--pf-text-muted, #cbd5f5);
}

/* Headings inside the guide body – consistent hierarchy, theme-friendly */
.pf-guide-body h2,
.pf-guide-body h3,
.pf-guide-body h4 {
  font-family: var(--pf-font-head, "Space Grotesk", system-ui, sans-serif);
  color: #fff;
  text-align: left !important; /* ignore editor text-align:center etc. */
  margin: 2rem 0 0.85rem;
}

/* Main section headings */
.pf-guide-body h2 {
  font-size: 1.6rem;
  font-weight: 600;
  padding-bottom: 0.4em;
  border-bottom: 1px solid rgba(148,163,184,0.45);
}

/* Sub-sections */
.pf-guide-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  padding-bottom: 0.25em;
  border-bottom: 1px dashed rgba(148,163,184,0.45);
}

/* Minor sub-headings */
.pf-guide-body h4 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
}

/* If the editor wrapped heading text in <strong>, inherit heading styles */
.pf-guide-body h2 strong,
.pf-guide-body h3 strong,
.pf-guide-body h4 strong {
  font: inherit;
  font-weight: inherit;
}

/* Lists */
.pf-guide-body ul,
.pf-guide-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.pf-guide-body li {
  margin-bottom: 0.25em;
}

/* ---------------------------------------------
   SECTION TITLES (for blocks like Quick compare)
--------------------------------------------- */

.pf-guide-section-title {
  margin: 0 0 18px;
  font-family: var(--pf-font-head, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.pf-guide-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--pf-primary);
  border-radius: 2px;
  display: inline-block;
}

.pf-guide-section-sub {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--pf-text-muted, #cbd5f5);
  text-wrap: balance; /* optional: smoother line breaks where supported */
}


/* ---------------------------------------------
   QUICK COMPARE (top 3) – wraps [pf_compare]
--------------------------------------------- */

.pf-guide-quick-compare {
  max-width: 1200px;
  margin: 32px auto 32px;
}

.pf-guide-quick-compare .pf-guide-section-title,
.pf-guide-quick-compare .pf-guide-section-sub {
  text-align: left;
}

.pf-guide-quick-compare .pf-guide-section-title {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

/* make subtitle behave like a normal paragraph: full width, no forced narrow column */
.pf-guide-quick-compare .pf-guide-section-sub {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--pf-text-muted, #cbd5f5);
  max-width: none;        /* remove 700px constraint that was causing weird line breaks */
  line-height: 1.7;
}

/* Override default comparison wrapper inside a guide page */
.pf-guide-quick-compare .pf-compare-wrap {
  margin: 0 0 24px;
  padding: 0;
}


/* ---------------------------------------------
   BUILD-YOUR-OWN COMPARISON PICKER
--------------------------------------------- */

.pf-guide-compare-picker {
  margin: 36px 0 46px;
  padding: 24px 20px 26px;
  border-radius: 18px;
  border: 1px solid var(--pf-border-light, rgba(148,163,184,0.35));
  background:
    radial-gradient(circle at top left, rgba(37,150,190,0.16), rgba(5,8,22,0.96));
}

.pf-guide-compare-list {
  max-width: 560px;
  margin: 0 auto 18px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.32);
  background: rgba(15,23,42,0.96);
}

.pf-guide-compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(15,23,42,0.9);
  font-size: 0.9rem;
  color: var(--pf-text-main, #f9fafb);
}

.pf-guide-compare-row:last-child {
  border-bottom: 0;
}

.pf-guide-compare-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pf-guide-compare-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.pf-guide-compare-name {
  font-weight: 500;
}

.pf-guide-compare-meta {
  font-size: 0.8rem;
  color: var(--pf-text-muted, #cbd5f5);
  white-space: nowrap;
}

.pf-guide-compare-btn {
  width: 100%;
  margin-top: 4px;
}

.pf-guide-compare-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  text-align: center;
  color: var(--pf-text-muted, #cbd5f5);
}

/* ---------------------------------------------
   LOGO STRIP + MORE LINKS (optional)
--------------------------------------------- */

.pf-guide-logo-grid {
  margin: 40px 0 32px;
}

.pf-guide-logo-heading {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.pf-guide-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pf-guide-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pf-guide-logo {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: #020617;
  border: 1px solid rgba(148,163,184,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pf-guide-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pf-guide-logo-fallback {
  font-weight: 600;
  font-size: 18px;
}

.pf-guide-explore-more {
  margin-top: 40px;
}

.pf-guide-links {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.pf-guide-links li {
  margin-bottom: 4px;
}

.pf-guide-links a {
  color: var(--pf-text-muted, #cbd5f5);
  text-decoration: none;
  font-size: 0.9rem;
}

.pf-guide-links a:hover {
  color: #fff;
}

/* ---------------------------------------------
   EMPTY STATE
--------------------------------------------- */

.pf-guide-empty {
  margin: 24px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--pf-border-light, rgba(148,163,184,0.35));
  background: rgba(15,23,42,0.95);
  font-size: 0.9rem;
  color: var(--pf-text-muted, #cbd5f5);
}

/* ---------------------------------------------
   RESPONSIVE
--------------------------------------------- */

@media (max-width: 1024px) {
  .pf-guide-hero {
    flex-direction: column;
  }

  .pf-guide-hero-aside {
    width: 100%;
  }

  .pf-guide-card {
    flex-direction: column;
  }

  .pf-guide-card .actions {
    flex: 0 0 auto;
    text-align: left;
    flex-direction: row;
    justify-content: flex-start;
  }

  .pf-guide-card .stats {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .pf-guide-compare-meta {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .pf-guide-title {
    font-size: 2rem;
  }

  .pf-guide-card .stats {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .pf-guide-compare-list {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .pf-guide-card .stats {
    grid-template-columns: minmax(0,1fr);
  }

  .pf-guide-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pf-guide-quick-compare {
    margin-top: 36px;
  }
}

/* ------------------------------
   Guide intro & sections (optional wrapper)
------------------------------ */

.pf-guide-page .pf-guide-intro {
  max-width: 900px;
  margin: 36px auto 46px;
  font-size: 0.98rem;
  color: var(--pf-text-muted);
}

.pf-guide-page .pf-guide-intro h2 {
  position: relative;
  font-family: var(--pf-font-head, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.4rem;
  margin: 36px 0 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-guide-page .pf-guide-intro h2::before {
  content: '';
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--pf-primary);
  display: inline-block;
}

/* Optional: slightly tighten h3 spacing */
.pf-guide-page .pf-guide-intro h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Guide results section */
.pf-guide-results {
  margin: 36px auto 36px;
}

/* Quick comparison block alignment helper */
.pf-guide-compare-section {
  max-width: 1200px;
  margin: 56px auto 40px;
}

.pf-guide-compare-section .pf-guide-section-sub {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--pf-text-muted);
  font-size: 0.95rem;
}

/* Paragraph-based headings: <p><strong>Title…</strong></p>
   or <p><strong>Title…</strong> more text...</p> */
.pf-guide-body p > strong:first-child {
  display: block;
  margin: 1.9em 0 0.9em;
  padding-bottom: 0.25em;
  border-bottom: 1px dashed rgba(148,163,184,0.45);
  font-family: var(--pf-font-head, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.15rem;
  color: #fff;
}

/* =========================================================
   GUIDE RESULTS (main#list.list > article.card)
   Fix: Platforms/Actions collision at narrow widths
========================================================= */
.pf-guide-page .pf-guide-results{
  margin: 24px 0 28px;
}

/* ============================================
   PF Guides — tighten spacing around listings
   ============================================ */

.pf-guide-page .pf-guide-hero{
  margin-bottom: 18px !important; /* reduces space before listing */
  padding-bottom: 14px !important;
}

/* The section that contains the [pf_cards] output */
.pf-guide-page .pf-guide-results{
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Kill extra top/bottom spacing that may come from the directory/cards wrapper */
.pf-guide-page .pf-guide-results .pf-directory,
.pf-guide-page .pf-guide-results .pf-dir,
.pf-guide-page .pf-guide-results .pf-cards,
.pf-guide-page .pf-guide-results .pf-cards-wrap,
.pf-guide-page .pf-guide-results .pf-cards-shell,
.pf-guide-page .pf-guide-results .pf-cards-container{
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Reduce spacing before the content that comes AFTER the listing */
.pf-guide-page .pf-guide-results + .pf-container{
  margin-top: 18px !important;
  padding-top: 0 !important;
}

/* If quick-compare exists, keep it close but still separated */
.pf-guide-page #pfGuideQuickCompare{
  margin-top: 22px !important;
}

/* =========================================================
   Guide hero: homepage-style header (single column, centered)
   ========================================================= */
.pf-guide-page .pf-guide-hero--directory{
  /* override any grid/two-column hero layout */
  display: block !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;

  text-align: center;
  padding: 54px 0 18px;   /* top/bottom spacing similar to homepage header */
  margin: 0 !important;

  border: 0 !important;   /* remove any divider line coming from the old hero */
}

/* Keep subtitle readable like the homepage description */
.pf-guide-page .pf-guide-hero--directory .pf-guide-subtitle{
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* Center the chips row */
.pf-guide-page .pf-guide-hero--directory .pf-guide-meta-row{
  justify-content: center;
}

/* =========================================================
   Remove the ugly empty space BEFORE the listing (top gap)
   ========================================================= */
.pf-guide-page .pf-guide-results{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* If the cards/table wrapper adds extra top padding, neutralize it (safe on guides only) */
.pf-guide-page .pf-guide-results .pf-directory,
.pf-guide-page .pf-guide-results .pf-dir,
.pf-guide-page .pf-guide-results .pf-cards,
.pf-guide-page .pf-guide-results .pf-cards-wrap,
.pf-guide-page .pf-guide-results .pf-cards-shell,
.pf-guide-page .pf-guide-results .pf-cards-container{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================================================
   Guide meta chips — premium effects (Updated / Showing / Supports)
   ========================================================= */

.pf-guide-page .pf-guide-meta-row{
  gap: 12px;
  margin-top: 18px;
}

.pf-guide-page .pf-guide-meta-chip{
  position: relative;
  overflow: hidden;

  padding: 10px 14px;
  border-radius: 999px;

  background:
    radial-gradient(90% 140% at 20% 0%, rgba(37,150,190,.18) 0%, rgba(37,150,190,0) 55%),
    rgba(255,255,255,.03);

  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 10px 28px rgba(0,0,0,.35),
    0 0 0 1px rgba(37,150,190,.08) inset;

  color: rgba(249,250,251,.92);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;

  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

/* subtle glow dot at left (works even if chip is plain text) */
.pf-guide-page .pf-guide-meta-chip::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;

  background: rgba(37,150,190,.95);
  box-shadow: 0 0 0 4px rgba(37,150,190,.16), 0 0 18px rgba(37,150,190,.35);
}

/* animated sheen */
.pf-guide-page .pf-guide-meta-chip::after{
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 70%;
  height: 180%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.10) 45%,
    rgba(255,255,255,.18) 50%,
    rgba(255,255,255,.10) 55%,
    transparent 100%
  );
  opacity: .35;
  pointer-events: none;
  animation: pfGuideChipSheen 6.5s ease-in-out infinite;
}

@keyframes pfGuideChipSheen{
  0%, 62% { transform: translateX(0) rotate(18deg); opacity: 0; }
  70%     { opacity: .30; }
  92%     { transform: translateX(260%) rotate(18deg); opacity: .20; }
  100%    { opacity: 0; }
}

.pf-guide-page .pf-guide-meta-chip:hover{
  transform: translateY(-2px);
  border-color: rgba(37,150,190,.40);
  box-shadow:
    0 14px 36px rgba(0,0,0,.45),
    0 0 0 1px rgba(37,150,190,.14) inset,
    0 0 26px rgba(37,150,190,.16);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce){
  .pf-guide-page .pf-guide-meta-chip::after{ animation: none; }
  .pf-guide-page .pf-guide-meta-chip{ transition: none; }
}

.pf-guide-page .pf-guide-meta-chip:last-child{
  border-color: rgba(37,150,190,.22);
  box-shadow:
    0 12px 34px rgba(0,0,0,.38),
    0 0 0 1px rgba(37,150,190,.18) inset,
    0 0 28px rgba(37,150,190,.14);
}

/* Force meta chips to horizontal scroll on mobile (override earlier column rule) */
@media (max-width: 640px){
  .pf-guide-page .pf-guide-meta-row{
    flex-direction: row !important;
    align-items: center !important;

    display: flex !important;
    flex-wrap: nowrap !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    gap: 10px !important;
    width: 100%;
    max-width: 100%;

    padding: 0 2px 10px !important;
    margin-top: 14px !important;

    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;

    /* hide scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .pf-guide-page .pf-guide-meta-row::-webkit-scrollbar{
    height: 0;
  }

  .pf-guide-page .pf-guide-meta-chip{
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
  }
}

/* =========================================================
   Guide hero spacing — tighten top/bottom whitespace
   ========================================================= */

/* Reduce overall hero padding (the main cause of the tall empty areas) */
.pf-guide-page .pf-guide-hero--directory{
  padding-top: 26px !important;
  padding-bottom: 14px !important;
}

/* Remove any extra margins around title/subtitle/chips */
.pf-guide-page .pf-guide-hero--directory .pf-guide-title{
  margin: 0 0 10px !important;
}

.pf-guide-page .pf-guide-hero--directory .pf-guide-subtitle{
  margin: 0 auto 14px !important;
  line-height: 1.7;
}

/* Chips row closer to subtitle and closer to listing */
.pf-guide-page .pf-guide-hero--directory .pf-guide-meta-row{
  margin-top: 0 !important;
  padding-bottom: 6px !important;
}

/* Reduce space between hero and the listing table header */
.pf-guide-page .pf-guide-hero--directory + .pf-guide-results{
  margin-top: 10px !important;
  padding-top: 0 !important;
}
/* Tighten container padding only when it contains the hero */
.pf-guide-page .pf-container:has(.pf-guide-hero--directory){
  padding-top: 18px !important;
  padding-bottom: 28px !important;
}

