/* FAQ-specific styles — minimal preview build (Task 10 will replace). */

.faq-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.faq-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
  color: var(--md-teal-text);
}
.faq-hero .lead, .faq-lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--md-text);
}

.faq-breadcrumb {
  font-size: 13px;
  color: var(--md-muted);
  margin: 0 0 16px;
}
.faq-breadcrumb a {
  color: var(--md-teal-text);
  text-decoration: none;
}
.faq-breadcrumb a:hover { text-decoration: underline; }

.faq-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.faq-author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--md-bg-mint);
  border-left: 4px solid #046A38;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
}
.faq-author-box img {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.faq-author-box strong { color: var(--md-teal-text); }
.faq-author-title { color: var(--md-muted); }
.faq-author-box time {
  display: block;
  font-size: 12px;
  color: var(--md-soft);
  margin-top: 4px;
}

.faq-toc {
  background: var(--md-bg-soft);
  border: 1px solid var(--md-line);
  padding: 20px 24px;
  border-radius: 6px;
}
.faq-toc .toc-heading {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--md-teal-text);
}
.faq-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.faq-toc li { margin: 6px 0; break-inside: avoid; }
.faq-toc a {
  color: var(--md-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
}
.faq-toc a:hover { color: var(--md-teal-text); text-decoration: underline; }

.faq-questions { display: flex; flex-direction: column; gap: 16px; }

.faq-item {
  border: 1px solid var(--md-line);
  border-radius: 6px;
  padding: 0;
  background: var(--md-bg-soft);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--md-bg-soft);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--md-teal-text);
  margin-left: 12px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary h2.faq-question {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  display: inline;
  scroll-margin-top: 80px;
}
.faq-item .faq-snippet, .faq-item .faq-expanded {
  padding: 0 20px;
}
.faq-item .faq-snippet { margin: 14px 20px; }
.faq-item .faq-expanded { padding-bottom: 20px; }

.faq-clinic-voice {
  background: var(--md-bg-mint);
  border-left: 4px solid #046A38;
  padding: 20px 24px;
  border-radius: 6px;
}
.faq-clinic-voice h3 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--md-teal-text);
}
.faq-clinic-voice p { margin: 0; line-height: 1.7; font-size: 15px; }

.faq-comparison {
  background: var(--md-bg-soft);
  border: 1px solid var(--md-line);
  padding: 20px 24px;
  border-radius: 6px;
  overflow-x: auto;
}
.faq-comparison h3 { margin: 0 0 14px; font-size: 18px; color: var(--md-teal-text); }
.faq-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.faq-compare-table th, .faq-compare-table td {
  border: 1px solid var(--md-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.faq-compare-table thead th {
  background: var(--md-bg-mint);
  font-weight: 600;
  color: var(--md-teal-text);
}
.faq-compare-table tbody td:first-child { font-weight: 500; }
.table-note {
  font-size: 13px;
  color: var(--md-muted);
  margin-top: 12px;
  font-style: italic;
}

.faq-imagery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.faq-imagery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.faq-reviews {
  background: var(--md-bg-mint);
  border: 1px solid var(--md-line);
  border-radius: 8px;
  padding: 24px;
  margin-top: 16px;
}
.faq-reviews h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--md-teal-text);
  font-family: 'Playfair Display', Georgia, serif;
}
.faq-review {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--md-bg-soft);
  border-left: 3px solid #046A38;
  border-radius: 4px;
}
.faq-review:last-of-type { margin-bottom: 12px; }
.faq-review-text {
  margin: 0 0 8px;
  font-style: italic;
  color: var(--md-text);
  line-height: 1.6;
}
.faq-review footer {
  font-size: 13px;
  color: var(--md-muted);
}
.faq-review-source { font-size: 12px; opacity: 0.85; }
.faq-reviews-note {
  font-size: 12px;
  color: var(--md-muted);
  margin: 8px 0 0;
  line-height: 1.5;
}
.faq-reviews-note a { color: var(--md-teal-text); }

