/* Responsive overrides for the 2012 table layout (added 2026-11-24).
   Desktop (wider than 1040px) looks exactly as before; these rules only kick in on smaller screens. */

img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }

/* Tablets / small laptops: let the fixed 1020px page shrink to the screen. */
@media (max-width: 1040px) {
  table[width="1020"], table[width="960"], table[width="660"] { width: 100% !important; }
  /* The slideshow script paints slides at their fixed 1020px size, so on smaller screens
     show the first slide as a static, scalable image instead. */
  .slider-wrapper, .nivoSlider { width: 100% !important; height: auto !important; background: none !important; }
  .nivoSlider > img:first-of-type { display: block !important; position: static !important;
    visibility: visible !important; opacity: 1 !important; width: 100% !important; height: auto !important; }
  .nivoSlider > *:not(img:first-of-type) { display: none !important; }
  .nivo-controlNav, .nivo-directionNav, .nivo-caption { display: none !important; }
}

/* Phones: stack the layout columns. */
@media (max-width: 760px) {
  body { margin: 0; -webkit-text-size-adjust: 100%; }

  table, tbody, tr, td { display: block; width: auto !important; box-sizing: border-box; }
  /* Fixed cell heights (e.g. the 20px cell holding the 65px wordmark) would let content
     spill over the next row once stacked; let any cell with content grow to fit. */
  td[height]:not(:empty) { height: auto !important; }
  td[width="10"], td[width="20"], td[width="30"], td[width="40"], td[width="50"] { display: none; }

  /* Side gutters for each full-width band of the page. */
  table[width="1020"] > tbody > tr > td { padding-left: 16px; padding-right: 16px; }
  table[width="1020"] > tbody > tr > td[style*="padding:25px 40px"] { padding: 20px 16px !important; }
  table[width="1020"] > tbody > tr > td:has(.slider-wrapper) { padding: 0; }

  /* Header: small logo beside the wordmark. */
  td[width="100"] { float: left; width: 72px !important; }
  td[width="100"] img { width: 64px; }
  td[width="100"] + td { margin-left: 80px; }

  /* Top menu: keep the image buttons side by side and let them wrap. */
  td:has(> a > img[id^="Image"]), td:has(> img[id^="Image"]) { display: inline-block; margin: 0 4px 6px 0; }
  table:has(> tbody > tr > td > a > img[id^="Image"]) { margin-top: 8px; }
  img[src*="new_logo"] { display: block; }
  td:has(> a > img[id^="Image"]) img, td:has(> img[id^="Image"]) img { width: 84px; }

  /* Heart-bullet lists: bullet stays beside its text. */
  td[width="16"] { float: left; width: 16px !important; padding-top: 2px !important; }
  td[width="16"] + td { margin-left: 26px; }

  /* Forms page: thumbnail beside its title. */
  td[width="85"] { float: left; width: 72px !important; height: auto !important; margin-right: 12px; }
  td[width="85"] ~ td:last-child { overflow: hidden; padding-top: 24px; }
  tr:has(> td[width="85"]), tr:has(> td[width="16"]) { display: flow-root; }

  /* Column spacing once stacked. */
  td[width="310"], td[width="230"], td[width="580"], td[width="660"] { margin-top: 24px; }

  .titlehead { font-size: 26px; line-height: 32px; }
  .appointhead { font-size: 18px; line-height: 24px; }
  .direction-btn { margin: 8px 0; }
  iframe { width: 100%; height: 280px; }
  img[src*="drop_shadow"] { display: none; }
}

/* Welcome text as real HTML (the slide images had typos baked in).
   Desktop: a panel over the left of the slideshow. Its gradient matches the slides' own background
   exactly (#ddf6f3 -> #e9f9f8 across x 0-400, identical on all three slides), so it hides the
   baked-in text (x 40-410, y 46-312) without touching the photos (which start at x >= 415). */
.slider-wrapper { position: relative; }
.hero-overlay { position: absolute; left: 0; top: 36px; width: 418px; height: 284px; z-index: 7;
  box-sizing: border-box; padding: 4px 0 0 40px;
  background: linear-gradient(90deg, #ddf6f3 0px, #e9f9f8 400px, #e9f9f8 410px, rgba(233,249,248,0) 418px); }
.hero-overlay h1 { font-family: "avenir", "Open Sans", sans-serif; font-weight: normal; text-transform: uppercase;
  color: #5a4123; font-size: 36px; line-height: 38px; margin: 0 0 14px; }
.hero-overlay p { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; color: #333; font-size: 14px;
  line-height: 25px; width: 370px; margin: 0 0 10px; }

/* Phones and tablets: the slideshow can't scale its text, so show the welcome text over the
   heartbeat graphic instead, with a light wash so the brown text stays legible over the teal. */
.mobile-hero { display: none; }
@media (max-width: 1040px) {
  .slider-wrapper { display: none !important; }
  .mobile-hero { display: block; position: relative; overflow: hidden; background: #dff2f1; }
  .mobile-hero img { position: absolute; inset: 0; width: 100% !important; height: 100% !important;
    max-width: none; object-fit: cover; object-position: 100% 50%; }
  .mobile-hero-text { position: relative; min-height: 300px; box-sizing: border-box; padding: 28px 16px 30px;
    background: linear-gradient(90deg, rgba(236,249,248,.88) 0%, rgba(236,249,248,.66) 55%, rgba(236,249,248,.30) 100%);
    text-shadow: 0 0 6px rgba(236,249,248,.95), 0 0 2px rgba(236,249,248,.95); }
  .mobile-hero-text > * { max-width: 560px; }
  .mobile-hero h2 { font-family: "avenir", "Open Sans", sans-serif; font-weight: normal; text-transform: uppercase;
    color: #563d20; font-size: 24px; line-height: 30px; letter-spacing: .3px; margin: 0 0 12px; }
  .mobile-hero p { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; color: #444; font-size: 15px; line-height: 22px; margin: 0 0 10px; }
  .mobile-hero p:last-child { margin-bottom: 0; }
}
@media (min-width: 761px) and (max-width: 1040px) {
  /* Wider screens would reveal the graphic's own baked-in text on its left side, so the graphic
     only fills the right 55% (cropped to the heartbeat lines); the left gets the slides' gradient. */
  .mobile-hero { background: linear-gradient(90deg, #ddf6f3 0%, #e9f9f8 50%); }
  /* Keep the image box no wider than ~1.45x its height (min-height 320px -> 460px): wider than that,
     object-fit:cover would reveal the baked-in text, which ends 420px from the slide's left edge. */
  .mobile-hero img { left: auto; right: 0; width: min(55%, 460px) !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
  .mobile-hero-text { padding: 40px 40px; min-height: 320px;
    background: linear-gradient(90deg, rgba(236,249,248,0) 0%, rgba(236,249,248,0) 40%, rgba(236,249,248,.6) 55%, rgba(236,249,248,.15) 100%); }
  .mobile-hero h2 { font-size: 30px; line-height: 36px; }
  .titlehead { line-height: 1.15; }
}
a[href^="tel:"] { white-space: nowrap; }
