/* ============================================================
   MyPhysician360 — Condition Pages Stylesheet
   Version: 1.0
   Covers: /weight_loss, /medical-weight-loss, /menopause-hormonal-health, /uti
   (and all future condition pages built on this template)

   FONT: Load Inter in your site <head> before this stylesheet:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">

   FAQ ACCORDION: Add before </body>:
   <script>
     document.querySelectorAll('.mp-faq details summary').forEach(s => {
       s.addEventListener('click', e => {
         const parent = s.closest('details');
         document.querySelectorAll('.mp-faq details').forEach(d => {
           if (d !== parent) d.removeAttribute('open');
         });
       });
     });
   </script>
   ============================================================ */

/* ── Brand tokens ─────────────────────────────────────────── */
:root {
  --mp-navy:       #00446a;   /* Primary / hero bg / headings    */
  --mp-teal:       #008576;   /* CTA buttons / accents           */
  --mp-green:      #00b259;   /* Pharmacy checkmarks             */
  --mp-body:       #445566;   /* Body text                       */
  --mp-rule:       #dde5ee;   /* Dividers / table borders        */
  --mp-bg-alt:     #f9faf7;   /* Alternating section backgrounds */
  --mp-bg-callout: #e6f4fb;   /* Info callout background         */
  --mp-border-callout: #c8e5f5;
  --mp-warn-bg:    #fef3c7;   /* Warning callout background      */
  --mp-warn-border:#f5d87a;
  --mp-warn-text:  #7b5200;
  --mp-success-bg: #d4ede9;   /* Success / timing callout        */
  --mp-success-border: #008576;
  --mp-muted:      #8fa3b4;   /* Timestamps, captions            */
  --mp-max:        900px;     /* Max content width               */
  --mp-font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Base reset ───────────────────────────────────────────── */
.mp-page *,
.mp-page *::before,
.mp-page *::after {
  box-sizing: border-box;
}

.mp-page {
  font-family: var(--mp-font);
  color: var(--mp-body);
  line-height: 1.6;
}

/* ── Shared container ─────────────────────────────────────── */
.mp-container {
  max-width: var(--mp-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ── HERO ─────────────────────────────────────────────────── */
.mp-hero {
  background: var(--mp-navy);
  padding: 36px 24px 40px;
}

.mp-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 10px;
}

.mp-hero__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
}

.mp-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 0 20px;
}

/* ── SECTION NAV ──────────────────────────────────────────── */
.mp-section-nav {
  background: #F5F7FA;
  border-bottom: 1px solid #E2E8F0;
  padding: 14px 0;
  margin-bottom: 32px;
}

.mp-section-nav__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mp-muted);
  margin: 0 0 8px;
}

.mp-section-nav__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-section-nav__pill {
  font-size: 13px;
  color: var(--mp-navy);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--mp-border-callout);
  border-radius: 20px;
  background: var(--mp-bg-callout);
  transition: opacity .15s;
}

.mp-section-nav__pill:hover {
  opacity: .75;
}

/* ── TRUST BAND ───────────────────────────────────────────── */
.mp-trust-band {
  background: var(--mp-bg-callout);
  border: 1px solid var(--mp-border-callout);
  border-radius: 10px;
  padding: 14px 20px;
  margin: 0 auto 40px;
  max-width: var(--mp-max);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mp-trust-band__item {
  font-size: 13px;
  font-weight: 600;
  color: var(--mp-navy);
}

/* ── SECTION WRAPPER ──────────────────────────────────────── */
.mp-section {
  max-width: var(--mp-max);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.mp-section--alt {
  background: var(--mp-bg-alt);
  padding: 40px 24px;
  margin-bottom: 48px;
}

.mp-section--alt .mp-container {
  padding: 0;
}

.mp-section--dark {
  background: var(--mp-navy);
  padding: 40px 24px;
  margin-bottom: 48px;
}

/* ── SECTION LABELS & HEADINGS ────────────────────────────── */
.mp-section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mp-teal);
  margin: 0 0 6px;
}

