/*
Theme Name: Oxi Fresh 2024
Theme URI: https://www.oxifreshfranchise.com/
Author: Oxi Fresh
Author URI: https://www.oxifreshfranchise.com/
Template:  ave
Description: Oxifresh Franchise Development Website.
Version: 1.1
License: GNU General Public License
License URI: license.txt
Text Domain: ave
Tags: responsive, retina, rtl-language-support, blog, portfolio, custom-colors, live-editor
*/

/* ===== Single employee pages — hover headshot swap =====
   Pages under /who-we-are/leadership-team/<slug>/ render two stacked <img>
   tags inside [vc_raw_html el_class="team-member"]:
     .team-image       — default headshot
     .team-image-hover — hover headshot (mascot/fun version)
   Stack them, swap on hover with a soft fade. Mirrors the .ld-tm hover effect
   on the leadership-team archive page. */
.team-member {
    position: relative;
    display: block;
    max-width: 480px;
    margin: 0 auto 24px;
    overflow: hidden;
    border-radius: 6px;
}
.team-member .team-image,
.team-member .team-image-hover {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 !important;
}
.team-member .team-image-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 350ms ease;
    pointer-events: none;
}
.team-member:hover .team-image-hover,
.team-member:focus-within .team-image-hover {
    opacity: 1;
}

/* ===== Click outline suppression =====
   Suppress :focus outlines that fire on mouse click while preserving them
   for keyboard navigation (a11y requirement). Modern browsers use
   :focus-visible to distinguish — we only kill the outline when
   :focus is set WITHOUT :focus-visible (i.e., not from keyboard).
   Targets common interactive elements + the theme's button/tab classes. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
input[type="button"]:focus:not(:focus-visible),
input[type="submit"]:focus:not(:focus-visible),
input[type="reset"]:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.vc_btn3:focus:not(:focus-visible),
.ld-fancy-heading:focus:not(:focus-visible),
.lqd-tabs-nav-trigger:focus:not(:focus-visible),
.nav-link:focus:not(:focus-visible),
.menu-item a:focus:not(:focus-visible),
.tab-content:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: none;
}

/* ===== [oxi_blog_carousel] — homepage Latest Updates ===== */
/* Visual reference: live cw.oxifreshfranchise.com (post-slider-and-carousel 3.2.3) */
.oxi-blog-carousel {
    --oxi-visible-effective: var(--oxi-visible, 4);
    --oxi-gap: 12px;
    --oxi-arrow-gutter: 28px;
    --oxi-overlay-color: #043572;
    --oxi-overlay-color-hover: #5f7994b0;
    position: relative;
}
.oxi-blog-carousel-viewport {
    margin: 0 var(--oxi-arrow-gutter);
    padding: 25px 0;
    overflow: hidden;
}
.oxi-blog-carousel-track {
    display: flex;
    gap: var(--oxi-gap);
    transition: transform 600ms cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}
.oxi-blog-carousel-card {
    flex: 0 0 calc((100% - (var(--oxi-visible-effective) - 1) * var(--oxi-gap)) / var(--oxi-visible-effective));
    height: var(--oxi-card-height, 250px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(18, 27, 53, .12);
    background: #121b35;
    isolation: isolate;
}
.oxi-blog-carousel-card a {
    position: relative;
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.oxi-blog-carousel-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 700ms cubic-bezier(.22, .61, .36, 1);
}
.oxi-blog-carousel-card:hover .oxi-blog-carousel-card-bg {
    transform: scale(1.05);
}
.oxi-blog-carousel-card-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--oxi-overlay-color));
    transition: background 350ms ease;
}
.oxi-blog-carousel-card:hover .oxi-blog-carousel-card-bg::before {
    background: linear-gradient(to bottom, var(--oxi-overlay-color-hover), var(--oxi-overlay-color));
}
.oxi-blog-carousel-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 12px 16px;
    text-align: center;
}
.oxi-blog-carousel-card-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.oxi-blog-carousel-card-date {
    display: block;
    color: #fff;
    font-size: 11px;
    font-style: italic;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .92;
}
.oxi-blog-carousel-prev,
.oxi-blog-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgb(13 119 157 / 48%);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms;
}
.oxi-blog-carousel-prev:hover,
.oxi-blog-carousel-next:hover {
    background: rgba(4, 53, 114, .8);
}
.oxi-blog-carousel-prev { left: 0; }
.oxi-blog-carousel-next { right: 0; }
@media (max-width: 991px) { .oxi-blog-carousel { --oxi-visible-effective: 3; } }
@media (max-width: 767px) { .oxi-blog-carousel { --oxi-visible-effective: 2; --oxi-arrow-gutter: 22px; } }
@media (max-width: 480px) { .oxi-blog-carousel { --oxi-visible-effective: 1; } }

