/**
 * PROPRIETARY SOFTWARE NOTICE
 *
 * Copyright (c) Pro Star CMS Development. All rights reserved.
 *
 * This website, its source code, database structure, administrative system,
 * content management system, visual editor, assistant, and all related
 * components, documentation, and methods (the "Software") were designed and
 * developed by Pro Star CMS Development and are its exclusive proprietary and
 * confidential property. The Software is protected by United States copyright
 * law, trade secret law, and other applicable intellectual property laws.
 *
 * No license or other right is granted by access to, possession of, or display
 * of this source code, whether express or implied, by estoppel or otherwise.
 * Except as permitted in a written agreement signed by Pro Star CMS Development,
 * no person may copy, modify, adapt, translate, distribute, publish, sublicense,
 * disclose, decompile, reverse engineer, extract, reuse, or reproduce any portion
 * of the Software, or create derivative works from it, in whole or in part.
 *
 * Review of this code is limited to personnel authorized in writing, and only as
 * necessary to perform approved hosting, maintenance, security, or support
 * services. Any unauthorized use or disclosure may result in civil liability and
 * criminal prosecution to the fullest extent permitted by law.
 *
 * This notice must not be removed, altered, or obscured.
 *
 * For questions, requests for authorization, or technical information, contact
 * Chad Sanders directly:
 *
 * Pro Star Web Design
 * Chad Sanders
 * Phone: 256-550-1988
 */

/*
 * Morgan Family Practice: the site's own components (built on the Melton Tax Services layer). Colours come from
 * config.php theme (black #010101, charcoal #1b1d22 / #333, badge green
 * #54a17a, theme green #0b856a), the palette of the Mobirise site it replaces.
 */

/* Text in the accent colour on dark bands: the badge green, which reads at
   5.4:1 on the charcoal (the darker theme green is for buttons with white text). */
html .hero, html .page-hero, html .section--brand, html .util, html .trust,
html .site-footer, html .footer-base, html .splash, html [data-dark] {
  --accent-ink: var(--accent-bright);
}

