/**
 * Caribbean Therapist - Single Listing Page Styles (v2 design)
 *
 * Editorial Fraunces+Inter layout with pink/yellow/mint/teal palette,
 * color-strip top border, asymmetric hero, 3-column body.
 *
 * All rules scoped under .ct-listing-page so the parent theme can't bleed in.
 */

/* Hide Ziston's breadcrumb on listing pages — we have our own header */
.single-job_listing .custom-breadcrumb,
.single-job_listing .custom-breadcrumb .breadcrumb-main {
    display: none !important;
}

.ct-listing-page {
    /* v2.5.0 — CLIENT 2-COLOR PALETTE: Light Yellow + Green only.
       All blush/pink replaced with light yellow #E6FFCD.
       All "teal" usage remapped to green family. */
    --pink:        #E6FFCD;        /* was blush — now light yellow */
    --pink-soft:   #F4FDDD;        /* lighter wash of light yellow */
    --yellow:      #E6FFCD;
    --yellow-soft: #F4FDDD;
    --mint:        #E6FFCD;        /* unified to light yellow */
    --mint-soft:   #F4FDDD;
    --teal:        var(--ct-teal); /* bright accent green #38B6A8 */
    --teal-deep:   var(--ct-teal-deep);  /* dark green #045969 — used for text */
    --teal-darker: #023a45;
    --cream:       #F4FDDD;        /* was blush-soft — now light yellow soft */
    --paper:       #FFFFFF;
    --ink:         var(--ct-teal-deep);
    --ink-soft:    var(--ct-text-muted);
    --rule:        var(--ct-rule);
    --rule-soft:   var(--ct-rule-soft);

    background: #F4FDDD;           /* page bg = soft light yellow */
    color: var(--ct-teal-deep);
    font-family: var(--ct-font-body);
    font-size: var(--ct-fs-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    /* Break out of any parent container constraint - go full viewport width */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    overflow-x: hidden;
}

.ct-listing-page *,
.ct-listing-page *::before,
.ct-listing-page *::after {
    box-sizing: border-box;
}

.ct-listing-page .mono {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ============ HERO — Light Aqua per brand ============ */
.ct-listing-page .hero-section {
    width: 100%;
    background: var(--ct-yellow);
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(4, 89, 105, .12);
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Yellow top strip removed per request — keeping ::before disabled */
.ct-listing-page .hero-section::before {
    content: none;
    display: none;
}

/* Inner container holds the hero content within max-width */
.ct-listing-page .hero-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 24px 36px;
}

/* ============ BODY — pure white ============ */
.ct-listing-page .body-section {
    width: 100%;
    background: #ffffff;
    padding: 0;
}

.ct-listing-page .body-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.ct-listing-page .header-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    align-items: center;
    position: relative;
}

.ct-listing-page .hdr-left {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
}

.ct-listing-page .avatar-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ct-listing-page .avatar-frame {
    width: 224px;
    height: 224px;
    border-radius: 50%;
    padding: 5px;
    background: var(--teal);
    box-shadow: 0 12px 28px -12px rgba(56,182,168,.4);
    position: relative;
}

.ct-listing-page .avatar-frame::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid rgba(4,89,105,.15);
    pointer-events: none;
}

.ct-listing-page .avatar-ph {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--pink-soft);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-deep);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    border: 1px solid var(--paper);
}

.ct-listing-page .avatar-ph.has-photo {
    background-color: transparent;
    background-image: var(--avatar-img, none);
}

.ct-listing-page .socials {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 224px;
}

.ct-listing-page .socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .15s, background .15s;
    box-shadow: 0 4px 10px -4px rgba(56,182,168,.4);
}

.ct-listing-page .socials a:hover {
    background: var(--teal-deep);
    color: #fff;
    transform: translateY(-2px);
}

.ct-listing-page .socials a svg {
    width: 17px;
    height: 17px;
}

.ct-listing-page .hdr-id {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ct-listing-page .name {
    font-family: var(--ct-font-head);
    font-weight: 400;
    font-size: 56px;
    line-height: 1.0;
    color: var(--teal-deep);
    margin: 0 0 8px;
    letter-spacing: 0.02em;
    text-wrap: balance;
    text-transform: uppercase;
}

.ct-listing-page .role {
    font-family: var(--ct-font-script);
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    color: var(--teal);
    margin: 0 0 22px;
    letter-spacing: 0;
    line-height: 1.1;
}

.ct-listing-page .cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ct-listing-page .cta {
    padding: 13px 22px;
    border-radius: 999px;
    font-family: var(--ct-font-head);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
    text-decoration: none;
    line-height: 1;
}

.ct-listing-page .cta svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: block;
}