.mp-section--dark .mp-section__eyebrow {
  color: rgba(255,255,255,.5);
}

.mp-section__title {
  font-size: 1.6rem;
  color: var(--mp-navy);
  line-height: 1.2;
  margin: 0 0 10px;
}

.mp-section--dark .mp-section__title {
  color: #fff;
}

.mp-section__intro {
  color: var(--mp-body);
  line-height: 1.75;
  margin: 0 0 20px;
}

/* ── CALLOUT BOXES ────────────────────────────────────────── */
/* Info (blue-tinted) */
.mp-callout {
  background: var(--mp-bg-callout);
  border-left: 4px solid var(--mp-navy);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.mp-callout__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mp-navy);
  margin: 0 0 6px;
}

.mp-callout__body {
  font-size: 14px;
  color: var(--mp-navy);
  line-height: 1.65;
  margin: 0;
}

/* Warning (amber) */
.mp-callout--warn {
  background: var(--mp-warn-bg);
  border-left-color: #f59e0b;
}

.mp-callout--warn .mp-callout__label,
.mp-callout--warn .mp-callout__body {
  color: var(--mp-warn-text);
}

/* Success / timing (teal-tinted) */
.mp-callout--success {
  background: var(--mp-success-bg);
  border-left-color: var(--mp-teal);
}

.mp-callout--success .mp-callout__label {
  color: var(--mp-teal);
}

.mp-callout--success .mp-callout__body {
  color: #0d1f2d;
}

/* Dark section quote / pharmacy pull-quote */
.mp-callout--dark-accent {
  border-left: 3px solid var(--mp-green);
  padding: 12px 16px;
  margin: 16px 0;
}

.mp-callout--dark-accent p {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  font-style: italic;
  line-height: 1.7;
  margin: 0;
}

/* ── WARNING CHECKLIST BOX ────────────────────────────────── */
.mp-warn-list {
  background: var(--mp-warn-bg);
  border: 1px solid var(--mp-warn-border);
  border-radius: 8px;
  padding: 16px 20px;
}

.mp-warn-list__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--mp-warn-text);
  margin: 0 0 10px;
}

.mp-warn-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-warn-list__items li {
  padding: 6px 0;
  border-bottom: 1px solid var(--mp-warn-border);
  font-size: 13px;
  color: var(--mp-warn-text);
}

.mp-warn-list__items li:last-child {
  border-bottom: none;
}

/* ── INLINE CTA BANNER ────────────────────────────────────── */
.mp-inline-cta {
  background: var(--mp-bg-callout);
  border: 1px solid var(--mp-border-callout);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.mp-inline-cta__text {
  font-size: 14px;
  color: var(--mp-navy);
  font-weight: 500;
  margin: 0;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.mp-btn {
  display: inline-block;
  background: var(--mp-teal);
  color: #fff;
  font-family: var(--mp-font);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}

.mp-btn:hover {
  opacity: .88;
}

.mp-btn--hero {
  font-size: .9rem;
  padding: 11px 22px;
}

.mp-btn--lg {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
}

.mp-btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.35);
  color: #fff;
}

.mp-btn--white {
  background: #fff;
  color: var(--mp-navy);
}

/* ── SYMPTOM / FEATURE TABLE ──────────────────────────────── */
.mp-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.mp-table td,
.mp-table th {
  padding: 10px 12px;
  border: 1px solid var(--mp-rule);
  vertical-align: top;
  font-size: 14px;
  color: var(--mp-body);
}

.mp-table th {
  background: var(--mp-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.mp-table td strong {
  color: var(--mp-navy);
  display: block;
  margin-bottom: 2px;
}

/* ── 4-STEP VISIT STEPS ───────────────────────────────────── */
.mp-steps {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.mp-steps td {
  padding: 14px;
  border: 1px solid var(--mp-rule);
  vertical-align: top;
  width: 25%;
}

.mp-steps__number {
  width: 36px;
  height: 36px;
  background: var(--mp-navy);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  line-height: 36px;
  text-align: center;
  margin: 0 0 10px;
}

.mp-steps__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mp-navy);
  display: block;
  margin-bottom: 6px;
}

.mp-steps__body {
  font-size: 13px;
  color: var(--mp-body);
  line-height: 1.6;
  margin: 0;
}

/* ── BULLET LIST ──────────────────────────────────────────── */
.mp-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.mp-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--mp-rule);
  font-size: 14px;
  color: var(--mp-body);
}

