/* =========================================================
   Implant Center Comparison (/dental-implant-cost/implant-comparison/)
   Page touches on top of css/pages/design-system.css (loaded first). Everything is scoped
   to .page-implant-comparison and only covers what the design system doesn't.
   ========================================================= */

/* ---------- Hero (cover video): h1 is the small eyebrow line, the big line is the offer ---------- */
.page-implant-comparison .icomp-hero-text { max-width: 760px; }
.page-implant-comparison .icomp-hero h1.ds-eyebrow { line-height: 1.5; }

/* ---------- Rich text blocks (bold / links from the lang file) ---------- */
.page-implant-comparison .icomp-prose { margin-top: 24px; }
.page-implant-comparison .ds-section:not(.ds-section--brand) strong { color: var(--ds-navy); font-weight: 600; }
.page-implant-comparison .ds-section--brand strong { color: #fff; }
.page-implant-comparison .ds-lead a,
.page-implant-comparison .icomp-prose a,
.page-implant-comparison .ds-faq-body a { color: var(--ds-brand-600); font-weight: 600; }

/* ---------- Free PDF guide (form card on the brand panel) ---------- */
.page-implant-comparison .icomp-guide-form iframe { min-height: 360px; }
.page-implant-comparison .icomp-consent { margin: 18px 0 0; }
.page-implant-comparison .icomp-guide-img { align-self: center; }
.page-implant-comparison .icomp-guide-img img { display: block; width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.25)); }

/* ---------- Comparison table ---------- */
.page-implant-comparison .icomp-table { min-width: 860px; table-layout: fixed; }
.page-implant-comparison .icomp-table .icomp-feature { width: 19%; }
.page-implant-comparison .icomp-table thead th:not(.icomp-feature) { text-align: center; font-size: 15px; }
.page-implant-comparison .icomp-table tbody th { vertical-align: middle; }
.page-implant-comparison .icomp-yes,
.page-implant-comparison .icomp-no { position: relative; display: block; padding-left: 30px; }
.page-implant-comparison .icomp-yes::before,
.page-implant-comparison .icomp-no::before {
  content: ''; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ds-green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323824b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.page-implant-comparison .icomp-no::before {
  background-color: #fdecec;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0262d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}
.page-implant-comparison .icomp-table-link { margin: 10px 0 0 30px; font-size: 14.5px; }

/* "Looking for the price?" band */
.page-implant-comparison .ds-cta .ds-eyebrow { color: #bdeeff; }

/* "Compare that to corporate chains": card with a .ds-list--cons */
.page-implant-comparison .icomp-chains { margin-top: 26px; }

/* ---------- Patient stories carousel (.ds-carousel of .ds-video-card): three per row ---------- */
.page-implant-comparison .icomp-track { grid-auto-columns: calc((100% - 2 * var(--ds-gap)) / 3); }

/* ---------- We handle everything: five numbered cards ---------- */
.page-implant-comparison .icomp-handle { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.page-implant-comparison .icomp-handle-item { display: flex; flex-direction: column; align-items: flex-start; }
.page-implant-comparison .icomp-handle-item .ds-h3 { margin: 0; }
.page-implant-comparison .icomp-handle-item:last-child { background: var(--ds-brand); border-color: transparent; }
.page-implant-comparison .icomp-handle-item:last-child .ds-num { background: #fff; color: var(--ds-brand-600); }
.page-implant-comparison .icomp-handle-item:last-child .ds-h3,
.page-implant-comparison .icomp-handle-item:last-child strong { color: #fff; }
.page-implant-comparison .icomp-handle-text { max-width: 760px; margin: clamp(32px, 4vw, 48px) auto 0; }

/* ---------- Candidate survey ---------- */
.page-implant-comparison .icomp-survey { align-items: center; }
.page-implant-comparison .icomp-survey-side { position: relative; text-align: center; }
.page-implant-comparison .icomp-survey-model { display: block; width: min(100%, 360px); margin: 0 auto 22px; }
.page-implant-comparison .icomp-survey-side .ds-h3 { max-width: 420px; margin-inline: auto; }
.page-implant-comparison .icomp-survey-arrow { display: block; width: 160px; margin: 18px 0 0 auto; transform: rotate(-12deg); filter: brightness(0) invert(1); opacity: .85; }
.page-implant-comparison .icomp-survey-form { width: 100%; }

/* ---------- Footnotes ---------- */
.page-implant-comparison .icomp-notes { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .page-implant-comparison .icomp-handle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .page-implant-comparison .icomp-track { grid-auto-columns: calc((100% - var(--ds-gap)) / 2); }
  .page-implant-comparison .icomp-survey-arrow { display: none; }
}
@media (max-width: 767px) {
  .page-implant-comparison .icomp-track { grid-auto-columns: 86%; }
  .page-implant-comparison .icomp-handle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-implant-comparison .icomp-handle-item:last-child { grid-column: 1 / -1; }

  /* Phones: each table row becomes a card (feature title + one labelled block per provider) */
  .page-implant-comparison .icomp-table-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
  .page-implant-comparison .icomp-table { min-width: 0; }
  .page-implant-comparison .icomp-table,
  .page-implant-comparison .icomp-table tbody,
  .page-implant-comparison .icomp-table tr,
  .page-implant-comparison .icomp-table th,
  .page-implant-comparison .icomp-table td,
  .page-implant-comparison .icomp-table .icomp-feature { display: block; width: 100%; }
  .page-implant-comparison .icomp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .page-implant-comparison .icomp-table tbody tr { margin-bottom: 16px; overflow: hidden; border: 1px solid var(--ds-line); border-radius: var(--ds-radius-sm); background: #fff; box-shadow: var(--ds-shadow-sm); }
  .page-implant-comparison .icomp-table tbody th { padding: 14px 16px; background: var(--ds-surface); font-size: 16px; }
  .page-implant-comparison .icomp-table td { padding: 14px 16px; }
  .page-implant-comparison .icomp-table tbody tr:last-child > * { border-bottom: 1px solid var(--ds-line); }
  .page-implant-comparison .icomp-table tbody tr > :last-child { border-bottom: 0; }
  .page-implant-comparison .icomp-table td::before { content: attr(data-label); display: block; margin-bottom: 8px; font-family: var(--ds-font-head); font-weight: 700; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ds-muted); }
  .page-implant-comparison .icomp-table td.is-us::before { color: var(--ds-brand-600); }
}
@media (max-width: 479px) {
  .page-implant-comparison .icomp-handle { grid-template-columns: minmax(0, 1fr); }
}
