/* ═══════════════════════════════════════════════════════════════
   PROVIDER GUIDELINES PAGE — Scoped Styles
   All selectors prefixed with .pg-* to avoid global collisions.
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS CUSTOM PROPERTIES ────────────────────────────────────── */
.pg-page {
  --pg-blue:      #2F80ED;
  --pg-blue-lt:   #EAF2FF;
  --pg-blue-dk:   #1a6bd4;
  --pg-blue-mid:  rgba(47,128,237,.08);
  --pg-text:      #1A202C;
  --pg-muted:     #4A5568;
  --pg-light:     #6B7280;
  --pg-border:    #E2E8F0;
  --pg-bg:        #F8FAFC;
  --pg-white:     #ffffff;
  --pg-warn:      #FFFBEB;
  --pg-warn-bd:   #F59E0B;
  --pg-warn-txt:  #92400E;
  --pg-red:       #FEF2F2;
  --pg-red-bd:    #EF4444;
  --pg-red-txt:   #991B1B;
  --pg-green:     #F0FDF4;
  --pg-green-bd:  #10B981;
  --pg-green-txt: #065F46;
}

/* ─── HERO ────────────────────────────────────────────────────── */
.pg-hero {
  background: #FAFBFC;
  border-bottom: 1px solid var(--pg-border);
  padding: 150px 24px 60px;
  text-align: center;
}

.pg-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.pg-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pg-blue-lt);
  color: var(--pg-blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47,128,237,.18);
  margin-bottom: 20px;
}

.pg-hero__badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.pg-hero__title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  color: var(--pg-text);
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 0 16px;
}

.pg-hero__sub {
  font-size: 1.05rem;
  color: var(--pg-muted);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.pg-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: .82rem;
  color: var(--pg-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pg-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pg-hero__meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--pg-blue);
  flex-shrink: 0;
}

.pg-hero__anchors {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pg-hero__anchor {
  display: inline-block;
  padding: 7px 16px;
  background: var(--pg-white);
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--pg-muted);
  text-decoration: none;
  transition: border-color .18s, color .18s, background .18s;
}

.pg-hero__anchor:hover {
  border-color: var(--pg-blue);
  color: var(--pg-blue);
  background: var(--pg-blue-lt);
}

/* ─── MOBILE JUMP DROPDOWN ────────────────────────────────────── */
.pg-mobile-nav {
  display: none;
  padding: 0 20px;
  margin: 0;
  background: var(--pg-white);
  border-bottom: 1px solid var(--pg-border);
}

.pg-mobile-nav select {
  width: 100%;
  padding: 13px 16px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--pg-text);
  background: var(--pg-white);
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  margin: 14px 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.pg-mobile-nav select:focus {
  outline: none;
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 3px rgba(47,128,237,.12);
}

/* ─── LAYOUT GRID ─────────────────────────────────────────────── */
.pg-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.pg-sidebar {
  position: sticky;
  top: 80px;
  padding: 36px 0 36px 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}

.pg-sidebar::-webkit-scrollbar { display: none; }

.pg-sidebar__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pg-light);
  margin: 0 0 12px;
  padding: 0 4px;
}

.pg-sidebar__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg-sidebar__nav li {
  margin: 0;
}

.pg-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: .83rem;
  font-weight: 500;
  color: var(--pg-light);
  text-decoration: none;
  border-radius: 7px;
  transition: background .15s, color .15s;
  line-height: 1.3;
}

.pg-sidebar__nav a:hover {
  background: var(--pg-blue-lt);
  color: var(--pg-blue);
}

.pg-sidebar__nav a.active {
  background: var(--pg-blue-lt);
  color: var(--pg-blue);
  font-weight: 600;
}

.pg-nav-num {
  font-size: .72rem;
  font-weight: 700;
  color: var(--pg-blue);
  opacity: .7;
  min-width: 18px;
  flex-shrink: 0;
}

.pg-sidebar__nav a.active .pg-nav-num {
  opacity: 1;
}

/* ─── DOCUMENT BODY ───────────────────────────────────────────── */
.pg-doc {
  padding: 36px 0 36px 44px;
  border-left: 1px solid var(--pg-border);
  min-width: 0;
}

/* ─── SECTION ─────────────────────────────────────────────────── */
.pg-section {
  padding: 0 0 52px;
  border-bottom: 1px solid var(--pg-border);
  margin-bottom: 52px;
  scroll-margin-top: 100px;
}

.pg-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.pg-section__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pg-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--pg-blue-lt);
  color: var(--pg-blue);
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(47,128,237,.15);
}

.pg-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pg-text);
  margin: 0;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.pg-section__intro {
  font-size: .95rem;
  color: var(--pg-muted);
  line-height: 1.75;
  margin: 0 0 24px;
}

/* ─── SUBSECTIONS ─────────────────────────────────────────────── */
.pg-subsection {
  margin-bottom: 28px;
}

.pg-subsection__title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--pg-text);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg-subsection__title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--pg-blue);
  flex-shrink: 0;
}

