/* page-same-day-crowns.css: page-only additions on top of site.css (no new colors or fonts). */

/* intro: CEREC unit on a soft panel (cutout PNG, transparent lower half cropped away) */
/* web R2-N2: the soft tile moved from the img to ::after so the cutout can feather into it. The cutout's right side is a clipped vertical
   edge in the PNG itself, so the img gets a horizontal mask (last 9% fades) instead of showing the cut. The offset tint block (::before)
   no longer hangs 14px past the right content edge. Fringe note: the white fringe on the dark panel edges is baked into the PNG
   (needs a re-cut); CSS can only shrink it (cutout drawn ~5% smaller via the extra side padding). */
.sdc-machine::before{inset:auto 0 -14px auto}
.sdc-machine::after{content:'';position:absolute;top:0;left:0;right:0;aspect-ratio:519/310;z-index:-1;border-radius:var(--radius-lg);background:radial-gradient(120% 90% at 50% 20%,#ffffff 0%,var(--color-primary-50) 70%);box-shadow:var(--shadow-md);pointer-events:none}
.sdc-machine img{aspect-ratio:519/310;object-fit:cover;object-position:50% 0;padding:clamp(1.25rem,4vw,2.5rem) clamp(1.25rem,4vw,2.5rem) 0;background:none;box-shadow:none;
  -webkit-mask-image:linear-gradient(to right,#000 0,#000 88%,transparent 98%);mask-image:linear-gradient(to right,#000 0,#000 88%,transparent 98%)}
.sdc-facts{list-style:none;display:flex;flex-wrap:wrap;gap:.6rem;margin:1.1rem 0 0;padding:0}
.sdc-facts li{flex:1 1 140px;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius-md);padding:.7rem .9rem;font-size:.85rem;line-height:1.35;color:var(--color-text-secondary)}
.sdc-facts strong{display:block;font-family:'DM Serif Display',Georgia,serif;font-weight:400;font-size:1.2rem;color:var(--color-primary-dark)}

/* steps: self-drawing crown line art (effects.js draws it, then dims) */
.sdc-lineart{position:absolute;top:-1.5rem;right:1.5rem;width:clamp(110px,14vw,190px);height:auto;stroke:var(--color-primary);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
@media (max-width:760px){.sdc-lineart{top:-2.5rem;right:1.5rem;width:96px}}

/* compare table */
.sdc-table-wrap{max-width:960px;margin:0 auto;overflow-x:auto;border-radius:var(--radius-lg);box-shadow:var(--shadow-md);background:#fff;border:1px solid var(--color-border)}
.sdc-table{width:100%;border-collapse:collapse;font-size:.975rem;line-height:1.5}
.sdc-table th,.sdc-table td{padding:1rem 1.25rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--color-border)}
.sdc-table thead th{background:var(--color-primary-dark);color:#fff;font-weight:600;font-size:.9rem}
.sdc-table thead th:nth-child(2){background:var(--color-primary)}
.sdc-table tbody th{font-weight:600;color:var(--color-charcoal);background:var(--color-cream);width:24%}
.sdc-table tbody td:nth-child(2){background:var(--color-primary-50);color:var(--color-charcoal);font-weight:500}
.sdc-table tbody tr:last-child th,.sdc-table tbody tr:last-child td{border-bottom:0}
.sdc-fit{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3rem);max-width:960px;margin:clamp(2rem,4vw,3rem) auto 0}
.sdc-fit h3{font-size:1.3rem;margin-bottom:.5rem}
.sdc-fit-col:last-child{border-left:3px solid var(--color-accent);padding-left:clamp(1rem,3vw,1.75rem)}
@media (max-width:760px){
  .sdc-fit{grid-template-columns:1fr}
  .sdc-table th,.sdc-table td{padding:.8rem .85rem;font-size:.9rem}
}

/* teal band: root canals */
.sdc-band{--bg:#0e6b61;color:#fff}
.sdc-band h2,.sdc-band h3{color:#fff}
.sdc-band p{color:#fff;max-width:62ch}
.sdc-band-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(2rem,5vw,4rem);align-items:start}
.sdc-band-text h2{margin-bottom:1.25rem}
.sdc-band-text p{margin-bottom:1.1rem}
.sdc-band-ctas{display:flex;flex-wrap:wrap;gap:.875rem;margin-top:1.75rem}
.sdc-band-side img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius-lg);box-shadow:0 18px 40px rgba(0,0,0,.25)}
.sdc-signs{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.22);border-radius:var(--radius-lg);padding:1.25rem 1.4rem;margin-top:1.25rem}
.sdc-signs h3{font-size:1.2rem;margin-bottom:.75rem}
.sdc-signs ol{list-style:none;margin:0;padding:0;counter-reset:sign;display:grid;gap:.5rem}
.sdc-signs li{counter-increment:sign;display:grid;grid-template-columns:1.8rem 1fr;gap:.6rem;align-items:baseline;font-size:.95rem;line-height:1.45}
.sdc-signs li::before{content:counter(sign);display:grid;place-items:center;width:1.6rem;height:1.6rem;border-radius:50%;background:#fff;color:var(--color-primary-dark);font-weight:600;font-size:.8rem}
@media (max-width:980px){.sdc-band-grid{grid-template-columns:1fr}}
@media (max-width:640px){.sdc-band-ctas{flex-direction:column;align-items:stretch}.sdc-band-ctas a{justify-content:center;text-align:center}}

/* doctor card section heading */
.sdc-who{font-size:clamp(1.6rem,3vw,2.1rem);margin-bottom:1rem}

/* reading strip + related links */
.sdc-posts{margin-bottom:2rem}
.sdc-related{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.6rem 1rem;font-size:.95rem}
.sdc-related span{font-weight:600;color:var(--color-charcoal)}
.sdc-related a{padding:.45rem .95rem;border:1px solid var(--color-primary-100);border-radius:999px;background:var(--color-primary-50);color:var(--color-primary-dark);font-weight:500}
.sdc-related a:hover{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}

/* six restorative cards: 3 + 3 on desktop, never 4 + 2 */
.sdc-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:980px){.sdc-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.sdc-cards{grid-template-columns:1fr}}

/* keep the aurora drift from widening the page */
.i-section.i-aur{overflow-x:clip}

/* 2026-10-14 ai-tells: no card accent bar, no arch frame, four text cards in two columns */
.i-card-body::before{display:none}
.i-doctor-photo img{border-radius:var(--radius-lg)}
.i-doctor-photo::after{display:none}
.sdc-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:620px){.sdc-cards{grid-template-columns:1fr}}
/* Etman solo portrait at native size or smaller */
.i-doctor-photo img{max-width:246px;aspect-ratio:246/349;margin-inline:auto}

/* soft aurora bands (operator 2026-10-14: less beige, uneven horizontal auroras in orange and green, elegant).
   Host: .i-section.i-aur.acc-k with <div class="aur" aria-hidden="true"></div> first, then an optional
   .aur-tint--coral or .aur-tint--teal sibling that tilts that band's streak colours. */
.i-section.i-aur.acc-k{--aur-k:.45}
.aur-tint{position:absolute;top:-6px;left:50%;width:108vw;margin-left:-54vw;height:calc(var(--seam,220px) + 6px);pointer-events:none;z-index:-1;-webkit-mask:linear-gradient(to bottom,transparent 0,#000 30%,#000 62%,transparent 100%);mask:linear-gradient(to bottom,transparent 0,#000 30%,#000 62%,transparent 100%)}
.aur-tint--coral{background:radial-gradient(ellipse 22% 30% at 72% 46%,rgb(240 129 79/.08),rgb(240 129 79/0) 70%),radial-gradient(ellipse 14% 22% at 88% 58%,rgb(224 124 90/.04),rgb(224 124 90/0) 70%),radial-gradient(ellipse 12% 20% at 34% 52%,rgb(240 129 79/.04),rgb(240 129 79/0) 70%)}
.aur-tint--teal{background:radial-gradient(ellipse 24% 30% at 26% 48%,rgb(43 181 165/.08),rgb(43 181 165/0) 70%),radial-gradient(ellipse 13% 22% at 10% 60%,rgb(26 138 125/.035),rgb(26 138 125/0) 70%),radial-gradient(ellipse 12% 20% at 66% 44%,rgb(43 181 165/.035),rgb(43 181 165/0) 70%)}
@media (prefers-reduced-motion:no-preference){.aur-tint{animation:tintDrift 46s ease-in-out infinite alternate}}
@keyframes tintDrift{from{transform:translate3d(-1.5%,0,0)}to{transform:translate3d(1.5%,8px,0)}}

/* light hero (operator 2026-10-14: "the page isn't bright enough", card to the left): bright photo,
   white liquid-glass card with dark ink, card aligned to the left page edge */
section.page-hero{background:#fff}
section.page-hero::before{background:linear-gradient(90deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 50%)}
@media (min-width:961px){section.page-hero>.container{max-width:none;padding-left:clamp(1.5rem,5.5vw,6rem)}}
section.page-hero .page-hero-panel{max-width:34rem;background:rgba(255,255,255,.78);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);border:1px solid rgba(255,255,255,.75);box-shadow:0 16px 44px rgba(26,23,21,.16),inset 0 1px 0 rgba(255,255,255,.95)}
section.page-hero h1{color:#1a1715;text-shadow:none}
section.page-hero .page-hero-lede{color:#2d2926}
section.page-hero .page-hero-ctas .cta-secondary{background:transparent;border-color:#1a1715;color:#1a1715}
section.page-hero .page-hero-ctas .cta-secondary:hover{background:#1a1715;color:#fff}
section.page-hero .crumbs{color:#4a4440}
section.page-hero .crumbs a{color:#0e6b61}
section.page-hero .crumbs a:hover{color:#1a1715}
section.page-hero .em-hero-note{color:#2d2926}
section.page-hero .em-hero-note a{color:#0e6b61}
@media (max-width:640px){
  section.page-hero::before{background:linear-gradient(to bottom,rgba(255,255,255,0) 0,rgba(255,255,255,0) calc(var(--hp-h) - 110px),#fff var(--hp-h))}
  section.page-hero .page-hero-panel{background:rgba(255,255,255,.88);backdrop-filter:blur(6px) saturate(1.1);-webkit-backdrop-filter:blur(6px) saturate(1.1)}
}