.mp-list li:last-child {
  border-bottom: none;
}

.mp-list__arrow {
  color: var(--mp-teal);
  font-weight: 700;
  margin-right: 8px;
}

.mp-list__dot {
  margin-right: 6px;
}

/* ── GENERATED CATALOG / CATEGORY LISTINGS ───────────────── */
.mp-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.mp-catalog-card {
  min-width: 0;
  border-top: 3px solid var(--mp-border-callout);
  padding-top: 14px;
}

.mp-catalog-card__title {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 14px;
}

.mp-catalog-card__title a,
.mp-subcategory-group__title a,
.mp-section__title a {
  color: var(--mp-navy);
  text-decoration: none;
}

.mp-catalog-card__title a:hover,
.mp-subcategory-group__title a:hover,
.mp-section__title a:hover {
  text-decoration: underline;
}

.mp-catalog-card__list,
.mp-subcategory-group__list {
  margin-bottom: 16px;
}

.mp-catalog-card__list a,
.mp-subcategory-group__list a {
  color: var(--mp-body);
  text-decoration: none;
}

.mp-catalog-card__list a:hover,
.mp-subcategory-group__list a:hover {
  color: var(--mp-navy);
  text-decoration: underline;
}

.mp-subcategory-group {
  margin-top: 18px;
}

.mp-subcategory-group__title {
  font-size: .95rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

.mp-category-stack {
  display: grid;
  gap: 40px;
}

.mp-subcategory-section {
  border-top: 1px solid var(--mp-rule);
  padding-top: 24px;
}

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

.mp-condition-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--mp-border-callout);
  border-radius: 6px;
  background: #fff;
  padding: 18px;
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}

.mp-condition-card:hover {
  border-color: var(--mp-green);
  background: var(--mp-bg-alt);
}

.mp-condition-card__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: contain;
}

.mp-condition-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mp-navy);
}

.mp-condition-card:hover .mp-condition-card__title {
  color: var(--mp-teal);
}

.mp-condition-content {
  max-width: var(--mp-max);
  margin: 0 auto 48px;
}

.mp-condition-content--embedded {
  margin-bottom: 20px;
}

.mp-condition-content > :not(.mp-hero):not(.mp-section-nav):not(.mp-trust-band):not(.mp-section):not(.mp-section--alt):not(.mp-section--dark):not(.mp-pharmacy):not(.mp-final-cta):not(.mp-disclaimer) {
  max-width: var(--mp-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.mp-condition-content p {
  line-height: 1.75;
}

.mp-condition-content a,
.mp-section a {
  color: var(--mp-navy);
}

.mp-hero-image {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--mp-bg-alt);
}

/* Dark-section checklist */
.mp-checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.mp-checklist li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 14px;
  color: rgba(255,255,255,.78);
}

.mp-checklist li:last-child {
  border-bottom: none;
}

.mp-checklist__check {
  color: var(--mp-green);
  font-weight: 700;
  margin-right: 8px;
}

/* ── PATIENT REVIEW PULL QUOTE ────────────────────────────── */
.mp-review {
  border-left: 4px solid var(--mp-teal);
  padding: 14px 18px;
  background: var(--mp-bg-alt);
}

.mp-review__stars {
  font-size: 13px;
  color: var(--mp-muted);
  margin: 0 0 6px;
}

.mp-review__quote {
  font-size: 14px;
  color: var(--mp-body);
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 8px;
}

.mp-review__attribution {
  font-size: 12px;
  font-weight: 600;
  color: var(--mp-muted);
  margin: 0;
}

