/* PF-232 — PCOD Treatment Page Scoped Styles (Mirrored from Master Fertility Design Reference) */
.pt-page {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink, #2a2228);
  background: var(--background, #fff);
  box-sizing: border-box;
  overflow-x: clip;
}

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

.pt-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* Typography & General */
.pt-page h1 {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--plum, #431932);
  margin: 0 0 18px;
}

.pt-page h2 {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: clamp(1.75rem, 2.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--plum, #431932);
  margin: 0 0 16px;
}

.pt-page h3 {
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--plum, #431932);
  margin: 0 0 10px;
}

.pt-page h4 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--plum, #431932);
  margin: 0 0 8px;
}

.pt-page p {
  max-width: 80ch;
  margin: 0 0 16px;
}

.pt-page p:last-child {
  margin-bottom: 0;
}

.pt-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink, #2a2228);
}

.pt-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pink, #b84d72);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pt-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 14px;
  color: var(--muted, #6f5f69);
  margin: 18px 0 24px;
}

.pt-doctor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blush, #f7eaef);
  color: var(--plum, #431932);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.pt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink, #b84d72);
}

.pt-page a:not(.button):not(.pt-toc-link):not(.pt-link-item) {
  color: var(--pink-dark, #963558);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.pt-page a:not(.button):not(.pt-toc-link):not(.pt-link-item):hover {
  color: var(--plum, #431932);
}

.pt-page :is(a, button, summary):focus-visible {
  outline: 3px solid var(--plum, #431932);
  outline-offset: 4px;
}

/* Breadcrumb */
.pt-breadcrumb {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted, #6f5f69);
  margin-bottom: 22px;
}

.pt-breadcrumb a {
  text-decoration: none !important;
  color: var(--muted, #6f5f69) !important;
}

.pt-breadcrumb a:hover {
  color: var(--plum, #431932) !important;
  text-decoration: underline !important;
}

/* Hero Section */
.pt-hero {
  padding: 32px 0 44px;
  background: linear-gradient(115deg, var(--ivory, #fdfaf6), #fae8f0);
  border-bottom: 1px solid var(--line, #e8d7e0);
}

.pt-full-banner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 32px;
  text-align: center;
}

.pt-full-banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line, #e8d7e0);
  box-shadow: 0 10px 30px rgba(67, 25, 50, 0.08);
  display: block;
}

.pt-hero-stacked {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pt-hero-copy {
  max-width: 100%;
}

.pt-hero-media {
  width: 100%;
  margin: 24px 0 0;
  text-align: center;
}

.pt-hero-figure {
  margin: 0;
  text-align: center;
}

.pt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Quick Answers Box */
.pt-quick-answers {
  background: #ffffff;
  border: 1px solid var(--line, #e8d7e0);
  border-left: 4px solid var(--pink, #b84d72);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(67, 25, 50, 0.04);
}

.pt-quick-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--plum, #431932);
  margin-bottom: 8px;
}

.pt-quick-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pt-quick-list li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.55;
}

.pt-quick-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--pink, #b84d72);
  font-size: 20px;
  line-height: 1;
}

/* Buttons */
.pt-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--pink, #b84d72);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
  border: 1px solid var(--pink, #b84d72);
  transition: all 0.15s ease;
  cursor: pointer;
}

.pt-page .button:hover {
  background: var(--pink-dark, #963558);
  border-color: var(--pink-dark, #963558);
}

.pt-page .button-outline {
  background: #ffffff;
  color: var(--pink-dark, #963558) !important;
  border-color: var(--pink, #b84d72);
}

.pt-page .button-outline:hover {
  background: var(--blush, #f7eaef);
  color: var(--plum, #431932) !important;
}

/* Table of Contents (Two-Column Rounded Pink Cards) */
.pt-toc {
  background: var(--ivory, #fdfaf6);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 36px 0 20px;
}

.pt-toc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--plum, #431932);
  margin-bottom: 16px;
}

.pt-toc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-toc-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-toc-card {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background: var(--blush, #f7eaef);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--plum, #431932) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.18s ease;
}

.pt-toc-card:hover {
  background: #f0d5df;
  border-color: var(--pink, #b84d72);
  color: var(--pink-dark, #963558) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 25, 50, 0.08);
}

.pt-toc-num {
  font-weight: 700;
  color: var(--pink, #b84d72);
  flex-shrink: 0;
}

.pt-toc-text {
  flex: 1;
}

/* Section Containers */
.pt-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line, #e8d7e0);
  scroll-margin-top: 100px;
}

.pt-section:last-of-type {
  border-bottom: 0;
}

/* Figures & Images */
.pt-figure {
  margin: 0;
  text-align: center;
}

.pt-img {
  width: 100%;
  max-width: 960px;
  height: auto !important;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line, #e8d7e0);
  box-shadow: 0 6px 22px rgba(67, 25, 50, 0.06);
  display: block;
  margin-inline: auto;
}

.pt-visual-wrap {
  margin: 32px 0 16px;
  text-align: center;
}

.pt-figure figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #6f5f69);
  font-style: italic;
  margin-top: 12px;
  padding: 0 12px;
}

/* Subsections & Grids */
.pt-subsection {
  margin-top: 24px;
}

.pt-subsections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.pt-subcard {
  background: var(--ivory, #fdfaf6);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 14px;
  padding: 22px;
}

.pt-subcard h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.pt-subcard p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Checklists */
.pt-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.pt-checklist li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  font-size: 17px;
  line-height: 1.55;
}

.pt-checklist li::before {
  content: "✔";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--pink, #b84d72);
  font-size: 16px;
}

/* Evaluation / 2-Column Grid */
.pt-eval-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.pt-eval-item {
  background: #ffffff;
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 8px rgba(67, 25, 50, 0.03);
}

.pt-eval-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.pt-eval-item p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Treatment Options List */
.pt-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px;
}

.pt-option-card {
  background: #ffffff;
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.15s ease;
}

.pt-option-card.highlight {
  background: var(--ivory, #fdfaf6);
  border: 2px solid var(--pink, #b84d72);
  box-shadow: 0 4px 16px rgba(184, 77, 114, 0.08);
}

.pt-option-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.pt-option-card p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Treatment Pathway Card Flow */
.pt-pathway {
  background: linear-gradient(135deg, #fdf8fb, #f7eaef);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 18px;
  padding: 28px;
  margin: 32px 0 16px;
}

.pt-pathway-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--plum, #431932);
  text-align: center;
  margin-bottom: 24px;
}

.pt-pathway-steps {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.pt-pathway-step {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(67, 25, 50, 0.04);
}

.pt-pathway-step.highlight {
  border: 2px solid var(--pink, #b84d72);
  background: #fffdfd;
}

.pt-pathway-step .step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-dark, #963558);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pt-pathway-step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.pt-pathway-step p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #6f5f69);
  margin: 0;
}

.pt-pathway-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink, #b84d72);
  font-size: 20px;
  font-weight: 700;
  flex: 0 0 auto;
}

.pt-pathway-note {
  font-size: 14px;
  color: var(--muted, #6f5f69);
  text-align: center;
  margin-top: 18px !important;
}

/* Numbered Steps & Callout */
.pt-numbered-steps {
  padding-left: 24px;
  margin: 20px 0;
}

.pt-numbered-steps li {
  margin: 10px 0;
  font-size: 17px;
  line-height: 1.6;
}

.pt-callout-note {
  background: var(--ivory, #fdfaf6);
  border-left: 3px solid var(--pink, #b84d72);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.pt-callout-note p {
  font-size: 16px;
  margin: 0;
}

/* Advice Box */
.pt-advice-box {
  background: linear-gradient(120deg, var(--ivory, #fdfaf6), #fae7ef);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 16px;
  padding: 30px;
  margin-top: 28px;
  text-align: center;
}

.pt-advice-box h3 {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.pt-advice-box p {
  max-width: 65ch;
  margin: 0 auto 20px;
  font-size: 17px;
}

.pt-advice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* FAQ Accordion */
.pt-faq-accordion {
  border-top: 1px solid var(--line, #e8d7e0);
  margin-top: 24px;
}

.pt-faq-accordion details {
  border-bottom: 1px solid var(--line, #e8d7e0);
}

.pt-faq-accordion summary {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--plum, #431932);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

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

.pt-faq-accordion summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--pink, #b84d72);
  transition: transform 0.2s ease;
}

.pt-faq-accordion details[open] summary::after {
  content: "−";
  transform: translateY(-50%);
}

.pt-faq-accordion p {
  padding-bottom: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink, #2a2228);
}

/* Doctor Consultation Card */
.pt-final {
  padding-bottom: 20px;
}

.pt-doctor-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 32px;
  align-items: center;
  background: var(--ivory, #fdfaf6);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 18px;
  padding: 32px;
  margin-top: 28px;
}

.pt-doctor-copy {
  min-width: 0;
}

.pt-doctor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 14px;
}

.pt-doctor-note {
  font-size: 13px;
  color: var(--muted, #6f5f69);
  margin: 0 !important;
}

.pt-doctor-figure {
  margin: 0;
  text-align: center;
}

.pt-doctor-img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 24px rgba(67, 25, 50, 0.1);
  display: inline-block;
}

.pt-doctor-figure figcaption {
  font-size: 14px;
  font-weight: 600;
  color: var(--plum, #431932);
  margin-top: 10px;
}

/* Tools Integration Card Grid */
.pt-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.pt-tool-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--line, #e8d7e0);
  border-left: 4px solid var(--pink, #b84d72);
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--ink, #2a2228) !important;
  transition: all 0.15s ease;
}

.pt-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(67, 25, 50, 0.06);
  border-color: var(--pink-dark, #963558);
}

.pt-tool-card strong {
  font-size: 16px;
  color: var(--pink-dark, #963558);
  margin-bottom: 4px;
}

.pt-tool-card span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted, #6f5f69);
}

/* Contextual Links Grid */
.pt-contextual-links {
  padding: 40px 0 60px;
}

.pt-links-card {
  background: #ffffff;
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 18px;
  padding: 32px;
}

.pt-links-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--plum, #431932);
  margin-bottom: 20px;
}

.pt-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pt-link-item {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--ivory, #fdfaf6);
  border: 1px solid var(--line, #e8d7e0);
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--ink, #2a2228) !important;
  transition: all 0.15s ease;
}

.pt-link-item:hover {
  background: #ffffff;
  border-color: var(--pink, #b84d72);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(67, 25, 50, 0.06);
}

.pt-link-item strong {
  font-size: 16px;
  color: var(--pink-dark, #963558);
  margin-bottom: 6px;
}

.pt-link-item span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted, #6f5f69);
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .pt-subsections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pt-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pt-pathway-steps {
    flex-wrap: wrap;
    gap: 16px;
  }
  .pt-pathway-step {
    flex: 1 1 calc(50% - 24px);
  }
  .pt-pathway-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .pt-page {
    font-size: 17px;
  }
  .pt-shell {
    width: calc(100% - 32px);
  }
  .pt-full-banner {
    width: calc(100% - 32px);
    margin-bottom: 24px;
  }
  .pt-full-banner img {
    border-radius: 12px;
  }
  .pt-hero {
    padding: 24px 0 32px;
  }
  .pt-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pt-toc {
    padding: 18px 20px;
  }
  .pt-toc-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pt-section {
    padding: 32px 0;
  }
  .pt-subsections-grid,
  .pt-eval-grid,
  .pt-tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pt-pathway-steps {
    flex-direction: column;
    gap: 14px;
  }
  .pt-pathway-step {
    flex: 1 1 100%;
  }
  .pt-pathway-arrow {
    display: none;
  }
  .pt-advice-box {
    padding: 22px 18px;
  }
  .pt-advice-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pt-doctor-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 18px;
    text-align: center;
  }
  .pt-doctor-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pt-doctor-img {
    max-width: 180px;
  }
  .pt-links-grid {
    grid-template-columns: 1fr;
  }
  .pt-links-card {
    padding: 22px 18px;
  }
  .pt-page .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pt-quick-answers {
    padding: 16px;
  }
  .pt-pathway {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-page * {
    transition: none !important;
    animation: none !important;
  }
}