.ct-listing-page .cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -8px rgba(4,89,105,.4);
}

/* Hero CTAs — colorful per user request
   Call     = Deep Teal solid          (dark)
   Email    = Teal solid               (teal)
   Book Session = Yellow + Deep Teal text
   Website  = White outline + Deep Teal text  (ghost) */
.ct-listing-page .cta.dark {
    background: var(--ct-teal-deep);
    color: #fff;
    border-color: var(--ct-teal-deep);
}
.ct-listing-page .cta.dark:hover {
    background: #023a45;
    border-color: #023a45;
    color: #fff;
}

.ct-listing-page .cta.teal {
    background: var(--ct-teal);
    color: #fff;
    border-color: var(--ct-teal);
}
.ct-listing-page .cta.teal:hover {
    background: var(--ct-teal-deep);
    border-color: var(--ct-teal-deep);
    color: #fff;
}

.ct-listing-page .cta.yellow {
    background: var(--ct-yellow);
    color: var(--ct-teal-deep);
    border-color: var(--ct-yellow);
}
.ct-listing-page .cta.yellow:hover {
    background: var(--ct-teal-deep);
    color: var(--ct-yellow);
    border-color: var(--ct-teal-deep);
}

.ct-listing-page .cta.ghost {
    background: #ffffff;
    color: var(--ct-teal-deep);
    border-color: var(--ct-teal-deep);
}
.ct-listing-page .cta.ghost:hover {
    background: var(--ct-teal-deep);
    color: #ffffff;
    border-color: var(--ct-teal-deep);
}

/* MAP */
.ct-listing-page .hdr-map {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ct-listing-page .map-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ct-listing-page .map-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper);
}

.ct-listing-page .map-canvas {
    height: 160px;
    position: relative;
    background: #fbf4ec;
    overflow: hidden;
    border-radius: 12px;
}

.ct-listing-page .map-canvas iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/* Address + directions block - clean compact format like reference */
.ct-listing-page .map-meta {
    padding: 0;
    font-size: 14px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ct-listing-page .map-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: var(--teal-deep);
    text-decoration: none;
    line-height: 1.4;
    font-weight: 500;
}

.ct-listing-page .map-row.link {
    cursor: pointer;
    color: var(--teal);
    transition: color .15s;
}

.ct-listing-page .map-row.link:hover {
    color: var(--teal-deep);
}

.ct-listing-page .map-row.link:hover .map-icon-dir svg {
    transform: translate(2px, -2px);
}

/* Icon styling - small inline icons */
.ct-listing-page .map-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ct-listing-page .map-icon svg {
    width: 16px;
    height: 16px;
    transition: transform .15s;
}

.ct-listing-page .map-icon-pin {
    color: #d4537e;
}

.ct-listing-page .map-icon-dir {
    color: var(--teal);
}

/* ============ 3-COL GRID ============ */
.ct-listing-page .grid-3 {
    display: grid;
    grid-template-columns: 280px 1fr 260px;
    gap: 32px;
    align-items: start;
}

/* SIDE CARDS */
.ct-listing-page .side-card {
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 18px 20px 20px;
    margin-bottom: 18px;
    background: var(--paper);
    position: relative;
    overflow: hidden;
}

.ct-listing-page .side-card.pink,
.ct-listing-page .side-card.cream {
    background: var(--ct-yellow);  /* was blush */
    border-color: rgba(4, 89, 105, 0.10);
}

.ct-listing-page .side-card.yellow,
.ct-listing-page .side-card.mint {
    background: var(--ct-yellow);
    border-color: rgba(4, 89, 105, 0.10);
}

.ct-listing-page .side-card .side-title,
.ct-listing-page .side-card .side-rule,
.ct-listing-page .side-card .plain-list,
.ct-listing-page .side-card .ins-list,
.ct-listing-page .side-card .rates-list,
.ct-listing-page .side-card .spec-grid {
    position: relative;
    z-index: 1;
}