/* ---- Home hero: the frosted charcoal card from the old home page ---- */
.mto-hero .hero-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.mto-hero .hero-copy { max-width: 40rem; }
.mto-hero .hero-scrim { background: linear-gradient(180deg, rgba(1, 1, 1, .35), rgba(1, 1, 1, .55)); }
.mto-hero .hero-media-still { object-position: 50% 60%; }
.mto-hero .tag { margin-inline: auto; }
.mto-hero-card {
  max-width: 40rem; margin-inline: auto; text-align: center;
  background: rgba(27, 29, 34, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.1rem, 4vw, 2.4rem);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.mto-hero-card .hero-actions, .mto-hero-card .btn-row { justify-content: center; }
.mto-hero-card h1 { font-size: clamp(1.7rem, 4.6vw, 2.7rem); line-height: 1.15; }
.mto-hero-card h1 .accent { display: block; }
.mto-badge {
  width: clamp(96px, 16vw, 132px); height: auto; margin: 0 auto 1rem; display: block;
  border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}
.mto-motto { font-size: 1.2rem; font-weight: 700; color: #fff; margin: .6rem 0 1.1rem; letter-spacing: .01em; }
.mto-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.mto-quick a {
  display: inline-block; padding: .5rem .95rem; border-radius: 10px;
  background: #333; color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transition: background .2s, transform .2s;
}
.mto-quick a:hover, .mto-quick a:focus-visible { background: var(--accent); transform: translateY(-1px); }
.mto-atp {
  display: block; width: min(280px, 80%); height: auto; margin: 1.4rem auto 0;
  background: #fff; border-radius: 14px; padding: .35rem .6rem;
}

/* ---- Whole-team photo and the two columns under it ---- */
.mto-group { margin: 0 auto clamp(2rem, 4vw, 3rem); max-width: 1080px; }
.mto-group img { width: 100%; height: auto; display: block; border-radius: 16px; aspect-ratio: auto; }
.mto-split { align-items: start; }
@media (min-width: 900px) { .mto-split { grid-template-columns: 1.15fr 1fr; } }
.mto-phones { display: flex; flex-direction: column; gap: .5rem; font-size: 1.25rem; font-weight: 800; }
.mto-phones a { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent-ink); text-decoration: none; }
.mto-phones svg { width: 1.2em; height: 1.2em; }
.mto-phones small { font-weight: 500; font-size: .8rem; color: var(--muted); }

/* ---- Quick links (refunds, MAT, ALDOR) ---- */
.mto-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.5rem; }
.mto-link {
  display: flex; flex-direction: column; gap: .25rem; padding: 1.2rem 1.3rem;
  border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
  border-left: 5px solid var(--accent); text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.mto-link strong { font-size: 1.08rem; }
.mto-link span { color: var(--muted); font-size: .93rem; }
.mto-link:hover, .mto-link:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .1); }
.mto-links--big { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mto-link-card {
  padding: 1.5rem; border-radius: 16px; background: var(--paper); border: 1px solid var(--line);
  border-top: 5px solid var(--accent); display: flex; flex-direction: column; gap: .75rem;
}
.mto-link-card h2 { font-size: 1.3rem; margin: 0; }
.mto-link-card p { margin: 0; flex: 1; text-indent: 0; }
.mto-link-card .btn { align-self: flex-start; }

/* ---- Our Team ---- */
.mto-team-sec { background: linear-gradient(180deg, var(--cream), var(--paper)); }
.mto-team {
  display: grid; gap: clamp(1rem, 3vw, 2rem); justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(210px, 280px));
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.mto-person {
  margin: 0; background: var(--paper); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
  transition: transform .25s, box-shadow .25s;
}
.mto-person:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.mto-person img { width: 100%; height: auto; aspect-ratio: 341 / 426; object-fit: cover; display: block; background: #333; }
.mto-person figcaption { padding: .9rem 1rem 1.1rem; text-align: center; border-top: 4px solid var(--accent); }
.mto-person strong { display: block; font-size: 1.1rem; color: var(--ink); }
.mto-person span { display: block; color: var(--muted); font-size: .92rem; margin-top: .15rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.rm-respect .mto-person, .rm-respect .mto-link, .rm-respect .mto-quick a { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rm-respect .mto-person:hover, .rm-respect .mto-link:hover { transform: none; }
}

/* ---- Header: the firm's name is long; let it shrink and wrap on phones ---- */
@media (max-width: 719.98px) {
  .brand { gap: .6rem; flex: 1 1 auto; min-width: 0; }
  .brand-words { min-width: 0; }
  .brand-name { font-size: 1rem; line-height: 1.1; white-space: normal; }
  .brand-sub { font-size: .7rem; letter-spacing: .18em; margin-top: .15rem; }
}
@media (max-width: 419.98px) {
  .brand-name { font-size: .88rem; }
  .brand-sub { font-size: .62rem; letter-spacing: .14em; }
  .brand-mark { width: 40px; }
}

/* ==========================================================================
   Pages added 2026-09-26: About, Service Areas, city pages
   ========================================================================== */

/* ---- Source marks and source lists ---- */
.src-ref { font-size: .68em; line-height: 0; margin-left: .15em; white-space: nowrap; font-weight: 600; }
.src-ref a { color: var(--muted); text-decoration: none; padding: 0 .08em; }
.src-ref a:hover, .src-ref a:focus-visible { color: var(--accent-ink); text-decoration: underline; }
.mto-sources { border-top: 1px solid var(--line); background: var(--paper); }
.mto-sources-h { font-size: 1.05rem; margin: 0 0 .4rem; }
.mto-sources-intro { color: var(--muted); font-size: .9rem; margin: 0 0 .6rem; text-indent: 0; }
.mto-sources-list { margin: 0; padding-left: 1.6rem; font-size: .88rem; color: var(--muted); columns: 2 22rem; column-gap: 2.5rem; }
.mto-sources-list li { margin: 0 0 .35rem; break-inside: avoid; scroll-margin-top: 120px; }
.mto-sources-list li:target { background: #fff5d6; border-radius: 4px; }
.mto-sources-list a { color: var(--ink); overflow-wrap: anywhere; }

/* ---- Photo slots and editorial notes (staff-only until filled) ---- */
.mto-slot { margin: 0; }
.mto-slot:empty { display: none; }
.mto-slot img { width: 100%; height: auto; display: block; border-radius: 16px; object-fit: cover; }
.mto-slot figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.mto-note { background: #fff8eb; color: #5c3a00; padding: .8rem 1rem; border-radius: 8px; font-size: .95rem; text-indent: 0; margin-top: 1.4rem; }
.mto-bio { margin: .6rem 0 0; font-size: .88rem; text-align: left; }
.mto-person figcaption .mto-bio { color: var(--ink); }

/* ---- Link cards (About, Team) ---- */
.ab-next-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ab-next-card {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem 1.4rem; border-radius: 16px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--accent); color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.ab-next-card strong { font-size: 1.15rem; }
.ab-next-card span { color: var(--muted); font-size: .95rem; }
.ab-next-card:hover, .ab-next-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .1); }

/* ---- About ---- */
.ab-story-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .ab-story-grid:has(.mto-slot:not(:empty)) { grid-template-columns: 1.35fr .75fr; } }
.ab-portrait { position: sticky; top: calc(var(--nav-off) + 1.5rem); }

.ab-tl { list-style: none; margin: 2.5rem auto 0; padding: 0; max-width: 860px; position: relative; }
.ab-tl::before {
  content: ""; position: absolute; top: .4rem; bottom: .4rem; left: 7.2rem; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .15));
}
.ab-tl-item { display: grid; grid-template-columns: 6.4rem 1fr; gap: 1.6rem; align-items: start; margin: 0 0 1.4rem; position: relative; }
.ab-tl-item::after {
  content: ""; position: absolute; left: calc(7.2rem - 6px); top: .55rem; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--accent); box-shadow: 0 0 0 4px var(--cream);
}
.ab-tl-when { text-align: right; font-weight: 800; font-size: 1.05rem; color: var(--ink); padding-top: .25rem; line-height: 1.25; }
.ab-tl-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06); margin-left: .8rem;
}
.ab-tl-card h3 { font-size: 1.12rem; margin: 0 0 .3rem; }
.ab-tl-card p { margin: 0; text-indent: 0; }
li.ab-tl-pending { display: block; margin-left: 8.8rem; }
li.ab-tl-pending::after { display: none; }
@media (max-width: 599.98px) {
  .ab-tl::before { left: .45rem; }
  .ab-tl-item { grid-template-columns: 1fr; gap: .3rem; padding-left: 1.8rem; }
  .ab-tl-item::after { left: 0; top: .3rem; }
  .ab-tl-when { text-align: left; }
  .ab-tl-card { margin-left: 0; }
  li.ab-tl-pending { margin-left: 1.8rem; }
}