/* ===== [oxi_testimonials_carousel] — homepage video testimonials ===== */
.oxi-testimonials-carousel {
    --oxi-visible-effective: var(--oxi-visible, 4);
    --oxi-gap: 14px;
    --oxi-arrow-gutter: 28px;
    --oxi-overlay-color: #043572;
    --oxi-play-color: #d4212b;
    position: relative;
}
.oxi-testimonials-carousel-viewport {
    margin: 0 var(--oxi-arrow-gutter);
    padding: 25px 0;
    overflow: hidden;
}
.oxi-testimonials-carousel-track {
    display: flex;
    gap: var(--oxi-gap);
    transition: transform 600ms cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}
.oxi-testimonial-card {
    flex: 0 0 calc((100% - (var(--oxi-visible-effective) - 1) * var(--oxi-gap)) / var(--oxi-visible-effective));
    height: var(--oxi-card-height, 280px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(18, 27, 53, .14);
    background: #121b35;
    isolation: isolate;
    position: relative;
}
.oxi-testimonial-card-link {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
    text-decoration: none;
}
.oxi-testimonial-card-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 700ms cubic-bezier(.22, .61, .36, 1);
}
.oxi-testimonial-card:hover .oxi-testimonial-card-poster {
    transform: scale(1.04);
}
.oxi-testimonial-card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 53, 114, 0) 50%, rgba(4, 53, 114, .85) 100%);
}
.oxi-testimonial-card-playicon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    background: var(--oxi-play-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: background 200ms, transform 200ms;
}
.oxi-testimonial-card-playicon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    margin: -10px 0 0 -5px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}
.oxi-testimonial-card:hover .oxi-testimonial-card-playicon {
    background: #a90c15;
    transform: scale(1.08);
}
.oxi-testimonial-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 12px 16px;
    text-align: center;
}
.oxi-testimonial-card-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
    display: block;
}
.oxi-testimonials-carousel-prev,
.oxi-testimonials-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgb(13 119 157 / 48%);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms;
}
.oxi-testimonials-carousel-prev:hover,
.oxi-testimonials-carousel-next:hover { background: rgba(4, 53, 114, .8); }
.oxi-testimonials-carousel-prev { left: 0; }
.oxi-testimonials-carousel-next { right: 0; }
@media (max-width: 1199px) { .oxi-testimonials-carousel { --oxi-visible-effective: 3; } }
@media (max-width: 991px)  { .oxi-testimonials-carousel { --oxi-visible-effective: 2; } }
@media (max-width: 767px)  { .oxi-testimonials-carousel { --oxi-visible-effective: 1; --oxi-arrow-gutter: 22px; } }

/* ===== Archive templates (home.php, archive-*.php) ===== */
.oxi-archive { color: #121b35; }
.oxi-archive-hero {
    background: #121b35;
    color: #fff;
    padding: 14px 0;
}
.oxi-archive-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.oxi-archive-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.oxi-archive-breadcrumb a {
    color: #fff;
    text-decoration: none;
}
.oxi-archive-breadcrumb a:hover { text-decoration: underline; }
.oxi-archive-breadcrumb-sep { opacity: .5; margin: 0 4px; }
.oxi-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}
.oxi-archive-header { margin-bottom: 30px; }
.oxi-archive-title {
    font-size: 34px;
    font-weight: 700;
    color: #4d8ec8;
    margin: 0 0 8px;
    line-height: 1.2;
}
.oxi-archive-subtitle {
    font-size: 15px;
    color: #4a5a72;
    line-height: 1.5;
    margin: 0;
    max-width: 900px;
}
.oxi-archive-list { display: flex; flex-direction: column; }
.oxi-archive-empty {
    padding: 60px 0;
    text-align: center;
    color: #6a7a92;
}