.ct-listing-page .side-title {
    font-family: var(--ct-font-head);
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    color: var(--teal-deep);
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ct-listing-page .side-rule {
    margin: 6px 0 12px;
    height: 1px;
    background: rgba(56,182,168,.22);
    position: relative;
}

.ct-listing-page .side-rule::after {
    content: "";
    position: absolute;
    left: 0; top: -1px;
    width: 28px;
    height: 3px;
    background: var(--teal);
}

/* All rule accents now use green - one consistent accent color */
.ct-listing-page .side-card.pink   .side-rule::after { background: var(--teal); }
.ct-listing-page .side-card.yellow .side-rule::after { background: var(--teal); }
.ct-listing-page .side-card.mint   .side-rule::after { background: var(--teal); }
.ct-listing-page .side-card.cream  .side-rule::after { background: var(--teal); }

.ct-listing-page .plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-listing-page .plain-list li {
    padding: 7px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px dashed rgba(4,89,105,.15);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.ct-listing-page .plain-list li:last-child {
    border-bottom: none;
}

.ct-listing-page .plain-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--teal);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Session rates list */
.ct-listing-page .rates-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-listing-page .rates-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(4,89,105,.18);
    font-size: 15px;
}

.ct-listing-page .rates-list li:last-child {
    border-bottom: none;
}

.ct-listing-page .rate-label {
    color: var(--ink);
    font-weight: 600;
    flex: 1;
    min-width: 0;
    font-size: 14px;
}

.ct-listing-page .rate-price {
    color: var(--teal-deep);
    font-weight: 400;
    font-family: var(--ct-font-head);
    font-size: 22px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    white-space: nowrap;
}

/* INSURANCE LIST */
.ct-listing-page .ins-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-listing-page .ins-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-deep);
    border-bottom: 1px solid rgba(4,89,105,.1);
    line-height: 1.4;
}

.ct-listing-page .ins-list li:last-child {
    border-bottom: none;
}

.ct-listing-page .shield {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--teal);
    display: inline-flex;
}

.ct-listing-page .shield svg {
    width: 100%;
    height: 100%;
}

/* SPECIALIZATION PILLS */
.ct-listing-page .spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    /* Allow content to shrink so pills never overflow the card */
    width: 100%;
    min-width: 0;
}

.ct-listing-page .spec-pill {
    position: relative;
    background: #D9F2F0;
    color: var(--teal-deep);
    border: 1px solid rgba(56,182,168,.22);
    padding: 8px 13px 8px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s, transform .15s, border-color .15s;
    cursor: default;
    letter-spacing: 0;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: inline-flex;
    align-items: center;
}

.ct-listing-page .spec-pill::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 5px;
    height: 5px;
    background: var(--teal);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* All pills same solid color */
.ct-listing-page .spec-pill:hover {
    border-color: var(--teal);
    transform: translateY(-1px);
}

/* ============ MIDDLE COLUMN ============ */
.ct-listing-page .col-mid {
    min-width: 0;
}

.ct-listing-page .tabs-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.ct-listing-page .tab-btn {
    background: transparent;
    border: none;
    padding: 12px 0;
    margin-right: 28px;
    font-family: var(--ct-font-head);
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    color: rgba(4,89,105,.35);
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    transition: color .15s;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ct-listing-page .tab-btn:hover {
    color: var(--teal);
}

.ct-listing-page .tab-btn.active {
    color: var(--teal-deep);
    border-bottom-color: var(--teal);
}

.ct-listing-page .tab-spacer {
    flex: 1;
    border-bottom: 1px solid var(--rule);
    margin-bottom: -1px;
}

.ct-listing-page .tab-rule {
    height: 1px;
    background: var(--rule);
    margin-bottom: 22px;
    margin-top: -1px;
}

.ct-listing-page .tab-panel {
    animation: ct-fadeIn .25s ease;
}

@keyframes ct-fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

.ct-listing-page .qual-intro {
    color: var(--ink-soft);
    font-size: 18px;
    margin-bottom: 18px !important;
    font-style: normal;
    font-family: var(--ct-font-head);
}

.ct-listing-page .col-mid p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
}

.ct-listing-page .col-mid p em {
    font-family: var(--ct-font-head);
    font-style: normal;
    color: var(--teal-deep);
    font-weight: 500;
}

