/* ============================================================
   fix246 homepage structural refresh (1.1.62)
   Gutenberg owns all homepage copy and the modal launcher.
   Both existing advertising placements keep their original identifiers.
   Only the front page is affected.
   ============================================================ */
body.home {
    --fix246-home-max: 78rem;
    --fix246-home-ad-max: 60.625rem; /* 970px at the standard root size */
}

/* 1. The category navigation has the full content width. Keep
   the existing 10 -> 5 -> 4 -> 3 column responsive rules. */
body.home .fix246-home-quick {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "categories" "advertisement" !important;
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.35rem;
}
body.home .fix246-home-quick__categories {
    width: 100%;
    align-content: stretch;
    padding: .55rem .45rem;
    border-radius: .75rem;
}
body.home .fix246-home-quick__category {
    min-height: 5.25rem;
    padding: .6rem .3rem;
    gap: .45rem;
    font-size: .75rem;
}
body.home .fix246-home-quick__category i {
    font-size: 1.7rem;
}
body.home .fix246-home-quick__ad {
    grid-area: advertisement;
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-content: center;
    align-items: center;
    padding: 1.15rem .9rem 1.25rem;
    background: #f0f5fb;
    border: 0;
    border-radius: .7rem;
    box-shadow: none;
}
/* Do NOT assign 970:250 to the slot or Trident host. The 970x250
   desktop creative already has this intrinsic ratio. A mobile Trident
   creative can be 300x250 or another size; the Advertising Manager
   computes its REAL height and scales it proportionally. Imposing a
   short fixed-ratio box here clips that scaled creative. */
body.home .fix246-home-quick__ad .fix246-ad-slot,
body.home .fix246-home-quick__ad .fix246-ad-trident-host {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--fix246-home-ad-max);
    min-width: 0;
    aspect-ratio: auto !important;
    margin-inline: auto;
}
body.home .fix246-home-quick__ad .fix246-ad-slot img,
body.home .fix246-home-quick__ad .fix246-ad-trident-host img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}
body.home .fix246-home-quick__ad[hidden] { display: none !important; }
body.home .fix246-home-quick:has(> .fix246-home-quick__ad[hidden]) {
    grid-template-areas: "categories" !important;
    gap: 0;
}

/* 2. Three audience descriptions on one horizontal row, not
   beside the marquee. No original wording is rewritten. */
body.home .fix246-home-provider-zone {
    display: grid;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 1.1rem;
    margin-top: 1.45rem;
    margin-bottom: 1.5rem;
}
body.home .fix246-home-provider-zone__help {
    order: 0;
    border: 0;
    background: #fff;
    padding: .45rem .4rem .55rem;
    gap: 1.05rem;
    border-radius: 0;
    align-items: stretch;
}
body.home .fix246-home-provider-zone__accent { margin: 0 auto; }
body.home .fix246-home-provider-zone__help h2 {
    text-align: center;
    color: #112d59;
    font-size: clamp(1.38rem,2.3vw,1.85rem);
    line-height: 1.22;
}
body.home .fix246-home-provider-zone__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 0;
    margin-top: .5rem;
}
body.home .fix246-home-provider-zone__item {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: .7rem;
    padding: .3rem 1rem;
    min-width: 0;
}
body.home .fix246-home-provider-zone__item + .fix246-home-provider-zone__item {
    border-left: .0625rem solid #dbe4f0;
}
body.home .fix246-home-provider-zone__icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.75rem;
    color: #123f82;
}
body.home .fix246-home-provider-zone__item h3 {
    color: #17325b;
    font-size: 1.01rem;
}
body.home .fix246-home-provider-zone__item p { font-size: .87rem; }
body.home .fix246-home-provider-zone__button {
    align-self: center;
    margin: .25rem auto 0;
    padding: .65rem 1.2rem;
    min-height: 2.65rem;
    width: fit-content;
    max-width: 100%;
    font-size: .87rem;
}
body.home .fix246-home-provider-zone .fix246-home-marquee {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}
body.home .fix246-home-provider-zone .fix246-user-marquee {
    height: auto;
    max-width: 100%;
    margin: 0;
}