.oxi-archive-item {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid #e6ecf2;
    align-items: start;
}
.oxi-archive-item:last-child { border-bottom: 0; }
.oxi-archive-item-media {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f4f8;
    aspect-ratio: 4 / 3;
}
.oxi-archive-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.oxi-archive-item-body { min-width: 0; }
.oxi-archive-item-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.oxi-archive-item-title a {
    color: #121b35;
    text-decoration: none;
}
.oxi-archive-item-title a:hover { color: #4d8ec8; }
.oxi-archive-item-meta {
    color: #6a7a92;
    font-size: 14px;
    margin-bottom: 8px;
}
.oxi-archive-item-sep { margin: 0 6px; opacity: .6; }
.oxi-archive-item-cats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: #f3f6fa;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 13px;
}
.oxi-archive-item-cats-label {
    color: #6a7a92;
    font-weight: 600;
}
.oxi-archive-item-cat {
    color: #121b35;
    text-decoration: none;
}
.oxi-archive-item-cat:hover { color: #4d8ec8; }
.oxi-archive-item-excerpt {
    color: #3b4960;
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 20px;
}
.oxi-archive-item-excerpt p:last-child { margin-bottom: 0; }
.oxi-archive-item-readmore {
    display: inline-block;
    color: #4d8ec8;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none; 
    font-size: 17px;
}
.oxi-archive-item-readmore:hover { color: #121b35; }

/* Testimonials archive: 16:9 video poster on the left, prose on the right.
   The whole media tile is a single <a> linking to the testimonial single page. */
.oxi-archive-item-testimonial {
    grid-template-columns: 420px 1fr;
}
.oxi-archive-item-testimonial .oxi-archive-item-media {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: #121b35;
    display: block;
}
.oxi-archive-item-testimonial .oxi-archive-item-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 600ms cubic-bezier(.22, .61, .36, 1);
}
.oxi-archive-item-testimonial:hover .oxi-archive-item-poster {
    transform: scale(1.04);
}
.oxi-archive-item-playicon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: #d4212b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: background 200ms, transform 200ms;
}
.oxi-archive-item-playicon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    margin: -10px 0 0 -5px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}
.oxi-archive-item-testimonial:hover .oxi-archive-item-playicon {
    background: #a90c15;
    transform: scale(1.08);
}
.oxi-archive-item-content {
    color: #3b4960;
    font-size: 17px;
    line-height: 1.6;
}
.oxi-archive-item-content p:first-child { margin-top: 0; }

/* Awards archive: square logo, larger title, learn-more button */
.oxi-archive-item-award {
    grid-template-columns: 220px 1fr;
    gap: 36px;
}
.oxi-archive-item-award:nth-child(even) {
    background: #f3f6fa;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    border-bottom: 0;
}
.oxi-archive-item-award .oxi-archive-item-media {
    background: transparent;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.oxi-archive-item-award .oxi-archive-item-media img {
    object-fit: contain;
}
.oxi-archive-item-award .oxi-archive-item-title {
    text-transform: none;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0;
}
.oxi-archive-item-cta {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 22px;
    background: #d4212b;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 13px;
    text-decoration: none;
    border-radius: 3px;
    transition: background 200ms;
}
.oxi-archive-item-cta:hover { background: #a90c15; color: #fff; }

/* Lite-yt-embed used by testimonials archive (and single) */
.oxi-yt-lite {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    border-radius: inherit;
}
.oxi-yt-lite-poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 600ms cubic-bezier(.22, .61, .36, 1);
}
.oxi-yt-lite:hover .oxi-yt-lite-poster { transform: scale(1.04); }
.oxi-yt-lite-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.oxi-yt-lite-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    margin: -12px 0 0 -7px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #043572;
}
.oxi-yt-lite iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.oxi-archive-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.oxi-archive-pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.oxi-archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 3px;
    background: #f3f6fa;
    color: #121b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 200ms, color 200ms;
}
.oxi-archive-pagination .page-numbers:hover,
.oxi-archive-pagination .page-numbers.current {
    background: #4d8ec8;
    color: #fff;
}
.oxi-archive-pagination .dots { background: transparent; }

@media (max-width: 767px) {
    .oxi-archive-title { font-size: 26px; }
    .oxi-archive-item,
    .oxi-archive-item-testimonial,
    .oxi-archive-item-award {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .oxi-archive-item-award { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}

/* ===== Unified single template (post / testimonials / awards) ===== */
/* Mirrors WPBakery's standard "row with gradient bg + .one-row_top_divider"
   pattern that regular pages use, so single posts have the same inclined
   white-on-blue divider transition coming out of the breadcrumb area.
   The .one-row_top_divider class is styled by the parent theme. */
.oxi-single {
    position: relative;
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgb(203, 218, 231) 100%);
    color: #121b35;
}
/* Parent theme wraps non-post singles (testimonials, awards) in
   <div class="container"> which crops our gradient + divider. Break out to
   viewport width so the section matches the full-width blog single. */
.container > .oxi-single {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}
/* Single-post titles can be very long; clamp the titlebar h1 so fittext
   doesn't try to fit a huge string at oversized line-heights. The parent
   theme's data-fittext uses "currentFontSize" as the max, so CSS controls it. */
body.single .titlebar h1 {
    font-size: 38px !important;
    line-height: 1.2 !important;
}
@media (max-width: 767px) {
    body.single .titlebar h1 { font-size: 26px !important; }
}
.oxi-single .oxi-archive-container {
    max-width: 1000px;
    padding-top: 60px;
    padding-bottom: 80px;
}
.oxi-single-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.25;
    color: #121b35;
}
.oxi-single-meta {
    color: #4a5a72;
    font-size: 14px;
    margin-bottom: 22px;
    text-align: center;
}
.oxi-single-sep { margin: 0 8px; opacity: .6; }
.oxi-single-header {
    margin-bottom: 24px;
}
.oxi-single-video {
    aspect-ratio: 16 / 9;
    background: #000;
    max-height: 560px;
    margin: 0 0 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(18, 27, 53, .12);
}
.oxi-single-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* Featured image: shown at natural size, capped at 100% width / 500px height.
   No forced stretching → no pixelation when the source asset is smaller than
   the container. Centered if natural width is below container width. */
