/* Policies hub — Meridian layout ideas, Browns Digital chrome & mesh */

body.bd-v2.policies-hub {
  margin: 0 !important;
}

/* Tall sheet so the black stage never letterboxes; footer reveal stays from bd-ios */
body.bd-v2.policies-hub .bd-site-sheet {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  /* Richer brand mesh — same DNA as home, more depth for a short page */
  background:
    radial-gradient(ellipse 110% 70% at 50% -18%, rgba(168, 196, 255, 0.72) 0%, transparent 58%),
    radial-gradient(ellipse 55% 48% at 100% 12%, rgba(91, 140, 255, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 50% 42% at -5% 70%, rgba(53, 92, 255, 0.16) 0%, transparent 48%),
    radial-gradient(ellipse 40% 30% at 70% 85%, rgba(168, 196, 255, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #f5f8ff 0%, #ffffff 42%, #f8faff 100%) !important;
  background-attachment: fixed !important;
}

body.bd-v2.policies-hub .nav-tabs a.nav-btn,
body.bd-v2.policies-hub a.nav-brand {
  text-decoration: none;
  color: inherit;
}

.ph-main {
  position: relative;
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 108px 0 120px;
  color: var(--bd-a-muted, #424245);
  z-index: 1;
}

/* Soft atmospheric bloom behind the hero (decorative, not a card) */
.ph-main::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  width: min(720px, 110%);
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(91, 140, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.ph-hero {
  text-align: center;
  margin: 0 0 44px;
}

.ph-hero .bd-headline {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

.ph-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(53, 92, 255, 0.14);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 2px rgba(15, 35, 80, 0.04),
    0 12px 32px rgba(53, 92, 255, 0.08);
  color: var(--bd-a-subtle, #6e6e73);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ph-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--bd-a-blue-mid, #5b8cff);
}

.ph-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--bd-a-text, #1d1d1f);
  font: inherit;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.ph-search input::placeholder {
  color: var(--bd-a-subtle, #6e6e73);
  opacity: 0.85;
}

.ph-search:focus-within {
  border-color: rgba(53, 92, 255, 0.4);
  box-shadow:
    0 1px 2px rgba(15, 35, 80, 0.04),
    0 12px 32px rgba(53, 92, 255, 0.12),
    0 0 0 3px rgba(53, 92, 255, 0.16);
}

.ph-section {
  margin: 0 0 40px;
}

.ph-section__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bd-a-subtle, #6e6e73);
}

.ph-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ph-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 22px 18px;
  border-radius: 16px;
  border: 1px solid rgba(53, 92, 255, 0.1);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(53, 92, 255, 0.05);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.ph-card:hover {
  border-color: rgba(53, 92, 255, 0.22);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(53, 92, 255, 0.12);
  transform: translateY(-2px);
}

.ph-card:focus-visible {
  outline: 2px solid var(--bd-a-blue, #355cff);
  outline-offset: 2px;
}

.ph-card--wide {
  grid-column: 1 / -1;
}

.ph-card.is-hidden {
  display: none;
}

.ph-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--bd-a-text, #1d1d1f);
}

.ph-card p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--bd-a-subtle, #6e6e73);
  max-width: none;
}

.ph-card__cta {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--bd-a-blue, #355cff);
}

.ph-card:hover .ph-card__cta {
  color: var(--bd-a-blue-hover, #1e40af);
}

.ph-empty {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--bd-a-subtle, #6e6e73);
}

@media (max-width: 720px) {
  .ph-main {
    width: min(100% - 28px, 880px);
    padding: 96px 0 88px;
  }

  .ph-grid {
    grid-template-columns: 1fr;
  }

  .ph-card--wide {
    grid-column: auto;
  }

  .ph-main::before {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-card {
    transition: none;
  }

  .ph-card:hover {
    transform: none;
  }
}
