/*
 * EyeHealth Northwest — location directory (/locations/) and location pages.
 * Loaded after css/doctors.css (includes/site-locations.php), whose tokens,
 * hero, filter bar, section nav and card styles these pages reuse.
 */

/* ------------------------------------------------------------------ *
 * Open-now status (filled in by js/locations.js): a line of text; the
 * state word ("Open now", "Closes soon", "Closed") carries the colour.
 * ------------------------------------------------------------------ */

.ehn-open {
    display: inline-flex;
    align-items: center;
    color: var(--ehn-muted);
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.ehn-open[hidden] {
    display: none;
}

.ehn-open.is-large {
    margin: 0 0 26px;
}

.ehn-open__state {
    font-weight: 700;
    color: var(--ehn-ink);
}

.ehn-open.is-open .ehn-open__state {
    color: #17733a;
}

.ehn-open.is-soon .ehn-open__state {
    color: #8a5300;
}

.ehn-open.is-appt .ehn-open__state {
    color: #0f5ea8;
}

.ehn-open.is-closed .ehn-open__state {
    color: #4a5566;
}

/* ------------------------------------------------------------------ *
 * Directory hero + schematic map
 * ------------------------------------------------------------------ */

.ehn-loc-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--ehn-header) + 64px) 0 90px;
    color: #fff;
    background: #0e2545;
    isolation: isolate;
}

.ehn-loc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--ehn-grain);
    pointer-events: none;
    z-index: -1;
    background-size: 200px 200px;
    opacity: .16;
    mix-blend-mode: overlay;
}

.ehn-loc-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 50px;
    align-items: center;
}

.ehn-loc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
}

.ehn-loc-hero__actions .ehn-dir-hero__jump {
    border: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.ehn-loc-hero__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.ehn-loc-hero__all svg {
    width: 18px;
    height: 18px;
    color: var(--ehn-soft);
    transition: transform .2s ease;
}

.ehn-loc-hero__all:hover {
    color: #fff;
}

.ehn-loc-hero__all:hover svg {
    transform: translateX(4px);
}

.ehn-loc-hero__map {
    position: relative;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -40px rgba(0, 0, 0, .6);
}

.ehn-loc-hero__legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 4px 0;
    font-size: .8rem;
    color: rgba(255, 255, 255, .65);
}

.ehn-loc-hero__legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ehn-soft);
    box-shadow: 0 0 0 4px rgba(120, 205, 255, .2);
}

.ehn-map {
    display: block;
    width: 100%;
    height: auto;
    color: #fff;
    overflow: visible;
}