/* ─── BULLET LISTS ────────────────────────────────────────────── */
.pg-bullets {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.pg-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
  color: var(--pg-muted);
  line-height: 1.7;
  padding: 6px 0;
  border-bottom: 1px solid rgba(226,232,240,.6);
}

.pg-bullets li:last-child {
  border-bottom: none;
}

.pg-bullets li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pg-blue);
  margin-top: 8px;
  flex-shrink: 0;
}

.pg-bullets li strong {
  color: var(--pg-text);
}

/* ─── HIGHLIGHT BOXES ─────────────────────────────────────────── */
.pg-highlight {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: .88rem;
  line-height: 1.65;
}

.pg-highlight__icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.pg-highlight__content {
  min-width: 0;
}

.pg-highlight__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pg-highlight__text {
  margin: 0;
  font-weight: 500;
}

/* blue info */
.pg-highlight--info {
  background: var(--pg-blue-lt);
  border: 1px solid rgba(47,128,237,.2);
  color: #1e4e8c;
}
.pg-highlight--info .pg-highlight__label { color: var(--pg-blue); }

/* amber warning */
.pg-highlight--warn {
  background: var(--pg-warn);
  border: 1px solid rgba(245,158,11,.25);
  color: var(--pg-warn-txt);
}
.pg-highlight--warn .pg-highlight__label { color: var(--pg-warn-bd); }

/* red critical */
.pg-highlight--critical {
  background: var(--pg-red);
  border: 1px solid rgba(239,68,68,.2);
  color: var(--pg-red-txt);
}
.pg-highlight--critical .pg-highlight__label { color: var(--pg-red-bd); }

/* green success */
.pg-highlight--success {
  background: var(--pg-green);
  border: 1px solid rgba(16,185,129,.2);
  color: var(--pg-green-txt);
}
.pg-highlight--success .pg-highlight__label { color: var(--pg-green-bd); }

/* ─── ENFORCEMENT CARD ────────────────────────────────────────── */
.pg-enforcement {
  background: var(--pg-bg);
  border: 1px solid var(--pg-border);
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin: 24px 0;
}

.pg-enforcement__title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--pg-text);
  margin: 0 0 16px;
  letter-spacing: .02em;
}

.pg-enforcement__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pg-enforcement__item {
  background: var(--pg-white);
  border: 1px solid var(--pg-border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.pg-enforcement__item-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.pg-enforcement__item-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--pg-text);
  margin-bottom: 4px;
}

.pg-enforcement__item-desc {
  font-size: .75rem;
  color: var(--pg-light);
  line-height: 1.5;
  margin: 0;
}

/* ─── ACCOUNTABILITY BOX ──────────────────────────────────────── */
.pg-accountability {
  background: var(--pg-white);
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px;
  margin: 24px 0 0;
}

.pg-accountability__title {
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pg-muted);
  margin: 0 0 14px;
}

.pg-accountability__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pg-accountability__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--pg-muted);
  font-weight: 500;
}

.pg-accountability__list li::before {
  content: '→';
  color: var(--pg-red-bd);
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── PRE-FOOTER GRADIENT ─────────────────────────────────────── */
.pg-prefooter {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pg-prefooter__bg-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: rgba(255,255,255,.035);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

.pg-prefooter__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.pg-prefooter__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pg-prefooter__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}

.pg-prefooter__sub {
  font-size: .97rem;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
  margin: 0 0 32px;
}

.pg-prefooter__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pg-prefooter__link {
  display: inline-block;
  padding: 10px 22px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: rgba(255,255,255,.82);
  font-size: .83rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}

.pg-prefooter__link:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

.pg-prefooter__link--primary {
  background: var(--pg-blue);
  border-color: var(--pg-blue);
  color: #fff;
}

.pg-prefooter__link--primary:hover {
  background: var(--pg-blue-dk);
  border-color: var(--pg-blue-dk);
}

/* ─── RESPONSIVE: TABLET ──────────────────────────────────────── */
@media (max-width: 960px) {
  .pg-layout {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .pg-sidebar {
    display: none;
  }

  .pg-mobile-nav {
    display: block;
  }

  .pg-doc {
    padding: 28px 0;
    border-left: none;
  }

  .pg-enforcement__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ─── RESPONSIVE: MOBILE ──────────────────────────────────────── */
@media (max-width: 600px) {
  .pg-hero {
    padding: 130px 20px 48px;
  }

  .pg-hero__title {
    font-size: 1.75rem;
  }

  .pg-hero__meta {
    flex-direction: column;
    gap: 8px;
  }

  .pg-hero__anchors {
    gap: 6px;
  }

  .pg-hero__anchor {
    font-size: .75rem;
    padding: 6px 12px;
  }

  .pg-section__heading {
    gap: 10px;
  }

  .pg-section__title {
    font-size: 1.15rem;
  }

  .pg-section {
    padding-bottom: 36px;
    margin-bottom: 36px;
    scroll-margin-top: 80px;
  }

  .pg-enforcement__grid {
    grid-template-columns: 1fr;
  }

  .pg-prefooter {
    padding: 60px 20px;
  }

  .pg-accountability {
    padding: 20px;
  }
}
