/* Celestia Smiles portfolio demo: notice, Back to Parisa's projects control, booking/intake/contact simulations and the
   disabled-link toast (added by scripts/postprocess-dental-v3-demo.mjs; not part of the WordPress export).
   Colours are the theme's Pearl/Ice palette (--cel-* in assets/css/dental-luxury.css), with fallbacks.
   "the corner controls" itself is styled by a chat script that is not part of this copy. */
:root{--sbd-ink:var(--cel-ink,#142D42);--sbd-blue:var(--cel-blue,#245F87);--sbd-blue-h:var(--cel-blue-hover,#1B4765);--sbd-ice:var(--cel-ice,#E8F2F8);--sbd-pearl:var(--cel-pearl,#F7FAFC);--sbd-border:var(--cel-border,#D1DEE8);--sbd-slate:var(--cel-slate,#506477);--sbd-sans:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;--sbd-serif:"Playfair Display","Cormorant Garamond",Georgia,serif}

/* Notice (static, above the sticky header; scrolls away) */
.sbdemo-notice{position:relative;z-index:1001;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.35rem .65rem;margin:0;padding:.5rem 1rem;background:#0B1724;color:#E8F2F8;font:500 13px/1.4 var(--sbd-sans);text-align:center}
.sbdemo-notice strong{font-weight:700;color:#fff}
.sbdemo-notice__tag{display:inline-block;padding:.1rem .5rem;border:1px solid rgba(212,178,109,.55);border-radius:999px;color:#E9D3A4;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}

/* Back to Parisa's projects (same control as the Plumbing and Dental demos) */
/* The template's top padding on <main> (inline style) shows as a white strip between the dark notice and the sticky header. */
main#wp--skip-link--target{padding-top:0!important}

a.sbdemo-back{position:fixed;z-index:1200;left:calc(24px + env(safe-area-inset-left,0px));bottom:calc(24px + env(safe-area-inset-bottom,0px));display:inline-flex;align-items:center;justify-content:center;gap:.45rem;box-sizing:border-box;min-height:44px;min-width:44px;margin:0;padding:0 .95rem 0 .75rem;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:#0b1f33;color:#fff;font:700 14px/1.15 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;box-shadow:0 4px 14px rgba(11,31,51,.22);transition:background-color .15s ease,box-shadow .15s ease}
a.sbdemo-back:hover{background:#17395a;color:#fff;text-decoration:none;box-shadow:0 6px 18px rgba(11,31,51,.3)}
a.sbdemo-back:focus{outline:none}
a.sbdemo-back:focus-visible{outline:3px solid #38bdf8;outline-offset:2px}
.sbdemo-back__icon{flex:none;width:18px;height:18px}
.celestia-footer::after{content:"";display:block;height:84px}
html{scroll-padding-bottom:84px}
@media (max-width:781px){
  a.sbdemo-back{left:calc(12px + env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));flex-direction:column;gap:3px;width:66px;height:54px;min-height:54px;padding:4px 3px;border-radius:12px;font-size:10.5px;line-height:1.1;white-space:normal;text-align:center}
  a.sbdemo-back .sbdemo-back__icon{width:16px;height:16px}
  /* Sit above the theme's fixed Call/Book bar, like the chat launcher (studio-chat.css). */
  body.has-studio-sticky-bar a.sbdemo-back{bottom:calc(var(--sb-sticky-h,4.25rem) + env(safe-area-inset-bottom,0px) + 12px)}
  .sbdemo-notice{gap:.25rem .5rem;padding:.4rem .75rem;font-size:12px;line-height:1.35}
  .sbdemo-notice__tag{font-size:10px;padding:.05rem .45rem}
  .celestia-footer::after{height:80px}
  body.celestia-drawer-open a.sbdemo-back,body:has(.sbdock--page-field) a.sbdemo-back,body:has(.sbdock--open) a.sbdemo-back,body.celestia-drawer-open .sbdock-launcher{display:none}
}
@media (prefers-reduced-motion:reduce){a.sbdemo-back{transition:none}}
@media print{a.sbdemo-back,.sbdemo-toast{display:none}}

/* Toast for the disabled phone, email and map links */
.sbdemo-toast{position:fixed;z-index:1300;left:50%;top:calc(16px + env(safe-area-inset-top,0px));max-width:min(92vw,30rem);box-sizing:border-box;padding:.75rem 1rem;border-radius:12px;background:#0B1724;color:#fff;font:500 14px/1.45 var(--sbd-sans);box-shadow:0 12px 32px rgba(11,23,36,.28);opacity:0;pointer-events:none;transform:translate(-50%,-8px);transition:opacity .2s ease,transform .2s ease}
.sbdemo-toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.sbdemo-toast{transition:none}}

/* Author display rules (e.g. .sbdemo-intake{display:flex}) must not override the hidden attribute. */
[class*="sbdemo-"][hidden],form[data-sbdemo-sim][hidden]{display:none!important}
/* Compact and step-aside floating controls on phones: /demos/dental-v3/_sbdemo/float.css (shared). */
/* Kept hidden while a demo form button is being pressed (see initPressGuard in demo.js). */
body.sbdemo-pressing a.sbdemo-back,body.sbdemo-pressing .sbdock-launcher{display:none!important}
.sbdemo-visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Shared buttons and fields of the simulations */
.sbdemo-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:48px;padding:.75rem 1.5rem;border:1px solid var(--sbd-blue);border-radius:999px;background:var(--sbd-blue);color:#fff;font:600 15px/1.2 var(--sbd-sans);letter-spacing:.01em;text-decoration:none;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.sbdemo-btn:hover{background:var(--sbd-blue-h);border-color:var(--sbd-blue-h);color:#fff}
.sbdemo-btn:focus-visible,.sbdemo-choice:focus-visible,.sbdemo-day:focus-visible,.sbdemo-time:focus-visible{outline:3px solid #7CC4E4;outline-offset:2px}
.sbdemo-btn[disabled]{opacity:.45;cursor:not-allowed}
.sbdemo-btn--ghost{background:#fff;color:var(--sbd-ink);border-color:var(--sbd-border)}
.sbdemo-btn--ghost:hover{background:var(--sbd-ice);color:var(--sbd-ink);border-color:var(--sbd-blue)}
.sbdemo-pill{display:inline-block;padding:.2rem .6rem;border-radius:999px;background:var(--sbd-ice);color:var(--sbd-blue);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.sbdemo-form,.sbdemo-intake{font-family:var(--sbd-sans);color:var(--sbd-ink)}
.sbdemo-field{display:flex;flex-direction:column;gap:.4rem;margin:0 0 1rem;min-width:0}
.sbdemo-field label,.sbdemo-legend{font-size:14px;font-weight:600;color:var(--sbd-ink)}
.sbdemo-field small{font-size:12.5px;color:var(--sbd-slate)}
.sbdemo-field input,.sbdemo-field select,.sbdemo-field textarea{box-sizing:border-box;width:100%;min-height:48px;padding:.7rem .9rem;border:1px solid var(--sbd-border);border-radius:12px;background:#fff;color:var(--sbd-ink);font:400 16px/1.4 var(--sbd-sans)}
.sbdemo-field textarea{min-height:96px;resize:vertical}
.sbdemo-field input:focus,.sbdemo-field select:focus,.sbdemo-field textarea:focus{outline:none;border-color:var(--sbd-blue);box-shadow:0 0 0 3px rgba(36,95,135,.18)}
.sbdemo-field [aria-invalid=true]{border-color:#B42318}
.sbdemo-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}
.sbdemo-check{display:flex;align-items:flex-start;gap:.65rem;margin:.25rem 0 .8rem;font-size:14.5px;line-height:1.45}
.sbdemo-check input{flex:none;width:20px;height:20px;margin:.1rem 0 0;accent-color:var(--sbd-blue)}
.sbdemo-error{min-height:1.2em;margin:.25rem 0 .5rem;color:#B42318;font-size:14px}
.sbdemo-error:empty{min-height:0;margin:0}
@media (max-width:600px){.sbdemo-grid2{grid-template-columns:1fr}}

/* Booking simulation */
.sbdemo-book{box-sizing:border-box;padding:clamp(1rem,3vw,2rem);font-family:var(--sbd-sans);color:var(--sbd-ink)}
.sbdemo-book__badge{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin-bottom:1.25rem;font-size:13.5px;color:var(--sbd-slate)}
.sbdemo-steps{display:flex;gap:.5rem;margin:0 0 1.5rem;padding:0;list-style:none;counter-reset:none}
.sbdemo-steps li{flex:1 1 0;display:flex;align-items:center;gap:.5rem;min-width:0;padding-top:.6rem;border-top:3px solid var(--sbd-border);font-size:13px;color:var(--sbd-slate)}
.sbdemo-steps li.is-done{border-color:var(--sbd-blue);color:var(--sbd-ink)}
.sbdemo-steps li.is-current{border-color:var(--sbd-ink);color:var(--sbd-ink);font-weight:700}
.sbdemo-steps__n{flex:none;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--sbd-ice);font-size:12px;font-weight:700}
.sbdemo-steps__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){.sbdemo-steps li:not(.is-current) .sbdemo-steps__label{display:none}.sbdemo-steps li.is-current{flex:3 1 0}}
.sbdemo-book__title{margin:0 0 .5rem;font-family:var(--sbd-serif);font-size:clamp(1.5rem,3vw,2rem);font-weight:600;line-height:1.2;color:var(--sbd-ink)}
.sbdemo-book__title:focus{outline:none}
.sbdemo-book__meta{margin:0 0 1rem;font-size:14px;color:var(--sbd-slate)}
.sbdemo-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.75rem;margin:1rem 0}
.sbdemo-choice{display:flex;flex-direction:column;align-items:flex-start;gap:.3rem;min-height:48px;padding:1rem 1.1rem;border:1px solid var(--sbd-border);border-radius:14px;background:#fff;color:var(--sbd-ink);font:400 14px/1.4 var(--sbd-sans);text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.sbdemo-choice strong{font-size:15.5px;font-weight:700}
.sbdemo-choice span{color:var(--sbd-slate)}
.sbdemo-choice em{font-style:normal;font-size:12.5px;font-weight:600;color:var(--sbd-blue)}
.sbdemo-choice:hover,.sbdemo-choice.is-selected{border-color:var(--sbd-blue);box-shadow:0 8px 24px -12px rgba(36,95,135,.45)}
.sbdemo-choice.is-selected{background:var(--sbd-pearl)}
.sbdemo-days{display:flex;gap:.5rem;margin:1rem 0;padding-bottom:.35rem;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.sbdemo-day{flex:none;display:flex;flex-direction:column;align-items:center;gap:.1rem;width:4.4rem;padding:.65rem .25rem;border:1px solid var(--sbd-border);border-radius:14px;background:#fff;color:var(--sbd-ink);font:500 12px/1.3 var(--sbd-sans);scroll-snap-align:start;cursor:pointer}
.sbdemo-day strong{font-family:var(--sbd-serif);font-size:20px;font-weight:600}
.sbdemo-day.is-selected,.sbdemo-time.is-selected{border-color:var(--sbd-ink);background:var(--sbd-ink);color:#fff}
.sbdemo-times__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(6.5rem,1fr));gap:.5rem;margin-bottom:1rem}
.sbdemo-time{min-height:44px;padding:.6rem .5rem;border:1px solid var(--sbd-border);border-radius:10px;background:#fff;color:var(--sbd-ink);font:600 14px/1.2 var(--sbd-sans);cursor:pointer}
.sbdemo-time:hover,.sbdemo-day:hover{border-color:var(--sbd-blue)}
.sbdemo-book__nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-top:1.25rem}
.sbdemo-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.5rem;margin:1rem 0;padding:1.25rem;border:1px solid var(--sbd-border);border-radius:14px;background:var(--sbd-pearl)}
.sbdemo-summary dt{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--sbd-slate)}
.sbdemo-summary dd{margin:.2rem 0 0;font-size:15px;font-weight:600;overflow-wrap:anywhere}
@media (max-width:520px){.sbdemo-summary{grid-template-columns:1fr}.sbdemo-book__nav .sbdemo-btn{flex:1 1 100%}}

/* Success panels (booking, intake, contact) */
.sbdemo-success{display:flex;flex-direction:column;align-items:flex-start;gap:.6rem;box-sizing:border-box;padding:clamp(1.25rem,3vw,2rem);border:1px solid var(--sbd-border);border-radius:16px;background:linear-gradient(180deg,#fff,var(--sbd-pearl));font-family:var(--sbd-sans);color:var(--sbd-ink)}
.sbdemo-success p{margin:0;font-size:15px;line-height:1.55}
.sbdemo-success__icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--sbd-ice);color:var(--sbd-blue)}
.sbdemo-success__title,.sbdemo-success .sbdemo-book__title{margin:0;font-family:var(--sbd-serif);font-size:clamp(1.35rem,3vw,1.75rem);font-weight:600;line-height:1.2}
.sbdemo-success__title:focus{outline:none}
.sbdemo-success__note{padding:.6rem .8rem;border-radius:10px;background:var(--sbd-ice);color:var(--sbd-ink);font-size:13.5px!important}
.sbdemo-ref strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.06em}
.sbdemo-success--booking .sbdemo-book__nav{width:100%}

/* Intake simulation */
.sbdemo-intake{display:flex;flex-direction:column;gap:1.5rem}
.sbdemo-intake fieldset{margin:0;padding:clamp(1rem,3vw,1.5rem);border:1px solid var(--sbd-border);border-radius:16px;background:#fff;min-width:0}
.sbdemo-intake legend{padding:0 .4rem;font-family:var(--sbd-serif);font-size:1.25rem;font-weight:600;color:var(--sbd-ink)}
.sbdemo-intake__hint{margin:-.25rem 0 1rem;font-size:13.5px;color:var(--sbd-slate)}
.sbdemo-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:.5rem 1rem;margin:.5rem 0 1rem;padding:0;border:0}
.sbdemo-options .sbdemo-check{margin:0}
.sbdemo-intake__actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem}
.sbdemo-intake__actions p{margin:0;font-size:13.5px;color:var(--sbd-slate)}

/* ---- 2026-11-08 audit fixes ---- */
/* Line icons that replace the source's emoji (one set: 24px grid, 1.8 stroke, theme blue). */
.sbdemo-ico{display:inline-block;flex:none;width:1.05em;height:1.05em;margin-right:.45em;vertical-align:-.14em;color:var(--sbd-blue);stroke:currentColor}
h2 .sbdemo-ico,h3 .sbdemo-ico{width:.9em;height:.9em;vertical-align:-.08em}

/* 3D hero: the static poster is the hero image; on desktop the model fades in over it once rendered (demo.js). */
.celestia-tooth-viewport{position:relative}
.celestia-tooth-poster{display:block;width:100%;max-width:480px;height:480px;margin:0 auto;object-fit:contain;object-position:50% 50%;transition:opacity .6s ease}
.celestia-tooth-poster.is-covered{opacity:0}
.celestia-tooth-viewport>model-viewer{position:absolute;inset:0;margin:auto;transition:opacity .6s ease}
.celestia-tooth-viewport>model-viewer.is-pending{opacity:0}
@media (max-width:781px){.celestia-tooth-poster{max-width:250px;height:250px}}
@media (prefers-reduced-motion:reduce){.celestia-tooth-poster,.celestia-tooth-viewport>model-viewer{transition:none}}

/* Footer credit */
.celestia-footer-legal a.sbdemo-credit{color:inherit;text-decoration:underline;text-underline-offset:2px}
.celestia-footer-legal a.sbdemo-credit:hover{color:#fff}

/* WCAG AA contrast (measured with axe-core): small text >= 4.5:1, large text >= 3:1, links in text underlined. */
.celestia-subnav-num{color:#3B6684!important}
.celestia-cblock-badge{color:#3B6684!important}
.celestia-cblock-num{color:#5B84A1!important}
body.studio-has-design-style .celestia-comparison-footnote p,.celestia-comparison-footnote p,.celestia-gallery-card-badge{color:#4A6074!important}
.celestia-hours-note>span{color:#4E5F6E!important}
td[style*="color:#888"],p[style*="color:#777"]{color:#5F6B76!important}
main .wp-block-paragraph a:not([class]){text-decoration:underline;text-underline-offset:2px}

.celestia-trow-num,.celestia-featured-num{color:#3B6684!important}
.celestia-hours-note,.celestia-hours-note>span{opacity:1!important;color:#4E5F6E!important}
.celestia-services-section .celestia-eyebrow,.celestia-tech-section .celestia-eyebrow,.celestia-cta-section .celestia-eyebrow{color:#9DC3DF!important}
.celestia-tech-jump-nav{max-width:100%}
.celestia-tech-jump-pill{max-width:100%;white-space:normal;text-align:center}
.celestia-tech-jump-pill{box-sizing:border-box}
/* The owner's photos (2026-11-08): the heads sit high in these frames, so wide frames trim from the bottom, never the hair. */
img.celestia-editorial-hero-img[src$="/_sbdemo/images/team-hygienist.jpg"],img.celestia-editorial-hero-img[src$="/_sbdemo/images/technology-scanner.jpg"],img.celestia-second-doc-img[src$="/_sbdemo/images/dr-rowan-ellery.jpg"]{object-position:50% 0}