.ehn-loc-hero__map .ehn-map {
    max-height: min(560px, 62vh);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.ehn-loc-hero::before {
    content: "";
    position: absolute;
    inset: -25%;
    z-index: -1;
    background: var(--ehn-mesh);
    pointer-events: none;
    animation: ehn-mesh 28s ease-in-out infinite alternate;
}

.ehn-map__river {
    fill: none;
    stroke: #78cdff;
    stroke-opacity: .32;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ehn-map__river-label {
    fill: #78cdff;
    fill-opacity: .55;
    font-size: 12px;
    font-style: italic;
    letter-spacing: .04em;
}

.ehn-map__region {
    fill: #fff;
    fill-opacity: .14;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .24em;
    text-anchor: middle;
    text-transform: uppercase;
}

.ehn-map__city rect {
    fill: none;
    stroke: #fff;
    stroke-opacity: .6;
    stroke-width: 1.5;
}

.ehn-map__city text {
    fill: #fff;
    fill-opacity: .6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.ehn-map__pin {
    cursor: pointer;
    outline: none;
}

.ehn-map__dot {
    fill: var(--ehn-soft);
    stroke: var(--ehn-ink);
    stroke-width: 2;
    transition: r .2s ease, fill .2s ease;
}

.ehn-map__glow {
    opacity: .7;
    transition: opacity .2s ease, r .3s ease;
}

.ehn-map__label {
    fill: #fff;
    font-size: 15px;
    font-weight: 600;
    paint-order: stroke;
    stroke: var(--ehn-ink);
    stroke-width: 4px;
    stroke-linejoin: round;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.ehn-map__pin:hover .ehn-map__label,
.ehn-map__pin:focus-visible .ehn-map__label,
.ehn-map__pin.is-hot .ehn-map__label,
.ehn-map__pin.is-current .ehn-map__label {
    opacity: 1;
}

.ehn-map__pin:hover .ehn-map__dot,
.ehn-map__pin:focus-visible .ehn-map__dot,
.ehn-map__pin.is-hot .ehn-map__dot {
    fill: #fff;
    r: 9;
}

.ehn-map__pin:focus-visible .ehn-map__glow,
.ehn-map__pin.is-hot .ehn-map__glow {
    opacity: 1;
    r: 30;
}

.ehn-map__pin.is-dim {
    opacity: .22;
}

.ehn-map__pin.is-current .ehn-map__dot {
    fill: #fff;
}

/* ------------------------------------------------------------------ *
 * Finder bar additions
 * ------------------------------------------------------------------ */

.ehn-filter__near {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 20px;
    border: 1px solid var(--ehn-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: var(--ehn-ink);
    font: inherit;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
    border-color: rgba(19, 45, 82, .1);
    box-shadow: inset 0 1px 0 #fff;
}

.ehn-filter__near svg {
    width: 18px;
    height: 18px;
    color: var(--ehn-blue);
}

.ehn-filter__near:hover {
    border-color: #b9cde3;
}

.ehn-filter__near[aria-pressed="true"] {
    border-color: var(--ehn-ink);
    background: var(--ehn-ink);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

.ehn-filter__near[aria-pressed="true"] svg {
    color: var(--ehn-soft);
}

.ehn-filter__near.is-busy svg,
.ehn-dir-hero__jump.is-busy svg {
    animation: ehn-spin 1s linear infinite;
}

.ehn-filter__near:focus-visible {
    outline: 2px solid var(--ehn-blue);
    outline-offset: 2px;
}

.ehn-loc-geo-msg {
    margin: -8px 0 20px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff3dc;
    color: #6b4200;
    font-size: .9rem;
}

.ehn-loc-geo-msg[hidden] {
    display: none;
}

/* ------------------------------------------------------------------ *
 * Location cards
 * ------------------------------------------------------------------ */

.ehn-loc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.ehn-lc {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--ehn-radius);
    background: #fff;
    box-shadow: var(--ehn-shadow);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}

.ehn-lc[hidden] {
    display: none;
}

.ehn-lc.is-entering {
    animation: ehn-card-in .4s cubic-bezier(.2, .7, .2, 1) backwards;
}

.ehn-lc.is-hot,
.ehn-lc:hover {
    transform: translateY(-5px);
    box-shadow: var(--ehn-shadow-hover);
}

.ehn-lc__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ehn-photo-bg);
}

.ehn-lc__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.ehn-lc:hover .ehn-lc__img {
    transform: scale(1.05);
}

.ehn-lc__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 45, 82, 0) 55%, rgba(19, 45, 82, .45));
    pointer-events: none;
}

.ehn-lc__noimg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--ehn-ink);
    font-family: var(--ehn-display);
    font-size: 1.6rem;
    background:
        radial-gradient(circle at 50% 45%, transparent 0 28%, rgba(20, 121, 209, .1) 28.5% 29.3%, transparent 29.8% 42%, rgba(20, 121, 209, .07) 42.5% 43.2%, transparent 43.7%),
        var(--ehn-photo-bg);
}

.ehn-lc__noimg svg {
    width: 34px;
    height: 34px;
    color: var(--ehn-blue);
}

.ehn-lc__miles[hidden] {
    display: none;
}

.ehn-lc__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 20px;
}

.ehn-lc__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.ehn-lc__name {
    margin: 0;
    font-family: var(--ehn-display);
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.1;
}

.ehn-lc__name a {
    color: var(--ehn-ink);
    text-decoration: none;
}

.ehn-lc__name a:hover {
    color: var(--ehn-blue);
}

.ehn-lc__addr {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--ehn-muted);
    margin-bottom: 6px;
}

.ehn-lc__addr svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--ehn-blue);
}

.ehn-lc__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    margin-left: -11px;
    overflow: hidden;
}

.ehn-lc__chips li {
    margin: 0 0 0 -1px;
    padding: 0 10px;
    color: #3d4f66;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.25;
    border-left: 1px solid #cbd8e6;
    box-shadow: none;
}