/* 3. Preserve all text, images, links and benefit lists in the
   two existing registration cards. Simply align the section with
   the content width and bring its cards closer to the mockup. */
body.home .fix246-home-register {
    padding-top: 1.35rem;
    padding-bottom: 1.5rem;
    background: #f9fbff;
}
body.home .fix246-home-register__header {
    text-align: left;
    margin-bottom: .95rem;
}
body.home .fix246-home-register__eyebrow::before {
    margin-left: 0;
    margin-right: auto;
}
body.home .fix246-home-register__grid { gap: .9rem; }
body.home .fix246-home-register__card {
    border-color: #e0e8f2;
    box-shadow: 0 .15rem .65rem rgba(18,48,89,.045);
}

/* 4. The second, already-existing 970x250 home_bottom placement
   is centred in its own full-width pale band; its CTA is below
   the ad, not beside it. The guide stays in a separate full row. */
body.home .fix246-home-bottom,
body.home .fix246-home-bottom[data-ad-state="empty"],
body.home .fix246-home-bottom--no-posts,
body.home .fix246-home-bottom--no-posts[data-ad-state="empty"] {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "ad" "guide";
    gap: 1.3rem;
    align-items: start;
    margin-top: 1.65rem;
}
body.home .fix246-home-bottom[data-ad-state="empty"] {
    grid-template-areas: "guide";
}
body.home .fix246-home-bottom--no-posts {
    grid-template-areas: "ad";
}
body.home .fix246-home-bottom--no-posts[data-ad-state="empty"] {
    display: none;
}
body.home .fix246-home-bottom__ad-band {
    grid-area: ad;
    width: 100%;
    padding: 1.2rem 1rem 1.05rem;
    box-sizing: border-box;
    border-radius: .75rem;
    background: #f0f5fb;
    text-align: center;
    min-width: 0;
}
body.home .fix246-home-bottom__ad-band[hidden] {display: none !important;}
body.home .fix246-home-bottom__ad {
    width: 100%;
    max-width: var(--fix246-home-ad-max);
    margin: 0 auto;
    padding: 0;
    min-height: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
}
body.home .fix246-home-bottom__ad .fix246-ad-slot,
body.home .fix246-home-bottom__ad .fix246-ad-trident-host {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--fix246-home-ad-max);
    min-width: 0;
    aspect-ratio: auto !important;
    margin-inline: auto;
}
body.home .fix246-home-bottom__ad .fix246-ad-slot img,
body.home .fix246-home-bottom__ad .fix246-ad-trident-host img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}
/* One card only: the pale ad band is the single outer frame.
   Direct ads retain their artwork but no longer bring a second
   bordered/shadowed white card INSIDE the outer band. Do not touch
   Trident's remote creative or its measurement logic. */
body.home .fix246-home-bottom__ad {
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}
body.home .fix246-home-bottom__ad .fix246-ad-creative,
body.home .fix246-home-bottom__ad .fix246-ad-creative__link,
body.home .fix246-home-bottom__ad .fix246-ad-creative__link:hover {
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
    transform: none;
    padding: 0;
}
body.home .fix246-home-bottom__ad .fix246-ad-creative__link {
    overflow: visible;
}
/* Keep keyboard navigation clear without restoring the inner card. */
body.home .fix246-home-bottom__ad .fix246-ad-creative__link:focus-visible {
    outline: .15rem solid #124a91;
    outline-offset: .15rem;
    box-shadow: none !important;
}
body.home .fix246-home-bottom__ad-cta {
    margin: .75rem auto 0 !important;
    color: #52647d;
    font-size: .86rem;
    font-weight: 400;
    line-height: 1.5;
}
body.home .fix246-home-bottom__ad-cta a {
    color: #164b93;
    text-decoration: underline;
    text-underline-offset: .15rem;
}
body.home .fix246-home-bottom__guide {
    grid-area: guide;
    width: 100%;
    border: 0;
    padding: 0 .15rem;
    background: transparent;
}
body.home .fix246-home-bottom__guide-track {
    grid-auto-columns: minmax(10rem, calc((100% - 2.4rem) / 5));
}