/* ── FAQ ACCORDION ────────────────────────────────────────── */
.mp-faq {
  border-top: 1px solid var(--mp-rule);
}

.mp-faq details {
  border-bottom: 1px solid var(--mp-rule);
  padding: 14px 0;
}

.mp-faq details summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--mp-navy);
  cursor: pointer;
  list-style: none;
}

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

.mp-faq details summary::after {
  content: '+';
  float: right;
  font-size: 18px;
  font-weight: 400;
  color: var(--mp-muted);
  transition: transform .2s;
}

.mp-faq details[open] summary::after {
  transform: rotate(45deg);
}

.mp-faq details p {
  font-size: 14px;
  color: var(--mp-body);
  line-height: 1.75;
  margin: 12px 0 0;
}

/* ── RESOURCES & RELATED 2x2 TABLES ──────────────────────── */
.mp-resources {
  width: 100%;
  border-collapse: collapse;
}

.mp-resources td {
  padding: 14px;
  border: 1px solid var(--mp-rule);
  vertical-align: top;
  width: 50%;
}

.mp-resources__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mp-teal);
  margin: 0 0 6px;
}

.mp-resources__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mp-navy);
  line-height: 1.4;
  margin: 0 0 4px;
}

.mp-resources__source {
  font-size: 12px;
  color: var(--mp-muted);
  margin: 0 0 8px;
}

.mp-resources__link {
  font-size: 13px;
  color: var(--mp-navy);
  font-weight: 500;
  text-decoration: none;
}

.mp-resources__link:hover {
  text-decoration: underline;
}

/* ── RELATED CONDITIONS 2x3 TABLE ────────────────────────── */
.mp-related {
  width: 100%;
  border-collapse: collapse;
}

.mp-related td {
  padding: 12px;
  border: 1px solid var(--mp-rule);
  width: 33.33%;
}

.mp-related a {
  text-decoration: none;
  color: var(--mp-navy);
  font-size: 14px;
  font-weight: 600;
}

.mp-related a:hover {
  text-decoration: underline;
}

/* ── PHARMACY SECTION (dark) ──────────────────────────────── */
.mp-pharmacy {
  background: var(--mp-navy);
  padding: 40px 24px;
  margin-bottom: 48px;
}

.mp-pharmacy__intro {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  margin: 0 0 12px;
}

.mp-pharmacy__availability {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-left: 14px;
}

/* ── FINAL CTA ────────────────────────────────────────────── */
.mp-final-cta {
  background: var(--mp-navy);
  padding: 48px 24px;
  text-align: center;
}

.mp-final-cta__title {
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
}

.mp-final-cta__sub {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin: 0 0 28px;
}

.mp-final-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.mp-final-cta__footnote {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin: 0;
}

/* ── DISCLAIMER ───────────────────────────────────────────── */
.mp-disclaimer {
  background: #f4f6f9;
  border-top: 1px solid var(--mp-rule);
  padding: 20px 24px;
}

.mp-disclaimer p {
  font-size: 12px;
  color: var(--mp-muted);
  line-height: 1.7;
  max-width: var(--mp-max);
  margin: 0 auto;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .mp-catalog-grid,
  .mp-condition-grid {
    grid-template-columns: 1fr;
  }

  .mp-steps,
  .mp-steps tbody,
  .mp-steps tr,
  .mp-steps td {
    display: block;
    width: 100%;
  }

  .mp-steps td {
    border-bottom: none;
    border-left: 3px solid var(--mp-navy);
    margin-bottom: 12px;
  }

  .mp-table tr {
    display: block;
    margin-bottom: 8px;
  }

  .mp-table td {
    display: block;
    width: 100%;
    border-bottom: none;
  }

  .mp-resources td,
  .mp-related td {
    display: block;
    width: 100%;
  }

  .mp-inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .mp-trust-band {
    flex-direction: column;
    gap: 10px;
  }

  .mp-final-cta__actions {
    flex-direction: column;
    align-items: center;
  }
}