.ehn-lc__chips li.is-more {
    color: var(--ehn-blue);
    margin: 0 0 0 -1px;
    padding: 0 10px;
    border-left: 1px solid #cbd8e6;
    border-radius: 0;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.25;
}

.ehn-lc__team {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: auto 0 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ehn-line);
}

.ehn-lc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ehn-lc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--ehn-line);
    color: var(--ehn-ink);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.ehn-lc__btn svg {
    width: 16px;
    height: 16px;
    color: var(--ehn-blue);
    transition: transform .2s ease, color .2s ease;
}

.ehn-lc__btn:hover {
    background: var(--ehn-ice);
    color: var(--ehn-ink);
}

.ehn-lc__btn.is-primary {
    flex: 1 1 auto;
    background: var(--ehn-ink);
    box-shadow: none;
    color: #fff;
}

.ehn-lc__btn.is-primary svg {
    color: var(--ehn-soft);
}

.ehn-lc__btn.is-primary:hover {
    background: var(--ehn-blue);
    color: #fff;
}

.ehn-lc__btn.is-primary:hover svg {
    color: #fff;
    transform: translateX(3px);
}

.ehn-lc__btn:focus-visible,
.ehn-lc__name a:focus-visible {
    outline: 2px solid var(--ehn-blue);
    outline-offset: 2px;
}

/* Location cards: region (and "X mi away" after Near me) as a kicker above
   the name, so the photo carries no labels. The kicker follows the name in
   the DOM (the name is read first) and is lifted visually with order. */

.ehn-lc__kicker {
    order: -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    min-height: 1.2em;
    margin: 0 0 8px;
    color: var(--ehn-blue);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ehn-lc__kicker .ehn-lc__miles {
    color: var(--ehn-muted);
}

.ehn-lc__region + .ehn-lc__miles:not([hidden])::before {
    content: "·";
    margin: 0 .6em;
    color: var(--ehn-muted);
}

.ehn-lc__dir {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    min-height: 24px;
    margin: 0 0 14px 24px;
    color: var(--ehn-blue);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color .2s ease;
}

.ehn-lc__dir svg {
    width: 14px;
    height: 14px;
    transition: transform .2s ease;
}

.ehn-lc__dir:hover {
    text-decoration-color: currentColor;
}

.ehn-lc__dir:hover svg {
    transform: translate(2px, -2px);
}

.ehn-lc__dir:focus-visible {
    outline: 2px solid var(--ehn-blue);
    outline-offset: 2px;
}

.ehn-lc__actions .ehn-lc__btn:not(.is-primary) {
    flex: 1 1 auto;
}

.ehn-lc__team.is-count {
    display: block;
}

/* ------------------------------------------------------------------ *
 * Single location
 * ------------------------------------------------------------------ */

.ehn-lp-hero__inner {
    align-items: center;
    padding-bottom: 72px;
}

.ehn-lp-hero .ehn-bio-hero__text {
    padding-bottom: 0;
}

.ehn-lp-hero__title {
    margin: 0 0 18px;
    font-family: var(--ehn-display);
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 400;
    line-height: 1;
    color: #fff;
}

.ehn-lp-hero__pre {
    display: block;
    margin-bottom: 8px;
    font-family: inherit;
    font-size: .32em;
    letter-spacing: .02em;
    color: var(--ehn-soft);
}

.ehn-lp-hero__addr {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 1.08rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
}

.ehn-lp-hero__addr svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    color: var(--ehn-soft);
}

.ehn-lp-hero__media {
    position: relative;
    padding-bottom: 40px;
}

.ehn-lp-map {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    /* Rounded, not arched: Google's place card sits in the top-left corner. */
    border-radius: 28px;
    background: #dfe8f2;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 0 22px rgba(120, 205, 255, .06), 0 40px 80px -30px rgba(0, 0, 0, .6);
}

.ehn-lp-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(.85);
}

.ehn-lp-photo {
    position: absolute;
    left: -28px;
    bottom: 0;
    z-index: 2;
    width: min(46%, 280px);
    margin: 0;
    padding: 8px 8px 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
    transform: rotate(-3deg);
    transition: transform .3s ease;
}

.ehn-lp-photo:hover {
    transform: rotate(0) translateY(-4px);
}

.ehn-lp-photo__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.ehn-lp-photo figcaption {
    padding: 9px 4px 11px;
    color: var(--ehn-ink);
    font-family: var(--ehn-display);
    font-size: 1.05rem;
    text-align: center;
}

