/* extracted from the design prototype; hover and focus states lifted from
   the tool's style-hover / style-focus attributes into real rules */
*, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; background: #eceff1; color: #414548; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
  h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: pretty; }
  p { margin: 0; }
  a { color: #3aa8a5; text-decoration: none; }
  a:hover { color: #2b8280; }
  summary::-webkit-details-marker { display: none; }
  summary::marker { content: ""; }
  details[open] .gd-tri { transform: rotate(90deg); }
  [data-r="burger"] { display: none; }
  [data-svc-slot] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; aspect-ratio: auto !important; object-fit: cover !important; display: block !important; z-index: 1; }
  [data-svc-slot] img:not(:last-of-type) { display: none !important; }
  [data-svc-slot] > span { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; z-index: 0; }
  [data-svc-slot] > span img { display: none !important; }
  html[data-a11y-links="1"] a { text-decoration: underline !important; }
  html[data-a11y-contrast="1"] header#top,
  html[data-a11y-contrast="1"] nav[data-r="mobilemenu"],
  html[data-a11y-contrast="1"] main,
  html[data-a11y-contrast="1"] footer { filter: contrast(1.3) saturate(1.15); }
  html[data-a11y-motion="1"] * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html[data-a11y-size="1"] body { zoom: 1.15; }
  html[data-a11y-size="2"] body { zoom: 1.3; }
  /* Services dropdown: the prototype lists all 21 services in ONE 270px column,
     which runs ~840px down the page and off the bottom of a laptop screen.
     Flow it into balanced columns instead. Only ever visible above 1080px --
     below that the nav is replaced by the burger menu. */
  @media (min-width: 1081px) {
    [data-services-menu] > span { width: auto !important; }
    [data-services-menu] > span > span {
      display: block !important;
      columns: 2 200px !important;
      column-gap: 10px !important;
      width: 430px !important;
      max-width: calc(100vw - 48px) !important;
      padding: 10px 0 !important;
    }
    [data-services-menu] > span > span > a { display: block !important; break-inside: avoid !important; }
  }
  /* 3 columns only once there is room: at 1320 the 640px panel overran the
     right edge by 9px, because the nav (and so the panel) shifts left with the
     viewport. */
  @media (min-width: 1380px) {
    [data-services-menu] > span > span { columns: 3 200px !important; width: 640px !important; }
  }

  /* Services dropdown opens on hover / keyboard focus by CSS alone, in both the
     tall and the compact (scrolled) header; hydrate.js is not needed for it. */
  @media (hover: hover) and (min-width: 1081px) {
    .nav-svc:hover > [data-services-menu], .nav-svc:focus-within > [data-services-menu] { display: block !important; }
  }
  /* About Us sub-menu (Meet The Team): CSS only, opens on hover and keyboard focus */
  .nav-about { position: relative; }
  .nav-sub { display: none; position: absolute; top: 100%; left: -14px; padding-top: 12px; width: 190px; z-index: 60; }
  .nav-sub a { display: block; padding: 10px 18px; background: #fff; border: 1px solid #e2e6ea; box-shadow: 0 12px 26px -12px rgba(0,0,0,0.25);
    font-family: 'Open Sans', sans-serif; font-size: 14.5px; letter-spacing: 0; text-transform: none; }
  .nav-about:hover .nav-sub, .nav-about:focus-within .nav-sub { display: block; }

  /* Card grids on the long-form service pages: columns follow the number of cards (data-cards, set at build time)
     so no row ends with one lonely card. 2 -> 2, 3 -> 3, 4 -> 2x2, 5 -> 3+2 centred, 6 -> 3x2, 7 -> 4+3 centred,
     8 -> 4x2, 9 -> 3x3, anything else 3 columns. One column on phones (760px and below). */
  [data-cards] { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0,1fr)); }
  [data-cards="1"] { grid-template-columns: minmax(0,1fr); }
  [data-cards="2"], [data-cards="4"] { grid-template-columns: repeat(2, minmax(0,1fr)); }
  [data-cards="8"] { grid-template-columns: repeat(4, minmax(0,1fr)); }
  [data-cards="5"] { grid-template-columns: repeat(6, minmax(0,1fr)); }
  [data-cards="7"] { grid-template-columns: repeat(8, minmax(0,1fr)); }
  [data-cards="5"] > *, [data-cards="7"] > * { grid-column: span 2; }
  [data-cards="5"] > :nth-child(4), [data-cards="7"] > :nth-child(5) { grid-column: 2 / span 2; }

  /* Lists of many short items (data-list-cols): balanced columns on wider screens, one column on phones. */
  ul[data-list-cols] { display: block !important; columns: 3; column-gap: 32px; }
  ul[data-list-cols] > li { break-inside: avoid; margin-bottom: 6px; }
  @media (max-width: 760px) { ul[data-list-cols] { columns: 1; } }

  @media (max-width: 1080px) {
    [data-r="nav"] { display: none !important; }
    [data-r="burger"] { display: flex !important; }
    [data-r="3r"] { grid-template-columns: minmax(0,1fr) !important; }
    [data-r="4"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    [data-r="2"], [data-r="2b"] { grid-template-columns: minmax(0,1fr) !important; }
    /* team group photo: when the band stacks (tablet, phone) show the whole 3:2 photo instead of a fixed-height strip */
    [data-team-photo] { min-height: 0 !important; aspect-ratio: 3 / 2; }
    /* location map: beside the cards it stretches to their full height; stacked it gets a fixed height */
    [data-map-col] { min-height: 0 !important; height: 400px; }
    [data-r="hero"] { padding-top: 60px !important; padding-bottom: 110px !important; }
    [data-r="hero"] h1 { font-size: 42px !important; max-width: 11.5em !important; }
    [data-r="herofade"] { background: linear-gradient(90deg, rgba(233,237,240,0.96) 0%, rgba(233,237,240,0.92) 55%, rgba(233,237,240,0.3) 78%, rgba(233,237,240,0) 92%) !important; }
  }
  @media (max-width: 760px) {
    [data-r="3"], [data-r="4"], [data-r="form"], [data-cards] { grid-template-columns: minmax(0,1fr) !important; }
    [data-map-col] { height: 340px; }
    [data-cards] > * { grid-column: auto !important; }
    [data-r="form"] > * { grid-column: auto !important; }
    [data-r="head"] { flex-wrap: wrap !important; gap: 12px !important; }
    [data-r="head"][style*="align-items:center"] { flex-wrap: nowrap !important; }
    [data-r="head"][style*="align-items:center"] > a:nth-of-type(2) { display: none !important; }
    [data-r="headcol"] { margin-left: 0 !important; width: 100% !important; align-items: stretch !important; }
    [data-r="topbar"] { justify-content: flex-start !important; gap: 14px !important; }
    [data-r="topbar"] > a:last-child { flex: 1 1 100% !important; text-align: center !important; }
    [data-r="burger"] { align-self: stretch !important; justify-content: center !important; margin-bottom: 4px !important; }
    [data-r="footnav"] { align-items: flex-start !important; }
    [data-r="footnav"] nav { justify-content: flex-start !important; gap: 14px 20px !important; }
    [data-r="faqbody"] { padding-left: 24px !important; padding-right: 24px !important; }
    [data-r="float"] { left: 16px !important; right: 16px !important; align-items: stretch !important; }
    [data-r="floatbtn"] { align-self: flex-end !important; }
    h1, [data-r="hero"] h1 { font-size: 32px !important; max-width: none !important; }
    [data-r="h2"] { font-size: 28px !important; }
    [data-r="hero"] { padding-top: 48px !important; padding-bottom: 130px !important; }
    [data-r="herofade"] { background: rgba(233,237,240,0.88) !important; }

    /* ---- mobile header, fixed 2026-09-16 -----------------------------------
       The header is position:fixed, and at the top of the page it renders its
       EXPANDED form: logo, street address, phone, CTA and the Menu button each
       wrapping onto its own row = 322px, 38% of an 844px viewport. Nothing
       reserved that space -- the hero's padding-top above is 48px -- so the
       header painted straight over the first two lines of the <h1> ("Your
       Dedicated Dentist in Vancouver, BC..." was cut down to "Dentistry").
       The compact-on-scroll state was always fine; only the at-top state broke.
       Trim the expanded header to two rows and clear it properly. */
    /* SCOPED TO THE EXPANDED HEADER. Unscoped, these leak into the compact
       header that appears on scroll, where the CTA is still in normal flow --
       the absolutely positioned burger then landed on top of it (they
       overlapped by 41px) and the compact logo grew from 76px to 96px. */
    [data-header="expanded"] [data-r="head"] { position: relative !important; padding-top: 12px !important; padding-bottom: 12px !important; gap: 10px !important; }
    [data-header="expanded"] [data-r="head"] > a:first-of-type { padding-bottom: 0 !important; }
    [data-header="expanded"] [data-r="head"] > a:first-of-type img { width: 96px !important; }
    /* the street address is on /location, in the footer and in the JSON-LD --
       it does not earn a row in a fixed header on a 390px screen */
    [data-header="expanded"] [data-r="topbar"] > a:first-child { display: none !important; }
    [data-header="expanded"] [data-r="topbar"] { flex-wrap: nowrap !important; gap: 10px !important; }
    /* the phone sizes to its content and never wraps -- letting it flex to an
       equal share squeezed "Call Now (604) 260-1571" onto three lines and put
       the header back up to 213px */
    [data-header="expanded"] [data-r="topbar"] > a { white-space: nowrap !important; }
    [data-header="expanded"] [data-r="topbar"] > a[href^="tel:"] { flex: 0 0 auto !important; font-size: 13px !important; }
    [data-header="expanded"] [data-r="topbar"] > a:last-child { flex: 1 1 auto !important; text-align: center !important; justify-content: center !important; padding-left: 10px !important; padding-right: 10px !important; font-size: 12px !important; }
    /* burger out of the flow and up beside the logo: the classic mobile header */
    /* right:20px, not 0 -- the head spans the full 390px and its gutter is
       20px, so right:0 pushed MENU to the screen edge while the row below it
       stopped at 370: the ragged right edge. */
    [data-header="expanded"] [data-r="burger"] { position: absolute !important; top: 10px !important; right: 20px !important; width: auto !important; align-self: auto !important; margin-bottom: 0 !important; }

    /* The COMPACT header (on scroll) is a single row: logo, CTA, Menu. At 390px
       its natural widths are 76 + 207 + 99 = 382 plus gaps against 350px of
       usable width, so Menu ran off the screen edge (R=426). Keep the row and
       shrink the CTA, which is the elastic one. */
    /* same 20px gutter as the expanded header, so the right edge does not shift
       by 8px as the header swaps between its two states */
    [data-header="compact"] [data-r="head"] { flex-wrap: nowrap !important; gap: 10px !important; align-items: center !important; padding-left: 20px !important; padding-right: 20px !important; }
    [data-header="compact"] [data-r="head"] > a:last-of-type { flex: 0 1 auto !important; min-width: 0 !important; white-space: nowrap !important; font-size: 11px !important; letter-spacing: 0 !important; padding-left: 10px !important; padding-right: 10px !important; }
    [data-header="compact"] [data-r="burger"] { flex: 0 0 auto !important; align-self: center !important; justify-content: center !important; margin-bottom: 0 !important; }
  }
  @media (max-width: 420px) {
    [data-r="circ"] { width: 150px !important; height: 150px !important; }
    /* At 390px the phone (183px) + gap + CTA (192px) overran the 350px bar by
       35px and the button ran off-screen. Shrink both a step rather than let
       the row wrap, which would put ~45px back onto a fixed header. */
    [data-header="expanded"] [data-r="topbar"] > a[href^="tel:"] { font-size: 12px !important; }
    [data-header="expanded"] [data-r="topbar"] > a:last-child { font-size: 11px !important; letter-spacing: 0 !important; padding-left: 8px !important; padding-right: 8px !important; }
  }
  /* Phone check 2026-11-15: below 390px the one-line phone + CTA row is wider than the screen and the
     CTA ran off the right edge (R=377 at 360 and 320). Let the CTA (and below 350px the phone too)
     wrap onto two lines instead of overflowing. 390px and up are unchanged. */
  @media (max-width: 389px) {
    [data-header="expanded"] [data-r="topbar"] > a:last-child { white-space: normal !important; min-width: 0 !important; line-height: 1.25 !important; padding-top: 6px !important; padding-bottom: 6px !important; }
    /* same for the compact (scrolled) header, where "Request Appointment" was cut to "REQUEST APPOINTME" */
    [data-header="compact"] [data-r="head"] > a:last-of-type { white-space: normal !important; line-height: 1.2 !important; text-align: center !important; padding-top: 5px !important; padding-bottom: 5px !important; }
  }
  @media (max-width: 349px) {
    [data-header="expanded"] [data-r="topbar"] > a[href^="tel:"] { white-space: normal !important; flex: 0 1 auto !important; min-width: 0 !important; line-height: 1.3 !important; }
  }
  /* Phones: the floating accessibility button. Its wrapper spans the screen width on phones, so it must not
     catch taps on what is under its empty part; and the button steps aside while the page scrolls down
     (hydrate.js sets gdv-float-off) so it does not sit on a form field or the text being read. It comes
     back on any scroll up, near the top and at the bottom of the page. Room beside the footer's last line
     so the button never covers it. */
  @media (max-width: 760px) {
    [data-r="float"] { pointer-events: none; }
    [data-r="float"] > * { pointer-events: auto; }
    [data-r="floatbtn"] { transition: opacity .2s, transform .2s, visibility .2s; }
    [data-r="float"].gdv-float-off [data-r="floatbtn"] { opacity: 0; transform: translateY(24px); visibility: hidden; pointer-events: none; }
    [data-r="footbase"] { padding-right: 86px !important; }
  }
  /* The in-flow spacer above the fixed header is what reserves its space, and
     hydrate.js sizes it from the measured EXPANDED header height. This is the
     no-JS / first-paint fallback: the static 150px default is the desktop
     height, which under-reserves on a tablet (179px). */
  @media (max-width: 1080px) {
    header#top { --gd-header-fallback: 180px; }
  }

  /* Phones: the CDCP notice is a slim strip (headline + Call), so it never covers a form. Full card on wider screens. */
  @media (max-width: 760px) {
    [data-cdcp-card] { left: 12px !important; right: 12px !important; width: auto !important; max-width: none !important; padding: 10px 40px 10px 14px !important; display: flex !important; align-items: center !important; gap: 12px !important; }
    [data-cdcp-card] p { display: none !important; }
    [data-cdcp-card] h3 { font-size: 15.5px !important; line-height: 1.25 !important; flex: 1 1 auto; min-width: 0; }
    [data-cdcp-card] a { margin-top: 0 !important; flex: none; white-space: nowrap; padding: 9px 12px !important; font-size: 14px !important; }
  }

  /* Phones, home page: everything centred (Charlie 2026-11-13: left-justified blocks looked messy next to the centred ones).
     FAQ answers stay left: they are long text. */
  @media (max-width: 760px) {
    [data-home] section { text-align: center !important; }
    [data-home] section p, [data-home] section h1, [data-home] section h2 { margin-left: auto !important; margin-right: auto !important; }
    [data-home] section [style*="flex-wrap:wrap"] { justify-content: center !important; }
    [data-home] [data-hours] { grid-template-columns: auto auto !important; justify-content: center !important; text-align: left !important; }
    [data-home] [data-r="3r"] { text-align: center !important; }
    [data-home] [data-r="3r"] > div { grid-template-columns: minmax(0,1fr) !important; justify-items: center !important; }
    [data-home] [data-r="faqbody"] { text-align: left !important; }
  }

  /* Phones, every inner page (Charlie 2026-11-14, same rule as the home page): headings, short intro blocks, cards and
     buttons centred. Long reading text stays left: [data-long] = the whole block is left (service text, FAQ answers,
     steps, intros); [data-prose] = paragraphs and lists are left but headings inside stay centred (blog and privacy
     bodies, bios). Forms stay as they are. Phone-only, so tablet and desktop cannot change. */
  @media (max-width: 760px) {
    [data-inner] section { text-align: center; }
    [data-inner] section p[style*="max-width"], [data-inner] section h1, [data-inner] section h2 { margin-left: auto !important; margin-right: auto !important; }
    [data-inner] [style*="flex-wrap:wrap"] { justify-content: center !important; }
    [data-inner] [data-hours] { grid-template-columns: auto auto !important; justify-content: center !important; text-align: left !important; }
    [data-inner] [data-long] { text-align: left !important; }
    [data-inner] [data-prose] p, [data-inner] [data-prose] ul, [data-inner] [data-prose] ol, [data-inner] [data-prose] li { text-align: left !important; }
    [data-inner] form { text-align: left; }
    /* shared footer (home included) */
    [data-r="footlogo"] img { margin-left: auto !important; margin-right: auto !important; }
    [data-r="footnav"] { align-items: center !important; text-align: center; }
    [data-r="footnav"] nav { justify-content: center !important; }
    [data-r="footbase"] { justify-content: center !important; text-align: center; gap: 8px 18px !important; }
    [data-r="footbase"] > span { margin-left: 0 !important; }
    [data-r="footnav"] p a { display: block; margin-top: 4px; }
  }

.x1422cbe3:hover{background:#f4f6f7;}
.x1805be64:hover{background:#2b8280;color:#fff;}
.x3c18ba63:hover{background:#f4f6f7;color:#414548;}
.x86cc8b2c:hover{border-color:#3aa8a5;color:#3aa8a5;}
.x89f16f95:hover{color:#3aa8a5;}
.xa848c93a:focus{outline:2px solid #3aa8a5;}
.xbf5fec52:hover{color:#3aa8a5;background:#f4f6f7;}
.xc9eb283b:hover{color:#2b8280;}
.xe7927cea:hover{background:#2b8280;}
