/* dental.css: only what the existing stylesheet does not have. Tokens come from styles.css. */
.brand-logo { display:flex; align-items:center; justify-content:center; align-self:center; justify-self:start; width:max-content; padding:0; background:transparent; text-decoration:none }
.brand-logo img { display:block; width:auto; height:clamp(80px,7.2vw,118px); max-width:none }
.footer-brand-logo { display:inline-block; margin-bottom:12px; text-decoration:none }
.footer-brand-logo img { display:block; width:230px; max-width:100%; height:auto }
.ltd-link { margin:0 0 14px }
.form-status[hidden] { display:none }
.floating-contact { position:fixed; left:18px; bottom:24px; z-index:40; display:flex; flex-direction:column; gap:5px }
.floating-contact-link { display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:50%; background:var(--green-900); color:var(--white); border:2px solid var(--white); box-shadow:0 6px 20px rgba(0,0,0,.35); text-decoration:none }
.floating-contact-link svg { width:24px; height:24px; fill:var(--white) }
.floating-contact-link:hover, .floating-contact-link:focus-visible { background:var(--accent); border-color:var(--green-900) }
.floating-contact-link:hover svg, .floating-contact-link:focus-visible svg { fill:var(--green-900) }
@media (max-width:900px) { .floating-contact { left:14px; bottom:20px } }
@media (max-width:900px) { .brand-logo img { height:66px } }
.dental-section-title { font-family:var(--font-headline); font-size:var(--fs-h2); margin:0 0 28px; color:var(--white) }
.dental-faq details { border-bottom:1px solid var(--line); padding:18px 0 }
.dental-faq summary { cursor:pointer; font-family:var(--font-headline); font-weight:700; font-size:var(--fs-lead); color:var(--green-900); list-style:none }
.dental-faq summary::-webkit-details-marker { display:none }
.dental-faq summary::after { content:"+"; float:left; font-weight:400; color:var(--green-900) }
.dental-faq details[open] summary::after { content:"−" }
.dental-faq p { margin:12px 0 0; max-width:62ch }
.faq-section { padding:clamp(48px,6vw,96px) 0; background:var(--paper) }
.faq-section h2 { font-family:var(--font-headline); font-size:var(--fs-h2); color:var(--green-900); margin:0 0 24px }
.dental-legal { max-width:820px; margin:0 auto; padding:clamp(40px,5vw,80px) 0 }
.dental-legal h1 { font-family:var(--font-headline); font-size:var(--fs-h2); color:var(--green-900) }
.dental-legal h2 { font-family:var(--font-headline); font-size:var(--fs-h3); color:var(--green-900); margin-top:1.6em }
.draft-note { background:var(--sand-200); color:var(--green-900); padding:10px 14px; border-radius:6px; font-size:var(--fs-sm) }
/* Wide screens (Yuval, 19/11/2026, accessibility.html at ~2000px: "הדר צר מדי", the "צור קשר" link painted over the phone block). From 1721px the company stylesheet gives the
   header three wide columns (300px, 1fr, 380px) and widens the header and the page column to 2100px, but only for bodies of the home, team, doctor and service pages.
   Our team page and the three legal pages carry only the class "dental-site", so they got the wide columns inside the OLD 1280px bar and the menu overlapped the phone. */
@media (min-width: 1721px) {
  body.dental-site .shell, body.dental-site .site-header .header-inner { width:min(calc(100% - 120px), 2100px) }
}
@media (min-width: 2200px) {
  body.dental-site .shell, body.dental-site .site-header .header-inner { width:min(calc(100% - 120px), 2560px) }
}
/* Same pages, same cause: the bar stayed 94px while the logo grows to 118px (measured 19/11/2026: the tagline "מרכז לבריאות השן" hung 18px below the bar from 1600px up).
   The home and doctor pages step the bar up with the screen (112, 124, 138, 152px); these four pages now follow the same steps. */
@media (min-width: 901px) { body.dental-site:not(.home-page):not(.doctor-profile-body) .site-header { height:112px; min-height:112px } }
@media (min-width: 1441px) { body.dental-site:not(.home-page):not(.doctor-profile-body) .site-header { height:124px; min-height:124px } }
@media (min-width: 1721px) { body.dental-site:not(.home-page):not(.doctor-profile-body) .site-header { height:138px; min-height:138px } }
@media (min-width: 2200px) { body.dental-site:not(.home-page):not(.doctor-profile-body) .site-header { height:152px; min-height:152px } }

/* Phone audit, 30/11/2026 (the same fixes as on the company site, Yuval: "אותם כללים חלים גם שם"). */
/* A tapped accent button keeps :hover/:focus. The company stylesheet then painted it dark green while its text stayed dark green: the label disappeared. */
.button-accent:hover, .button-accent:focus, .button-accent:active { color:var(--green-900); background-color:var(--accent); border-color:var(--accent) }
@media (hover:hover) { .button-accent:hover { filter:brightness(1.07) } }
.button-accent:focus-visible { outline:3px solid var(--white); outline-offset:0; box-shadow:0 0 0 6px var(--green-900) }
/* While the page shows its own call or WhatsApp button, the floating circles step aside (they sat on the first screen's buttons). phone.js sets the class. */
body.page-contact-shown .floating-contact { visibility:hidden; opacity:0 }
.floating-contact { transition:opacity .2s ease, visibility .2s ease }
@media (prefers-reduced-motion: reduce) { .floating-contact { transition:none } }
/* The team's specialty lines were 12px on a phone. */
.home-page-compact-roster .doctor-card p { font-size:clamp(14px,1.05vw,17px) }
/* While the phone menu is open nothing floats over it (30/11/2026): sideways, the circles and the accessibility button lay
   on the menu's words, so a tap meant for a page could open the dialler or WhatsApp. They come back when the menu closes. */
@media (max-width: 900px) {
  body:has(.menu-toggle[aria-expanded="true"]) .floating-contact,
  body:has(.menu-toggle[aria-expanded="true"]) .accessibility-launcher {
    visibility: hidden !important;
  }
}

/* A phone held sideways is shorter than the open menu: the menu scrolls inside itself, or its last items cannot be reached. */
@media (max-width: 900px) and (max-height: 500px) {
  .site-header .mobile-nav {
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Keyboard focus on the header's WhatsApp button was white on turquoise, 2.6:1. */
.site-header a.header-cta:focus-visible:not(:hover) {
  color: var(--green-900) !important;
}
/* The menu now scrolls to its target on the same page: the questions heading must land below the sticky header, like the other targets. */
@media (max-width:900px) { #faq { scroll-margin-top:88px } }
