/* WordPress additions on top of the design stylesheet (omni.css) */

/* footer fourth column (from the design's inline style) */
@media (min-width:1025px){.foot-in:has(.foot-more){grid-template-columns:1.2fr 1fr 1fr 1fr}}
@media (max-width:1024px){.foot-in:has(.foot-more){grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}.foot-in:has(.foot-more) > div:first-child,.foot-in:has(.foot-more) > .foot-note{grid-column:1 / -1}}

/* logged-in admin bar: keep the fixed header below it */
body.admin-bar .head{top:32px}
@media (max-width:782px){body.admin-bar .head{top:46px}}
@media (max-width:600px){#wpadminbar{position:fixed}}

/* optional logo image in the header */
.brand-logo{display:block;height:44px;width:auto}

/* plain inner pages (until each page gets its own sections) */
.od-page{padding:150px 0 90px}
.od-narrow{max-width:860px}
.od-page h1{margin:0 0 28px}
.od-content > * + *{margin-top:1em}
.od-content img{max-width:100%;height:auto}
.od-post{padding:22px 0;border-bottom:1px solid var(--line)}

/* Contact page: the site's Gravity Form styled like the design's form box */
.cform-gf .gform_wrapper.gform-theme{--gf-ctrl-border-color:var(--line);--gf-ctrl-radius:14px;margin:0}
.cform-gf .gform_heading{display:none}
.cform-gf .gform_fields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px!important}
.cform-gf .gfield{grid-column:1 / -1!important}
.cform-gf .gfield--type-email,.cform-gf .gfield--type-phone{grid-column:span 1!important}
.cform-gf .gfield_label,.cform-gf .gform-field-label:not(.gform-field-label--type-inline):not(.gform-field-label--type-sub){font:600 .8125rem/1.3 var(--sans)!important;letter-spacing:.04em;color:var(--ink-2)!important;margin:0 0 8px!important}
.cform-gf .gfield_required{color:var(--ink-3)!important;font-weight:500}
.cform-gf .gfield_required .gfield_required_text{font-size:0}
.cform-gf .gfield_required .gfield_required_text::after{content:"*";font-size:.8125rem}
.cform-gf input:not([type=checkbox]):not([type=submit]):not([type=hidden]),.cform-gf textarea{width:100%!important;min-height:52px!important;padding:14px 18px!important;border-radius:14px!important;border:1px solid var(--line)!important;background:var(--pearl)!important;font:400 1rem/1.4 var(--sans)!important;color:var(--ink)!important;box-shadow:none!important;transition:border-color .2s,box-shadow .2s,background .2s}
.cform-gf input:not([type=checkbox]):not([type=submit]):focus,.cform-gf textarea:focus{outline:none!important;border-color:var(--gold)!important;background:var(--white)!important;box-shadow:0 0 0 4px rgba(201,168,76,.18)!important}
.cform-gf textarea{min-height:150px!important;resize:vertical}
.cform-gf .gfield--type-consent .gfield_label{display:none}
.cform-gf .ginput_container_consent{display:flex;align-items:center;gap:10px;min-height:44px}
.cform-gf .ginput_container_consent input{width:20px!important;height:20px!important;accent-color:var(--gold);margin:0}
.cform-gf .gfield_consent_label{font:500 .8125rem/1.3 var(--sans)!important;color:var(--ink-2)!important}
.cform-gf .gfield_consent_label a{color:var(--gold-ink);font-weight:600;text-decoration:underline;text-underline-offset:2px}
@media(hover:hover){.cform-gf .gfield_consent_label a:hover{color:var(--graphite)}}
.cform-gf .gform_footer{padding:0!important;margin-top:18px!important}
.cform-gf .gform_footer input[type=submit],.cform-gf .gform_button{min-width:180px;min-height:52px!important;padding:0 30px!important;border:0!important;border-radius:999px!important;background:var(--gold)!important;color:var(--ink)!important;font:700 .8125rem/1 var(--sans)!important;letter-spacing:.12em!important;text-transform:uppercase;cursor:pointer;box-shadow:none!important}
.cform-gf .gform_footer input[type=submit]:hover{background:var(--gold-2,#d8bb6a)!important}
.cform-gf .gfield_description.gfield_charcount{font-size:.75rem;color:var(--ink-3)}
@media(max-width:600px){.cform-gf .gform_fields{grid-template-columns:1fr!important}.cform-gf .gfield--type-email,.cform-gf .gfield--type-phone{grid-column:1 / -1!important}.cform-gf .gform_footer input[type=submit]{width:100%}}

/* Phone check (Beth, 24 Nov): every stand-alone button or link at least 40px tall, no text under 12px.
   Inline links inside a sentence keep their text height (WCAG 2.5.8 exception). */
@media (max-width:760px){
  .glance dd > a:only-child,
  .st-note > a[href^="tel:"],
  .st-note p > a[href^="tel:"],
  .lg-body p > a:only-child{display:inline-flex;align-items:center;min-height:40px}
  .bl-more,.bh-more{min-height:40px}
  .sa-card-k{font-size:12px}
}

/* Technology cards are light (design update 25 Nov 2026, Part A item 5): same values as redesign/assets/css/inner.css, where .it-big keeps the normal .it card colours */
.it-big{grid-column:1/-1;padding:32px 34px 34px;display:grid;grid-template-columns:auto 1fr;column-gap:22px;align-items:center;background:var(--white);border-color:var(--line);color:inherit}
.it-big::after{content:none}
.it-big .it-ic{grid-row:span 2;width:72px;height:72px;margin:0;background:var(--pearl);border-radius:50%}
.it-big .it-ic svg{width:38px;height:38px;stroke:var(--gold-ink)}
.it-big .it-k{font-size:1.9rem;color:var(--ink)}
.it-big p{font-size:1.0625rem;color:var(--ink-2)}

/* Services heading on one line (27 Nov 2026): stacked head set by nav.js when the heading cannot fit beside its side text */
.sec-split.is-stack{grid-template-columns:1fr}
.sec-split.is-stack h2{white-space:nowrap;text-wrap:nowrap}
/* Beth 27 Nov 2026: hide the side text when the heading needs the full width */
.sec-split.is-stack .sec-lead{display:none}

/* From design omni.css (25 Nov 2026), added 27 Nov 2026: */
.journey-head h2{max-width:none}
/* keep short phrases together in headings (Beth, 25 Nov 2026: no word alone on the last line) */
.nw{white-space:nowrap}

/* 25 Nov 2026: Blog added to the main menu (Beth). Tighter menu spacing on small laptops so Book Online stays inside the header */
@media(min-width:1025px) and (max-width:1365px){.nav{gap:13px}.head-in{gap:12px}.nav > a,.nav .nav-dd-top{font-size:.875rem}}
@media(min-width:1025px) and (max-width:1179px){.nav{gap:8px}.nav > a,.nav .nav-dd-top{font-size:.8125rem}.nav-dd-btn{width:22px}}
@media(min-width:1280px) and (max-width:1365px){.nav{gap:9px}.head-in{gap:10px}}
/* 25 Nov 2026: Spanish view (ES switch) has longer menu words; header buttons never wrap, and the menu tightens a little in Spanish */
.head-cta .btn,html.lang-es .head-cta .btn{white-space:nowrap}
@media(min-width:1025px) and (max-width:1599px){html.lang-es .nav{gap:12px}html.lang-es .head-in{gap:12px}html.lang-es .nav > a,html.lang-es .nav .nav-dd-top{font-size:.875rem}}
@media(min-width:1025px) and (max-width:1279px){html.lang-es .nav{gap:7px}html.lang-es .nav > a,html.lang-es .nav .nav-dd-top{font-size:.78rem}}
@media(min-width:1025px) and (max-width:1439px){html.lang-es .head-phone{display:none}}
@media(min-width:1600px){html.lang-es .nav{gap:14px}html.lang-es .head-in{gap:14px}html.lang-es .nav > a,html.lang-es .nav .nav-dd-top{font-size:.875rem}}
@media(min-width:1025px) and (max-width:1179px){html.lang-es .nav{gap:3px}html.lang-es .head-in{gap:8px}html.lang-es .nav > a,html.lang-es .nav .nav-dd-top{font-size:.72rem}}
/* Back to top button (Beth 25 Nov 2026) */
.to-top{position:fixed;z-index:41;right:calc(24px + env(safe-area-inset-right,0px));bottom:calc(84px + env(safe-area-inset-bottom,0px));width:48px;height:48px;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;background:var(--graphite);color:var(--gold-2);border:1.5px solid var(--gold-line);box-shadow:0 10px 26px rgba(0,0,0,.22);opacity:0;visibility:hidden;transform:translateY(12px);pointer-events:none;transition:opacity .35s,transform .35s var(--ease),visibility 0s linear .35s,background .25s,color .25s}
.to-top.show{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition-delay:0s}
@media(hover:hover){.to-top:hover{background:var(--gold);color:var(--graphite);border-color:var(--gold)}}
.to-top:focus-visible{outline:2px solid var(--graphite);outline-offset:3px;box-shadow:0 0 0 6px var(--white),0 10px 26px rgba(0,0,0,.22)}
main:focus,h1[tabindex="-1"]:focus{outline:none}
@media print{.to-top{display:none}}
@media(max-width:1024px){.to-top{right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(84px + env(safe-area-inset-bottom,0px));width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.to-top{transition:none}}

/* General Dentistry card: toothbrush sits at the bottom of a tall photo, crop onto it at every width (design does this on phones only; Beth 27 Nov) */
.svc-photo img[src$="toothbrush.jpg"]{object-position:50% 100%}

/* Phone and tablet overlaps (Beth, 27 Nov 2026). At 1024px and below the theme shows the Call / Book Online bar (.mbar)
   fixed to the bottom of the screen, so the floating buttons are kept clear of it and of the page headings. */
@media (max-width: 1024px) {
	/* Zocdoc's own floating "Book Online" sat on top of the bar's Book Online, which opens the same Zocdoc page */
	.zd-sticky-button { display: none !important; }
	/* Zocdoc's first-visit prompt opens above the bar instead of over it */
	.zd-alert-box { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
	/* Accessibility toolbar: the toggle moves from beside the headings to the lower right, above the back-to-top button;
	   its panel opens upward from the toggle */
	#pojo-a11y-toolbar { top: auto !important; bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important; }
	#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle { top: auto !important; bottom: 0 !important; }
}

/* Back to top on phones and tablets (Beth, 27 Nov 2026: it covered the edge of the text beside it).
   At 1024px and below it sits inside the Call / Book Online bar, in its own slot on the right, so it never covers page text.
   The slot is kept even while the button is hidden, so the bar's buttons never move. */
@media (max-width: 1024px) {
	body:has(.mbar) .mbar { padding-right: calc(max(16px, env(safe-area-inset-right, 0px)) + 54px); }
	body:has(.mbar) .to-top { z-index: 46; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; box-shadow: none; }
	/* the accessibility toggle stays above it, now just above the bar */
	body:has(.mbar) #pojo-a11y-toolbar { bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Footer: office hours and the Facebook / Yelp / Google profile links (Spencer, 1 Dec 2026) */
.foot-hours{margin-top:14px;line-height:1.7}
.foot-social{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.foot .foot-social a{display:inline-flex;align-items:center;min-height:36px;padding:0 16px;border:1px solid rgba(255,255,255,.28);border-radius:999px;color:var(--on-dark);text-decoration:none;font-size:.875rem}
@media(hover:hover){.foot .foot-social a:hover{border-color:var(--gold-2);color:var(--gold-2)}}
@media(max-width:1024px){.foot .foot-social a{min-height:44px}}

/* Zocdoc's own floating "Book Online" button is hidden on desktop too (Spencer, 2 Dec 2026); it covered the site's gold Book Online button.
   Zocdoc's "See available times" prompt stays as it is. */
.zd-sticky-button { display: none !important; }