.faq-video {
  background: var(--md-bg-soft);
  border: 1px solid var(--md-line);
  border-radius: 8px;
  padding: 20px 24px;
}
.faq-video h3 {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--md-teal-text);
}
.faq-video-frame {
  position: relative;
  width: 100%;
  max-width: 325px;
  margin: 0 auto;
  aspect-ratio: 325 / 740;
  background: var(--md-bg);
  border-radius: 8px;
  overflow: hidden;
}
.faq-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.faq-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}
.faq-video-local { background: var(--md-bg); }
/* TikTok click-to-watch card (replaces unreliable inline embed on staging) */
.faq-tiktok-card {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--md-bg-soft) 0%, var(--md-bg-mint) 100%);
  border: 1px solid var(--md-line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.faq-tiktok-card:hover,
.faq-tiktok-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10,10,10, 0.08);
  border-color: #fe2c55;
  outline: none;
}
.faq-tiktok-card-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-bg-soft);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(254, 44, 85, 0.15);
}
.faq-tiktok-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.faq-tiktok-card-label {
  font-size: 11px;
  font-weight: 700;
  color: #fe2c55;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.faq-tiktok-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--md-text);
  line-height: 1.35;
}
.faq-tiktok-card-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--md-teal-text, #22C378);
}
.faq-tiktok-card-play svg {
  display: block;
}
.faq-video-note {
  font-size: 13px;
  color: var(--md-muted);
  margin: 12px 0 0;
  text-align: center;
}
.faq-video-note a { color: var(--md-teal-text); }

.faq-before-after {
  background: var(--md-bg-soft);
  border: 1px solid var(--md-line);
  border-radius: 8px;
  padding: 24px;
}
.faq-before-after h3 { margin: 0 0 16px; color: var(--md-teal-text); font-size: 18px; }
.faq-ba-case {
  margin: 0 0 24px;
  padding: 0;
}
.faq-ba-case:last-child { margin-bottom: 0; }
.faq-ba-case figcaption {
  font-size: 14px;
  color: var(--md-muted);
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}
.faq-ba-note { font-size: 12px; color: var(--md-muted); line-height: 1.5; margin-top: 8px; }

/* Before/After slider component (mouse + touch + keyboard) */
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: #ffffff;
  touch-action: pan-y;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-slider .ba-before {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.ba-slider .ba-after {
  z-index: 1;
}
.ba-slider .ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 0;
  z-index: 3;
  transform: translateX(-50%);
}
.ba-slider .ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.ba-slider .ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #046A38;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #046A38;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: grab;
}
.ba-slider.ba-dragging .ba-handle-knob { cursor: grabbing; }
.ba-slider .ba-tag {
  position: absolute;
  top: 12px;
  z-index: 4;
  background: rgba(4,106,56, 0.92);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.ba-slider .ba-tag-before { left: 12px; }
.ba-slider .ba-tag-after { right: 12px; }
.ba-slider .ba-handle:focus { outline: none; }
.ba-slider .ba-handle:focus-visible .ba-handle-knob {
  outline: 2px solid #e8cf7a;
  outline-offset: 2px;
}

.faq-case-studies {
  background: var(--md-bg-mint);
  border: 1px solid var(--md-line);
  border-radius: 8px;
  padding: 24px;
}
.faq-case-studies h3 { margin: 0 0 16px; color: var(--md-teal-text); font-size: 18px; }
.faq-case-study {
  background: var(--md-bg-soft);
  border-left: 4px solid #046A38;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: 4px;
}
.faq-case-study:last-of-type { margin-bottom: 12px; }
.faq-case-study h4 {
  margin: 0 0 12px;
  color: var(--md-teal-text);
  font-size: 17px;
  font-family: 'Playfair Display', Georgia, serif;
}
.faq-case-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--md-bg-mint);
  border-radius: 4px;
  font-size: 13px;
}
.faq-case-meta dt { font-weight: 600; color: var(--md-muted); }
.faq-case-meta dd { margin: 0; color: var(--md-text); }
.faq-case-study p { margin: 0 0 10px; line-height: 1.6; font-size: 14px; }
.faq-case-quote {
  background: var(--md-gold-soft);
  border-left: 3px solid #e8cf7a;
  padding: 10px 14px;
  margin: 14px 0 0;
  font-style: italic;
  font-size: 14px;
}
.faq-case-quote footer { font-size: 12px; color: var(--md-muted); margin-top: 6px; font-style: normal; }
.faq-case-note { font-size: 12px; color: var(--md-muted); line-height: 1.5; }