.ehn-lp-hero .ehn-bio-facts a {
    color: inherit;
    text-decoration: none;
}

.ehn-lp-hero .ehn-bio-facts a:hover strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* On the navy hero: the state in the display serif. */

.ehn-lp-hero .ehn-open.is-large {
    align-items: baseline;
    font-size: 1rem;
    color: rgba(255, 255, 255, .82);
}

.ehn-lp-hero .ehn-open.is-large .ehn-open__state {
    font-family: var(--ehn-display);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    color: #fff;
}

.ehn-lp-hero .ehn-open.is-open .ehn-open__state {
    color: #8be8ab;
}

.ehn-lp-hero .ehn-open.is-soon .ehn-open__state {
    color: #ffd68a;
}

.ehn-lp-hero .ehn-open.is-appt .ehn-open__state {
    color: var(--ehn-soft);
}

.ehn-lp-hero .ehn-open.is-large .ehn-open__sep {
    padding: 0 .35em;
    color: rgba(255, 255, 255, .4);
}

/* Plan your visit */

.ehn-hours {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: .95rem;
}

.ehn-hours th,
.ehn-hours td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ehn-line);
    text-align: left;
    vertical-align: top;
}

.ehn-hours tr:last-child th,
.ehn-hours tr:last-child td {
    border-bottom: 0;
}

.ehn-hours th {
    width: 42%;
    font-weight: 600;
    color: var(--ehn-ink);
}

.ehn-hours td {
    color: var(--ehn-text);
}

.ehn-hours td.is-closed {
    color: var(--ehn-muted);
}

.ehn-hours tr.is-today th {
    box-shadow: inset 3px 0 0 var(--ehn-blue);
}

.ehn-hours tr.is-today td {
    font-weight: 600;
    color: var(--ehn-ink);
}

.ehn-hours__today {
    display: inline-block;
    margin-left: 6px;
    color: var(--ehn-blue);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
    vertical-align: 0;
    text-transform: none;
}

.ehn-hours__note,
.ehn-hours__raw {
    display: flex;
    gap: 8px;
    margin: 14px 0 0;
    font-size: .85rem;
    line-height: 1.5;
    color: var(--ehn-muted);
}

.ehn-hours__note svg {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--ehn-blue);
}

.ehn-phones {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ehn-phones li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--ehn-line);
}

.ehn-phones li:last-child {
    border-bottom: 0;
}

.ehn-phones__label {
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ehn-muted);
}

.ehn-phones a,
.ehn-phones__plain {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ehn-ink);
    text-decoration: none;
    white-space: nowrap;
}

.ehn-phones a:hover {
    color: var(--ehn-blue);
}

.ehn-phones__plain {
    color: var(--ehn-muted);
    font-weight: 600;
}

.ehn-lp-address {
    margin: 0 0 20px;
    font-family: var(--ehn-display);
    font-size: 1.45rem;
    font-style: normal;
    line-height: 1.3;
    color: var(--ehn-ink);
}

/* About */

.ehn-lp-about {
    padding: 90px 0;
    background: #fff;
}

.ehn-lp-about__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 60px;
    align-items: start;
}

.ehn-lp-about__inner > div:first-child {
    padding-left: 22px;
    border-left: 3px solid var(--ehn-blue);
}

.ehn-lp-about h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    line-height: 1.08;
    color: var(--ehn-ink);
}

.ehn-lp-about h2 em {
    color: var(--ehn-blue);
}

.ehn-lp-about__copy p {
    margin: 0 0 1.1em;
    font-size: 1.05rem;
    line-height: 1.85;
}

.ehn-lp-about__copy p:first-child {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--ehn-ink);
}

/* Services (navy band) */

.ehn-lp-services {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    color: #fff;
    background:
        radial-gradient(50% 70% at 100% 0%, rgba(20, 121, 209, .45), rgba(20, 121, 209, 0) 70%),
        var(--ehn-ink);
}

.ehn-lp-services .ehn-bio-more__head h2 {
    color: #fff;
}

.ehn-lp-services .ehn-bio-more__head h2 em {
    color: var(--ehn-soft);
}

.ehn-lp-services .ehn-bio-more__all {
    color: var(--ehn-soft);
}