.oxi-single-thumb {
    margin: 0 0 30px;
    text-align: center;
    background: transparent;
}
.oxi-single-thumb img {
    display: inline-block;
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(18, 27, 53, .12);
}
.oxi-single-content {
    color: #3b4960;
    line-height: 1.7;
}
.oxi-single-content p:first-child { margin-top: 0; }
.oxi-single-content p:last-child { margin-bottom: 0; }
.oxi-single-cats {
    margin-top: 26px;
    background: rgba(255, 255, 255, .6);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.oxi-single-cats-label {
    color: #4a5a72;
    font-weight: 600;
}
.oxi-single-cat {
    color: #121b35;
    text-decoration: none;
}
.oxi-single-cat:hover { color: #4d8ec8; }
.oxi-single-back {
    display: inline-block;
    margin-top: 30px;
    color: #4d8ec8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 13px;
    text-decoration: none;
}
.oxi-single-back:hover { color: #121b35; }

/* ===== [oxi_territories_map] — interactive US + Canada map ===== */
.oxi-territories {
    /* Default: fill the parent. Constrain via the [oxi_territories_map max_width=""] attribute or wrap in a constrained parent. */
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 16px;
    color: #2a3042;
    --oxi-map-fill: #bcd2e2;
    --oxi-map-fill-empty: #d6e1ea;
    --oxi-map-fill-hover: #1289d5;
    --oxi-map-stroke: #ffffff;
    --oxi-tip-bg: #121b35;       /* brand navy — high contrast with white text */
    --oxi-tip-fg: #ffffff;
    --oxi-tip-rule: #1289d5;     /* the small accent line under the state name */
}
.oxi-territories-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #2a3042;
}
.oxi-territories-stage {
    position: relative;
    width: 100%;
    /* Linex SVG aspect ratio — keeps the map at its natural geographic proportions */
    aspect-ratio: 791.6 / 467.9;
    background: transparent;
    border-radius: 4px;
    overflow: visible;
}
.oxi-territories-map-svg {
    width: 100%;
    height: 100%;
    display: block;
}
.oxi-territories-map-svg .oxi-territory {
    fill: var(--oxi-map-fill);
    stroke: var(--oxi-map-stroke);
    stroke-width: 0.6;
    cursor: pointer;
    pointer-events: visiblePainted;
    transition: fill 180ms ease;
}
/* All states share the same default and hover color regardless of data
   availability; tooltip falls back to "All" when the sheet cell is empty. */
.oxi-territories-map-svg .oxi-territory:hover,
.oxi-territories-map-svg .oxi-territory.is-active {
    fill: var(--oxi-map-fill-hover);
}

.oxi-territories-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    width: 290px;
    max-width: calc(100% - 16px);
    background: var(--oxi-tip-bg);
    color: var(--oxi-tip-fg);
    border-radius: 4px;
    padding: 16px 18px 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 160ms, transform 160ms;
    pointer-events: none;
    z-index: 5;
}
.oxi-territories-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}
.oxi-territories-tooltip-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .65);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    display: none; /* shown on touch */
}
.oxi-territories-tooltip-state {
    margin: 0 0 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #ffffff; /* override parent theme h3 color */
}
.oxi-territories-tooltip-rule {
    height: 2px;
    background: var(--oxi-tip-rule);
    width: 56px;
    margin: 0 auto 12px;
}
.oxi-territories-tooltip-label {
    margin: 0 0 8px;
    text-align: center;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}
.oxi-territories-tooltip-areas {
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 12px;
    white-space: pre-line;
}
.oxi-territories-tooltip-cta {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.45;
}
.oxi-territories-tooltip-phone {
    color: var(--oxi-tip-rule);
    font-weight: 700;
    text-decoration: none;
}
.oxi-territories-tooltip-phone:hover { text-decoration: underline; }

/* Mobile: tooltip becomes a sticky bottom card; close button visible. */
@media (hover: none), (max-width: 640px) {
    .oxi-territories-stage {
        aspect-ratio: 5 / 4;
    }
    .oxi-territories-tooltip {
        position: sticky;
        position: -webkit-sticky;
        left: 0 !important;
        right: 0;
        top: auto !important;
        bottom: 8px;
        margin: 0 8px;
        width: auto;
        max-width: none;
    }
    .oxi-territories-tooltip-close { display: block; }
}
