/* Define CSS Variables */
:root {
    --primary-color: #007BFF;
    --secondary-color: #0056b3;
    --background-color: #f5f5f5;
    --font-color: #333;
    --highlight-color: #ffcc00;
    --navbar-bg: #333;
    --box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
}

/* Navigation Bar Styling */
.navbar {
    background-color: var(--navbar-bg);
    padding: 10px 20px;
    width: 100vw; /* Span the entire viewport width */
    position: relative; /* Ensure the element stays fixed to the full width */
    left: 50%; /* Center alignment fix */
    transform: translateX(-50%);
    box-sizing: border-box;
}

.navbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.navbar-menu li {
    margin: 0;
    display: flex;
}

.navbar-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.navbar-menu a:hover {
    color: var(--highlight-color);
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
}

/* Active nav link (set by script.js) */
.navbar-menu a.active,
.navbar-menu a[aria-current="page"] {
    color: var(--highlight-color);
    text-decoration: underline;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f6f8f5; /* soft fallback tone */
    color: var(--font-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, #e8f5e9, #f0f4c3);
    background-image: url('/assets/images/background.webp');
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    background: #ffffff;
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 9999;
}

.skip-link:focus {
    left: 10px;
}

/* Banner Styling */
.banner {
    width: 100%;
    text-align: center;
    font-family: Garamond, "Times New Roman", serif;
    max-width: 100vw;
    background-color: #f0f0f0;
    padding: 50px;
    box-shadow: var(--box-shadow);
    box-sizing: border-box;
}

.banner h1 {
    font-size: 3em;
    color: #002855;
    margin: 0;
}

/* Content Box Styling */
.content-box {
    background-color: rgba(255, 255, 255, 0.9); /* White backing with some transparency */
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
    text-align: center;
}

/* Content Wrapper Styling */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Content Sections (Grid Layout) Styling */
.content-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 40px; /* Space between boxes */
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    margin-top: 40px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .content-sections {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .content-sections {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
        padding: 0 10px;
    }

    .banner {
        padding: 20px;
    }

    .navbar-menu {
        gap: 6px;
    }

    .navbar-menu a {
        padding: 7px 12px;
        font-size: 0.95rem;
    }

    .banner h1 {
        font-size: 2.5em;
    }

    button {
        width: 100%;
    }

    /* Stack bios vertically on mobile */
    .bio-row {
        flex-direction: column;
    }

    .bio-column {
        flex: 1 1 100%;
    }
}

/* ============================
   New Patient Call-to-Action Banner
   ============================ */

.new-patient-banner {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto 40px;
    padding: 28px 32px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
    border: 1px solid rgba(0,0,0,0.08);
    border-left: 6px solid #0b63b6;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    animation: bannerFadeIn 0.6s ease-out forwards;
    animation-delay: 0.15s;
}

.new-patient-banner h2 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.4;
    color: #002855;
}

.new-patient-banner a {
    color: #0b63b6;
    font-weight: 700;
    text-decoration: underline;
}

.new-patient-banner a:hover {
    color: #004999;
}