.ehn-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ehn-svc-grid li {
    margin: 0;
}

.ehn-svc {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
    transition: background-color .25s ease, transform .25s ease;
}

.ehn-svc:hover,
.ehn-svc:focus-visible {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transform: translateY(-3px);
}

.ehn-svc:focus-visible {
    outline: 2px solid var(--ehn-soft);
    outline-offset: 2px;
}

.ehn-svc__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(120, 205, 255, .16);
    color: var(--ehn-soft);
}

.ehn-svc__icon svg {
    width: 22px;
    height: 22px;
}

.ehn-svc__name {
    flex: 1;
    font-weight: 600;
    line-height: 1.3;
}

.ehn-svc__go svg {
    width: 18px;
    height: 18px;
    color: var(--ehn-soft);
    transition: transform .2s ease;
}

.ehn-svc:hover .ehn-svc__go svg {
    transform: translateX(4px);
}

/* Doctors */

.ehn-lp-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 20px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--ehn-ink);
}

.ehn-lp-group span {
    color: var(--ehn-blue);
    font-size: 1.35rem;
    font-family: var(--ehn-display);
    font-weight: 400;
}

.ehn-lp-doctors__grid + .ehn-lp-group {
    margin-top: 50px;
}

/* Nearby */

.ehn-lp-nearby {
    padding: 100px 0;
    background: #fff;
}

.ehn-lp-nearby__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ehn-location-v2 :is(#visit, #services, #doctors, #nearby, #reviews) {
    scroll-margin-top: calc(var(--ehn-sticky) + 80px);
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 1199px) {

    .ehn-lp-nearby__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {

    .ehn-loc-hero {
        padding: calc(var(--ehn-header) + 40px) 0 64px;
    }

    .ehn-loc-hero__inner,
    .ehn-lp-about__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .ehn-lp-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 56px;
    }

    .ehn-lp-hero__media {
        width: min(100%, 560px);
        margin: 10px auto 0;
    }

    .ehn-lp-photo {
        left: -8px;
    }
}

@media (max-width: 767px) {

    .ehn-loc-grid,
    .ehn-lp-nearby__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ehn-loc-hero__map {
        padding: 12px;
    }

    .ehn-lp-services,
    .ehn-lp-nearby,
    .ehn-lp-about {
        padding: 64px 0;
    }

    .ehn-lp-map {
        border-radius: 22px;
    }

    .ehn-lp-photo {
        width: 52%;
    }

    .ehn-filter__near span {
        display: none;
    }

    .ehn-filter__near {
        width: 50px;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 479px) {

    .ehn-lc__actions {
        flex-wrap: nowrap;
    }

    .ehn-lc__btn {
        padding: 0 12px;
        font-size: .8rem;
    }

    .ehn-lc__btn.is-primary {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ehn-lc.is-entering {
        animation: none;
    }

    .ehn-lc,
    .ehn-lc__img,
    .ehn-lp-photo,
    .ehn-svc {
        transition: none;
    }
}

/* Labels on photos: light glass, ink text, sentence case. */

.ehn-glass {
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--ehn-glass-light);
    -webkit-backdrop-filter: var(--ehn-blur);
    backdrop-filter: var(--ehn-blur);
    box-shadow: var(--ehn-glass-light-edge);
    color: var(--ehn-ink);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.35;
    text-transform: none;
}

/* Team as counts by role ("10 ophthalmologists · 5 optometrists"), on the
   cards and the bento team tile. Replaces the partial row of headshots. */

.ehn-split {
    color: var(--ehn-muted);
    font-size: .9rem;
    line-height: 1.5;
    text-decoration: none;
}

.ehn-split__part {
    white-space: nowrap;
}

.ehn-split strong {
    font-variant-numeric: lining-nums;
    margin-right: 1px;
    font-family: var(--ehn-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ehn-ink);
}

.ehn-split__sep {
    margin: 0 .35em;
}

a.ehn-split:hover .ehn-split__part {
    color: var(--ehn-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a.ehn-split:focus-visible {
    outline: 2px solid var(--ehn-blue);
    outline-offset: 3px;
}

@supports (animation-timeline: view()) {

    @media (prefers-reduced-motion: no-preference) {

        /* `translate` (not `transform`) so the cards' hover lift still works. */

        .ehn-svc-grid > li,
        .ehn-lc,
        .ehn-lp-about__inner > * {
            animation: ehn-reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 75%;
        }
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

    .ehn-glass {
        background: rgba(255, 255, 255, .92);
    }
}

@media (prefers-reduced-transparency: reduce) {

    .ehn-glass {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ehn-loc-hero::before {
        animation: none;
    }
}

/* ------------------------------------------------------------------ *
 * "Plan Your Visit" bento grid (template-parts/locations/visit-bento.php).
 * Desktop 4 columns, tablet 2, phone 1; the last row spans come from PHP.
 * ------------------------------------------------------------------ */

.ehn-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ehn-bento__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 30px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--ehn-tile-shadow);
    color: var(--ehn-text);
    overflow: hidden;
}

.ehn-bento__today {
    isolation: isolate;
    background: #0e2545;
    grid-column: 1;
    grid-row: 1 / span 2;
    padding: 32px;
    box-shadow: 0 24px 50px -24px rgba(14, 37, 69, .7);
    color: #fff;
}

.ehn-bento__today::before {
    content: "";
    position: absolute;
    inset: -25%;
    z-index: -1;
    background: var(--ehn-mesh);
    pointer-events: none;
    animation: ehn-mesh 28s ease-in-out infinite alternate;
}

.ehn-bento__today::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--ehn-grain);
    background-size: 200px 200px;
    opacity: .16;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.ehn-bento__hours {
    grid-column: 2 / span 2;
    grid-row: 1 / span 2;
}

.ehn-bento__call {
    grid-column: 4;
    grid-row: 1;
}

.ehn-bento__find {
    grid-column: 4;
    grid-row: 2;
}

.ehn-bento .d-span-1 {
    grid-column: span 1;
}

.ehn-bento .d-span-2 {
    grid-column: span 2;
}

.ehn-bento .d-span-3 {
    grid-column: span 3;
}

.ehn-bento .d-span-4 {
    grid-column: span 4;
}

.ehn-bento__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-family: var(--ehn-display);
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--ehn-ink);
}

