/* 2026-11-05: refinement within the layout accepted in the clinic meeting.
   Preserve the three alternating reasons, three services, blue-green palette,
   selected MV font, source photographs, copy and slideshow. */

/* Correct the supplied entrance photo's yellow cast without changing any pixels
   in the source asset. New photos chosen in the editor keep their own color. */
.home .hero-color-filters { position:absolute; width:0; height:0; pointer-events:none; }
.home .hero-slide-3 .hero-slide-photo[src*="/clinic-entrance-20261023"],
.home .home-features .reason-item-3 .reason-photo img[src*="/clinic-entrance-20261023"] {
  filter:url(#entrance-neutral-tone);
}

/* Small section labels, generous headlines and uninterrupted photographs.
   Reference study and three owner reviews: verification/design-refinement-20261105. */
.home .visit-section { border-top:1px solid var(--clinic-outline); }
.home main .section-kicker,
.home .home-care .section-kicker,
.home .home-family .section-kicker,
.home .home-greeting .section-kicker,
.home .home-examinations .exam-copy > p.section-kicker {
  width:fit-content;
  max-width:100%;
  display:flex;
  align-items:center;
  gap:0;
  flex-wrap:wrap;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  font:600 14px/1.8 var(--sans);
  letter-spacing:.04em;
  margin-bottom:18px;
}
.home main .section-kicker::before {
  content:'';
  display:block;
  flex:0 0 28px;
  width:28px;
  height:1px;
  background:var(--brand-secondary);
  margin-right:12px;
}
/* Keep this rule beside the first text line at every viewport width. */
.home .home-directory .directory-heading .section-kicker { position:relative; padding-left:32px; }
.home .home-directory .directory-heading .section-kicker::before { position:absolute; left:0; top:.9em; margin:0; }
.home .home-features .features-heading .section-kicker {
  padding:0;
  border:0;
}
.home .hero-actions .hero-visit-link,
.home .hero-actions .hero-find-link { border-radius:10px; }

/* Reasons: one open corner, a small index, and a closer reading sequence. */
.home .home-features { padding-block:112px 88px; }
.home .home-features .features-heading { margin-bottom:56px; }
.home .home-features .features-title-art { grid-template-columns:90px minmax(0,1fr); gap:0 18px; }
.home .home-features .features-heading-numbered .section-kicker { margin-left:108px; }
.home .home-features .features-title-number { font-size:152px; top:-18px; }
.home .home-features .features-intro-lead { font-size:23px; }
.home .home-features .feature-reasons { gap:80px; }
.home .home-features .feature-reasons li { padding-bottom:48px; }
.home .home-features .feature-reasons li > .reason-photo {
  height:390px;
  border-radius:8px;
  overflow:hidden;
}
.home .home-features .feature-reasons li:nth-child(2) > .reason-photo {
  height:390px;
  border-radius:8px;
}
.home .home-features .feature-reasons li:nth-child(3) > .reason-photo { height:390px; }
.home .home-features .feature-reasons li > .reason-body {
  padding:32px 40px 28px;
  border-radius:8px;
  transform:translateY(48px);
  box-shadow:none;
}
.home .home-features .feature-reasons li:nth-child(2) > .reason-body {
  border-radius:8px;
}
.home .home-features .reason-number,
.home .home-features .feature-reasons li:nth-child(2) .reason-number {
  position:static;
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  margin:0 0 16px;
  font:400 36px/1 var(--numeric);
  font-variant-numeric:lining-nums tabular-nums;
  letter-spacing:0;
  color:var(--brand-secondary);
}
.home .home-features .reason-number::after {
  content:'';
  display:block;
  position:static;
  width:48px;
  height:1px;
  background:var(--brand-soft);
}
.home .home-features .reason-copy { min-height:0; }
.home .home-features .feature-reasons h3 { text-wrap:balance; line-height:1.6; }
.home .home-features .feature-reasons p { color:var(--body-copy); line-height:2; }
.home .home-features .reason-footer { padding-top:26px; }
.home .home-features .reason-link { font-size:16px; font-weight:600; }

/* Retain the three-column directory. Float the reading surface over each photo,
   align the labels/headlines/actions, and let the photographs carry the warmth. */
.home .home-care {
  padding-block:88px 96px;
  border-radius:48px 48px 0 0;
}
.home .home-care .section-lead {
  min-height:0;
  padding-right:220px;
  margin-bottom:44px;
}
.home .home-care .section-lead::after {
  width:190px;
  height:165px;
  inset:10px 0 auto auto;
  opacity:.75;
}
.home .care-overview {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
}
.home .care-pillar,
.home .care-pillar-glaucoma {
  padding:0;
  border:0;
  border-radius:0;
  overflow:visible;
  background:none;
  box-shadow:none;
}
.home .care-pillar .care-copy,
.home .care-pillar:nth-child(-n+2) .care-copy {
  position:relative;
  z-index:1;
  margin:-30px 14px 0;
  padding:24px 24px 12px;
  border:0;
  border-radius:4px;
  background:#fff;
}
.home .care-pillar-photo {
  height:264px;
  margin:0;
  border-radius:8px;
}
.home .care-pillar:nth-child(-n+2) .care-pillar-label {
  color:var(--brand-dark);
  font-weight:600;
}
.home .care-pillar .text-link { padding-block:14px; font-weight:500; text-decoration:none; }
.home .care-pillar h3,
.home .care-pillar-general-ophthalmology h3 { font-size:30px; line-height:1.5; margin-bottom:16px; }
.home .care-pillar .care-pillar-label { min-height:1.8em; font-size:13px; line-height:1.8; letter-spacing:.02em; margin-bottom:12px; }
.home .care-pillar .care-copy > p:not(.care-pillar-label),
.home .home-examinations .exam-copy > p:not(.section-kicker) { text-wrap:pretty; }

/* Search is a distinct white area with a restrained, consistent control shape. */
.home .home-directory { background:#fff; padding-block:88px 96px; }
.home .home-directory .tab-buttons button { border-radius:8px; }
.home .home-directory .directory-list a { border-radius:0; border-width:0 0 1px; }
.home .home-directory .directory-list a { box-shadow:none; }
.home .home-directory .directory-list .link-arrow { background:var(--brand-pale); }
.home .home-directory .directory-list .link-arrow .icon { filter:brightness(0); opacity:.65; }
.home .home-directory .directory-group-title {
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
}

/* An inset examination panel keeps its already-tested text and CTA gutters. */
.home .home-examinations {
  position:relative;
  isolation:isolate;
  background:#fff;
}
.home .home-examinations::before {
  content:'';
  position:absolute;
  z-index:-1;
  inset:40px 0 40px 28%;
  border-radius:0;
  background:var(--brand-pale);
  pointer-events:none;
}
.home .home-examinations .split-feature { padding-block:64px; }
.home .home-examinations .framed-photo { border-radius:8px; overflow:hidden; }
.home .home-examinations .framed-photo img { border-radius:8px; }
.home .home-examinations .exam-copy > p:not(.section-kicker) { max-width:31em; text-wrap:balance; }
.home .home-examinations .exam-copy .text-link {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:31em;
  min-height:52px;
  margin-top:28px;
  padding-block:14px;
}

/* The family routes form a light group; the portrait stays open and personal. */
.home .home-family { background:#fff; padding-block:80px; }
.home .family-links {
  padding:0;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:none;
}
.home .family-links .row-link { padding:22px 0; }
.home .home-greeting { padding-block:72px 88px; }
.home .greeting-profile {
  padding:0;
  border:0;
  border-radius:0;
  background:none;
}
.home .greeting-text > p:not(.section-kicker):not(.doctor-sign),
.home .greeting-text > .text-link { margin-left:0; }
@media(min-width:768px) {
  .home .home-journal .column-intro { padding-top:0; }
}
.home .greeting-photo { padding:0; background:none; }
.home .greeting-photo img,
.home .greeting-photo.has-doctor-portrait img { border-radius:12px; }

@media(min-width:768px) and (max-width:1100px) {
  .home .home-features { padding-block:80px; }
  .home .home-features .feature-reasons li > .reason-body { padding:24px 28px; }
  .home .home-care .section-lead { padding-right:180px; }
  .home .home-care .section-lead::after { width:150px; height:140px; }
  .home .care-overview { grid-template-columns:1fr 1fr 1fr; gap:18px; }
  .home .home-features .features-title-art { grid-template-columns:70px minmax(0,1fr); }
  .home .home-features .features-heading-numbered .section-kicker { margin-left:88px; }
  .home .home-features .features-title-number { font-size:126px; }
  .home .home-features .features-intro-lead { font-size:21px; }
  .home .care-pillar .care-copy,
  .home .care-pillar:nth-child(-n+2) .care-copy { margin-inline:8px; padding-inline:16px; }
  .home .care-pillar-photo { height:220px; margin-inline:0; }
  .home .care-pillar h3,
  .home .care-pillar-general-ophthalmology h3 { font-size:26px; }
  .home .care-pillar .care-pillar-label { min-height:3.6em; }
  .home .home-examinations::before { inset-inline:25% 0; border-radius:0; }
}
.home .home-journal .news-list a > span:not(.circle-arrow) {
  text-wrap:pretty;
  word-break:auto-phrase;
  overflow-wrap:anywhere;
}

/* News titles need the full column width on phones and compact tablets. */
@media(max-width:1100px) {
  .home .home-journal .news-list a {
    grid-template-columns:minmax(0,1fr) 24px;
    grid-template-rows:auto auto;
    column-gap:12px;
    row-gap:6px;
    padding-block:18px;
  }
  .home .home-journal .news-list .news-date { grid-column:1; grid-row:1; }
  .home .home-journal .news-list a > span:not(.circle-arrow) {
    grid-column:1;
    grid-row:2;
  }
  .home .home-journal .news-list .circle-arrow { grid-column:2; grid-row:1 / 3; }
}
@media(max-width:767px) {
  .home main .section-kicker,
  .home .home-care .section-kicker,
  .home .home-family .section-kicker,
  .home .home-greeting .section-kicker,
  .home .home-examinations .exam-copy > p.section-kicker { font-size:13px; gap:0; margin-bottom:12px; }
  .home main .section-kicker::before { flex-basis:20px; width:20px; }
  .home .home-features { padding-block:56px; }
  .home .home-features .features-heading { margin-bottom:36px; }
  .home .home-features .features-title-art { grid-template-columns:54px minmax(0,1fr); gap:0 12px; }
  .home .home-features .features-title-number { font-size:102px; }
  .home .home-features .features-heading-numbered .section-kicker { margin-left:0; }
  .home .home-features .features-intro-lead { font-size:20px; }
  .home .home-features .feature-reasons { gap:36px; }
  .home .home-features .feature-reasons li { padding-bottom:0; }
  .home .home-features .feature-reasons li > .reason-photo {
    height:auto;
    border-radius:8px;
  }
  .home .home-features .feature-reasons li:nth-child(2) > .reason-photo {
    height:auto;
    border-radius:8px;
  }
  .home .home-features .feature-reasons li:nth-child(3) > .reason-photo { height:auto; }
  .home .home-features .feature-reasons li > .reason-body,
  .home .home-features .feature-reasons li:nth-child(2) > .reason-body,
  .home .home-features .feature-reasons li:nth-child(3) > .reason-body {
    width:calc(100% - 16px);
    margin:-20px 0 0;
    padding:22px 20px 20px;
    border-radius:6px;
    transform:none;
  }
  .home .home-features .reason-number,
  .home .home-features .feature-reasons li:nth-child(2) .reason-number { font-size:28px; margin-bottom:12px; }
  .home .home-features .reason-footer { padding-top:18px; }
  .home .home-care { padding-block:56px; border-radius:28px 28px 0 0; }
  .home .home-care .section-lead { padding:0; margin-bottom:28px; }
  .home .home-care .section-lead::after {
    position:static;
    width:120px;
    height:65px;
    margin:12px 0 0 auto;
    background-size:contain;
  }
  .home .care-overview { grid-template-columns:1fr; gap:30px; }
  .home .care-pillar,
  .home .care-pillar-glaucoma { padding:0; border-radius:0; }
  .home .care-pillar .care-copy,
  .home .care-pillar:nth-child(-n+2) .care-copy { margin:-24px 12px 0; padding:20px 20px 10px; }
  .home .care-pillar-photo { height:auto; aspect-ratio:3/2; margin:0; }
  .home .care-pillar h3,
  .home .care-pillar-general-ophthalmology h3 { font-size:26px; margin-bottom:12px; }
  .home .care-pillar .care-pillar-label { min-height:0; font-size:12px; }
  .home .home-directory { padding-block:56px; }
  /* Preserve the column panel's vertical space while sharing the page margin. */
  .home .home-journal .column-intro { padding-inline:0; }
  .home .home-features .features-intro-note .label-phrase { display:inline-block; white-space:nowrap; }
  .home .home-examinations { padding-block:40px; }
  /* On mobile the heading, photo and copy form one panel. A fixed offset
     cuts through wrapped headings, so keep the entire section on one surface. */
  .home .home-examinations::before { inset:0; border-radius:0; }
  .home .home-examinations .split-feature { padding:0; }
  .home .home-examinations .framed-photo,
  .home .home-examinations .framed-photo img { border-radius:8px; }
  .home .home-examinations .exam-copy .text-link { width:auto; margin-top:8px; }
  .home .home-family { padding-block:56px 24px; }
  .home .family-links { padding:0; border-radius:0; }
  .home .family-links .row-link { padding:18px 0; }
  .home .home-greeting { padding-block:32px 56px; }
  .home .greeting-profile {
    padding:0;
    gap:16px;
    border:0;
    border-radius:0;
  }
  .home .greeting-photo { padding:0; }
}
