:root {
        --office-bg: #f4f8fc;
        --office-bg-2: #edf4fb;
        --office-surface: rgba(255,255,255,0.96);
        --office-text: #0f172a;
        --office-muted: #475569;
        --office-line: #d7e2f0;
        --office-primary: #2563eb;
        --office-primary-dark: #1d4ed8;
        --office-accent: #f97316;
        --office-accent-soft: #fff7ed;
        --office-success-soft: #ecfdf5;
        --office-success: #166534;
        --office-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
        --office-shadow-md: 0 18px 46px rgba(15, 23, 42, 0.09);
        --office-radius-xl: 28px;
        --office-radius-lg: 22px;
        --office-container: 1180px;
        --office-content: 1180px;
    }

    .office-new-skin,
    .office-new-skin * {
        box-sizing: border-box;
    }

    .office-new-skin {
        color: var(--office-text);
        line-height: 1.6;
        font-family: Figtree, Arial, sans-serif;
        background:
            radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 26%),
            radial-gradient(circle at top right, rgba(249,115,22,0.10), transparent 22%),
            linear-gradient(180deg, var(--office-bg) 0%, var(--office-bg-2) 100%);
        padding-bottom: 40px;
    }

    .office-new-skin a { color: inherit; }
    .office-new-skin img { display: block; max-width: 100%; }
    .office-new-skin button { font: inherit; }

    .office-container { width: min(var(--office-container), calc(100% - 32px)); margin: 0 auto; }
    /* One outer office-page gutter; nested containers retain their grid widths. */
    .office-redesign29 > .office-container { padding-left: 0; padding-right: 0; }
    .office-content-wrap { width: min(var(--office-content), 100%); margin: 0 auto; }

    .office-local-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255,255,255,0.84);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(215,226,240,0.88);
    }

    .office-header-inner {
        min-height: 84px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .office-brand {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        white-space: nowrap;
    }

    .office-brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        background: linear-gradient(135deg, #2563eb 0%, #7aa8ff 100%);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    }

    .office-brand-copy { display: grid; gap: 2px; }
    .office-brand-name { font-weight: 900; letter-spacing: -0.03em; font-size: 1.25rem; line-height: 1; }
    .office-brand-name .dotcom { color: var(--office-accent); }
    .office-brand-tag { color: #64748b; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }

    .office-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
    .office-nav a { text-decoration: none; color: #334155; font-weight: 800; font-size: 0.95rem; }
    .office-nav a:hover, .office-nav a:focus-visible { color: var(--office-primary); }
    .office-nav .book-link {
        min-height: 46px;
        padding: 0 18px;
        border-radius: 999px;
        background: var(--office-accent-soft);
        color: #c2410c;
        border: 1px solid #fed7aa;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 22px rgba(249,115,22,0.10);
    }

    .office-section { padding: 22px 0; }
    .office-glass-card {
        background: var(--office-surface);
        border: 1px solid rgba(215,226,240,0.92);
        box-shadow: var(--office-shadow-md);
        backdrop-filter: blur(14px);
        border-radius: var(--office-radius-xl);
    }

    .office-hero-card { padding: 34px; margin-top: 20px; }
    .office-section-card { padding: 32px; }

    .office-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid #dce8f8;
        color: #214976;
        font-size: 0.9rem;
        font-weight: 900;
    }

    .office-hero-title,
    .office-section-title {
        margin: 0 0 10px;
        letter-spacing: -0.03em;
        line-height: 1.15;
        color: var(--office-text);
    }

    .office-hero-title { 
        font-size: clamp(1.65rem, 2.6vw, 2rem);
        max-width: 40ch;
        overflow-wrap: normal;
        word-break: normal;
    }


    .office-section-title { 
        font-size: 1.55rem; 
    }
    .office-copy { margin: 0; color: var(--office-muted); line-height: 1.7; }

    .office-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(430px, 480px);
        gap: 24px;
        align-items: stretch;
        margin-top: 18px;
    }

    .office-hero-copy-block { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
    .office-hero-actions,
    .office-quick-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

    .office-primary-btn,
    .office-secondary-btn,
    .office-light-btn,
    .office-orange-btn {
        min-height: 52px;
        padding: 0 20px;
        border-radius: 15px;
        cursor: pointer;
        font-weight: 900;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }

    .office-primary-btn { color: #fff; background: #2B82F6; box-shadow: 0 16px 32px rgba(37,99,235,0.24); }
    .office-primary-btn:hover { background: linear-gradient(135deg, var(--office-primary-dark) 0%, var(--office-primary) 100%); transform: translateY(-1px); }
    .office-hero-contact { margin-top: 10px; margin-bottom: 16px; }
    .office-hero-contact-line { margin: 0 0 5px; }
    .office-hero-contact-line:last-child { margin-bottom: 0; }
    .office-hero-contact-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
    .office-secondary-btn, .office-orange-btn { border: 1px solid #fed7aa; background: var(--office-accent-soft); color: #c2410c; box-shadow: 0 10px 22px rgba(249,115,22,0.10); }

    /* Office-owner editing controls: light green, without changing other page buttons. */
    .office-editor-card #change-office,
    .office-editor-card a.office-secondary-btn,
    .office-editor-card input.office-secondary-btn[type="submit"] {
        background: #dcfce7;
        background-image: none;
        border: 1px solid #86efac;
        color: #166534;
        box-shadow: 0 10px 22px rgba(22,101,52,0.10);
    }
    .office-editor-card #change-office:hover,
    .office-editor-card a.office-secondary-btn:hover,
    .office-editor-card input.office-secondary-btn[type="submit"]:hover {
        background: #bbf7d0;
        border-color: #4ade80;
        color: #14532d;
    }

    /* Soft, compact container behind the office-owner edit controls. */
    .office-editor-card {
        width: fit-content !important;
        max-width: 100% !important;
        background: #ffffff !important;
        background-image: none !important;
        border: 1px solid rgba(154,154,154,0.45) !important;
        box-shadow: none !important;
        padding: 14px 16px !important;
        border-radius: 16px !important;
    }
    .office-secondary-btn:hover, .office-light-btn:hover, .office-orange-btn:hover { transform: translateY(-1px); }
    .office-light-btn { border: 1px solid #B7D3F7; background: #E8F1FF; color: #1E6FD9; }
    .office-action-strip .office-light-btn { border-color: #1E6FD9; background: #1E6FD9; color: #fff; -webkit-text-fill-color: #fff; }
    .office-action-strip .office-light-btn:hover,
    .office-action-strip .office-light-btn:focus { border-color: #3B82F6; background: #3B82F6; color: #fff; -webkit-text-fill-color: #fff; }

    .office-hero-photo-card {
        overflow: hidden;
        border-radius: 24px;
        border: 1px solid #dce8f8;
        background: #fff;
        box-shadow: var(--office-shadow-sm);
    }

    .office-main-photo {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        cursor: pointer;
        background: #eef5ff;
    }

    .office-default-photo-note {
        padding: 8px 14px 9px;
        background: #fff;
        color: #64748b;
        font-size: 0.82rem;
        line-height: 1.35;
        text-align: center;
    }

    .office-gallery-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        margin-top: 12px;
        padding: 10px 12px;
        border: 1px solid #dce8f8;
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--office-shadow-sm);
    }

    .office-gallery-thumb {
        width: 100%;
        min-width: 0;
        height: 58px;
        border-radius: 9px;
        border: 2px solid transparent;
        padding: 0;
        overflow: hidden;
        cursor: pointer;
        background: #eef5ff;
    }

    .office-gallery-thumb.is-active { border-color: var(--office-primary); }
    .office-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

    .office-trust-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 18px;
    }

    .office-trust-card,
    .office-info-box,
    .office-service-pill,
    .office-review-card,
    .office-hours-row,
    .office-contact-card,
    .office-dentist-card {
        background: #fff;
        border: 1px solid #dce8f8;
        box-shadow: var(--office-shadow-sm);
        border-radius: 18px;
    }

    .office-trust-card { padding: 14px; }
    .office-trust-label { display: block; color: #64748b; font-size: 0.82rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
    .office-trust-value { display: block; color: #173a66; font-weight: 900; margin-top: 3px; }

    .office-anchor-bar {
        position: sticky;
        top: 0;
        z-index: 90;
        padding: 10px 0;
        background: rgba(244,248,252,0.86);
        backdrop-filter: blur(12px);
    }

    .office-anchor-card {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 10px;
        border-radius: 999px;
        background: rgba(255,255,255,0.9);
        border: 1px solid #dce8f8;
        box-shadow: var(--office-shadow-sm);
    }

    .office-anchor-card a {
        white-space: nowrap;
        text-decoration: none;
        padding: 10px 14px;
        border-radius: 999px;
        color: #27466d;
        font-weight: 800;
        font-size: 0.93rem;
    }

    .office-anchor-card a:hover,
    .office-anchor-card a:focus-visible { background: #eff6ff; color: #1d4ed8; }

    .office-two-col-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
        gap: 18px;
        align-items: start;
    }

    .office-info-grid,
    .office-services-grid,
    .office-review-grid,
    .office-dentists-grid { display: grid; gap: 12px; }
    .office-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .office-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
    .office-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
    .office-dentists-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }

    .office-info-box,
    .office-contact-card,
    .office-review-card { padding: 16px; }
    .office-info-box strong,
    .office-contact-card strong { display: block; color: #173a66; margin-bottom: 4px; }
    .office-info-box span,
    .office-contact-card span { color: var(--office-muted); }

    .office-service-pill { padding: 14px 16px; color: #173a66; font-weight: 850; }

    .office-side-card {
        padding: 20px;
        border-radius: 22px;
        background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
        border: 1px solid #fed7aa;
        box-shadow: var(--office-shadow-sm);
    }

    .office-side-card h3 { margin: 0 0 8px; letter-spacing: -0.02em; }

    .office-hours-list { display: grid; gap: 10px; margin-top: 16px; }
    .office-hours-table table,
    .office-hours-table { width: 100%; }
    .office-hours-table table { border-collapse: collapse; border-spacing: 0; }
    .office-hours-table td,
    .office-hours-table th {
        background: transparent;
        border: 0;
        border-bottom: 1px solid #edf0f4;
        border-radius: 0;
        padding: 4px 0;
        text-align: left;
        color: #405269;
    }
    .office-hours-table th { color: #173a66; font-weight: 700; }
    .office-hours-table td:last-child { text-align: right; }
    .office-hours-table tr:last-child > * { border-bottom: 0; padding-bottom: 0; }
    .office-hours-table tr:first-child > * { padding-top: 0; }

    .office-review-summary {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        margin-top: 14px;
        padding: 16px;
        border-radius: 18px;
        background: var(--office-success-soft);
        border: 1px solid #bbf7d0;
        color: var(--office-success);
        font-weight: 900;
    }

    .office-stars { color: #c2410c; letter-spacing: 0.04em; }
    .office-review-card p { margin: 8px 0 0; color: var(--office-muted); }

    .office-map-card {
        overflow: hidden;
        border-radius: 22px;
        border: 1px solid #dce8f8;
        background: #fff;
        box-shadow: var(--office-shadow-sm);
        margin-top: 16px;
    }

    .office-map-card iframe {
        width: 100%;
        height: 360px;
        border: 0;
        display: block;
    }

    .office-map-footer { padding: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; border-top: 1px solid #dce8f8; }

    .office-contact-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 16px;
    }

    .office-contact-card a { color: var(--office-primary); font-weight: 800; text-decoration: none; word-break: break-word; }

    .office-appointment-panel {
        padding: 28px;
        border-radius: var(--office-radius-xl);
        background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
        color: #fff;
        box-shadow: var(--office-shadow-md);
    }

    .office-appointment-panel h2 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: -0.03em; color: #fff; }
    .office-appointment-panel p { margin: 0; color: rgba(255,255,255,0.82); }
    .office-appointment-panel .office-quick-actions { margin-top: 16px; }
    .office-appointment-panel .office-secondary-btn { background: #fff; color: #0f172a; border-color: rgba(255,255,255,0.12); }
    .office-appointment-panel .office-light-btn { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.24); }

    .office-dentist-card { padding: 16px; text-align: center; }
    .office-dentist-card a { text-decoration: none; color: #173a66; font-weight: 900; }
    .office-dentist-photo-wrap { width: 100px; height: 150px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 18px; background: #eef5ff; }
    .office-edit-mini { margin-top: 8px; }
    .office-edit-mini a { color: var(--office-primary); }

    .office-action-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        align-items: center;
        padding: 22px 0 0;
    }

    .office-gallery-modal {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: rgba(15, 23, 42, 0.82);
    }

    .office-gallery-modal.show { display: flex; }
    .office-modal-panel {
        width: fit-content;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
        border-radius: 24px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 24px 70px rgba(0,0,0,0.35);
        position: relative;
    }

    /* Mirror the office thumbnail's 4:3 cover crop, at viewer size. */
    .office-gallery-modal .office-modal-panel img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        height: auto;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center center;
        margin: 0;
    }
    .office-modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
    .office-modal-btn { min-height: 42px; padding: 0 14px; border: 1px solid #B7D3F7; border-radius: 999px; background: #fff; color: #214976; cursor: pointer; font-weight: 900; }

    .office-editor-bar {
        padding-top: 18px;
    }

    .office-editor-card {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        justify-content: center;
        padding: 16px;
    }

    @media (max-width: 900px) {
        .office-header-inner { min-height: auto; padding: 14px 0; align-items: flex-start; flex-direction: column; }
        .office-nav { justify-content: flex-start; }
        .office-anchor-bar { top: 0; }
        .office-hero-grid,
        .office-two-col-grid,
        .office-info-grid,
        .office-services-grid,
        .office-review-grid,
        .office-contact-grid,
        .office-trust-grid,
        .office-dentists-grid { grid-template-columns: 1fr; }
    
        .office-main-photo { height: auto; aspect-ratio: 4 / 3; }
    }

    @media (max-width: 640px) {
        .office-container { width: min(var(--office-container), calc(100% - 12px)); }
        .office-hero-card,
        .office-section-card,
        .office-appointment-panel { padding: 20px 16px; }
        .office-quick-actions > a,
        .office-action-strip > a { width: 100%; min-height: 50px; }
        .office-trust-grid { grid-template-columns: 1fr; }
        .office-anchor-bar { display: none; }
        .office-gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    .office-trust-grid-below {
        margin-top: 16px;
    }

    /* Office hero: company name centered across the full picture + information width. */
    .office-hero-grid-photo-left {
        grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr) !important;
        grid-template-areas:
            "office-title office-title"
            "office-photo office-copy";
        align-items: start;
    }
    .office-hero-grid-photo-left > .office-mobile-hero-title {
        display: block;
        grid-area: office-title;
        width: 100%;
        max-width: none;
        margin: 0 0 12px;
        text-align: center;
    }
    .office-hero-grid-photo-left .office-hero-photo-column {
        grid-area: office-photo;
        order: 1;
        width: 91.8%;
    }
    .office-hero-grid-photo-left .office-hero-photo-card {
        width: 100%;
    }
    .office-hero-grid-photo-left .office-hero-copy-block {
        grid-area: office-copy;
        order: 2;
        width: 100%;
        max-width: none;
    }
    .office-hero-grid-photo-left .office-hero-copy-block .office-hero-title {
        display: none;
    }

    /* V18-033: office picture remains at its current 16:9 size. */


    /* V18-030: patient-first information hierarchy. */
    .office-patient-hero-section { padding-top: 0; padding-bottom: 0; }
    .office-patient-hero { margin-top: 0; padding-bottom: 12px; }
    .office-patient-hero-section + .office-section { padding-top: 0; }
    .office-patient-hero-copy { justify-content: flex-start; gap: 24px; transform: translateY(-4px); }
    .office-patient-actions {
        margin-top: 4px;
        transform: translateY(-2px);
    }
    .office-patient-actions .office-primary-btn,
    .office-patient-actions .office-light-btn { min-height: 48px; }
    .office-about-copy { max-width: 82ch; }
    .office-patient-info-grid { margin-top: 22px; }
    #hours .office-hours-table { max-width: 760px; }
    #reviews .office-review-summary { margin-top: 12px; }
    #directions .office-map-card { margin-top: 18px; }

    @media (max-width: 760px) {
        .office-patient-actions { transform: none; }
        .office-patient-actions > a { width: 100%; }
        .office-patient-hero-section { padding-top: 14px; }
        .office-patient-hero-copy { transform: none; }
    }


    /* V18-042: mobile/tablet office hero is name, picture, then information. */
    .office-mobile-hero-title { display: none; }

    @media (max-width: 1024px) {
        .office-hero-grid-photo-left {
            grid-template-columns: minmax(0, 1fr) !important;
            grid-template-areas:
                "mobile-title"
                "office-photo"
                "office-copy";
            gap: 16px;
        }

        .office-hero-grid-photo-left .office-mobile-hero-title {
            display: block;
            grid-area: mobile-title;
            order: 1;
            width: 100%;
            max-width: none;
            margin: 0 0 2px;
        }

        .office-hero-grid-photo-left .office-hero-photo-column {
            grid-area: office-photo;
            order: 2;
            width: 100%;
            max-width: none;
            justify-self: stretch;
        }
        .office-hero-grid-photo-left .office-hero-photo-card {
            width: 100%;
            max-width: none;
        }

        .office-hero-grid-photo-left .office-hero-copy-block {
            grid-area: office-copy;
            order: 3;
            width: 100%;
            max-width: none;
        }

        .office-hero-grid-photo-left .office-hero-copy-block .office-hero-title {
            display: none;
        }

        .office-hero-grid-photo-left .office-main-photo {
            width: 100%;
        }
    }


    /* V18-051: mobile office hero order is strictly:
       office name -> office picture -> remaining office information. */
    @media (max-width: 767px) {
        .office-hero-grid-photo-left {
            display: flex !important;
            flex-direction: column !important;
        }

        .office-hero-grid-photo-left > .office-mobile-hero-title {
            display: block !important;
            order: 1 !important;
            width: 100% !important;
            margin: 0 0 12px !important;
        }

        .office-hero-grid-photo-left > .office-hero-photo-card {
            order: 2 !important;
            width: 100% !important;
            max-width: none !important;
            margin: 0 !important;
        }

        .office-hero-grid-photo-left > .office-hero-copy-block {
            order: 3 !important;
            width: 100% !important;
            max-width: none !important;
        }

        .office-hero-grid-photo-left > .office-hero-copy-block .office-hero-title {
            display: none !important;
        }
    }


    /* Match all non-editor action buttons to the homepage Find dentists button. */
    .office-primary-btn,
    .office-secondary-btn,
    .office-light-btn:not(.office-action-strip .office-light-btn),
    .office-orange-btn,
    .office-modal-btn {
        background: #e7b091 !important;
        background-image: none !important;
        border: 1px solid #d18b67 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        box-shadow: none !important;
    }
    .office-primary-btn:hover,
    .office-primary-btn:focus,
    .office-primary-btn:active,
    .office-secondary-btn:hover,
    .office-secondary-btn:focus,
    .office-secondary-btn:active,
    .office-light-btn:not(.office-action-strip .office-light-btn):hover,
    .office-light-btn:not(.office-action-strip .office-light-btn):focus,
    .office-light-btn:not(.office-action-strip .office-light-btn):active,
    .office-orange-btn:hover,
    .office-orange-btn:focus,
    .office-orange-btn:active,
    .office-modal-btn:hover,
    .office-modal-btn:focus,
    .office-modal-btn:active {
        background: #d99a7a !important;
        background-image: none !important;
        border-color: #c98563 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* Keep office-owner edit controls green. */
    .office-editor-card #change-office,
    .office-editor-card a.office-secondary-btn,
    .office-editor-card input.office-secondary-btn[type="submit"] {
        background: #dcfce7 !important;
        background-image: none !important;
        border: 1px solid #86efac !important;
        color: #166534 !important;
        -webkit-text-fill-color: #166534 !important;
        box-shadow: 0 10px 22px rgba(22,101,52,0.10) !important;
    }
    .office-editor-card #change-office:hover,
    .office-editor-card #change-office:focus,
    .office-editor-card a.office-secondary-btn:hover,
    .office-editor-card a.office-secondary-btn:focus,
    .office-editor-card input.office-secondary-btn[type="submit"]:hover,
    .office-editor-card input.office-secondary-btn[type="submit"]:focus {
        background: #bbf7d0 !important;
        border-color: #4ade80 !important;
        color: #14532d !important;
        -webkit-text-fill-color: #14532d !important;
    }


    /* V20-054: preserve the approved office photo/gallery presentation. */
    .office-hero-grid-photo-left .office-hero-photo-column {
        grid-area: office-photo;
        order: 1;
        width: 91.8%;
    }
    .office-hero-grid-photo-left .office-hero-photo-card {
        width: 100%;
        overflow: hidden;
    }
    .office-main-photo {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
    .office-hero-photo-column > .office-gallery-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        margin-top: 12px;
    }
    @media (max-width: 900px) {
        .office-hero-grid-photo-left .office-hero-photo-column {
            width: 100% !important;
        }
    }
    @media (max-width: 640px) {
        .office-hero-photo-column > .office-gallery-strip {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    /* V20-080: combine office summary and services into one card. */
    .office-combined-listing-card {
        overflow: hidden;
    }
    .office-patient-hero-section {
        padding-top: 18px;
    }
    .office-combined-listing-card .office-patient-hero {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }
    .office-combined-services {
        margin-top: 28px;
        padding-top: 28px;
        border-top: 1px solid rgba(148, 163, 184, .28);
    }

    .office-editor-bar-integrated { margin: 0 0 12px; padding: 0; }
    .office-editor-bar-integrated .office-editor-card { background: transparent; border: 0; box-shadow: none; padding: 0; }

    /* V20-084: tighten the actual white-card space above the office title. */
    .office-content-wrap.office-section-card.office-combined-listing-card {
        padding-top: 18px;
    }

    /* V20-085: center the owner editing buttons. */
    .office-editor-bar-integrated .office-editor-card {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    /* V20-086: force the integrated edit-button row to true horizontal center. */
    .office-combined-listing-card .office-editor-bar-integrated {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
    }
    .office-combined-listing-card .office-editor-bar-integrated .office-editor-card {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px;
        margin: 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }

    /* V20-087: restore the edit-button container to its compact size while keeping it centered. */
    .office-combined-listing-card .office-editor-bar-integrated .office-editor-card {
        width: auto !important;
        max-width: max-content !important;
        display: inline-flex !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* V20-088: restore breathing room on both sides of the centered edit buttons. */
    .office-combined-listing-card .office-editor-bar-integrated .office-editor-card {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    /* V20-089: keep the office-photo area at normal photo size even when the image is missing/broken. */
    .office-hero-photo-card {
        width: 100%;
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }
    .office-hero-photo-card .office-main-photo {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        object-fit: cover;
        display: block;
    }

    /* V20-090: use the site's homepage sans-serif typography throughout the office page. */
    .office-new-skin,
    .office-new-skin h1,
    .office-new-skin h2,
    .office-new-skin h3,
    .office-new-skin h4,
    .office-new-skin h5,
    .office-new-skin h6,
    .office-new-skin p,
    .office-new-skin a,
    .office-new-skin button,
    .office-new-skin input,
    .office-new-skin select,
    .office-new-skin textarea,
    .office-new-skin label,
    .office-new-skin span {
        font-family: inherit !important;
    }

    /* V20-091: match the homepage typography system.
       Lora = display/headings; Figtree = readable functional/body copy. */
    .office-new-skin,
    .office-new-skin p,
    .office-new-skin a,
    .office-new-skin button,
    .office-new-skin input,
    .office-new-skin select,
    .office-new-skin textarea,
    .office-new-skin label,
    .office-new-skin span,
    .office-new-skin li,
    .office-new-skin address {
        font-family: 'Figtree', Arial, sans-serif !important;
    }

    .office-new-skin h1,
    .office-new-skin h2,
    .office-new-skin h3,
    .office-new-skin h4,
    .office-new-skin h5,
    .office-new-skin h6,
    .office-new-skin .office-hero-title,
    .office-new-skin .office-section-title {
        font-family: 'Lora', Georgia, serif !important;
        font-weight: 600 !important;
    }

    /* Keep informational text comfortably readable for adult visitors. */
    .office-new-skin {
        font-size: 16px;
        line-height: 1.55;
    }
    .office-new-skin .office-hero-copy-block,
    .office-new-skin .office-services-grid,
    .office-new-skin .office-section-card {
        line-height: 1.55;
    }

    /* V20-092: make Dental services and procedures card names easier to scan. */
    .office-new-skin .office-services-grid .office-service-name,
    .office-new-skin .office-services-grid h3,
    .office-new-skin .office-services-grid h4,
    .office-new-skin .office-services-grid strong {
        font-family: 'Figtree', Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }

    /* V20-093: enlarge the actual Dental services and procedures pill text. */
    .office-new-skin .office-services-grid .office-service-pill {
        font-family: 'Figtree', Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }

    /* V20-094: category labels such as General Dentistry and Work days
       share the same readable heading treatment. */
    .office-new-skin .office-services-grid .office-service-heading {
        font-family: 'Figtree', Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }

    /* V20-095: use one explicit label size for service cards and information-card labels.
       This changes the elements that are actually rendered rather than relying on
       service-name classification. */
    .office-new-skin .office-service-pill,
    .office-new-skin .office-info-box > strong,
    .office-new-skin .office-dentist-card strong {
        font-family: 'Figtree', Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }

    /* V20-096: match About-card labels and office-hours day names
       to the General Dentistry service-card text size. */
    .office-new-skin .office-info-box > strong {
        font-family: 'Figtree', Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }

    .office-new-skin .office-hours-table table th:first-child {
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
    }

    /* V20-097: Office hours is the third About-this-office column/card. */
    .office-new-skin .office-patient-info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .office-new-skin .office-info-box-hours {
        grid-column: 3;
    }
    .office-new-skin .office-hours-table-integrated {
        margin-top: 8px;
    }
    .office-new-skin .office-hours-table-integrated table {
        width: 100%;
    }
    @media (max-width: 767px) {
        .office-new-skin .office-patient-info-grid {
            grid-template-columns: 1fr !important;
        }
        .office-new-skin .office-info-box-hours {
            grid-column: auto;
        }
    }

    /* V20-098: reserve the entire third column exclusively for Office hours.
       All other About cards flow only through columns one and two. */
    .office-new-skin .office-patient-info-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .office-new-skin .office-patient-info-grid > .office-info-box:not(.office-info-box-hours) {
        grid-column: auto / span 1;
    }
    .office-new-skin .office-patient-info-grid > .office-info-box-hours {
        grid-column: 3 !important;
        grid-row: 1 / span 20 !important;
        align-self: start;
    }
    @media (min-width: 768px) {
        .office-new-skin .office-patient-info-grid > .office-info-box:not(.office-info-box-hours):nth-of-type(3n+2) {
            grid-column: 1 !important;
        }
        .office-new-skin .office-patient-info-grid > .office-info-box:not(.office-info-box-hours):nth-of-type(3n) {
            grid-column: 2 !important;
        }
    }
    @media (max-width: 767px) {
        .office-new-skin .office-patient-info-grid > .office-info-box-hours,
        .office-new-skin .office-patient-info-grid > .office-info-box:not(.office-info-box-hours) {
            grid-column: 1 !important;
            grid-row: auto !important;
        }
    }

    /* V20-099: About this dental office uses three truly independent vertical columns. */
    .office-new-skin .office-about-columns {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        align-items: start;
    }
    .office-new-skin .office-about-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-width: 0;
    }
    .office-new-skin .office-about-column .office-info-box {
        width: 100%;
        margin: 0;
    }
    .office-new-skin .office-about-column .office-info-box-hours {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    @media (max-width: 767px) {
        .office-new-skin .office-about-columns {
            grid-template-columns: 1fr;
        }
    }

    /* V20-101: two independent About cards/columns. */
    .office-new-skin .office-about-columns-two {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px;
        align-items: start;
        margin-top: 24px;
    }
    .office-new-skin .office-about-card {
        border: 1px solid rgba(148, 163, 184, .28);
        border-radius: 14px;
        padding: 20px;
        background: rgba(255,255,255,.72);
        height: auto;
        min-height: 0;
    }
    .office-new-skin #overview .office-about-copy {
        margin-bottom: 0;
        min-height: 0;
    }
    .office-new-skin #overview .office-content-wrap {
        height: auto;
        min-height: 0;
    }
    @media (max-width: 767px) {
        .office-new-skin .office-about-columns-two {
            grid-template-columns: 1fr !important;
        }
    }


    /* V23: responsive dentist presentation. A single dentist gets a richer
       profile row; multiple dentists use a horizontal, scalable gallery. */
    .office-new-skin .office-dentists-heading {
        position: relative;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 16px;
        margin-bottom: 18px;
        text-align: center;
    }
    .office-new-skin .office-dentists-heading .office-section-title { margin-bottom: 0; text-align: center; }
    .office-new-skin .office-dentists-count {
        position: absolute;
        right: 0;
        color: var(--office-muted);
        font-size: .9rem;
    }
    @media (max-width: 640px) {
        .office-new-skin .office-dentists-heading {
            flex-direction: column;
            align-items: center;
        }
        .office-new-skin .office-dentists-count { position: static; }
    }

    .office-new-skin .office-single-dentist-card {
        display: grid;
        grid-template-columns: 126.67px minmax(0, 1fr);
        gap: 26px;
        align-items: start;
        padding: 22px;
        text-align: left;
    }
    .office-new-skin .office-single-dentist-card .office-dentist-photo-wrap {
        width: 126.67px;
        height: 158.67px;
        margin: 0;
    }
    .office-new-skin .office-single-dentist-card .office-dentist-photo-wrap img,
    .office-new-skin .office-dentist-gallery-card .office-dentist-photo-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center top;
    }
    .office-new-skin .office-single-dentist-info {
        min-width: 0;
        height: 238px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .office-new-skin .office-single-dentist-name {
        display: inline-block;
        margin: 0 0 12px;
        color: #173a66;
        font-size: 1.35rem;
        line-height: 1.25;
        font-weight: 900;
        text-decoration: none;
    }
    .office-new-skin .office-single-dentist-name:hover,
    .office-new-skin .office-single-dentist-name:focus-visible { text-decoration: underline; }
    .office-new-skin .office-dentist-about-label {
        margin: 0 0 5px;
        color: #173a66;
        font-size: .9rem;
        line-height: 1.3;
        font-weight: 850;
    }
    .office-new-skin .office-dentist-summary {
        margin: 0 0 12px;
        color: var(--office-muted);
        line-height: 1.55;
        max-width: 72ch;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
        line-clamp: 6;
    }
    .office-new-skin .office-dentist-profile-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 16px;
        border-radius: 12px;
        background: #eff6ff;
        border: 1px solid #cfe0fb;
        color: #1d4ed8 !important;
        font-weight: 850 !important;
        text-decoration: none !important;
    }

    /* Center the single dentist's profile action without affecting gallery cards. */
    .office-new-skin .office-single-dentist-info > .office-dentist-profile-link {
        align-self: center;
        justify-content: center;
        text-align: center;
    }

    .office-new-skin .office-dentists-gallery {
        display: flex;
        gap: 16px;
        width: 100%;
        max-width: 808px; /* four 190px cards + three 16px gaps */
        margin: 4px auto 0;
        padding: 2px 2px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    /* Two to four dentists: center the cards across the full width with equal outer and inner spacing.
       Five or more keep the scalable horizontal gallery. */
    .office-new-skin .office-dentists-gallery.office-dentists-gallery-static {
        max-width: none;
        justify-content: space-evenly;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
        overflow-x: visible;
        scroll-snap-type: none;
        scrollbar-width: none;
    }
    .office-new-skin .office-dentists-gallery.office-dentists-gallery-static::-webkit-scrollbar { display: none; }
    .office-new-skin .office-dentists-gallery-static .office-dentist-gallery-card {
        flex: 0 0 190px;
    }
    .office-new-skin .office-dentist-gallery-card {
        flex: 0 0 190px;
        scroll-snap-align: start;
        padding: 16px;
        text-align: center;
    }
    .office-new-skin .office-dentist-gallery-card .office-dentist-photo-wrap {
        width: 78.67px;
        height: 102.67px;
        margin: 0 auto 12px;
    }
    .office-new-skin .office-dentist-gallery-name {
        display: block;
        color: #173a66;
        font-weight: 900;
        line-height: 1.35;
        text-decoration: none;
        overflow-wrap: anywhere;
    }
    .office-new-skin .office-dentist-gallery-specialty {
        margin-top: 6px;
        color: var(--office-muted);
        font-size: .9rem;
        line-height: 1.4;
    }
    @media (max-width: 700px) {
        .office-new-skin .office-single-dentist-card { grid-template-columns: 1fr; gap: 18px; }
        .office-new-skin .office-single-dentist-card .office-dentist-photo-wrap { width: 100px; height: 125.33px; }
        .office-new-skin .office-single-dentist-info { height: auto; overflow: visible; }
        .office-new-skin .office-dentist-summary { -webkit-line-clamp: 6; line-clamp: 6; }
        .office-new-skin .office-dentist-gallery-card { flex-basis: 168px; }
        .office-new-skin .office-dentists-gallery { max-width: none; }
        .office-new-skin .office-dentists-gallery.office-dentists-gallery-static {
            justify-content: flex-start;
            gap: 16px;
            overflow-x: auto;
            scroll-snap-type: x proximity;
            scrollbar-width: thin;
        }
        .office-new-skin .office-dentists-gallery-static .office-dentist-gallery-card { flex-basis: 168px; }
    }


    /* V23: visible gallery controls for five or more dentists. */
    .office-new-skin .office-dentists-gallery-shell {
        position: relative;
        width: 100%;
        max-width: 900px;
        margin: 4px auto 0;
        padding: 0 46px;
    }
    .office-new-skin .office-dentists-gallery-shell .office-dentists-gallery {
        margin-top: 0;
    }
    .office-new-skin .office-dentists-gallery-arrow {
        position: absolute;
        top: 50%;
        z-index: 4;
        width: 42px;
        height: 42px;
        margin-top: -27px;
        border: 1px solid #cfe0fb;
        border-radius: 50%;
        background: #fff;
        color: #173a66;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        line-height: 1;
        font-weight: 700;
        cursor: pointer;
    }
    .office-new-skin .office-dentists-gallery-arrow:hover,
    .office-new-skin .office-dentists-gallery-arrow:focus-visible {
        background: #eff6ff;
        border-color: #9fc3f5;
    }
    .office-new-skin .office-dentists-gallery-prev { left: 0; }
    .office-new-skin .office-dentists-gallery-next { right: 0; }
    .office-new-skin .office-dentists-gallery-arrow[disabled] {
        opacity: .22;
        cursor: default;
        box-shadow: none;
    }
    .office-new-skin .office-dentists-more-hint {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 7px;
        margin: 8px 48px 0 0;
        color: #173a66;
        font-size: .88rem;
        font-weight: 800;
    }
    .office-new-skin .office-dentists-more-hint span {
        font-size: 1.25rem;
        line-height: 1;
    }
    @media (max-width: 700px) {
        .office-new-skin .office-dentists-gallery-shell { padding: 0 38px; }
        .office-new-skin .office-dentists-gallery-arrow { width: 36px; height: 36px; font-size: 26px; }
        .office-new-skin .office-dentists-more-hint { margin-right: 38px; }
    }

    /* Consistent vertical spacing between the main office cards. */
    .office-new-skin .office-dentists-section,
    .office-new-skin #overview,
    .office-new-skin #directions {
        margin: 0;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .office-new-skin .office-patient-hero-section + .office-dentists-section {
        padding-top: 28px;
    }
    .office-new-skin .office-dentists-section + #overview,
    .office-new-skin #overview + #directions {
        padding-top: 14px;
    }
    /* Stage 28-017: one office name, alongside the photograph, at section-heading size. */
    .office-new-skin .office-hero-grid-photo-left {
        grid-template-areas: "office-photo office-copy" !important;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-copy-block .office-hero-title {
        display: block !important;
        font-size: 1.55rem !important;
        line-height: 1.15 !important;
        margin: 0 0 10px !important;
        max-width: none;
    }
    @media (max-width: 1024px) {
        .office-new-skin .office-hero-grid-photo-left {
            grid-template-areas: "office-photo" "office-copy" !important;
        }
    }
    /* SEO Stage 003: owner actions live in their own card, above the office hero. */
    .office-new-skin .office-editor-bar-standalone {
        display: flex;
        justify-content: center;
        margin: 0 0 18px;
        padding: 0;
    }
    .office-new-skin .office-editor-bar-standalone .office-editor-card {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: fit-content !important;
        max-width: 100% !important;
        padding: 14px 16px !important;
        background: #fff !important;
        border: 1px solid rgba(154,154,154,.45) !important;
        border-radius: 16px !important;
        box-shadow: none !important;
    }
    @media (max-width: 680px) {
        .office-new-skin .office-editor-bar-standalone .office-editor-card { width: 100% !important; }
        .office-new-skin .office-editor-bar-standalone .office-editor-card a {
            flex: 1 1 auto;
            text-align: center;
        }
    }

/* SEO Stage 035: office header actions immediately follow phone on desktop;
   mobile contact details and actions stay below the office photograph. */
@media (min-width: 1025px) {
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy {
        justify-content: flex-start;
        gap: 10px;
        transform: none;
    }
    .office-new-skin .office-hero-grid-photo-left .office-patient-actions {
        margin-top: 2px;
        transform: none;
        align-self: flex-start;
    }
}
@media (max-width: 1024px) {
    .office-new-skin .office-hero-grid-photo-left {
        grid-template-areas: "office-photo" "office-copy" !important;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-column {
        grid-area: office-photo;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-copy-block {
        grid-area: office-copy;
        transform: none;
    }
    .office-new-skin .office-hero-grid-photo-left .office-patient-actions {
        transform: none;
    }
}

/* SEO Stage 037: center the office name/contact/actions group vertically
   alongside the 16:9 photo on desktop. Mobile stacking is unchanged. */
@media (min-width: 1025px) {
    .office-new-skin .office-hero-grid-photo-left {
        align-items: center;
    }
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy {
        justify-content: center;
        align-self: center;
        gap: 10px;
    }
}

/* SEO Stage 038: lower desktop office contact/actions block relative to Stage 037. */
@media (min-width: 1025px) {
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy {
        transform: translateY(24px);
    }
}

/* SEO Stage 039: tighten desktop phone-to-actions spacing only.
   Keep Stage 038 vertical position and all mobile rules unchanged. */
@media (min-width: 1025px) {
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy {
        gap: 0;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-contact {
        margin-bottom: 0;
    }
    .office-new-skin .office-hero-grid-photo-left .office-patient-actions {
        margin-top: 5px;
    }
}

/* SEO Stage 040: lift the complete desktop contact/actions group 32px
   from Stage 039 to visually center it against the 16:9 photo. */
@media (min-width: 1025px) {
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy {
        transform: translateY(-8px);
    }
}

/* SEO Stage 041: small upward optical correction for the desktop photo only.
   Leave the contact/buttons, 16:9 image sizing and mobile layout unchanged. */
@media (min-width: 1025px) {
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-column {
        transform: translateY(-8px);
    }
}

/* SEO Stage 042: reversible patient-rating sidebar experiment.
   Remove this block and restore 041 office.php to roll back. */
.office-new-skin .office-patient-rating-panel {
    box-sizing: border-box;
    padding: 22px 20px;
    border: 1px solid #e1e8f0;
    border-radius: 16px;
    background: #f7f9fc;
    color: #24374c;
    align-self: center;
    min-width: 0;
}
.office-new-skin .office-patient-rating-eyebrow {font-size: 11px; font-weight: 800; letter-spacing: .11em; color: #55708b;}
.office-new-skin .office-patient-rating-brand {font-size: 13px; margin-top: 5px; color: #65798c;}
.office-new-skin .office-patient-rating-score-row {display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin-top: 16px;}
.office-new-skin .office-patient-rating-score {font-size: 38px; line-height: 1; color: #173a66;}
.office-new-skin .office-patient-rating-stars {color: #bc7537; font-size: 18px; white-space: nowrap;}
.office-new-skin .office-patient-rating-stars span {color: #6c7e90; font-size: 12px;}
.office-new-skin .office-patient-rating-count {font-size: 13px; font-weight: 700; margin: 9px 0 0;}
.office-new-skin .office-patient-rating-description {font-size: 13px; line-height: 1.5; margin: 13px 0 16px; color: #586d80;}
.office-new-skin .office-patient-rating-empty {font-size: 17px; font-weight: 700; margin: 20px 0 0;}
.office-new-skin .office-patient-rating-link {display: inline-block; color: #173a66; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px;}
@media (min-width: 1200px) {
    .office-new-skin .office-hero-grid-photo-left {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.05fr) minmax(210px, .78fr) !important;
        grid-template-areas: "office-photo office-copy office-rating" !important;
        column-gap: 22px;
        align-items: center;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-column {width: 100%;}
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy {transform: none; align-self: center;}
    .office-new-skin .office-hero-grid-photo-left .office-patient-rating-panel {grid-area: office-rating;}
    .office-new-skin .office-hero-grid-photo-left .office-patient-actions {gap: 7px;}
    .office-new-skin .office-hero-grid-photo-left .office-patient-actions > a {font-size: 12px; padding: 0 10px; min-height: 40px;}
}
@media (min-width: 1025px) and (max-width: 1199px) {
    .office-new-skin .office-hero-grid-photo-left .office-patient-rating-panel {grid-column: 2; grid-row: 2;}
}
@media (max-width: 1024px) {
    .office-new-skin .office-hero-grid-photo-left .office-patient-rating-panel {grid-area: auto; width: 100%; margin-top: 8px;}
}

/* SEO Stage 043: shift the review card one text line down on wide desktop;
   reviews are accessed directly from the card, not a duplicate action button. */
@media (min-width: 1200px) {
    .office-new-skin .office-hero-grid-photo-left .office-patient-rating-panel {
        transform: translateY(24px);
    }
}

/* SEO Stage 044: the practice name gets the full right-side width.
   Rating starts in the next grid row, not merely 24px lower.
   A single H1 is used on desktop and mobile. */
.office-new-skin .office-hero-title-full { grid-area: office-title; min-width: 0; }
@media (min-width: 1200px) {
    .office-new-skin .office-hero-grid-photo-left {
        grid-template-areas: "office-photo office-title office-title" "office-photo office-copy office-rating" !important;
        grid-template-rows: auto auto;
        align-items: start;
        row-gap: 12px;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-column {
        grid-area: office-photo;
        align-self: center;
    }
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy {
        grid-area: office-copy;
        align-self: start;
    }
    .office-new-skin .office-hero-grid-photo-left .office-patient-rating-panel {
        grid-area: office-rating;
        align-self: start;
        transform: none;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-title-full {
        align-self: end;
        margin-bottom: 0;
    }
}
@media (min-width: 1025px) and (max-width: 1199px) {
    .office-new-skin .office-hero-grid-photo-left .office-hero-title-full {
        grid-column: 2;
        grid-row: 1;
    }
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy {
        grid-column: 2;
        grid-row: 2;
    }
    .office-new-skin .office-hero-grid-photo-left .office-patient-rating-panel {
        grid-column: 2;
        grid-row: 3;
    }
}
@media (max-width: 1024px) {
    .office-new-skin .office-hero-grid-photo-left {
        grid-template-areas: "office-photo" "office-title" "office-copy" "office-rating" !important;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-title-full {grid-area: office-title;}
    .office-new-skin .office-hero-grid-photo-left .office-patient-rating-panel {grid-area: office-rating;}
}

/* SEO Stage 046: centered, full-width practice name above all three panels.
   Reversible: restore office-listing.css from Stage 044. */
@media (min-width: 1200px) {
    .office-new-skin .office-hero-grid-photo-left {
        grid-template-areas: "office-title office-title office-title" "office-photo office-copy office-rating" !important;
        grid-template-rows: auto auto;
        row-gap: 24px;
        align-items: center;
    }
    .office-new-skin .office-hero-grid-photo-left > .office-hero-title-full {
        grid-area: office-title;
        text-align: center;
        justify-self: stretch;
        width: 100%;
        margin: 0;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-column,
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy,
    .office-new-skin .office-hero-grid-photo-left .office-patient-rating-panel {
        align-self: center;
    }
}
@media (min-width: 1025px) and (max-width: 1199px) {
    .office-new-skin .office-hero-grid-photo-left > .office-hero-title-full {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
        margin: 0 0 12px;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-column { grid-column: 1; grid-row: 2 / 4; }
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy { grid-column: 2; grid-row: 2; }
    .office-new-skin .office-hero-grid-photo-left .office-patient-rating-panel { grid-column: 2; grid-row: 3; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .office-new-skin .office-hero-grid-photo-left > .office-hero-title-full { text-align: center; }
}
@media (max-width: 767px) {
    .office-new-skin .office-hero-grid-photo-left > .office-hero-title-full {
        display: block;
        order: 0 !important;
        text-align: center;
        width: 100%;
        margin: 0 0 8px;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-column { order: 1 !important; }
    .office-new-skin .office-hero-grid-photo-left .office-patient-hero-copy { order: 2 !important; }
    .office-new-skin .office-hero-grid-photo-left .office-patient-rating-panel { order: 3 !important; }
}

/* SEO Stage 047: match the photo height to the review panel while keeping 16:9.
   Only applies to the three-column desktop layout; mobile remains unchanged. */
@media (min-width: 1200px) {
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: none;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-card {
        width: min(100%, calc(var(--office-review-height, 200px) * 4 / 3));
        aspect-ratio: 4 / 3;
        flex: none;
    }
    .office-new-skin .office-hero-grid-photo-left .office-main-photo {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
    .office-new-skin .office-hero-grid-photo-left .office-gallery-strip {width: 100%;}
}

/* SEO Stage 048: align the photograph's left edge with the content card below.
   Preserve Stage 047 review-height sizing and 16:9 image proportions. */
@media (min-width: 1200px) {
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-column {
        align-items: flex-start;
    }
    .office-new-skin .office-hero-grid-photo-left .office-hero-photo-card {
        margin-left: 0;
        margin-right: auto;
        align-self: flex-start;
    }
}

/* ===== Consolidated from office-redesign-stage29.css (legacy office redesign) ===== */
/* Stage 014: patient-first office listing redesign. Scoped to office page. */
.office-redesign29{--office-card-block:22px;background:#f5f7fa!important;color:#24354a!important;padding:24px 0 40px;font-family:Figtree,Arial,sans-serif}

.office-redesign29 .redesign-hero,.office-redesign29 .redesign-card,.office-redesign29 .office-section-card{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:16px!important;box-shadow:0 3px 16px rgba(22,47,79,.045)!important;padding:var(--office-card-block) 28px!important;margin:0 0 20px!important;backdrop-filter:none!important}
.office-redesign29 .redesign-hero{padding:var(--office-card-block) 36px!important}
.office-redesign29 .redesign-eyebrow{color:#54708c;font-size:13px;font-weight:700;letter-spacing:.045em;text-transform:uppercase;margin-bottom:9px}
.office-redesign29 .redesign-hero h1{font-family:Figtree,Arial,sans-serif!important;font-size:clamp(27px,3vw,38px)!important;line-height:1.22!important;color:#173a66!important;margin:0 0 12px!important;font-weight:600!important}
.office-redesign29 .redesign-address{font-size:15px;line-height:1.6;margin:0 0 14px;color:#53657a}.office-redesign29 .redesign-address a{color:#1769b3;margin-left:10px}
.office-redesign29 .redesign-rating{color:#b87c14;font-weight:750;margin:0 0 14px}.office-redesign29 .redesign-rating span{color:#63768a;font-weight:500}
.office-redesign29 .redesign-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.office-redesign29 .redesign-button{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:45px;padding:10px 18px;border:1px solid #B7D3F7;border-radius:9px;background:#fff;color:#1E6FD9!important;font-size:14px;font-weight:700;text-decoration:none!important;transition:background .15s}
.office-redesign29 .redesign-button:hover{background:#E8F1FF}
/* Office hero: secondary actions retain a soft blue fill and darken only on hover. */
.office-redesign29 .stage30-hero-actions .redesign-button:not(.redesign-button-primary){background:#EAF2FA;border-color:#C8D9EB;color:#173A66!important;box-shadow:none;transform:none;transition:background-color .15s,border-color .15s}
.office-redesign29 .stage30-hero-actions .redesign-button:not(.redesign-button-primary):hover,
.office-redesign29 .stage30-hero-actions .redesign-button:not(.redesign-button-primary):focus-visible{background:#D6E5F5;border-color:#AFC9E6;box-shadow:none;transform:none}
.office-redesign29 .redesign-button-primary{background:#2B82F6;border-color:#1E6FD9;color:#fff!important}
.office-redesign29 .redesign-button-primary:hover{background:#1E6FD9;box-shadow:none;transform:none}
/* Stage36-008: practice-profile Call action only; secondary actions are unchanged. */
.office-redesign29 .stage30-hero-actions .redesign-button.redesign-button-primary,
.office-redesign29 .stage30-hero-actions .redesign-button.redesign-button-primary:visited {
  background: #3978B8;
  border-color: #3978B8;
  color: #fff !important;
  box-shadow: none;
  transform: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.office-redesign29 .stage30-hero-actions .redesign-button.redesign-button-primary:hover,
.office-redesign29 .stage30-hero-actions .redesign-button.redesign-button-primary:focus-visible {
  background: #315F91;
  border-color: #315F91;
  box-shadow: none;
  transform: none;
}

.office-redesign29 h2,.office-redesign29 .office-section-title{color:#173a66!important;margin:0 0 17px!important}
.office-redesign29 h2, .office-redesign29 .office-section-title{font-family:Figtree,Arial,sans-serif!important;font-size:23px!important;line-height:1.35!important;font-weight:600!important}
.dentist-profile-page .section-title,
.dentist-profile-page .contact-card h3, .dentist-profile-page .office-card h3{font-family:Figtree,Arial,sans-serif!important;font-size:23px!important;line-height:1.35!important;font-weight:750!important}
.office-redesign29 .redesign-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px}.office-redesign29 .redesign-section-heading span{font-size:13px;color:#758499;white-space:nowrap}.office-redesign29 .redesign-subtle{font-size:14px;color:#63768a;margin:-5px 0 18px}
.office-redesign29 .redesign-service-list{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:9px}.office-redesign29 .redesign-service-chip{background:#f4f7fb;border:1px solid #e2e9f2;border-radius:7px;padding:9px 13px;color:#304963;font-size:14px;line-height:1.4}.office-redesign29 .redesign-service-match{background:#edf5ff;border-color:#b9d6f2;font-weight:700}
.office-redesign29 .redesign-expand{background:none;border:0;padding:14px 0 0;color:#1769b3;font-weight:700;cursor:pointer;font-size:14px}.office-redesign29 .redesign-hidden-services{padding-top:15px}.office-redesign29 [hidden]{display:none!important}
.office-redesign29 .redesign-photo-layout .office-hero-photo-card{width:100%;max-width:400px;height:auto!important;max-height:none!important;aspect-ratio:4 / 3;border-radius:12px;overflow:hidden}.office-redesign29 .redesign-photo-layout .office-main-photo{display:block;width:100%;height:100%!important;object-fit:cover}.office-redesign29 .redesign-photo-layout .office-gallery-strip{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.office-redesign29 .redesign-photo-layout .office-gallery-thumb{width:88px;height:65px;overflow:hidden;border-radius:8px;padding:0;cursor:pointer}.office-redesign29 .redesign-photo-layout .office-gallery-thumb img{width:100%;height:100%;object-fit:cover}
.office-redesign29 .office-dentists-section,.office-redesign29 .office-section{background:transparent!important;padding:0!important;margin:0!important}.office-redesign29 .office-dentists-section .office-content-wrap,.office-redesign29 #directions .office-content-wrap{max-width:none!important}.office-redesign29 .office-dentists-gallery{display:flex!important;gap:16px;overflow-x:auto;scroll-snap-type:x proximity}.office-redesign29 .office-dentist-gallery-card{flex:0 0 190px;scroll-snap-align:start}.office-redesign29 .office-dentists-gallery-static{flex-wrap:wrap!important}.office-redesign29 .office-dentist-photo-wrap img{object-fit:cover}
.office-redesign29 .redesign-card p,.office-redesign29 .office-about-copy{font-size:15px;line-height:1.75;color:#405269}.office-redesign29 .redesign-text-link{color:#1769b3;font-weight:700;text-decoration:none}.office-redesign29 .redesign-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.office-redesign29 .redesign-info-grid>div{padding:12px 0;border-bottom:1px solid #edf0f4}.office-redesign29 .redesign-info-grid strong{display:block;color:#173a66;font-size:14px}.office-redesign29 .redesign-info-grid p{margin:4px 0 0}.office-redesign29 .office-hours-table{max-width:620px}.office-redesign29 .office-hours-table table{width:100%}.office-redesign29 .office-hours-table td,.office-redesign29 .office-hours-table th{padding:4px 0;border-bottom:1px solid #edf0f4;background:transparent;border-radius:0}.office-redesign29 .office-hours-table tr:first-child>*{padding-top:0}.office-redesign29 .office-hours-table tr:last-child>*{padding-bottom:0;border-bottom:0}.office-redesign29 .office-map-card{border-radius:12px;overflow:hidden}
.office-redesign29 .office-action-strip{background:transparent!important;box-shadow:none!important}.office-redesign29 .office-orange-btn{background:#fff!important;color:#1E6FD9!important;border:1px solid #B7D3F7!important;border-radius:9px!important}
@media(max-width:680px){.office-redesign29{--office-card-block:16px;padding-top:12px}.office-redesign29 > .office-container{padding:0 12px}.office-redesign29 .redesign-hero,.office-redesign29 .redesign-card,.office-redesign29 .office-section-card{padding:var(--office-card-block) 20px!important;margin-bottom:13px!important}.office-redesign29 .redesign-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.office-redesign29 .redesign-button{padding:10px 7px;font-size:12px}.office-redesign29 .redesign-info-grid{grid-template-columns:1fr}.office-redesign29 .redesign-section-heading{flex-wrap:wrap}.office-redesign29 .redesign-photo-layout .office-hero-photo-card{aspect-ratio:4 / 3}}

/* ===== Consolidated from office-stage30.css (Stage 30 office refinements) ===== */
/* Stage 30 office page: integrate the approved HTML prototype without prototype assets. */
.office-redesign29{background:#f4f7fa!important}

.office-redesign29 .stage30-hero{
  display:grid!important;grid-template-columns:minmax(0,2.08fr) minmax(275px,.95fr);
  align-items:stretch;gap:26px!important;padding:var(--office-card-block) 30px!important;
  border:1px solid #dce7f4!important;border-radius:18px!important;
  background:radial-gradient(circle at 5% 0%,rgba(29,78,216,.09),transparent 34%),linear-gradient(135deg,#f8fbff 0%,#fff 54%,#f3f8ff 100%)!important;
  box-shadow:0 10px 28px rgba(23,58,102,.075)!important
}
.office-redesign29 .stage30-hero-information{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:16px;text-align:center;min-width:0}
.office-redesign29 .stage30-hero h1{text-align:center;margin:0!important;color:#102c5c!important}
.office-redesign29 .stage30-hero h1{font-family:Figtree,Arial,sans-serif!important;font-size:clamp(26px,3vw,43px)!important;line-height:1.12!important;letter-spacing:-1.1px;font-weight:600!important}
.dentist-profile-page .profile-name{font-family:Figtree,Arial,sans-serif;font-size:clamp(26px,3vw,43px)!important;line-height:1.12!important;letter-spacing:-1.1px;font-weight:750}
/* Stage38 074: reduce only the dentist profile name by 15%; keep office titles unchanged. */
.dentist-profile-page .profile-name{font-size:clamp(22.1px,2.55vw,36.55px)!important}
.office-redesign29 .stage30-address{display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:100%;padding:8px 22px;border:1px solid #cbd9ea;border-radius:8px;background:#fff;color:#173a6a!important;text-decoration:none!important}
.office-redesign29 .stage30-address,
.dentist-profile-page .dentist-profile-office-address,
.dentist-profile-page .dentist-profile-office-phone,
.dentist-profile-page .dentist-profile-office-website{font-family:Figtree,Arial,sans-serif;font-size:15px;line-height:1.55}
.office-redesign29 .stage30-address:hover{background:#f6f9fd;text-decoration:none!important}
.office-redesign29 .stage30-hero-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px!important;margin:0!important;width:100%;max-width:560px}
.office-redesign29 .stage30-hero-actions .redesign-button{display:flex;min-height:36px!important;padding:6px 5px!important;border-radius:8px!important;white-space:nowrap}
.office-redesign29 .stage30-hero-actions .redesign-button,
.dentist-profile-page .dentist-profile-office-actions a{font-family:Figtree,Arial,sans-serif;font-size:15px!important;line-height:1.2!important;font-weight:700}
.office-redesign29 .stage30-hero-actions .stage30-review-button{font-size:16px!important;gap:4px}
.office-redesign29 .stage30-stars{color:#f5a623;font-size:17px;letter-spacing:-1px}
.office-redesign29 .stage30-hero-map{display:block;position:relative;min-height:220px;overflow:hidden;border-radius:9px;background:#e8edf1;text-decoration:none!important}
.office-redesign29 .stage30-hero-map iframe{display:block;width:100%;height:100%;position:absolute;inset:0;border:0;pointer-events:none}
.office-redesign29 .stage30-map-caption{position:absolute;bottom:9px;left:9px;background:#fff;color:#135fae;padding:6px 10px;border-radius:6px;font-size:12px;font-weight:700;box-shadow:0 1px 6px #0002}
.office-redesign29 .redesign-card,.office-redesign29 .office-section-card{border-radius:12px!important;box-shadow:0 2px 18px #1b41600a!important}
.office-redesign29 .stage30-single-photo .office-gallery-strip{display:none}
@media(max-width:850px){
  .office-redesign29 .stage30-hero{grid-template-columns:1fr!important}
  .office-redesign29 .stage30-hero-map{min-height:0;aspect-ratio:4 / 3}
}
@media(max-width:540px){
  .office-redesign29 > .office-container{padding:0 12px}
  .office-redesign29 .stage30-hero{padding:var(--office-card-block) 16px!important;gap:18px!important}
  .office-redesign29 .stage30-hero-actions{gap:9px!important}
  .office-redesign29 .stage30-hero-actions .redesign-button{font-size:15px!important;white-space:normal}
  .office-redesign29 .stage30-hero-actions .stage30-review-button{font-size:15px!important;white-space:nowrap}
  .office-redesign29 .stage30-stars{font-size:12px}
}

/* Restore the prototype's two-column body, not just its two-column hero. */
.office-redesign29 .stage30-content-columns{
  display:grid;grid-template-columns:minmax(0,2.08fr) minmax(275px,.95fr);
  align-items:start;gap:20px;margin:20px 0;
}
.office-redesign29 .stage30-main-column,
.office-redesign29 .stage30-side-column{
  min-width:0;display:flex;flex-direction:column;gap:18px;
}
.office-redesign29 .stage30-content-columns .redesign-card,
.office-redesign29 .stage30-content-columns .office-section-card{margin:0!important}
.office-redesign29 .stage30-main-column .office-dentists-section{margin:0!important;padding:0!important}
.office-redesign29 .stage30-main-column .office-dentists-section .office-container{
  max-width:none!important;width:100%!important;padding:0!important;margin:0!important;
}
.office-redesign29 .stage30-main-column .office-dentists-section .office-content-wrap{max-width:none!important;width:100%!important}
.office-redesign29 .stage30-side-column .redesign-info-grid{grid-template-columns:1fr!important}
.office-redesign29 .stage30-side-column .redesign-card{padding:var(--office-card-block) 20px!important}
@media(max-width:850px){
 .office-redesign29 .stage30-content-columns{grid-template-columns:1fr}
}

/* Stage34 001: match bottom Return / Update listing button size to homepage Find dentists. */
.office-redesign29 .office-action-strip .office-orange-btn,
.office-redesign29 .office-action-strip .office-light-btn{
  min-height:46px!important;
  height:46px!important;
  padding:0 clamp(22px, 3vw, 40px)!important;
  border-radius:12px!important;
  font-size:16px!important;
  line-height:1!important;
  font-weight:700!important;
  box-shadow:none!important;
}

/* Stage 021: the Return label was invisible because an older office stylesheet
   forces -webkit-text-fill-color:white while Stage 30 gives the button a white background. */
.office-redesign29 .office-action-strip a.office-orange-btn,
.office-redesign29 .office-action-strip a.office-orange-btn:visited{
  color:#1E6FD9!important;
  -webkit-text-fill-color:#1E6FD9!important;
  opacity:1!important;
  visibility:visible!important;
}
.office-redesign29 .office-action-strip a.office-orange-btn:hover,
.office-redesign29 .office-action-strip a.office-orange-btn:focus{
  color:#1E6FD9!important;
  -webkit-text-fill-color:#1E6FD9!important;
}

/* Bottom Return / Update listing actions: Call-button palette; retain homepage sizing. */
.office-redesign29 .office-action-strip button.stage33-directory-return-btn,
.office-redesign29 .office-action-strip a.office-light-btn,
.office-redesign29 .office-action-strip a.office-light-btn:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  height: 46px !important;
  padding: 0 clamp(22px, 3vw, 40px) !important;
  border: 1px solid #3978B8 !important;
  border-radius: 12px !important;
  background: #3978B8 !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
  font-family: Figtree, Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transform: none !important;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease !important;
}
.office-redesign29 .office-action-strip button.stage33-directory-return-btn:hover,
.office-redesign29 .office-action-strip a.office-light-btn:hover,
.office-redesign29 .office-action-strip button.stage33-directory-return-btn:focus,
.office-redesign29 .office-action-strip a.office-light-btn:focus {
  background: #315F91 !important;
  border-color: #315F91 !important;
  transform: none !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Stage 033: mobile-only centered section headings and comma-separated service pills. */
@media (max-width: 850px) {
  .office-redesign29 .stage30-content-columns h2,
  .office-redesign29 .stage30-content-columns .office-section-title,
  .office-redesign29 .stage30-content-columns .redesign-section-heading {
    text-align: center !important;
  }
  .office-redesign29 .stage30-content-columns .redesign-section-heading {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .office-redesign29 .office-classification-card .redesign-service-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    column-gap: 16px !important;
    row-gap: 9px !important;
    text-align: center !important;
  }
  
  .office-redesign29 .office-classification-card .redesign-service-list[hidden] { display: none !important; }
  .office-redesign29 .office-classification-card .redesign-service-chip {
    position: relative;
    margin: 0 !important;
  }
  .office-redesign29 .office-classification-card .redesign-service-chip:not(:last-child)::after {
    content: ",";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 400;
  }
}

/* Stage 040: use About Our Practice body copy as the typography reference.
   Apply to readable content in every office section, not headings or controls. */
.office-redesign29 .stage30-content-columns .redesign-card,
.office-redesign29 .stage30-content-columns .office-section-card {
  font-size: 16px;
}
.office-redesign29 .stage30-content-columns .redesign-card p,
.office-redesign29 .stage30-content-columns .redesign-card .redesign-subtle,
.office-redesign29 .stage30-content-columns .redesign-card .redesign-service-chip,
.office-redesign29 .stage30-content-columns .redesign-card .redesign-info-grid p,
.office-redesign29 .stage30-content-columns .office-about-copy,
.office-redesign29 .stage30-content-columns .office-about-copy p,
.office-redesign29 .stage30-content-columns .office-about-copy li,
.office-redesign29 .stage30-content-columns .office-dentist-summary,
.dentist-profile-page .section-copy,
.dentist-profile-page .value {
  font-family: Figtree, Arial, sans-serif;
  font-size: 16px !important;
  line-height: 1.55;
}
.office-redesign29 .stage30-content-columns #hours .office-hours-table,
.office-redesign29 .stage30-content-columns #hours .office-hours-table td,
.office-redesign29 .stage30-content-columns #hours .office-hours-table th {
  font-family: 'Figtree', Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.55;
  text-transform: none !important;
  font-weight: 400 !important;
  color: #304963;
}
/* Subheadings such as Languages spoken match the Request Appointment label. */
.office-redesign29 .stage30-content-columns .redesign-info-grid strong,
.office-redesign29 .stage30-content-columns .office-dentist-about-label,
.dentist-profile-page .label {
  font-size: 15px !important;
  line-height: 1.2;
}

/* Mobile office profile: center services and dentist information. */
@media (max-width: 850px) {
  .office-redesign29 .office-classification-card,
  .office-redesign29 .office-classification-card .redesign-subtle,
  .office-redesign29 .office-classification-card .redesign-expand { text-align: center !important; }
  .office-redesign29 .office-classification-card .redesign-service-list {
    justify-content: flex-start !important;
    gap: 8px !important;
  }
  .office-redesign29 .office-classification-card .redesign-service-chip {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 999px !important;
    padding: 6px 12px !important;
    background: #eff6ff;
    border: 1px solid #cfe0fb;
  }
  .office-redesign29 .office-classification-card .redesign-service-chip::after {
    content: none !important;
  }
  .office-redesign29 .office-single-dentist-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .office-redesign29 .office-single-dentist-card .office-dentist-photo-wrap {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .office-redesign29 .office-single-dentist-info {
    width: 100%;
    align-items: center !important;
    text-align: center !important;
    height: auto !important;
    overflow: visible !important;
  }
  .office-redesign29 .office-single-dentist-name,
  .office-redesign29 .office-dentist-about-label { text-align: center !important; }
  .office-redesign29 .office-dentist-summary { text-align: left; }
}

/* Stage 075: Demo office Submit Information is a primary action, not a return link. */
.office-redesign29 .office-action-strip .office-submit-information-btn,
.office-redesign29 .office-action-strip a.office-submit-information-btn:visited {
  background: #2B82F6 !important;
  background-image: none !important;
  border-color: #1E6FD9 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}
.office-redesign29 .office-action-strip .office-submit-information-btn:hover,
.office-redesign29 .office-action-strip .office-submit-information-btn:focus {
  background: #1E6FD9 !important;
  background-image: none !important;
  border-color: #3B82F6 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Stage 013: match the Submit Information width to a Call action in the
   two-column, max-560px office hero action grid (18px column gap). */
.office-redesign29 .office-action-strip .office-submit-information-btn {
  box-sizing: border-box;
  width: 271px !important;
  max-width: 100% !important;
}

/* Stage 006: owner return action matches the office hero Call button. */
.office-redesign29 .office-action-strip a.stage33-my-listings-return-btn,
.office-redesign29 .office-action-strip a.stage33-my-listings-return-btn:visited {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  padding:6px 16px!important;
  background:#1E6FD9!important;
  border:1px solid #1E6FD9!important;
  border-radius:8px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  font-family:Figtree,Arial,sans-serif!important;
  font-size:16px!important;
  font-weight:700!important;
  line-height:1.2!important;
  text-decoration:none!important;
}
.office-redesign29 .office-action-strip a.stage33-my-listings-return-btn:hover,
.office-redesign29 .office-action-strip a.stage33-my-listings-return-btn:focus {
  background:#3B82F6!important;
  border-color:#3B82F6!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Stage36 049: administrative listing update is a quiet owner link, not a patient CTA. */
.office-redesign29 .office-owner-update {
  display:flex !important;
  flex-wrap:wrap;
  justify-content:center !important;
  align-items:baseline;
  gap:6px 12px;
  width:100%;
  box-sizing:border-box;
  clear:both;
  margin:36px auto 0;
  font-family:Figtree,Arial,sans-serif;
  font-size:14px;
  line-height:1.5;
  color:#64748b;
  text-align:center;
}
.office-redesign29 .office-owner-update a,
.office-redesign29 .office-owner-update a:visited {
  display:inline;
  min-height:0;
  height:auto;
  padding:0;
  border:0;
  background:transparent;
  color:#475569;
  -webkit-text-fill-color:#475569;
  font:500 14px/1.5 Figtree,Arial,sans-serif;
  text-decoration:underline;
  text-underline-offset:3px;
  box-shadow:none;
  transform:none;
}
.office-redesign29 .office-owner-update a:hover,
.office-redesign29 .office-owner-update a:focus-visible {
  color:#173a66;
  -webkit-text-fill-color:#173a66;
}

/* Stage38 058: compact companion cards below About Our Practice. */
.office-redesign29 .stage30-main-column .office-compact-details-row {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
  width:100%;
  min-width:0;
}
.office-redesign29 .stage30-main-column .office-compact-details-row > .office-compact-details-card {
  min-width:0;
  width:auto;
  max-width:100%;
  box-sizing:border-box;
  padding:var(--office-card-block) 18px!important;
}
.office-redesign29 .stage30-main-column .office-compact-details-card h2 {
  margin-bottom:12px!important;
}
.office-redesign29 .stage30-main-column .office-compact-details-card p {
  margin:0 0 6px!important;
}
.office-redesign29 .stage30-main-column .office-compact-details-card p:last-child {
  margin-bottom:0!important;
}
@media(max-width:680px) {
  .office-redesign29 .stage30-main-column .office-compact-details-row {
    grid-template-columns:1fr;
    gap:13px;
  }
}

/* Stage41: cards retain their natural content height. */
@media (min-width:851px) {
  .office-redesign29 .stage30-content-columns { align-items:start; }
  .office-redesign29 .stage30-main-column > .office-compact-details-row:last-child {
    flex:0 0 auto;
    margin-top:0;
  }
}

/* Stage38-062: reduce office gallery main photograph by 10% while preserving 4:3 proportions. */
.office-redesign29 .redesign-photo-layout .office-hero-photo-card { width:90%; max-width:360px; aspect-ratio:4 / 3; }

/* Stage38-063: gallery thumbnails 10% smaller, retaining their existing proportions. */
.office-redesign29 .redesign-photo-layout .office-gallery-thumb { width:79.2px; height:58.5px; }

/* Stage38-064: align thumbnail gallery width with the main office photo,
   and make individual thumbnails slightly smaller without distortion. */
.office-redesign29 .redesign-photo-layout .office-gallery-strip {
  width:90%;
  max-width:360px;
  box-sizing:border-box;
}
.office-redesign29 .redesign-photo-layout .office-gallery-thumb {
  width:71.28px;
  height:52.668px;
  flex:0 0 71.28px;
}

/* Stage38-065: float the office photo and thumbnails beside the practice
   description so longer text flows underneath the complete photo/gallery. */
.office-redesign29 .office-about-with-photos { display:flow-root; }
.office-redesign29 .office-about-with-photos .office-about-photo-float {
  float:left;
  width:min(360px, 45%);
  max-width:100%;
  margin:0 24px 14px 0;
}
.office-redesign29 .office-about-with-photos .redesign-photo-layout .office-hero-photo-card,
.office-redesign29 .office-about-with-photos .redesign-photo-layout .office-gallery-strip {
  width:100%;
  max-width:100%;
}
.office-redesign29 .office-about-with-photos .office-about-copy { max-width:none; }
@media(max-width:680px) {
  .office-redesign29 .office-about-with-photos .office-about-photo-float {
    float:none;
    width:100%;
    max-width:360px;
    margin:0 auto 18px;
  }
}

/* Stage38-067: fit four office thumbnails in a single row within the
   photograph-width gallery, including its padding and borders. */
.office-redesign29 .redesign-photo-layout .office-gallery-strip {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  padding:8px;
  flex-wrap:nowrap;
}
.office-redesign29 .redesign-photo-layout .office-gallery-thumb {
  width:100%;
  min-width:0;
  height:auto;
  aspect-ratio:88 / 65;
  flex:none;
  box-sizing:border-box;
}

/* Stage38-068: let About Our Practice text wrap beneath the photo/gallery
   about one line sooner, without overlapping the thumbnails. */
@media (min-width:681px) {
  .office-redesign29 .office-about-with-photos .office-about-photo-float {
    margin-bottom:0;
  }
  .office-redesign29 .office-about-with-photos .office-gallery-strip {
    margin-top:0;
  }
}

/* Stage38-069: center the About heading across the full card, above both
   the photo/gallery and the flowing description. */
.office-redesign29 .office-about-with-photos > h2 {
  text-align:center;
  width:100%;
}

/* Office Hours always stays content-height, including when it is the last card. */
@media (min-width:851px) {
  .office-redesign29 .stage30-side-column > #hours { flex:0 0 auto; }
}

/* Stage38-071: match Accessibility & Amenities card spacing to the
   compact Insurance & Payment Options card. */
.office-redesign29 .stage30-side-column #accessibility-amenities {
  padding:var(--office-card-block) 18px!important;
}
.office-redesign29 .stage30-side-column #accessibility-amenities h2 {
  margin-bottom:12px!important;
}
.office-redesign29 .stage30-side-column #accessibility-amenities p {
  margin:0 0 6px!important;
}
.office-redesign29 .stage30-side-column #accessibility-amenities p:last-child {
  margin-bottom:0!important;
}

/* Stage 092: legacy-style dentist portraits on office pages.
   Use a 3:4 portrait crop; all dentist details sit below it. */
.office-new-skin .office-dentists-heading .office-section-title {
    text-align: left;
}
.office-new-skin .office-dentists-image-hint {
    font-size: .72em;
    font-weight: 400;
}
.office-new-skin .office-single-dentist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 190px;
    max-width: 100%;
    margin: 0 auto;
    gap: 0;
    padding: 16px;
    text-align: center;
}
.office-new-skin .office-single-dentist-card .office-dentist-photo-wrap,
.office-new-skin .office-dentist-gallery-card .office-dentist-photo-wrap {
    display: block;
    width: 130px;
    height: auto;
    aspect-ratio: 3 / 4;
    max-width: 100%;
    margin: 0 auto 8px;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
}
.office-new-skin .office-single-dentist-card .office-dentist-photo-wrap img,
.office-new-skin .office-dentist-gallery-card .office-dentist-photo-wrap img,
.office-redesign29 .office-dentist-photo-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.office-new-skin .office-single-dentist-info {
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.office-new-skin .office-single-dentist-name {
    margin: 0 0 4px;
    font-size: 1rem;
}
.office-new-skin .office-single-dentist-info .office-dentist-summary,
.office-new-skin .office-single-dentist-info .office-dentist-card-hours {
    text-align: center;
}
@media (max-width: 700px) {
    .office-new-skin .office-single-dentist-card {
        width: 190px;
        max-width: 100%;
        margin: 0 auto;
    }
    .office-new-skin .office-single-dentist-card .office-dentist-photo-wrap {
        width: 130px;
        height: auto;
    }
}

/* Stage 094: compact dentist cards: one specialty line with optional disclosure. */
.office-new-skin .office-dentist-specialty-one,
.office-new-skin .office-dentist-specialty-dropdown {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: #435a77;
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
}
.office-new-skin .office-dentist-specialty-one,
.office-new-skin .office-dentist-specialty-dropdown > summary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.office-new-skin .office-dentist-specialty-dropdown > summary {
    display: block;
    cursor: pointer;
    list-style: none;
}
.office-new-skin .office-dentist-specialty-dropdown > summary::-webkit-details-marker { display: none; }
.office-new-skin .office-dentist-specialty-chevron { display: inline-block; margin-left: 3px; }
.office-new-skin .office-dentist-specialty-dropdown[open] .office-dentist-specialty-chevron { transform: rotate(180deg); }
.office-new-skin .office-dentist-specialty-more { padding-top: 5px; white-space: normal; }
.office-new-skin .office-dentist-specialty-more > div { margin: 3px 0; }

/* Keep the outer Our Dentist section card; remove only the portrait card styling. */
.office-new-skin .office-dentists-section .office-dentist-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.office-new-skin .office-dentists-section .office-single-dentist-card {
    padding: 2px 0 0 !important;
}

/* Stage 100: restore the OUTER Our Dentist section panel, not the inner portrait card. */
.office-redesign29 .stage30-main-column .office-dentists-section .office-content-wrap.office-section-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 18px #1b41600a !important;
    padding: var(--office-card-block) 20px !important;
}

/* Stage41: remove trailing content margins from outer section panels. */
.office-redesign29 .redesign-card > p:last-child,
.office-redesign29 .office-about-copy > :last-child { margin-bottom:0; }
.office-redesign29 .office-about-copy > :first-child { margin-top:0; }
.office-redesign29 .office-about-with-photos .office-about-photo-float:last-child { margin-bottom:0; }