.ehn-bento__title svg {
    width: 20px;
    height: 20px;
    color: var(--ehn-blue);
}

.ehn-bento .ehn-hours th,
.ehn-bento .ehn-hours td {
    padding: 11px 12px;
}

.ehn-bento .ehn-phones li {
    padding: 10px 0;
}

.ehn-bento .ehn-phones a,
.ehn-bento .ehn-phones__plain {
    font-size: 1.02rem;
}

.ehn-bento .ehn-lp-address {
    margin: 0 0 auto;
    padding-bottom: 18px;
    font-size: 1.3rem;
}

/* Text link with an arrow (Find Us, optical, team). */

.ehn-bento__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--ehn-blue);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
}

.ehn-bento__link svg {
    width: 16px;
    height: 16px;
    transition: transform .25s ease;
}

a.ehn-bento__link:hover,
a.ehn-bento__tile:hover .ehn-bento__link {
    color: var(--ehn-ink);
}

a.ehn-bento__link:hover svg,
a.ehn-bento__tile:hover .ehn-bento__link svg {
    transform: translateX(3px);
}

.ehn-bento__kicker {
    margin: 0 0 auto;
    padding-bottom: 28px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, .7);
}

.ehn-open.is-tile {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: 1.05rem;
    white-space: normal;
}

.ehn-open.is-tile .ehn-open__state {
    display: block;
    margin-bottom: 6px;
    font-family: var(--ehn-display);
    font-size: clamp(2.2rem, 3.2vw, 2.9rem);
    font-weight: 400;
    line-height: 1;
    color: #fff;
}

.ehn-open.is-tile.is-open .ehn-open__state {
    color: #8be8ab;
}

.ehn-open.is-tile.is-soon .ehn-open__state {
    color: #ffd68a;
}

.ehn-open.is-tile.is-appt .ehn-open__state {
    color: var(--ehn-soft);
}

.ehn-open.is-tile .ehn-open__sep {
    display: none;
}

.ehn-bento__today-hours,
.ehn-bento__today-fallback {
    margin: 10px 0 0;
    font-size: .9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .62);
}

.ehn-bento__today-call {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 12px 20px 12px 16px;
    border-radius: 999px;
    background: var(--ehn-glass-dark);
    -webkit-backdrop-filter: var(--ehn-blur);
    backdrop-filter: var(--ehn-blur);
    box-shadow: var(--ehn-glass-dark-edge);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, transform .25s ease;
}