.ab-family-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 860px) { .ab-family-grid { grid-template-columns: 340px 1fr; } }
.ab-tonja { margin: 0; }
.ab-tonja img { width: 100%; height: auto; border-radius: 18px; display: block; box-shadow: 0 18px 40px rgba(0, 0, 0, .15); }
.ab-tonja figcaption { text-align: center; font-size: .9rem; color: var(--muted); margin-top: .6rem; }

.ab-trust-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ab-trust-grid li { background: var(--cream); border-radius: 14px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; border-left: 5px solid var(--accent); }
.ab-trust-grid strong { font-size: 1.05rem; }
.ab-trust-grid span { color: var(--ink); font-size: .95rem; }
.ab-photos-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.2rem; }
.ab-photos:not(:has(.mto-slot:not(:empty))) { display: none; }

/* ---- Service Areas ---- */
.sa-cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sa-card {
  display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: 1rem 1.1rem 1.05rem; border-radius: 14px;
  background: var(--cp-accent); color: #1b1d22; text-decoration: none; border-bottom: 4px solid var(--cp-ink);
  transition: transform .2s, box-shadow .2s;
}
.sa-card strong { font-size: 1.25rem; }
.sa-card-county { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cp-ink); }
.sa-card-drive { font-size: .9rem; color: #33363d; }
.sa-card:hover, .sa-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, .12); color: #1b1d22; }
.sa-map:not(:has(.mto-slot:not(:empty))) { display: none; }
.sa-dir { margin-top: 2rem; columns: 3 250px; column-gap: 2rem; }
.sa-county { break-inside: avoid; margin: 0 0 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
.sa-county h3 { font-size: 1.02rem; margin: 0 0 .4rem; }
.sa-county ul { list-style: none; margin: 0; padding: 0; }
.sa-county li { display: flex; justify-content: space-between; gap: .8rem; padding: .22rem 0; border-bottom: 1px dotted var(--line); font-size: .95rem; }
.sa-county li:last-child { border-bottom: 0; }
.sa-county a { font-weight: 700; color: var(--accent-ink); }
.sa-mi { color: var(--muted); white-space: nowrap; font-size: .88rem; }

/* ---- City pages: each town has its own pastel accent (--cp-accent) and ink (--cp-ink) ---- */
.cp-hero { background: var(--cp-accent); color: #1b1d22; padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.cp-hero::after {
  content: ""; position: absolute; right: -8rem; top: -8rem; width: 26rem; height: 26rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%); pointer-events: none;
}
.cp-hero-inner { position: relative; z-index: 1; }
.cp-hero-inner > * { max-width: 900px; }
.cp-hero h1 { color: #1b1d22; font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.12; margin: .3rem 0 .8rem; }
.cp-hero .lede { color: #2a2d33; font-size: 1.15rem; max-width: 46rem; }
.cp-eyebrow { display: inline-block; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--cp-ink); margin: 0; }
.cp-office-note { font-size: .9rem; color: #33363d; margin: 1rem 0 0; text-indent: 0; }
.cp-btn-ghost { background: #fff; color: #1b1d22; border: 2px solid var(--cp-ink); }
.cp-btn-ghost:hover, .cp-btn-ghost:focus-visible { background: var(--cp-ink); color: #fff; }
.cp .cp-h { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 1rem; }
.cp .cp-h::after, .cp .prose h2::after { content: ""; display: block; width: 3.2rem; height: 4px; border-radius: 4px; background: var(--cp-ink); margin-top: .45rem; }

.cp-opening-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .cp-opening--photo .cp-opening-grid:has(.mto-slot:not(:empty)) { grid-template-columns: 1.3fr .9fr; } }

.cp-route-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 900px) { .cp-route-grid { grid-template-columns: 1.4fr .8fr; } }
.cp-drive {
  background: var(--cp-accent); border-radius: 18px; padding: 1.4rem 1.5rem; color: #1b1d22;
  border-top: 6px solid var(--cp-ink); box-shadow: 0 16px 36px rgba(0, 0, 0, .08);
}
.cp-drive p { text-indent: 0; margin: 0 0 .7rem; }
.cp-drive-kicker { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; color: var(--cp-ink); }
.cp-drive-big { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.cp-drive-phones a { font-weight: 800; font-size: 1.15rem; color: #1b1d22; }
.cp-drive-phones span { display: block; font-size: .92rem; }
.cp-drive-phones span a { font-size: .95rem; }
.cp-drive-note { font-size: .9rem; margin: 0; }
.cp-drive .src-ref a { color: #3a3d44; }

.cp-facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.cp-facts--strip .cp-facts-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cp-facts--strip li { border-left: 5px solid var(--cp-ink); background: var(--paper); padding: .8rem 1rem; border-radius: 0 10px 10px 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .05); }
.cp-facts--cards .cp-facts-list { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cp-facts--cards li { background: var(--cp-accent); border-radius: 16px; padding: 1.2rem 1.3rem; display: flex; gap: .9rem; align-items: flex-start; color: #1b1d22; }
.cp-num { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #fff; color: var(--cp-ink); border: 2px solid var(--cp-ink); }
.cp-facts-list p { margin: 0; text-indent: 0; }
.cp-facts--cards .src-ref a { color: #3a3d44; }

.cp-qa-note { color: var(--muted); font-size: .9rem; margin: -.4rem 0 1.2rem; text-indent: 0; }
.cp-qa-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cp-q { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--cp-ink); border-radius: 14px; padding: 1.2rem 1.3rem; }
.cp-q h3 { font-size: 1.08rem; margin: 0 0 .5rem; }
.cp-q p { text-indent: 0; margin: 0 0 .6rem; }
.cp-qa-details { display: grid; gap: .7rem; max-width: 900px; }
.cp-qa-details details { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--cp-ink); border-radius: 10px; }
.cp-qa-details summary { cursor: pointer; padding: .95rem 1.1rem; font-weight: 700; font-size: 1.04rem; list-style-position: inside; }
.cp-qa-details summary:focus-visible { outline: 3px solid var(--cp-ink); outline-offset: 2px; }
.cp-qa-a { padding: 0 1.1rem 1rem; }
.cp-qa-a p { text-indent: 0; margin: 0 0 .5rem; }
.cp-more { font-weight: 700; color: var(--accent-ink); }

.cp-help { background: var(--cream); }
.cp-help-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cp-help-card {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.15rem 1.25rem; border-radius: 14px; text-decoration: none;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-bottom: 4px solid var(--cp-ink);
  transition: transform .2s, box-shadow .2s;
}
.cp-help-card strong { font-size: 1.08rem; }
.cp-help-card span { color: var(--muted); font-size: .95rem; }
.cp-help-card:hover, .cp-help-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, .1); color: var(--ink); }
.cp-photos-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cp-photos:not(:has(.mto-slot:not(:empty))) { display: none; }

.cp-cta { background: var(--cp-accent); }
.cp-cta-inner { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.cp-cta h2 { margin: 0 0 .3rem; color: #1b1d22; }
.cp-cta p { margin: 0; text-indent: 0; color: #2a2d33; }

.rm-respect .ab-next-card, .rm-respect .sa-card, .rm-respect .cp-help-card { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rm-respect .ab-next-card:hover, .rm-respect .sa-card:hover, .rm-respect .cp-help-card:hover { transform: none; }
}

/* ---- Menu: with About Us and Service Areas in the bar, Home / MyAlabama.GOV / FAQ move into the
   Services menu below 1500px (the engine default of 1240px left the Contact button off the edge). ---- */
@media (max-width: 1499.98px) {
  .nav-desktop > ul > li.menu-tier-a { display: none; }
  .submenu > li.menu-tier-a { display: block; }
}

/* Photo slots keep their shape whatever photo is dropped in. */
.mto-slot--portrait img { aspect-ratio: 4 / 5; }
.mto-slot--landscape img { aspect-ratio: 3 / 2; }
.mto-slot--wide img { aspect-ratio: 16 / 7; }
.mto-slot--square img { aspect-ratio: 1; }
.mto-person img { object-fit: cover; }

/* ===== Morgan Family Practice additions ===== */
.mfd-hero .mfd-video { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; background: #0b2f27; }
.mfd-hero .mfd-video.is-playing { opacity: 1; }
/* the frame is larger than the box so YouTube's own title bar and controls strip are cropped away, and nothing can be clicked */
.mfd-hero .mfd-video iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-width: 177.78vh; min-height: 100vh;
  transform: translate(-50%, -50%) scale(1.35); border: 0; pointer-events: none; }
.mfd-hero .mfd-video::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.mfd-hero .mfw-fx { z-index: 3; }
.mfd-steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: 1.5rem; }
.mfd-step { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem 1.5rem; }
.mfd-step h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.mfd-step p { margin: 0; text-indent: 0; }
.mfd-plans { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.mfd-plan { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem 1.5rem; }
.mfd-plan h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.mfd-plan p { margin: 0 0 .6rem; text-indent: 0; }
.mfd-note { color: var(--muted); font-size: .92rem; margin-top: 1rem; text-indent: 0; }
.mfd-drugform label { display: block; font-weight: 600; margin-bottom: .35rem; }
.mfd-drugrow { display: flex; gap: .75rem; flex-wrap: wrap; }
.mfd-drugrow input { flex: 1 1 14rem; min-height: 3rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: .6rem; font: inherit; }
.mfd-drugrow input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* assistant answers: links are real tap targets, and the WebMD directory link looks like a button */
[class*="pschat"] a { display: inline-block; padding: .3em .35em; margin: -.3em -.1em; line-height: 1.35; }
[class*="pschat"] a[href^="https://www.webmd.com/"] { margin: .4rem 0 .1rem; padding: .6rem 1rem; border-radius: 999px; background: var(--brand, #0f4a3e); color: #fff !important; font-weight: 600; text-decoration: none; }
[class*="pschat"] a[href^="https://www.webmd.com/"]:focus-visible { outline: 3px solid var(--accent, #c9a24a); outline-offset: 2px; }


/* ===== Morgan Family Practice additions (shared look) ===== */
.mto-hero .hero-media-still, .landing-slide { object-position: 50% 25%; }
.mto-badge { width: 7.5rem; height: auto; background: #fff; border-radius: 1rem; padding: .5rem; }
.mto-hero-card h1 { font-family: var(--font-display); letter-spacing: .01em; }
.mfw-address { margin: .25rem 0 1rem; color: var(--on-dark); font-weight: 500; }
.mfw-address a { color: var(--accent-bright, #d9b45a); text-decoration: underline; text-underline-offset: 3px; }

/* radio jingle panel */
.mfw-jingle-card { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; max-width: 52rem; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.75rem 2rem; box-shadow: 0 10px 30px rgba(15, 74, 62, .08); }
.mfw-jingle-icon { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--brand); color: var(--accent-bright, #d9b45a); }
.mfw-jingle-body h2 { margin: .15rem 0 .4rem; font-size: clamp(1.4rem, 3.2vw, 1.9rem); }
.mfw-jingle-body p { margin: 0 0 .9rem; text-indent: 0; }
.mfw-audio { width: 100%; max-width: 32rem; display: block; }
.mfw-audio:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 560px) { .mfw-jingle-card { grid-template-columns: 1fr; text-align: center; padding: 1.5rem 1.25rem; } .mfw-jingle-icon { margin: 0 auto; } .mfw-audio { margin: 0 auto; } }

/* staff */
.mfw-staff { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.mfw-person { text-align: center; }
.mfw-person-img, .mfw-person picture img { width: 100%; max-width: 16rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1rem; margin: 0 auto 1rem; display: block; }
.mfw-person h2 { font-size: 1.35rem; margin: 0 0 .25rem; }
.mfw-person p { margin: 0; color: var(--muted); text-indent: 0; }

/* long guides: product pictures stay a sensible size */
.split-media.framed img { max-height: 34rem; width: 100%; object-fit: contain; background: #fff; }
.gallery--row figure { margin: 0; }
.gallery--row img { max-height: 26rem; object-fit: contain; background: #fff; border-radius: .75rem; }
.gallery--row figcaption { text-align: center; color: var(--muted); font-size: .95rem; padding-top: .5rem; }
.notfound-code { color: var(--accent-ink); }
.msg-help { display: block; margin-top: .35rem; font-size: .92rem; }
.msg-help.is-need { color: #8a4b14; }
.msg-help.is-ok { color: #1f6b4f; }
/* ===== Cinematic intro (the feel of the JohnCriderMD.com landing, in Morgan's own colours) =====
   One continuous sequence: the curtain dissolves instead of wiping, the photo eases in and then drifts slowly, tone, vignette
   and warm glow fade up, a diagonal glare sweeps across the picture, the glass panel rises with its parts one after another,
   its edge catches a single glare, and the logo arrives last. On a repeat view in the same visit the same sequence runs at once. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-io: cubic-bezier(.6, 0, .2, 1); }

/* 1. the curtain dissolves into the photo instead of wiping away */
@keyframes splashAuto { 0%, 56% { opacity: 1; visibility: visible; transform: scale(1); } 100% { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.025); } }
@keyframes splashLift { to { opacity: 0; } }
.splash-sweep { background: linear-gradient(105deg, transparent 30%, rgba(255, 248, 220, .10) 44%, rgba(217, 180, 90, .34) 50%, rgba(255, 248, 220, .10) 56%, transparent 70%); }
.js .splash .splash-sweep { animation: splashSweep 1.3s cubic-bezier(.5, 0, .3, 1) .35s both; }

/* 2. the photo */
@keyframes mfwPhoto { 0% { opacity: 0; transform: scale(1.07); } 100% { opacity: 1; transform: scale(1); } }
@keyframes mfwKen { 0% { transform: scale(1) translate3d(0, 0, 0); } 100% { transform: scale(1.05) translate3d(-.6%, -.8%, 0); } }
@keyframes mfwFade { from { opacity: 0; } to { opacity: 1; } }
.mfw-hero .hero-media { overflow: hidden; background: #0b2f27; }
.js .mfw-hero .landing-fader, .js .mfw-hero .hero-media-still {
  transform-origin: 50% 35%;
  animation: mfwPhoto 2800ms var(--ease-out) 1.45s both, mfwKen 34s var(--ease-io) 4.2s infinite alternate;
}
.js.splash-skipped .mfw-hero .landing-fader, .js.splash-skipped .mfw-hero .hero-media-still { animation-delay: .05s, 2.8s; }

/* 3. light: tone, vignette, glow, drifting haze, and the glare */
.mfw-fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.mfw-fx--tone { background: linear-gradient(90deg, rgba(8, 34, 28, .20), transparent 45%, rgba(8, 34, 28, .34)), linear-gradient(180deg, rgba(8, 34, 28, .20), transparent 40%, rgba(8, 34, 28, .38)); }
.mfw-fx--vignette { background: radial-gradient(ellipse at 50% 46%, transparent 0, transparent 52%, rgba(0, 0, 0, .34) 74%, rgba(0, 0, 0, .70) 100%); }
.mfw-fx--glow { background: radial-gradient(ellipse 60% 45% at 85% 8%, rgba(217, 180, 90, .24), transparent 60%), radial-gradient(ellipse 55% 55% at 8% 100%, rgba(15, 74, 62, .50), transparent 65%); }
.js .mfw-fx--tone, .js .mfw-fx--vignette, .js .mfw-fx--glow { animation: mfwFade 2200ms ease 1.9s both; }
.js.splash-skipped .mfw-fx--tone, .js.splash-skipped .mfw-fx--vignette, .js.splash-skipped .mfw-fx--glow { animation-delay: .4s; }
.mfw-fx--haze { inset: -8%; mix-blend-mode: screen; filter: blur(8px);
  background: radial-gradient(ellipse 60% 50% at 20% 30%, rgba(217, 180, 90, .12), transparent 65%), radial-gradient(ellipse 55% 60% at 80% 70%, rgba(150, 210, 190, .10), transparent 70%);
  animation: mfwHaze 38s var(--ease-io) infinite; }
@keyframes mfwHaze { 0%, 100% { transform: translate3d(-4%, -2%, 0) scale(1.05); opacity: .18; } 50% { transform: translate3d(2%, 1%, 0) scale(1.08); opacity: .26; } }
.mfw-fx--sheen { mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, .10) 32%, rgba(255, 248, 220, .26) 50%, rgba(217, 180, 90, .18) 68%, transparent 88%);
  transform: translateX(-120%) skewX(-12deg); opacity: 0; animation: mfwSheen 9s var(--ease-io) 2.5s infinite; }
.js.splash-skipped .mfw-fx--sheen { animation-delay: .9s; }
@keyframes mfwSheen { 0% { transform: translateX(-120%) skewX(-12deg); opacity: 0; } 8% { opacity: 1; } 70% { transform: translateX(60%) skewX(-12deg); opacity: 1; } 78% { opacity: 0; } 80%, 100% { transform: translateX(120%) skewX(-12deg); opacity: 0; } }

/* 4. the glass panel, its parts in turn, one glare, and the logo last */
@keyframes mfwRise { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes mfwLogo { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes mfwGlare { 0% { transform: translateX(-130%); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(130%); opacity: 0; } }
.mfw-hero .mto-hero-card { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(var(--glass-rgb, 10, 36, 30), var(--glass-a-top, .58)), rgba(var(--glass-rgb, 10, 36, 30), var(--glass-a, .76)));
  backdrop-filter: blur(var(--glass-blur, 14px)) saturate(140%); -webkit-backdrop-filter: blur(var(--glass-blur, 14px)) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 30px 70px -28px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.js .mfw-hero .mto-hero-card { animation: mfwRise 1100ms var(--ease-out) 1.9s both; }
.js .mfw-hero .mto-hero-card > * { animation: mfwRise 900ms var(--ease-out) both; }
.js .mfw-hero .mto-hero-card > .mto-badge { animation: mfwLogo 1200ms var(--ease-out) 2.9s both; }
.js .mfw-hero .mto-hero-card > .tag { animation-delay: 2.15s; }
.js .mfw-hero .mto-hero-card > h1 { animation-delay: 2.3s; }
.js .mfw-hero .mto-hero-card > .hero-lede { animation-delay: 2.45s; }
.js .mfw-hero .mto-hero-card > .mfw-address { animation-delay: 2.6s; }
.js .mfw-hero .mto-hero-card > .hero-actions { animation-delay: 2.75s; }
.js .mfw-hero .mto-hero-card > .mto-quick { animation-delay: 2.9s; }
.mfw-hero .mto-hero-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .20) 48%, rgba(255, 248, 220, .26) 52%, transparent 68%);
  transform: translateX(-130%); opacity: 0; animation: mfwGlare 1700ms var(--ease-io) 3.2s 1 both; }
.js.splash-skipped .mfw-hero .mto-hero-card { animation-delay: .35s; }
.js.splash-skipped .mfw-hero .mto-hero-card > .tag { animation-delay: .55s; }
.js.splash-skipped .mfw-hero .mto-hero-card > h1 { animation-delay: .7s; }
.js.splash-skipped .mfw-hero .mto-hero-card > .hero-lede { animation-delay: .85s; }
.js.splash-skipped .mfw-hero .mto-hero-card > .mfw-address { animation-delay: 1s; }
.js.splash-skipped .mfw-hero .mto-hero-card > .hero-actions { animation-delay: 1.15s; }
.js.splash-skipped .mfw-hero .mto-hero-card > .mto-quick { animation-delay: 1.3s; }
.js.splash-skipped .mfw-hero .mto-hero-card > .mto-badge { animation-delay: 1.4s; }
.js.splash-skipped .mfw-hero .mto-hero-card::after { animation-delay: 1.6s; }

/* Devices set to reduce motion: the same intro as plain fades (no drift, glare, haze or sliding). Content is always visible. */
@media (prefers-reduced-motion: reduce) {
  .rm-respect .mfw-fx--sheen, .rm-respect .mfw-fx--haze, .rm-respect .mfw-hero .mto-hero-card::after { display: none; }
  .rm-respect .js .mfw-hero .landing-fader, .rm-respect .mfw-hero .landing-fader, .rm-respect .mfw-hero .hero-media-still { animation: mfwFade 1400ms ease .2s both !important; }
  .rm-respect .mfw-hero .mto-hero-card, .rm-respect .mfw-hero .mto-hero-card > * { animation: mfwFade 900ms ease .3s both !important; }
}

button.ve-svcbtn { font: inherit; cursor: pointer; }
/* Readability: the serif display font draws old-style (descending) figures, which are hard to read in phone numbers.
   Numbers and buttons use the plain body font with lining figures. */
html { font-variant-numeric: lining-nums; }
.btn-call, .btn-call-num, a[href^="tel:"], .util-phone, .mto-phones a, .cp-drive-phones a, .cp-drive-big,
.sa-card-drive, .sa-mi, .stat, [data-count] { font-family: var(--font-body); font-variant-numeric: lining-nums tabular-nums; }
.btn-call-num { font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.btn-call-label { font-family: var(--font-body); font-weight: 700; letter-spacing: .12em; }
.btn, .nav a, .tag, .eyebrow { font-family: var(--font-body); }