.ct-listing-page .col-mid h2,
.ct-listing-page .col-mid h3,
.ct-listing-page .col-mid h4 {
    font-family: var(--ct-font-head);
    color: var(--teal-deep);
    margin: 24px 0 12px;
    line-height: 1.2;
}

.ct-listing-page .col-mid h2 { font-size: 24px; }
.ct-listing-page .col-mid h3 { font-size: 20px; }
.ct-listing-page .col-mid h4 { font-size: 17px; }

.ct-listing-page .col-mid ul,
.ct-listing-page .col-mid ol {
    margin: 6px 0 18px;
    padding-left: 0;
    list-style: none;
}

.ct-listing-page .col-mid ul li,
.ct-listing-page .col-mid ol li {
    position: relative;
    padding: 8px 0 8px 26px;
    font-size: 15px;
    line-height: 1.55;
    border-bottom: 1px solid var(--rule-soft);
}

.ct-listing-page .col-mid ul li:last-child,
.ct-listing-page .col-mid ol li:last-child {
    border-bottom: none;
}

.ct-listing-page .col-mid ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 2px;
    background: var(--teal-deep);
}

.ct-listing-page .col-mid ol {
    counter-reset: ct-ol;
}

.ct-listing-page .col-mid ol li {
    counter-increment: ct-ol;
}

.ct-listing-page .col-mid ol li::before {
    content: counter(ct-ol) ".";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--teal-deep);
    font-weight: 700;
    font-family: var(--ct-font-head);
}

.ct-listing-page .ct-pull-quote {
    margin: 28px 0;
    padding: 26px 30px 26px 36px;
    background: var(--pink-soft);
    border-left: 4px solid var(--teal);
    font-family: var(--ct-font-head);
    font-style: normal;
    font-size: 24px;
    line-height: 1.4;
    color: var(--teal-deep);
    border-radius: 0 6px 6px 0;
    position: relative;
    letter-spacing: 0.01em;
}

.ct-listing-page .ct-pull-quote::before {
    content: "\201C";
    position: absolute;
    left: 12px;
    top: -8px;
    font-size: 70px;
    color: var(--teal-deep);
    opacity: .25;
    line-height: 1;
    font-family: var(--ct-font-head);
}

/* Plain blockquotes inside the bio (markdown-rendered) — clean, no decoration */
.ct-listing-page .col-mid blockquote:not(.ct-pull-quote) {
    margin: 18px 0;
    padding: 12px 18px;
    background: transparent;
    border-left: 3px solid var(--rule);
    font-style: normal;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    border-radius: 0;
    position: static;
}

.ct-listing-page .col-mid blockquote:not(.ct-pull-quote)::before,
.ct-listing-page .col-mid blockquote:not(.ct-pull-quote)::after {
    content: none !important;
    display: none !important;
}

.ct-listing-page .ct-pull-by {
    display: block;
    margin-top: 14px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal-deep);
    opacity: 0.85;
}

.ct-listing-page .col-mid a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ct-listing-page .col-mid a:hover {
    color: var(--teal-deep);
}

/* QUALIFICATIONS TABLE */
.ct-listing-page .qual-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(212,83,126,.22);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    display: table;
}

.ct-listing-page .qrow {
    display: table-row;
}

.ct-listing-page .qrow .qk,
.ct-listing-page .qrow .qv {
    display: table-cell;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(212,83,126,.18);
    vertical-align: middle;
    font-family: var(--ct-font-body);
}

.ct-listing-page .qrow:last-child .qk,
.ct-listing-page .qrow:last-child .qv {
    border-bottom: none;
}

.ct-listing-page .qrow .qk {
    width: 40%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--teal-deep);
    border-right: 1px solid rgba(212,83,126,.18);
    background: #FFE8E8;
}

.ct-listing-page .qrow .qv {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal-deep);
    background: #ffffff;
}

.ct-listing-page .qrow:nth-child(even) .qv {
    background: #fffafa;
}