.ehn-bento__today-call svg {
    width: 18px;
    height: 18px;
    color: var(--ehn-soft);
}

.ehn-bento__today-call:hover {
    background-color: rgba(255, 255, 255, .1);
    color: #fff;
    transform: translateY(-2px);
}

/* Photos: full-bleed, the caption as a glass label. */

.ehn-bento__photo {
    min-height: 220px;
    padding: 0;
    background: var(--ehn-photo-bg);
}

.ehn-bento__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.ehn-bento__photo:hover img {
    transform: scale(1.04);
}

.ehn-bento__photo figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
}

/* Optical + team: linked tiles. */

a.ehn-bento__tile {
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

a.ehn-bento__tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(19, 45, 82, .08), 0 2px 4px rgba(19, 45, 82, .06), 0 28px 50px -24px rgba(19, 45, 82, .45);
}

.ehn-bento__optical {
    background: linear-gradient(160deg, #fff 0%, var(--ehn-ice) 100%);
}

.ehn-bento__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--ehn-glass-light-edge);
    color: var(--ehn-blue);
}

.ehn-bento__icon svg {
    width: 22px;
    height: 22px;
}

.ehn-bento__tile-title {
    display: block;
    margin-bottom: 6px;
    font-family: var(--ehn-display);
    font-size: 1.4rem;
    line-height: 1.15;
    color: var(--ehn-ink);
}

.ehn-bento__tile-title strong {
    font-weight: 400;
    color: var(--ehn-blue);
}

.ehn-bento__text {
    display: block;
    margin-bottom: 18px;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--ehn-muted);
}

/* Team tile: counts, not headshots (no doctor featured over another). */

.ehn-bento__count {
    display: block;
    margin-bottom: 10px;
    font-family: var(--ehn-display);
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--ehn-ink);
}

.ehn-bento__count strong {
    font-variant-numeric: lining-nums;
    display: block;
    margin-bottom: 4px;
    font-size: 3.4rem;
    font-weight: 400;
    line-height: 1;
    color: var(--ehn-blue);
}

.ehn-bento__team .ehn-split {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 18px;
}

.ehn-bento__team .ehn-split__sep {
    display: none;
}

@media (min-width: 1100px) {

    /* Wide team tile (desktop): the number and label side by side. */

    .ehn-bento__team.is-wide .ehn-bento__count {
        display: flex;
        align-items: baseline;
        gap: 14px;
        font-size: 1.5rem;
    }

    .ehn-bento__team.is-wide .ehn-bento__count strong {
        margin: 0;
        font-size: 4.2rem;
    }

    .ehn-bento__team.is-wide .ehn-split {
        flex-direction: row;
        gap: 0;
    }

    .ehn-bento__team.is-wide .ehn-split__sep {
        display: inline;
    }
}

@media (max-width: 1099px) {

    .ehn-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ehn-bento__today {
        grid-column: 1;
        grid-row: 1;
    }

    .ehn-bento__find {
        grid-column: 2;
        grid-row: 1;
    }

    .ehn-bento__hours {
        grid-column: 1;
        grid-row: 2;
    }

    .ehn-bento__call {
        grid-column: 2;
        grid-row: 2;
    }

    .ehn-bento .t-span-1 {
        grid-column: span 1;
    }

    .ehn-bento .t-span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 639px) {

    .ehn-bento {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .ehn-bento > .ehn-bento__tile {
        grid-column: 1;
        grid-row: auto;
    }

    .ehn-bento__tile {
        padding: 24px;
        border-radius: 22px;
    }

    .ehn-bento__kicker {
        padding-bottom: 14px;
    }

    .ehn-bento__photo {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}

@supports (animation-timeline: view()) {

    @media (prefers-reduced-motion: no-preference) {

        /* `translate` (not `transform`) so the cards' hover lift still works. */

        .ehn-bento__tile {
            animation: ehn-reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 75%;
        }
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

    .ehn-bento__today-call {
        background: rgba(255, 255, 255, .16);
    }
}

@media (prefers-reduced-transparency: reduce) {

    .ehn-bento__today-call {
        background: #23436f;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ehn-bento__today::before {
        animation: none;
    }
}