.faq-glossary {
  background: var(--md-bg-soft);
  border: 1px solid var(--md-line);
  border-radius: 8px;
  padding: 24px;
}
.faq-glossary h3 { margin: 0 0 16px; color: var(--md-teal-text); font-size: 18px; }
.faq-glossary-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
}
.faq-glossary-dl dt {
  font-weight: 600;
  color: var(--md-teal-text);
  font-size: 14px;
}
.faq-glossary-dl dd {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--md-soft);
}
.faq-glossary-dl a { color: var(--md-teal-text); text-decoration: none; }
.faq-glossary-dl a:hover { text-decoration: underline; }

.faq-review-stamp {
  margin: 12px 20px 16px;
  padding: 8px 12px;
  background: var(--md-bg-mint);
  border-left: 3px solid var(--md-line);
  border-radius: 3px;
  font-size: 12px;
  color: var(--md-muted);
}
.faq-review-stamp time { font-weight: 600; color: var(--md-teal-text); }

@media (min-width: 720px) {
  .faq-glossary-dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .faq-ba-pair { grid-template-columns: 1fr; }
  .faq-ba-img img { height: 200px; }
}

.faq-authority-baseline { line-height: 1.55; }
.faq-authority-baseline a { color: var(--md-teal-text); text-decoration: underline; }

.faq-item {
  border-bottom: 1px solid var(--md-line);
  padding-bottom: 28px;
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2.3vw, 26px);
  margin: 0 0 12px;
  color: var(--md-teal-text);
  scroll-margin-top: 80px;
}
.faq-snippet {
  font-size: 16px;
  line-height: 1.65;
  background: var(--md-bg-mint);
  padding: 14px 18px;
  border-radius: 6px;
  font-weight: 500;
  margin-bottom: 14px;
}
.faq-expanded { font-size: 15px; line-height: 1.7; color: var(--md-soft); }
.faq-expanded p { margin: 0 0 12px; }
.faq-expanded a {
  color: var(--md-teal-text);
  text-decoration: underline;
}
.faq-expanded cite {
  font-style: italic;
  color: var(--md-muted);
}

.faq-related, .faq-sources {
  background: var(--md-bg-soft);
  border: 1px solid var(--md-line);
  padding: 24px;
  border-radius: 6px;
}
.faq-related h2, .faq-sources h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--md-teal-text);
}
.faq-related ul, .faq-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-related li, .faq-sources li {
  margin: 8px 0;
  font-size: 14px;
}
.faq-related a, .faq-sources a {
  color: var(--md-teal-text);
  text-decoration: none;
}
.faq-related a:hover, .faq-sources a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .faq-container {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
  /* Left column: author-box (top) + sticky TOC (below) */
  .faq-author-box { grid-column: 1; grid-row: 1; }
  .faq-toc {
    grid-column: 1;
    grid-row: 2 / span 99;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    align-self: start;
  }
  .faq-toc ol { columns: 1; }
  /* Everything else in column 2 (hero left-aligned, sections stacked) */
  .faq-hero,
  .faq-clinic-voice,
  .faq-video,
  .faq-comparison,
  .faq-imagery,
  .faq-before-after,
  .faq-case-studies,
  .faq-questions,
  .faq-canonical-links,
  .faq-related,
  .faq-reviews,
  .faq-sources,
  .faq-glossary {
    grid-column: 2;
  }
  .faq-hero { text-align: left; padding: 40px 0 20px; }
  /* Video frame: smaller on desktop (portrait video taking 240px width =
     427px height is reasonable; 320px = 570px was too dominant). */
  .faq-video-frame { max-width: 240px; margin: 0 auto; }
}