/* =========================================================
   RESPONSIVE — Tablet → Mobile
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .ct-listing-page .grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .ct-listing-page .col-mid {
        grid-column: 1 / -1;
        order: 2;
    }
    .ct-listing-page .col-left {
        order: 1;
    }
    .ct-listing-page .col-right {
        order: 3;
    }
}

/* Small tablet / large phone */
@media (max-width: 820px) {
    .ct-listing-page .hero-inner {
        padding: 32px 20px 28px;
    }
    .ct-listing-page .body-inner {
        padding: 32px 20px 40px;
    }

    /* Hero stacks */
    .ct-listing-page .header-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ct-listing-page .hdr-left {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }
    .ct-listing-page .avatar-stack {
        align-items: center;
    }
    .ct-listing-page .hdr-id {
        align-items: center;
    }
    .ct-listing-page .name {
        font-size: 30px;
    }
    .ct-listing-page .role {
        font-size: 18px;
    }
    .ct-listing-page .cta-row {
        justify-content: center;
    }
    .ct-listing-page .map-canvas {
        height: 180px;
    }
    .ct-listing-page .hdr-map {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    /* Body stacks all 3 columns */
    .ct-listing-page .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ct-listing-page .col-left { order: 2; }
    .ct-listing-page .col-mid  { order: 1; }
    .ct-listing-page .col-right { order: 3; }
}

/* Mobile */
@media (max-width: 600px) {
    .ct-listing-page .hero-inner {
        padding: 26px 16px 24px;
    }
    .ct-listing-page .body-inner {
        padding: 24px 16px 30px;
    }

    /* Smaller avatar */
    .ct-listing-page .avatar-frame {
        width: 160px;
        height: 160px;
        padding: 4px;
    }

    .ct-listing-page .name {
        font-size: 24px;
        line-height: 1.1;
    }
    .ct-listing-page .role {
        font-size: 16px;
        margin-bottom: 16px;
    }

    /* CTA buttons stack 2x2 */
    .ct-listing-page .cta-row {
        gap: 8px;
    }
    .ct-listing-page .cta {
        font-size: 12px;
        padding: 10px 14px;
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        min-width: 0;
    }

    .ct-listing-page .socials a {
        width: 36px;
        height: 36px;
    }
    .ct-listing-page .socials a svg {
        width: 15px;
        height: 15px;
    }

    .ct-listing-page .map-canvas {
        height: 160px;
    }
    .ct-listing-page .map-meta {
        font-size: 12px;
    }

    .ct-listing-page .side-card {
        padding: 16px 16px 18px;
        margin-bottom: 14px;
    }
    .ct-listing-page .side-title {
        font-size: 17px;
    }

    .ct-listing-page .tab-btn {
        font-size: 18px;
        margin-right: 18px;
    }

    /* Qualifications - turn the table into stacked rows on mobile */
    .ct-listing-page .qual-table,
    .ct-listing-page .qrow,
    .ct-listing-page .qrow .qk,
    .ct-listing-page .qrow .qv {
        display: block;
    }
    .ct-listing-page .qual-table {
        border: 1px solid var(--rule);
    }
    .ct-listing-page .qrow {
        border-bottom: 1px solid var(--rule);
    }
    .ct-listing-page .qrow:last-child {
        border-bottom: none;
    }
    .ct-listing-page .qrow .qk {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(4,89,105,.08);
        padding: 10px 14px 8px;
        font-size: 10px;
    }
    .ct-listing-page .qrow .qv {
        width: 100%;
        padding: 6px 14px 12px;
        font-size: 14px;
    }

    .ct-listing-page .col-mid p,
    .ct-listing-page .col-mid ul li,
    .ct-listing-page .col-mid ol li {
        font-size: 14px;
    }
    .ct-listing-page .col-mid blockquote {
        font-size: 16px;
        padding: 14px 16px 14px 20px;
    }
}

/* Tiny phones */
@media (max-width: 380px) {
    .ct-listing-page .name {
        font-size: 21px;
    }
    .ct-listing-page .avatar-frame {
        width: 140px;
        height: 140px;
    }
    .ct-listing-page .cta {
        flex: 1 1 100%;
    }
}

/* ============================================================
 *  USER OVERRIDES BAKED IN (from Additional CSS panel)
 * ============================================================ */

/* Sidebar card backgrounds — v2.5.2: ALL sidebar cards light yellow with alpha */
.ct-listing-page .side-card.pink,
.ct-listing-page .side-card.cream,
.ct-listing-page .side-card.yellow,
.ct-listing-page .side-card.mint {
    background: #e6ffcd5c !important;
}

/* Hero — v2.5.3: very light alpha-yellow background per client */
.ct-listing-page .hero-section {
    background: #e6ffcd21 !important;
}

/* Page background — v2.5.2: very soft light yellow */
.ct-listing-page {
    background: #e6ffcd5c !important;
}

/* Spec pills — solid green with white text */
.ct-listing-page .spec-pill {
    background: #38b6a8;
    color: #fff;
    border-color: #38b6a8;
}
.ct-listing-page .spec-pill::before {
    background: #E6FFCD;
}

/* Address row weight */
.ct-listing-page .map-row {
    font-weight: 600;
}

/* Rate prices */
.ct-listing-page .rate-price {
    font-size: 19px;
}

/* About / Qualifications h3 */
.ct-listing-page .col-mid h3 {
    font-size: 26px;
}

/* Practice philosophy quote — bigger, tighter, faded pink per v2.5.3 */
.ct-listing-page .col-mid blockquote,
.ct-listing-page .ct-pull-quote {
    font-size: 24px;
    line-height: 1.2;
    background: #ffa6a63b !important;
}

/* Hide Ziston breadcrumb on listing pages */
.custom-breadcrumb .breadcrumb-main {
    display: none;
}

/* Sidebar list items — uniform 14px */
.ct-listing-page .plain-list li,
.ct-listing-page .ins-list li,
.ct-listing-page .rates-list li,
.ct-listing-page .side-card .plain-list li,
.ct-listing-page .side-card .ins-list li,
.ct-listing-page .side-card .rates-list li {
    font-size: 14px;
}
.ct-listing-page .rate-label {
    font-size: 14px;
}

/* Remove the orphan grey quote/dash line above philosophy block */
.ct-listing-page .col-mid blockquote::after,
.ct-listing-page .ct-pull-quote::after,
.ct-listing-page .ct-pull-prefix,
.ct-listing-page .col-mid p:has(+ blockquote):empty,
.ct-listing-page .col-mid p.ct-mute-line {
    display: none !important;
}

/* Role text — Montserrat override (from Additional CSS) */
.ct-listing-page .role {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    color: var(--teal);
    margin: 0 0 22px;
    letter-spacing: -0.7px;
    line-height: 1.1;
}

/* Spec pill font-size override */
.ct-listing-page .spec-pill {
    font-size: 13px;
}

/* Directory view button */
.ct-dir-view-btn {
    padding: 5px 18px;
    background: #38b6a8;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 1.5px solid #38b6a8;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s ease;
}
.ct-dir-view-btn:hover {
    background: var(--ct-teal-deep, #045969);
    border-color: var(--ct-teal-deep, #045969);
    color: #fff;
}

/* Directory card social icons */
.ct-dir-card-social {
    background: #38b6a8;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.ct-dir-card-social:hover {
    background: var(--ct-teal-deep, #045969);
}

/* ==================================================================
 *  V2.5.0 — Book Session placeholder popup
 * ================================================================== */
.ct-cbtn-book {
    background: var(--ct-teal-deep);
    color: #fff !important;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.ct-cbtn-book:hover {
    background: #023a45;
}

.ct-book-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4,89,105,0.7);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.ct-book-modal-backdrop.open {
    display: flex;
    opacity: 1;
}

.ct-book-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    padding: 44px 36px 36px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(4,89,105,0.25);
    transform: translateY(20px);
    transition: transform 0.18s ease;
    position: relative;
}
.ct-book-modal-backdrop.open .ct-book-modal {
    transform: translateY(0);
}

.ct-book-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    font-size: 22px;
    line-height: 1;
    color: var(--ct-text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.15s;
}
.ct-book-modal-close:hover {
    background: rgba(4,89,105,0.08);
    color: var(--ct-teal-deep);
}

.ct-book-modal-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    background: var(--ct-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-teal-deep);
    font-size: 38px;
}

.ct-book-modal h3 {
    font-family: var(--ct-font-head);
    font-size: 28px;
    color: var(--ct-teal-deep);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.ct-book-modal p {
    color: var(--ct-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.ct-book-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.ct-book-modal-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--ct-teal-deep);
    color: var(--ct-yellow);
    border: 0;
    border-radius: 999px;
    font-family: var(--ct-font-head);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.ct-book-modal-btn:hover {
    background: #023a45;
    color: var(--ct-yellow);
}