@keyframes bannerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Box Section Styling */
.box-section {
    background-color: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* CONTACT PAGE: improve hierarchy inside the Secure Upload card */
.fallback-box {
    margin-top: 28px;
    padding: 22px;
    border-radius: 12px;
    background: #f4f6f8;
    border: 1px solid #e2e6ea;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

/* Make the HIPAA notice look like a notice, not random red text */
.disclaimer-text {
    background: #fff5f5;
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 4px solid #d32f2f;
    color: #7a1c1c;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-preview {
    width: 150px;
    height: auto;
}

/* Important Note Styling */
.important-note {
    font-size: 1.2em;
    font-weight: bold;
    color: #d32f2f;
}

/* Profile Box Styling */
.profile-box {
    display: flex;
    flex-direction: column; /* image above text */
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.profile-box img {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.profile-box img:hover {
    transform: scale(1.05);
}

.profile-box.larger-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 20px;
    border-radius: var(--border-radius);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

/* Smaller logo inside the Our Story box */
.profile-box.larger-image img.story-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Center the logo when it’s wrapped in a button (modal trigger) */
.profile-box.larger-image .bio-image-button {
  display: block;
  margin: 0 auto 20px;
  align-self: center;
}

.profile-box.larger-image .bio-image-button img.story-logo {
  display: block;      /* ensures margin auto behaves predictably */
  margin: 0 auto;
}

/* Side-by-side bios */
.bio-row {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.bio-column {
    flex: 1 1 45%;
    min-width: 280px;
}

.subtitle-line{
  display:inline-block;
  margin-top: 6px; /* adjust to taste */
}

.bio-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}

.bio-column h3 {
    margin-bottom: 5px;
}

.bio-column h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: normal;
    color: var(--font-color);
    opacity: 0.85;
}
/* Close Button Styling */
.close-button {
    /* NEW: always visible even if user scrolls down the long image */
    position: fixed;
    top: 16px;
    right: 16px;

    background-color: #fff;
    color: var(--font-color);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2em;
    width: 36px;
    height: 36px;
    line-height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

/* Media Query Adjustment for Mobile */
@media (max-width: 768px) {
    .close-button {
        width: 32px;
        height: 32px;
        padding: 6px;
        font-size: 1em;
    }

    .profile-box {
        padding: 20px;
        align-items: flex-start;
    }

    .profile-box img {
        align-self: center;
    }
}

/* Button Styling */
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

button:hover {
    background-color: var(--secondary-color);
}

/* ---- Services layout ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* generic service card */
.service-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    line-height: 1.2;
    min-height: 3rem; /* keeps titles aligned even if one wraps */
}

.service-copy {
    flex: 1 1 auto;
    margin: 0 0 1rem 0;
    color: #334155;
    line-height: 1.6;
}

.price-row {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

/* first row: Price ….. $350 */
.price-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-label {
    font-weight: 600;
    opacity: 0.85;
}

.price-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 960px) {
    /* make the three top cards equal height */
    .service-box {
        min-height: 340px;
    }

    /* Scope of Care spans all columns and sizes to content */
    .service-box--full {
        grid-column: 1 / -1;
        min-height: auto;
    }
}

/* FAQ Styling */
.faq-container {
    width: 100%;
    max-width: 800px;
    margin: 12px auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
    cursor: default;
}

.faq-item:hover {
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

.question {
    font-weight: bold;
    font-size: 1.2em;
    color: #002855;
    cursor: pointer;
}

.answer {
    display: none;
    margin-top: 10px;
    color: #333;
    line-height: 1.6;
}

.answer.visible {
    display: block;
    opacity: 1;
}

/* Footer Styling */
footer {
    width: 100vw; /* Span the entire viewport width */
    background-color: var(--navbar-bg);
    color: white;
    padding: 20px 0;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    text-align: center;
}

/* ============================
   Auto-scrolling Testimonials
   ============================ */

/* Desktop / default */
.testimonials-section {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 10px;
    padding: 0 10px 10px;
    box-sizing: border-box;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.testimonials-section h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 8px;
    color: #002855;
}

.testimonials-intro {
    text-align: left;
    margin: 0 0 16px 0;
    color: var(--font-color);
    opacity: 0.9;
    font-size: 0.95rem;
}

.testimonial-scroller {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

/* fade edges */
.testimonial-scroller::before,
.testimonial-scroller::after {
    content: "";
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonial-scroller::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.testimonial-scroller::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* the moving strip (desktop) */
.testimonial-track {
    display: flex;
    gap: 20px;
    align-items: stretch;
    width: max-content;
    animation: testimonial-scroll 30s linear infinite;
}

/* pause when hovered so people can read */
.testimonial-scroller:hover .testimonial-track {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 320px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 18px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    margin: 0 0 12px 0;
    color: #333;
    line-height: 1.5;
    font-size: 0.95rem;
}

.testimonial-name {
    margin: 0;
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
    text-align: right;
    opacity: 0.85;
}

.testimonial-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    font-style: italic;
    color: #475569;
    opacity: 0.75;
    margin: 8px auto 30px;
    max-width: 800px;
}

/* keyframes: move left by 50% of track width (because we duplicated the set) */
@keyframes testimonial-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Non-desktop layout for testimonials (tablets + phones) --- */
@media (max-width: 1024px) {
    .testimonials-section {
        max-width: 100%;
        margin: 20px auto 10px;
        padding: 0 15px;
    }

    .testimonial-scroller {
        overflow: visible;
        padding: 0;
    }

    /* Turn off horizontal strip + animation below 1025px */
    .testimonial-track {
        animation: none !important;
        display: block !important;
        width: 100% !important;
        transform: none !important;
    }

    .testimonial-card {
        min-width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 18px;
        padding: 16px;
    }

    /* Hide duplicated testimonials below desktop width */
    .testimonial-card.duplicate {
        display: none !important;
    }

    /* Remove fade edges when not scrolling */
    .testimonial-scroller::before,
    .testimonial-scroller::after {
        display: none !important;
    }
}

/* Home: privacy note after testimonial disclaimer */
.testimonial-privacy-note {
  margin: 10px auto 40px;
  max-width: 800px;                 /* aligns with disclaimer width */
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0,0,0,0.10);
  border-left: 4px solid #0b63b6;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  color: var(--font-color);
  line-height: 1.5;
  text-align: left;
}

.testimonial-privacy-note h3 {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
  color: #0b2845;
}

.testimonial-privacy-note p {
  margin: 0.45rem 0 0 0;
}

/* ============================
   FAQ Enhancements (TOC, section controls, tables)
   ============================ */

/* Disclaimer styling */
.faq-disclaimer {
    max-width: 850px;
    margin: 10px auto 12px;
    padding: 14px 18px;
    background: #f7f9fc;
    border: 1px solid #dbe4f1;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #333;
    box-sizing: border-box;
}
.faq-disclaimer strong { color: #0b2845; }

/* FAQ search */
.faq-search-wrap {
    width: 100%;
    margin: 2px 0 14px;
    padding: 8px 12px 20px;
    background: rgba(247, 249, 252, 0.88);
    border: 1px solid #dbe4f1;
    border-radius: 10px;
    box-sizing: border-box;
}

.faq-search-controls {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.faq-search-main {
    position: relative;
    flex: 1;
    min-width: 0;
    align-self: flex-start;
}

.faq-search-matches {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #c8d8ec;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    z-index: 10;
    display: none;
}

.faq-search-matches.open {
    display: block;
}

.faq-search-match {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    padding: 9px 12px;
    font-size: 0.93rem;
    color: #1f2937;
    cursor: pointer;
}

.faq-search-match:last-child {
    border-bottom: 0;
}

.faq-search-match:hover,
.faq-search-match:focus {
    background: #eef6ff;
    outline: none;
}

.faq-search-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-start;
    margin: 0;
}

.faq-search-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.faq-search-input {
    display: block;
    width: 100%;
    flex: 1;
    height: 42px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #b7cee9;
    border-radius: 8px;
    font-size: 1rem;
    color: #1f2937;
    background: #fff;
    box-sizing: border-box;
}

.faq-search-input:focus {
    outline: none;
    border-color: #0b63b6;
    box-shadow: 0 0 0 2px #93c5fd;
}

.faq-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #b7cee9;
    border-radius: 8px;
    background: #fff;
    color: #0b63b6;
    font-weight: 600;
    cursor: pointer;
}

.faq-search-button:hover {
    background: #0b63b6;
    color: #fff;
    border-color: #0b63b6;
}

.faq-search-clear {
    color: #475569;
}

.faq-search-status {
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    margin: 0;
    color: #334155;
    font-size: 0.82rem;
    text-align: right;
    white-space: nowrap;
}

.faq-item.faq-hidden,
.faq-section.faq-hidden {
    display: none;
}

@media (max-width: 560px) {
    .faq-search-wrap {
        padding: 8px 10px 10px;
    }

    .faq-search-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-search-main {
        width: 100%;
    }

    .faq-search-matches {
        position: static;
        margin-top: 6px;
    }

    .faq-search-action {
        width: 100%;
        align-items: stretch;
    }

    .faq-search-buttons {
        flex-direction: column;
        width: 100%;
    }

    .faq-search-button {
        width: 100%;
    }

    .faq-search-status {
        position: static;
        margin-top: 4px;
        text-align: left;
        white-space: normal;
    }
}

/* Table wrapper for overflow on small screens */
.faq-container .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table baseline */
.faq-container table {
    width: 100%;
    border-collapse: collapse;
}
.faq-container th,
.faq-container td {
    padding: 6px 8px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: top;
    overflow-wrap: anywhere;
}

/* Compare table tweaks */
.faq-compare-table th {
    text-align: left;
    border-bottom: 1px solid #ccc;
}

/* ===== TOC ===== */
.faq-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1rem;
    padding: 14px 18px;
    margin: 18px auto 12px;
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(90deg, #f7faff 0%, #eef4fb 100%);
    border: 1px solid #dce5f3;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.faq-toc a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b63b6;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #b7cee9;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease-in-out;
    white-space: nowrap;
}
.faq-toc a:hover,
.faq-toc a:focus {
    background: #0b63b6;
    color: #fff;
    border-color: #0b63b6;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.faq-toc a:active { transform: scale(.97); }

/* Anchor offset for sticky TOC */
.faq-section {
    margin-top: 24px;
    border-top: 2px solid #e3e9f0;
    padding-top: 16px;
    scroll-margin-top: 110px;
}
.faq-section .faq-item { margin-bottom: 10px; }

/* ===== Section header + controls (buttons injected by JS) ===== */
.faq-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    background: linear-gradient(90deg, #f7faff 0%, #eef4fb 100%);
    border-left: 5px solid #0b63b6;
    color: #0b2845;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    padding: 10px 14px;
    margin: 6px 0 14px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.faq-section-controls {
    margin-left: auto;
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.faq-section-controls button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    line-height: 1;
    padding: 6px 10px;
    border: 1px solid #b7cee9;
    border-radius: 6px;
    background: #ffffff;
    color: #0b63b6;
    cursor: pointer;
    transition: all .15s ease-in-out;
}
.faq-section-controls button:hover {
    background: #0b63b6;
    color: #fff;
    border-color: #0b63b6;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.faq-section-controls button[data-mode="expand"]::before { content: "＋"; font-weight: 700; }
.faq-section-controls button[data-mode="collapse"]::before { content: "－"; font-weight: 700; }

@media (max-width: 560px) {
    .faq-section-title { font-size: 1.2rem; padding: 10px 12px; }
    .faq-section-controls { gap: 4px; }
    .faq-section-controls button { padding: 5px 8px; font-size: 0.8rem; }
}

/* Mobile TOC: collapsible panel */
.faq-toc-links { display: contents; }
.faq-toc-toggle { display: none; }

@media (max-width: 700px) {
    .faq-toc {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        left: 0;
        margin: 0;
        padding: 8px 10px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        max-width: none;
        background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
        box-shadow: 0 2px 3px rgba(0,0,0,.05);
        overflow: visible;
        gap: 8px;
    }

    .faq-toc-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        background: #fff;
        color: #0b2845;
        border: 1px solid #b7cee9;
        border-radius: 8px;
        padding: 10px 12px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all .15s ease-in-out;
    }
    .faq-toc-toggle::after { content: " ▾"; }
    .faq-toc.open .faq-toc-toggle::after { content: " ▴"; }
    .faq-toc-toggle:hover {
        background: #0b63b6;
        color: #fff;
        border-color: #0b63b6;
    }

    .faq-toc-links {
        display: block;
        width: 100%;
        background: #fff;
        border: 1px solid #dce5f3;
        border-radius: 10px;
        padding: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,.06);
        max-height: 55vh;
        overflow-y: auto;
    }

    .faq-toc.collapsed .faq-toc-links { display: none; }
    .faq-toc.open .faq-toc-links { display: block; }

    .faq-toc-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 12px;
        margin: 6px 0;
        font-size: .95rem;
        font-weight: 500;
        border: 1px solid #b7cee9;
        border-radius: 6px;
        background: #fff;
        color: #0b63b6;
        transition: all .15s ease-in-out;
        box-sizing: border-box;
        white-space: normal;
    }
    .faq-toc-links a:hover,
    .faq-toc-links a:focus {
        background: #0b63b6;
        color: #fff;
        border-color: #0b63b6;
    }

    .faq-section { scroll-margin-top: 180px; }
}

/* ============================
   Contact page: utility classes
   ============================ */

.contact-spacer-top { margin-top: 12px; }
.contact-spacer-tight { margin-top: 0.5rem; }

.contact-upload-list {
    text-align: left;
    max-width: 700px;
    margin: 16px auto 0;
    line-height: 1.5;
}

.contact-h3-tight { margin-top: 0; }
.contact-p-tight { margin-bottom: 8px; }

.contact-mailing-address {
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-muted {
    margin-top: 8px;
    opacity: 0.85;
}

.contact-muted-tight {
    margin-top: 10px;
    opacity: 0.85;
}

/* Map iframe: consistent sizing without inline styles */
.contact-map {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* ============================
   Resources Page: download gate + modals
   ============================ */

.important-note--green {
    color: #1b5e20;
}

.form-upload-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Resources download button (used on resources.html) */
button.download-link {
    display: inline-block;
    width: 100%;
    max-width: 520px;
    text-align: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-top: 10px; /* override global button margin */
}

button.download-link:hover {
    background: transparent; /* prevent global hover from tinting */
}

.download-link-text {
    display: inline-block;
    margin-top: 0.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

button.download-link:hover .download-link-text,
button.download-link:focus .download-link-text {
    text-decoration: underline;
}

.resource-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-links li {
    margin: 0.4rem 0;
}

/* Backdrop */
.backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Unified modal style */
.warning-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    width: 92%;
    max-width: 540px;
    padding: 26px 24px;
    background: #ffffff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.24);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    text-align: left;
    line-height: 1.55;
    border-left: 6px solid #d32f2f;
}

.warning-modal h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    color: #002855;
}

.warning-modal p {
    margin: 0.35rem 0 0 0;
}

/* Accent variants */
.warning-modal--danger { border-left-color: #d32f2f; }
.warning-modal--amber  { border-left-color: #f2b800; }
.warning-modal--blue   { border-left-color: #1976d2; }

/* ============================
   Modal Styling (centered + tall-image friendly)
   ============================ */

.modal {
  display: none;
  position: fixed;
  inset: 0; /* replaces top/left/width/height */
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;

  /* Center the modal-content box */
  justify-content: center;
  align-items: center;

  /* Breathing room so the box never touches the edges */
  padding: 24px 16px;
  box-sizing: border-box;

  /* Prevent double-scroll; scroll will be inside .modal-content */
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Visible state toggled by JS (apply class to the .modal element) */
.modal.modal-show {
  display: flex;
}

/* The scroll container for tall images */
.modal-content {
  position: relative;
  width: min(1100px, 92vw);
  max-height: calc(100vh - 48px); /* accounts for .modal padding */
  overflow: auto;
  margin: 0; /* no auto-centering needed since flex does it */
}

.modal-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

/* CTA button inside modal */
.warning-modal .modal-cta {
    display: inline-block;
    margin-top: 18px;
    background-color: #006aff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.05s ease;
}

.warning-modal .modal-cta:hover { background-color: #004dcc; }
.warning-modal .modal-cta:active { transform: translateY(1px); }

/* Visible state toggled by JS */
.modal-show { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.backdrop-show { display: block; opacity: 1; }

/* ============================
   Image modal sizing: compact by default, wide for charts
   ============================ */

/* Center the image modal (override your flex-start) */
#imageModal {
  align-items: center;    /* was flex-start */
  overflow: hidden;       /* scrolling happens inside .modal-content */
}

/* Default = compact (better for provider headshots) */
#imageModal .modal-content {
  width: min(560px, 92vw);                 /* <-- adjust if you want even smaller (e.g., 480px) */
  max-height: calc(100vh - 48px);          /* accounts for your 24px top/bottom padding */
  overflow: auto;
  margin: auto;                             /* true center */
}

/* Wide = charts */
#imageModal.modal--wide .modal-content {
  width: min(1100px, 92vw);
}

/* Keep images responsive within the modal box */
#imageModal .modal-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Logo button should look like a plain image (no button chrome) */
.story-logo-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Standard of Care: full-width modal mode */
#imageModal.modal--full {
  padding: 12px 10px; /* smaller padding so it feels near full-screen */
}

#imageModal.modal--full .modal-content {
  width: 100%;
  max-width: none;
  max-height: calc(100vh - 24px); /* matches the padding above */
  overflow: auto;                 /* scroll up/down inside the modal */
}

/* 3) Resources download: make the preview + text look like the intended “button” again
      (works whether it’s an <a> or <button>) */
a.download-link,
button.download-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  background: transparent !important;
  border: none !important;
  padding: 0 !important;

  width: auto !important;
  max-width: 520px;
  margin-top: 10px;
  box-sizing: border-box;
}

a.download-link {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

a.download-link.contact-upload-button {
  display: inline-block !important;
  width: min(100%, 520px) !important;
  margin: 12px auto 0;
  padding: 12px 18px !important;
  border-radius: 9px;
  background: #1976e6 !important;
  color: #ffffff !important;
  font-size: clamp(1.12rem, 1.65vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 3px 10px rgba(10, 70, 155, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.download-link.contact-upload-button:hover,
a.download-link.contact-upload-button:focus-visible {
  background: #0f63ce !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(10, 70, 155, 0.26);
}

a.download-link:hover {
  color: var(--secondary-color);
}

/* keeps the preview centered and “card-like” */
a.download-link .form-preview,
button.download-link .form-preview {
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* If you keep the text as plain anchor text (with <br>), this still helps */
a.download-link {
  text-align: center;
}

/* Optional: if you later wrap the text in <span class="download-link-text">…</span> */
a.download-link .download-link-text,
button.download-link .download-link-text {
  display: inline-block;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.download-link:hover .download-link-text,
button.download-link:hover .download-link-text {
  color: var(--secondary-color);
}

/* Sheet container */
.provider-sheet {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 26px 26px;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}

.provider-sheet h2 {
  color: #002855;
  margin: 18px 0 10px;
  line-height: 1.2;
}

.provider-h2-tight { margin-top: 14px; }

.provider-callout {
  padding: 18px 20px;
  border-left: 5px solid #0b63b6;
  background: linear-gradient(135deg, rgba(11, 99, 182, 0.1), rgba(11, 99, 182, 0.03));
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.provider-footnote {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 12px;
}

.provider-muted {
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.92rem;
}

/* Table */
/* ============================
   Provider table: responsive reflow (desktop table → mobile cards)
   ============================ */

/* Desktop/tablet: keep as real table, but allow wrapping */
.provider-table-wrap {
  margin-top: 12px;
  overflow-x: visible;              /* no forced horizontal scroll */
}

.provider-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;              /* makes columns share space predictably */
}

.provider-table th,
.provider-table td {
  border-bottom: 1px solid rgba(0,0,0,0.10);
  padding: 10px 10px;
  vertical-align: top;
  text-align: left;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.provider-table th {
  background: rgba(247, 250, 255, 0.9);
  color: #0b2845;
}

/* Mobile: turn each row into a readable “card” */
@media (max-width: 900px) {

  .provider-table,
  .provider-table thead,
  .provider-table tbody,
  .provider-table th,
  .provider-table tr {
    display: block;
    width: 100%;
  }

  .provider-table thead {
    display: none; /* hide header row */
  }

  .provider-table tr {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 10px 12px;
    margin: 0 0 14px 0;
  }

  .provider-table td {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 0.95rem;
  }

  .provider-table td:last-child {
    border-bottom: none;
  }

  /* Label each cell using data-label="..." from the HTML */
  .provider-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    font-weight: 800;
    color: #0b2845;
    line-height: 1.25;
  }

  .provider-table td[data-label=""]::before {
    content: none;
    flex: 0 0 auto;
  }

  /* Make the first column feel like a title */
  .provider-table tbody tr td:first-child {
    font-size: 1.05rem;
  }

  .provider-table tbody tr td:first-child::before {
    flex-basis: 42%;
  }
}

@media (max-width: 600px) {
  .provider-table td {
    display: block;
    padding: 10px 0;
  }

  .provider-table td::before {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    line-height: 1.2;
  }
}

/* Floating physician-led CTA (circle + squishy float) */
.floating-physician-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;

  width: 58px;
  height: 58px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  background: #003a75;               /* darker blue */
  color: #ffffff !important;
  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 10px 25px rgba(0,0,0,0.22);

  /* float + squish animation */
  animation: floatSquish 2.6s ease-in-out infinite;
  transform-origin: center;
}

.floating-physician-cta__icon {
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* Tooltip label on hover/focus */
.floating-physician-cta::before {
  content: attr(data-label);
  position: absolute;
  right: 70px;                 /* sits to the left of the circle */
  bottom: 50%;
  transform: translateY(50%);

  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.floating-physician-cta:hover::before,
.floating-physician-cta:focus-visible::before {
  opacity: 1;
}

/* Hover/active feel */
.floating-physician-cta:hover {
  filter: brightness(1.07);
  box-shadow: 0 12px 30px rgba(0,0,0,0.26);
}

.floating-physician-cta:active {
  /* keep it “pressy” even while animating */
  filter: brightness(0.98);
}

/* Accessible focus */
.floating-physician-cta:focus { outline: none; }

.floating-physician-cta:focus-visible {
  outline: 3px solid rgba(255, 204, 0, 0.65);
  outline-offset: 4px;
}

/* Screen-reader-only text */
.floating-physician-cta__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* The squishy “float” */
@keyframes floatSquish {
  0%   { transform: translateY(0)    scaleX(1.00) scaleY(1.00); }
  15%  { transform: translateY(-8px) scaleX(1.06) scaleY(0.96); } /* squish at top */
  35%  { transform: translateY(-8px) scaleX(1.02) scaleY(0.99); }
  50%  { transform: translateY(0)    scaleX(0.96) scaleY(1.06); } /* squish at bottom */
  70%  { transform: translateY(0)    scaleX(0.99) scaleY(1.01); }
  100% { transform: translateY(0)    scaleX(1.00) scaleY(1.00); }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .floating-physician-cta {
    right: 12px;
    bottom: 12px;
    width: 54px;
    height: 54px;
  }
  /* On very small screens, hide the tooltip to avoid covering content */
  .floating-physician-cta::before {
    display: none;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .floating-physician-cta { animation: none; }
}

/* Hide the floating physician CTA on select pages where it can obstruct primary actions */
body.page-who-provides-your-care .floating-physician-cta,
body.page-intake-wizard .floating-physician-cta {
  display: none !important;
}
/* ============================
   Print-friendly handout
   ============================ */
@media print {
  /* Remove chrome */
  #navbar, .navbar, #footer, footer, .banner,
  .floating-physician-cta, .skip-link {
    display: none !important;
  }

  /* Clean white page */
  body {
    background: #ffffff !important;
    background-image: none !important;
    color: #000 !important;
  }

  /* Remove card effects */
  .provider-sheet,
  .content-box,
  .box-section,
  .profile-box,
  .faq-item {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  /* Typography */
  h1, h2, h3 {
    color: #000 !important;
  }

  a, a:visited {
    color: #000 !important;
    text-decoration: underline !important;
  }

  /* Make the provider table printable */
  .provider-table-wrap {
    overflow: visible !important;
  }

  .provider-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  .provider-table th,
  .provider-table td {
    border: 1px solid #bbb !important;
    padding: 6px 7px !important;
    vertical-align: top !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    font-size: 10pt !important;
    line-height: 1.25 !important;
  }

  .provider-table th {
    background: #f2f2f2 !important;
  }

  /* Avoid awkward breaks */
  .provider-table tr,
  .provider-callout {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ============================
   Who Provides Your Care — emphasis + contrast styling
   ============================ */

.provider-sheet--enhanced .provider-lede {
  margin-top: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  opacity: 0.95;
}


.provider-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(11, 99, 182, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.provider-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 99, 182, 0.2), transparent);
}

.provider-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(11, 99, 182, 0.08);
  color: #0b4f93;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.provider-hero__eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b63b6, #5ea7e6);
  box-shadow: 0 0 0 4px rgba(11, 99, 182, 0.12);
}

.provider-hero__title {
  max-width: 22ch;
  margin: 0 0 1rem;
  color: #082847;
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.provider-lede--hero {
  max-width: 58rem;
  margin-bottom: 0;
  font-size: 1.08rem;
  color: #163958;
}

.provider-hero__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.35rem;
}

.provider-hero__details .provider-lede {
  margin-bottom: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(11, 99, 182, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(8, 40, 71, 0.05);
}

.provider-closing {
  margin-top: 24px;
}

.provider-callout--closing {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.65;
}

.provider-at-a-glance h2,
.provider-contrasts h2,
.provider-roles h2,
.provider-questions h2,
.provider-delegation h2 {
  margin-top: 18px;
}

/* Card-style islands for provider page sections */
.provider-island {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-top: 20px;
}

.provider-hero.provider-island {
  margin-top: 0;
}

.provider-island h2 {
  margin-top: 0;
}

/* Stack the two “at a glance” blocks with consistent spacing */
.provider-glance-stack {
  display: flex;
  flex-direction: column;
  gap: 28px; /* adjust to taste */
}

/* ============================
   At-a-glance cards (chart-matched accents)
   ============================ */

/* Match your chart bars (approx): blue / green / peach */
:root{
  --chart-accent-psy: #6FD0F6;
  --chart-accent-pa:  #43D66B;
  --chart-accent-np:  #F4B08A;
}

/* Grid layout */
.provider-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

/* Base card */
.provider-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  position: relative;
}

/* Title */
.provider-card__title {
  font-weight: 900;
  color: #0b2845;
  margin-bottom: 8px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Map each card to a chart-matched accent */
.provider-card--psychiatrist { --card-accent: var(--chart-accent-psy); }
.provider-card--pa          { --card-accent: var(--chart-accent-pa);  }
.provider-card--pmhnp       { --card-accent: var(--chart-accent-np);  }

/* Accent border */
.provider-card--psychiatrist,
.provider-card--pa,
.provider-card--pmhnp {
  border-left: 6px solid var(--card-accent);
}

/* Subtle left-to-right tint (works where supported) */
.provider-card--psychiatrist::before,
.provider-card--pa::before,
.provider-card--pmhnp::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--card-accent) 14%, transparent),
    transparent 55%
  );
}

/* Title dot keyed to accent */
.provider-card--psychiatrist .provider-card__title::before,
.provider-card--pa .provider-card__title::before,
.provider-card--pmhnp .provider-card__title::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--card-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent) 18%, transparent);
}

/* (Optional) If you want guaranteed tint on older browsers, uncomment:
.provider-card--psychiatrist::before{ background: linear-gradient(90deg, rgba(111,208,246,0.14), rgba(255,255,255,0) 55%); }
.provider-card--pa::before{          background: linear-gradient(90deg, rgba( 67,214,107,0.14), rgba(255,255,255,0) 55%); }
.provider-card--pmhnp::before{       background: linear-gradient(90deg, rgba(244,176,138,0.14), rgba(255,255,255,0) 55%); }
.provider-card--psychiatrist .provider-card__title::before{ box-shadow: 0 0 0 3px rgba(111,208,246,0.18); }
.provider-card--pa .provider-card__title::before{          box-shadow: 0 0 0 3px rgba( 67,214,107,0.18); }
.provider-card--pmhnp .provider-card__title::before{       box-shadow: 0 0 0 3px rgba(244,176,138,0.18); }
*/

/* ============================
   Contrasts + questions styling (unchanged)
   ============================ */

.provider-contrast-list {
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.6;
}

.provider-contrast-list li {
  margin: 0.5rem 0;
}

.provider-paragraph {
  margin-top: 12px;
  line-height: 1.6;
}

.provider-checklist {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.provider-checklist li {
  position: relative;
  padding-left: 28px;
  margin: 0.6rem 0;
  line-height: 1.55;
}

.provider-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-weight: 900;
  color: #0b63b6;
}

/* ============================
   Provider training visuals
   ============================ */

.provider-training-visuals { text-align: left; }

.provider-training-visuals h2 {
  text-align: center;
  margin-top: 0;
}

.provider-training-visuals__hint {
  margin: 6px 0 14px;
  font-size: 0.95rem;
  opacity: 0.8;
  text-align: center;
}

.provider-training-visuals__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}

.provider-training-visuals__item { margin: 0; }

/* Make the "wide" item span the row but keep the same visual width as a normal column */
.provider-training-visuals__item--wide {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: calc((100% - 16px) / 2); /* 16px must match your grid gap */
}

.training-chart__btn {
  width: 100%;
  display: block;
  background: none;
}

.training-chart__btn:hover,
.training-chart__btn:active {
  background: none; /* prevent global button hover color */
}

.training-chart__btn img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.training-chart__btn:focus-visible img {
  outline: 3px solid rgba(11, 99, 182, 0.45);
  outline-offset: 3px;
}

.provider-training-visuals__item figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.35;
  opacity: 0.95;
  text-align: left;
}

.provider-training-visuals__note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
  .provider-training-visuals__grid { grid-template-columns: 1fr; }
  .provider-training-visuals__item--wide { max-width: 100%; }
}

/* Print */
@media print {
  .training-chart__btn img { box-shadow: none; }
  .provider-training-visuals__item { break-inside: avoid; }
}


@media (max-width: 900px) {
  .training-charts__grid {
    grid-template-columns: 1fr;
  }
  .training-charts__item--wide {
    grid-column: auto;
  }
}

/* Print: keep charts crisp and avoid awkward breaks */
@media print {
  .training-charts__btn img { box-shadow: none; }
  .training-charts__item { break-inside: avoid; }
}

@media (max-width: 900px) {
  .provider-island {
    padding: 18px;
  }

  .provider-hero__details {
    grid-template-columns: 1fr;
  }

  .provider-hero__title {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .provider-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .provider-hero__eyebrow {
    letter-spacing: 0.08em;
  }

  .provider-hero__title {
    font-size: 1.9rem;
  }

  .provider-hero__details .provider-lede,
  .provider-callout {
    padding: 0.95rem 1rem;
  }
}
/* Paragraph spacing inside the "Our Approach" profile box */
.profile-box.larger-image p {
  margin: 0 0 1.05rem;   /* keeps paragraph-to-paragraph spacing normal */
}

/* Make the gap BEFORE headings larger (i.e., after the last paragraph) */
.profile-box.larger-image p + h2,
.profile-box.larger-image p + h3 {
  margin-top: 4rem;    /* increase this to make the break bigger */
}

/* Keep headings snug to the paragraph that follows */
.profile-box.larger-image h2 + p,
.profile-box.larger-image h3 + p {
  margin-top: 0.4rem;
}

/* ============================
   FIXES: footer links, resources download link, doctor photo hover
   Paste at END of style.css
   ============================ */

/* 1) Footer phone/email readability */
.site-footer a,
footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:visited,
footer a:visited {
  color: #ffffff;
}

.site-footer a:hover,
footer a:hover {
  color: var(--highlight-color);
}

/* 2) Doctor photo hover: prevent global button styling from painting a blue box */
.bio-image-button {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;           /* overrides global button margin-top */
  width: auto !important;         /* overrides mobile button { width:100% } */
  max-width: none !important;
  line-height: 0;                 /* removes stray inline spacing */
  display: inline-block;
}

.bio-image-button:hover,
.bio-image-button:active {
  background: transparent !important;
}

.bio-image-button:focus {
  outline: none;
}

.bio-image-button:focus-visible {
  outline: 3px solid rgba(255, 204, 0, 0.65);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ensure the image itself stays clean */
.bio-image-button img {
  display: block;
  border-radius: 8px;
}
