/* ==========================================================================
   D'AMICO DENTAL CARE — PORCELAIN VENEERS (page CSS)
   Site Assets Manager -> Edit Page -> "Page Assets (CSS / JS)" -> CSS
   Compiles to /wp-content/uploads/site-assets/css/pages/porcelain-veneers.css
   Loads ONLY on /porcelain-veneers/

   Everything reusable lives in Global CSS under [data-ddc-page]. Only the
   page-unique rules are below, all scoped to [data-ddc-page="veneers"].

   RULE ZERO: no backslash may appear anywhere in this file. WordPress runs
   stripslashes() on plugin textarea input, so a CSS escape such as
   content:'\2192' is saved as content:'2192' and the browser prints the
   digits. Use URL-encoded SVG data URIs or CSS-drawn shapes instead.
   ========================================================================== */

/* ── Intro: copy column + live comparison ───────────────────────────────── */
[data-ddc-page="veneers"] .ddc-p-vn-intro { align-items: start; }
[data-ddc-page="veneers"] .ddc-p-vn-copy  { margin-top: 18px; }

[data-ddc-page="veneers"] .ddc-p-vn-copy a,
[data-ddc-page="veneers"] .ddc-p-vn-cand-note a,
[data-ddc-page="veneers"] .ddc-faq__body-inner a {
  color: var(--p-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--p-border);
  transition: text-decoration-color var(--p-transition);
}
[data-ddc-page="veneers"] .ddc-p-vn-copy a:hover,
[data-ddc-page="veneers"] .ddc-p-vn-copy a:focus-visible,
[data-ddc-page="veneers"] .ddc-p-vn-cand-note a:hover,
[data-ddc-page="veneers"] .ddc-p-vn-cand-note a:focus-visible,
[data-ddc-page="veneers"] .ddc-faq__body-inner a:hover,
[data-ddc-page="veneers"] .ddc-faq__body-inner a:focus-visible {
  text-decoration-color: var(--p-gold);
}

/* Caption under either comparison slider */
[data-ddc-page="veneers"] .ddc-p-vn-cmp-note {
  margin-top: 8px;
  font-size: .875rem;
  color: var(--p-warm-gray);
}

/* The intro comparison sits inside a bordered box, so it does not need the
   design system's default top margin on top of the box padding. */
[data-ddc-page="veneers"] .ddc-p-vn-intro .ddc-cmp { margin-top: 18px; max-width: 100%; }

/* ── What veneers are / are not ─────────────────────────────────────────── */
[data-ddc-page="veneers"] .ddc-p-vn-what      { margin-top: 40px; }
[data-ddc-page="veneers"] .ddc-p-vn-not-title { color: var(--p-danger); }
[data-ddc-page="veneers"] .ddc-p-vn-what-note {
  max-width: 720px;
  margin: 32px auto 0;
}

/* ── Reviews ────────────────────────────────────────────────────────────── */
[data-ddc-page="veneers"] .ddc-p-vn-rev-outro { margin-top: 30px; }

/* ── Process ────────────────────────────────────────────────────────────── */
[data-ddc-page="veneers"] .ddc-p-vn-process-lead,
[data-ddc-page="veneers"] .ddc-p-vn-dur-lead,
[data-ddc-page="veneers"] .ddc-p-vn-cand-lead,
[data-ddc-page="veneers"] .ddc-p-vn-faq-lead { margin-top: 14px; }

[data-ddc-page="veneers"] .ddc-p-vn-figure { max-width: 560px; }

/* Figure caption is a sibling of the figure, not a child, so the step-body
   rhythm rule would give it the full 14px gap. Pull it back to the image. */
[data-ddc-page="veneers"] .ddc-p-step__body .ddc-p-figure__cap { margin-top: 8px; }

[data-ddc-page="veneers"] .ddc-p-vn-plan { padding: 22px 22px 24px; }
/* Label kept verbatim from the client's copy, including the trailing "=".
   Deliberately NOT uppercase/letterspaced: an "=" at the end of a tracked-out
   uppercase label reads as a broken character rather than as "equals". */
[data-ddc-page="veneers"] .ddc-p-vn-plan-title {
  margin: 0;
  font-family: var(--p-font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--p-navy);
}

[data-ddc-page="veneers"] .ddc-p-vn-sub {
  margin: 0;
  font-family: var(--p-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--p-navy);
}
[data-ddc-page="veneers"] .ddc-p-vn-cmp2 .ddc-cmp { margin-top: 16px; }

[data-ddc-page="veneers"] .ddc-p-vn-video { max-width: 720px; }

/* ── Durability ─────────────────────────────────────────────────────────── */
[data-ddc-page="veneers"] .ddc-p-vn-dur { grid-template-columns: repeat(3, 1fr); }
[data-ddc-page="veneers"] .ddc-p-vn-dur-note {
  max-width: 720px;
  margin: 28px auto 0;
}

/* ── Candidacy ──────────────────────────────────────────────────────────── */
[data-ddc-page="veneers"] .ddc-p-vn-cand { margin-top: 40px; grid-template-columns: 1.1fr 1fr; }

[data-ddc-page="veneers"] .ddc-p-vn-cand-title {
  margin-bottom: 18px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
[data-ddc-page="veneers"] .ddc-p-vn-cand-title--no {
  margin-top: 34px;
  color: var(--p-danger);
}

/* Negative candidacy marker. Only this page contrasts a "suitable" and a
   "not suitable" list, so the modifier stays page-local (master rule 6.2).
   The X is white on the same red used for .ddc-p-box--danger, which keeps
   the contrast identical to the sage check it mirrors. */
[data-ddc-page="veneers"] .ddc-p-check--no .ddc-p-check__icon { background: var(--p-danger); }
[data-ddc-page="veneers"] .ddc-p-check--no:hover { background: rgba(181,69,61,.06); }

[data-ddc-page="veneers"] .ddc-p-vn-cand-note {
  margin-top: 26px;
  color: var(--p-warm-gray);
}

/* ── Final CTA notes ────────────────────────────────────────────────────── */
/* Specificity note: [data-ddc-page] .ddc-p-cta p is (0,2,1); a (0,2,0)
   selector here would lose and these margins would silently do nothing. */
[data-ddc-page="veneers"] .ddc-p-cta .ddc-p-vn-cta-note {
  margin-top: 26px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
[data-ddc-page="veneers"] .ddc-p-cta .ddc-p-vn-cta-note + .ddc-p-vn-cta-note { margin-top: 8px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  [data-ddc-page="veneers"] .ddc-p-vn-dur { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  [data-ddc-page="veneers"] .ddc-p-vn-cand { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  [data-ddc-page="veneers"] .ddc-p-vn-dur { grid-template-columns: 1fr; }
  [data-ddc-page="veneers"] .ddc-p-vn-plan { padding: 18px 18px 20px; }
}

/* ── Hero trust strip ───────────────────────────────────────────────────── */
/* This page's three labels are longer than the two-word labels the component
   was built for, so at 1440 they wrap the strip onto a second row with one
   orphaned item. Capping the label measure lets each item wrap internally —
   the two-line arrangement the client's source used — and keeps all three on
   one row down to the 680px breakpoint, where the component stacks anyway. */
[data-ddc-page="veneers"] .ddc-p-trust__label { max-width: 15ch; }