@media (min-width: 48rem) and (max-width: 72rem) {
    body.home .fix246-home-quick__category {min-height: 4.6rem;font-size: .71rem;}
    body.home .fix246-home-quick__category i {font-size: 1.48rem;}
    body.home .fix246-home-provider-zone__item {
        grid-template-columns: 2.2rem minmax(0,1fr);
        padding-inline: .6rem;
        gap: .55rem;
    }
    body.home .fix246-home-provider-zone__icon {width:2.2rem;height:2.2rem;font-size:1.52rem;}
    body.home .fix246-home-bottom__guide-track {grid-auto-columns:minmax(10rem,calc((100% - 1.2rem) / 3));}
}
@media (max-width:47.99rem) {
    body.home .fix246-home-quick {
        grid-template-areas: "categories" "advertisement" !important;
        gap: .8rem;
        margin-top: -.7rem;
    }
    body.home .fix246-home-quick__categories {
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: .38rem;
        padding: .12rem;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    body.home .fix246-home-quick__category {
        min-height: 4.1rem;
        padding: .32rem .15rem;
        gap: .3rem;
        font-size: .67rem;
    }
    body.home .fix246-home-quick__category i {font-size:1.4rem;}
    body.home .fix246-home-quick__ad { padding:.7rem .45rem .8rem; }
    body.home .fix246-home-quick:has(> .fix246-home-quick__ad[hidden]) {
        grid-template-areas: "categories" !important;
        gap: 0;
    }
    body.home .fix246-home-provider-zone {
        grid-template-columns: minmax(0,1fr);
        gap: .75rem;
        margin-top: 1.15rem;
    }
    body.home .fix246-home-provider-zone__help {
        order: 0;
        gap: .75rem;
        padding: .25rem .1rem .45rem;
    }
    body.home .fix246-home-provider-zone__help h2 {
        font-size: 1.15rem !important;
        text-align: left;
    }
    body.home .fix246-home-provider-zone__accent {margin-left:0;margin-right:auto;}
    body.home .fix246-home-provider-zone__list {
        grid-template-columns: minmax(0,1fr);
        gap: 1rem;
        margin-top: .1rem;
    }
    body.home .fix246-home-provider-zone__item {
        grid-template-columns: 2.6rem minmax(0,1fr);
        padding: 0;
        gap: .65rem;
    }
    body.home .fix246-home-provider-zone__item + .fix246-home-provider-zone__item {border-left:0;}
    body.home .fix246-home-provider-zone__icon {width:2.6rem;height:2.6rem;font-size:1.7rem;}
    body.home .fix246-home-provider-zone__item h3 {font-size: .96rem;}
    body.home .fix246-home-provider-zone__item p {font-size: .82rem;}
    body.home .fix246-home-provider-zone__button {align-self:stretch;width:100%;}
    body.home .fix246-home-provider-zone .fix246-home-marquee {order:1;}
    body.home .fix246-home-register {padding-top: 1rem;padding-bottom: 1.2rem;}
    body.home .fix246-home-register__card {padding:.85rem;}
    body.home .fix246-home-bottom,
    body.home .fix246-home-bottom[data-ad-state="empty"] {gap:1.05rem;}
    body.home .fix246-home-bottom__ad-band {padding:.8rem .45rem;}
    body.home .fix246-home-bottom__ad-cta {font-size:.76rem;}
    body.home .fix246-home-bottom__guide {padding:0;}
    body.home .fix246-home-bottom__guide-track {grid-auto-columns:minmax(12rem,76%);}
}


/* 1.3.15 | Find Help: same search-style launcher as the Service Providers root.
   Only the first-page hero is affected. The underlying Find Help modal,
   category list, advertisements and other homepage CTAs are unchanged. */
body.home .header-hero__content .fix246-home-hero__button.fix246-home-hero__search {
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:.6rem;
    box-sizing:border-box;
    width:min(100%,32rem);
    max-width:32rem;
    min-height:3.25rem;
    margin:0;
    padding:.34rem .44rem .34rem .95rem!important;
    border:0!important;
    border-radius:1rem!important;
    background:#fff!important;
    color:#122a4d!important;
    box-shadow:0 .2rem .7rem rgba(0,0,0,.10)!important;
    font-family:inherit;
    font-size:.87rem;
    font-weight:400!important;
    line-height:1.3;
    text-align:left!important;
    cursor:pointer;
    text-decoration:none!important;
}
body.home .header-hero__content .fix246-home-hero__search-icon {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    color:#07275c;
}
body.home .header-hero__content .fix246-home-hero__search-hint {
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
    color:#6b7890;
    font-size:.87rem;
    font-weight:400;
    text-overflow:ellipsis;
    white-space:nowrap;
}
body.home .header-hero__content .fix246-home-hero__search-action {
    display:flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:center;
    min-height:2.4rem;
    padding:0 1.15rem;
    border-radius:.75rem;
    background:#ffc107;
    color:#0b2648;
    font-size:.82rem;
    font-weight:600;
    white-space:nowrap;
}
body.home .header-hero__content .fix246-home-hero__button.fix246-home-hero__search:hover {
    background:#fff!important;
    color:#122a4d!important;
}
body.home .header-hero__content .fix246-home-hero__search:hover .fix246-home-hero__search-action {
    background:#ffd23d;
}
body.home .header-hero__content .fix246-home-hero__button.fix246-home-hero__search:focus-visible {
    outline:.18rem solid #ffc107!important;
    outline-offset:.17rem!important;
}
@media (max-width:47.99rem) {
    body.home .header-hero__content .fix246-home-hero__button.fix246-home-hero__search {
        width:100%;
        max-width:32rem;
        padding:.32rem .38rem .32rem .67rem!important;
        gap:.45rem;
        min-height:3rem;
    }
    body.home .header-hero__content .fix246-home-hero__search-hint {font-size:.76rem;}
    body.home .header-hero__content .fix246-home-hero__search-action {
        min-height:2.25rem;
        padding:0 .78rem;
        font-size:.75rem;
    }
    body.home .header-hero__content .fix246-home-hero__search-icon svg {width:1.15rem;height:1.15rem;}
}


/* =============================================================
   1.3.21 – homepage spacing and section hierarchy, presentation only.
   Do not alter the Gutenberg content, ad placements, carousel or mobile
   spacing/registration card layout.
   ============================================================= */
@media (min-width:48rem) {
    /* Additional breathing room around "One platform" on desktop only. */
    body.home .fix246-home-provider-zone {
        margin-top:2.65rem;
        margin-bottom:2.75rem;
    }

    /* Background remains full viewport width. Only the internal cards
       become wider, from the original 78rem limit to a maximum of 84rem. */
    body.home .fix246-home-register {
        padding-inline:max(var(--fix246-home-gutter, 1.25rem), calc((100vw - 84rem) / 2));
        background:linear-gradient(180deg,#e7eff9 0%,#eef4fc 100%);
    }
    body.home .fix246-home-register__header {
        text-align:center;
    }
    body.home .fix246-home-register__eyebrow::before {
        margin-left:auto;
        margin-right:auto;
    }
}

/* =============================================================
   1.3.22 – desktop-only homepage rhythm and registration contrast.
   Only the gap within the provider zone and the registration
   section's internal width/background are adjusted. The yellow
   Guide heading accent and all mobile CSS stay unchanged.
   ============================================================= */
@media (min-width:48rem) {
    /* Separate "One platform" from "Service providers in Barbados" by
       another 1.5rem without changing the zone's outer margins. */
    body.home .fix246-home-provider-zone {
        row-gap:2.6rem;
    }

    /* The background spans the viewport already. Increase only the
       width available to the registration cards, with safe gutters. */
    body.home .fix246-home-register {
        padding-inline:max(var(--fix246-home-gutter, 1.25rem), calc((100vw - 90rem) / 2));
        background:#f0f1f4;
    }
}

/* The same short yellow heading accent as the other homepage sections.
   Applies to the "Good to know" heading on both desktop and mobile. */
body.home .fix246-home-bottom__guide-head h2::before {
    content:"";
    display:block;
    width:2.2rem;
    height:.2rem;
    margin:0 0 .6rem;
    border-radius:2rem;
    background:#ffc107;
}
