/*
Theme Name:  AskPerTask Child
Theme URI:   https://askpertask.co.uk
Template:    experthive
Description: Child theme for the ExpertHive parent theme, customised for AskPerTask.
             Visual overrides only. All business logic belongs in the AskPerTask Core plugin.
Author:      AskPerTask
Author URI:  https://askpertask.co.uk
Version:     1.0.0
Text Domain: askpertask-child
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/*
 * -----------------------------------------------------------------------
 * USAGE NOTES
 * -----------------------------------------------------------------------
 * This file is loaded AFTER the parent ExpertHive stylesheet via wp_enqueue_style()
 * in functions.php — do NOT use @import here.
 *
 * Place visual overrides and brand adjustments in this file or in
 * assets/css/ partials. Do not place PHP logic, hooks, filters, or
 * HivePress configuration here.
 *
 * Business logic (custom post-type registration, HivePress hooks,
 * shortcodes, REST endpoints, email templates) belongs in the future
 * AskPerTask Core plugin, not in this theme.
 * -----------------------------------------------------------------------
 */

/* ==========================================================================
   AskPerTask browse + profile MVP styles
   Brand palette (from homepage-v2.css):
     Green  #1FA34A / dark #168238 / light #EAF7EE
     Blue   #2D6CDF / light #EAF1FD
     Orange #F2884B / light #FDEFE6
     Text   #1A1A1A / muted #6B7280 / light #9CA3AF
     BG     #F7F8F7 / border #E5E7EB
   ========================================================================== */

/* --------------------------------------------------------------------------
   SHARED: pin icon used on cards and profile pages
   Rendered as a CSS-drawn SVG-style bullet so no dependency on emoji/icon set
   -------------------------------------------------------------------------- */
.apt-card-location__pin,
.apt-helper-intro__pin {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50% 50% 50% 0;
    border: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* --------------------------------------------------------------------------
   PROFESSIONALS BROWSE PAGE  (.apt-browse-professionals)
   Horizontal card: avatar left · identity + meta right · CTA footer
   -------------------------------------------------------------------------- */

.apt-browse-professionals .hp-vendors .hp-row {
    row-gap: 1rem;
}

/* Card shell — CSS grid: [avatar | content] top row, [footer] bottom row */
.apt-browse-professionals .hp-vendor--view-block {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .18s ease, transform .18s ease;
    overflow: hidden;
    display: grid;
    grid-template-areas: "avatar content" "footer footer";
    grid-template-columns: 68px 1fr;
    grid-template-rows: 1fr auto;
    height: 100%;
}
.apt-browse-professionals .hp-vendor--view-block:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.09);
    transform: translateY(-2px);
}

/* Avatar column — no green band, just a small ring */
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__header {
    grid-area: avatar;
    background: none;
    padding: .875rem 0 0 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__image { margin: 0; }
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__image img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #1FA34A;
    display: block;
}

/* Content column */
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__content {
    grid-area: content;
    padding: .875rem 1rem .625rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

/* Name — left-aligned, tight */
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__name {
    font-size: .9375rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 .2rem;
    font-family: 'DM Sans', sans-serif;
    text-align: left;
    line-height: 1.25;
}
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__name a {
    color: inherit;
    text-decoration: none;
}
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__name a:hover {
    color: #1FA34A;
}

/* Service chip — compact, left-aligned */
.apt-browse-professionals .apt-service-chip {
    display: inline-block;
    align-self: flex-start;
    background: #EAF7EE;
    color: #168238;
    border: 1px solid #c3e6cb;
    border-radius: 100px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.6;
    margin: 0 0 .15rem;
}

/* Location badge — inline, left-aligned */
.apt-browse-professionals .apt-card-location {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin: .1rem 0 0;
    font-size: .8rem;
    color: #6B7280;
    text-align: left;
    line-height: 1.4;
}
.apt-browse-professionals .apt-card-location strong {
    color: #374151;
    font-weight: 600;
}
.apt-browse-professionals .apt-card-location__pin { color: #1FA34A; }

/* Registered date — minimal, left-aligned */
.apt-browse-professionals .hp-vendor__date {
    font-size: .7rem;
    color: #9CA3AF;
    text-align: left;
    display: block;
}

/* Footer — full-width CTA */
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__footer {
    grid-area: footer;
    padding: .5rem .875rem .75rem;
    border-top: 1px solid #F3F4F6;
}
.apt-browse-professionals .hp-vendor--view-block .apt-card-cta,
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__actions--primary a,
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__footer a:not(.hp-link) {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: .4375rem 1rem;
    background: #1FA34A;
    color: #fff !important;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}
.apt-browse-professionals .hp-vendor--view-block .apt-card-cta:hover,
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__actions--primary a:hover,
.apt-browse-professionals .hp-vendor--view-block .hp-vendor__footer a:not(.hp-link):hover {
    background: #168238;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   HELPERS BROWSE PAGE  (.apt-browse-helpers)
   Compact centered layout: thin top accent · small avatar · human CTA
   -------------------------------------------------------------------------- */

.apt-browse-helpers .hp-vendors .hp-row {
    row-gap: 1rem;
}

/* Card shell — warm soft palette, thin orange top strip instead of header band */
.apt-browse-helpers .hp-vendor--view-block {
    background: #fffbf7;
    border: 1px solid #f0e8d8;
    border-top: 3px solid #F2884B;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow .18s ease, transform .18s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.apt-browse-helpers .hp-vendor--view-block:hover {
    box-shadow: 0 4px 12px rgba(242,136,75,.18);
    transform: translateY(-2px);
}

/* Avatar: no background band — avatar sits directly on card with top padding */
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__header {
    background: none;
    padding: 1.25rem 0 0;
    display: flex;
    justify-content: center;
}
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__image { margin: 0; }
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__image img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #F2884B;
    display: block;
    margin: 0 auto;
}

/* Content: centered, tight */
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__content {
    padding: .625rem 1rem .5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
}

/* Name — centered, personal */
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__name {
    font-size: .9375rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 .15rem;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    line-height: 1.25;
}
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__name a {
    color: inherit;
    text-decoration: none;
}
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__name a:hover {
    color: #F2884B;
}

/* Location badge — centered, friendly */
.apt-browse-helpers .apt-card-location {
    display: flex;
    align-items: center;
    gap: .25rem;
    justify-content: center;
    margin: .1rem 0 0;
    font-size: .8rem;
    color: #6B7280;
    text-align: center;
    line-height: 1.4;
}
.apt-browse-helpers .apt-card-location strong {
    color: #4B3B2A;
    font-weight: 600;
}
.apt-browse-helpers .apt-card-location__pin { color: #F2884B; }

/* Date — minimal */
.apt-browse-helpers .hp-vendor__date {
    font-size: .7rem;
    color: #9CA3AF;
    text-align: center;
    display: block;
}

/* Footer: outlined CTA — lighter feel than professionals' solid button */
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__footer {
    padding: .5rem .875rem .75rem;
    border-top: 1px solid #f0e8d8;
}
.apt-browse-helpers .hp-vendor--view-block .apt-helper-cta,
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__actions--primary a,
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__footer a:not(.hp-link) {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: .4375rem 1rem;
    background: transparent;
    color: #c0541a !important;
    border: 1.5px solid #F2884B;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.apt-browse-helpers .hp-vendor--view-block .apt-helper-cta:hover,
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__actions--primary a:hover,
.apt-browse-helpers .hp-vendor--view-block .hp-vendor__footer a:not(.hp-link):hover {
    background: #F2884B;
    color: #fff !important;
    border-color: #F2884B;
}

/* --------------------------------------------------------------------------
   BROWSE PAGE: empty states (via child theme template override)
   -------------------------------------------------------------------------- */
.apt-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 480px;
    margin: 2rem auto;
}
.apt-empty-state__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}
.apt-empty-state__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 .625rem;
    font-family: 'DM Sans', sans-serif;
}
.apt-empty-state__body {
    font-size: .9375rem;
    color: #6B7280;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}
.apt-empty-state__cta {
    display: inline-block;
    padding: .625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    transition: background .15s ease;
}
.apt-empty-state--helpers .apt-empty-state__cta {
    background: #F2884B;
    color: #fff;
}
.apt-empty-state--helpers .apt-empty-state__cta:hover {
    background: #e06d30;
    color: #fff;
}
.apt-empty-state--professionals .apt-empty-state__cta {
    background: #1FA34A;
    color: #fff;
}
.apt-empty-state__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}
.apt-empty-state--categories .apt-empty-state__cta {
    background: #2D6CDF;
    color: #fff;
}
.apt-empty-state--categories .apt-empty-state__cta:hover {
    background: #2459BE;
    color: #fff;
}
.apt-empty-state--categories .apt-empty-state__cta--secondary {
    background: transparent;
    color: #2D6CDF;
    border: 1px solid #2D6CDF;
}
.apt-empty-state--categories .apt-empty-state__cta--secondary:hover {
    background: #EAF1FD;
    color: #2459BE;
}

/* --------------------------------------------------------------------------
   PROFILE PAGES — shared sidebar trust signals
   Injected via APT_Profile_Template into .hp-vendor__summary (sidebar)
   -------------------------------------------------------------------------- */

/* Rating row — shown only when hp_rating = 0 / no reviews yet */
.apt-rating-placeholder {
    display: flex;
    align-items: center;
    gap: .375rem;
    margin: .5rem 0 .25rem;
}
.apt-rating-placeholder__stars {
    font-size: .875rem;
    letter-spacing: .05em;
    line-height: 1;
}
.apt-rating-placeholder--professional .apt-rating-placeholder__stars { color: #c3e6cb; }
.apt-rating-placeholder--helper      .apt-rating-placeholder__stars { color: #f5d0b5; }
.apt-rating-placeholder__label {
    font-size: .75rem;
    color: #9CA3AF;
}

/* Sidebar category chip — professionals only */
.apt-sidebar-category {
    margin: .375rem 0;
}
.apt-sidebar-category__chip {
    display: inline-block;
    background: #EAF7EE;
    color: #168238;
    border: 1px solid #c3e6cb;
    border-radius: 100px;
    padding: 2px 11px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.6;
}

/* Sidebar location */
.apt-sidebar-location {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .8125rem;
    color: #6B7280;
    margin: .375rem 0 0;
    line-height: 1.4;
}
.apt-sidebar-location strong { color: #1A1A1A; font-weight: 600; }
.apt-sidebar-location__pin {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50% 50% 50% 0;
    border: 2px solid currentColor;
    transform: rotate(-45deg);
    flex-shrink: 0;
    position: relative;
    top: -1px;
}
.apt-vendor-profile .apt-sidebar-location__pin { color: #1FA34A; }
.apt-helper-profile  .apt-sidebar-location__pin { color: #F2884B; }

/* Sidebar availability */
.apt-sidebar-availability {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .75rem;
    color: #6B7280;
    margin: .25rem 0 0;
}
.apt-sidebar-availability__dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.apt-vendor-profile .apt-sidebar-availability__dot { background: #1FA34A; }
.apt-helper-profile  .apt-sidebar-availability__dot { background: #F2884B; }

/* Registered date — de-emphasise on both profile types */
.apt-vendor-profile .hp-vendor__date,
.apt-helper-profile  .hp-vendor__date {
    font-size: .75rem;
    color: #9CA3AF;
    display: block;
    margin-top: .25rem;
}

/* --------------------------------------------------------------------------
   PROFILE PAGES — About / description (main column, top)
   -------------------------------------------------------------------------- */

.apt-about {
    margin-bottom: 1.5rem;
}
.apt-about__heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #E5E7EB;
}
.apt-about__body {
    font-size: .9375rem;
    color: #374151;
    line-height: 1.7;
}
.apt-about__body p { margin: 0 0 .75rem; }
.apt-about__body p:last-child { margin-bottom: 0; }

/* Helper about — no heading, slightly warmer tone */
.apt-about--helper .apt-about__body { color: #4B3B2A; }

/* --------------------------------------------------------------------------
   PROFESSIONAL PROFILE  (.apt-vendor-profile)
   -------------------------------------------------------------------------- */

/* Sidebar avatar ring */
.apt-vendor-profile .hp-vendor__image img {
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #1FA34A;
}

/* Sidebar name */
.apt-vendor-profile .hp-vendor__summary .hp-vendor__name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A1A;
}

/* Sidebar meta (registered date) */
.apt-vendor-profile .hp-vendor__details--primary {
    font-size: .875rem;
    color: #6B7280;
}

/* --------------------------------------------------------------------------
   PROFESSIONAL PROFILE — no-listings fallback
   Structured sections: areas covered · what I can help with · availability
   -------------------------------------------------------------------------- */

.apt-services-empty {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin-top: .5rem;
}
.apt-services-empty__section {
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}
.apt-services-empty__section:last-child {
    border-bottom: none;
}
.apt-services-empty__section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6B7280;
    margin: 0 0 .375rem;
}
.apt-services-empty__section-body {
    font-size: .9375rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}
.apt-services-empty__section-body strong { color: #1A1A1A; }

/* --------------------------------------------------------------------------
   HELPER PROFILE  (.apt-helper-profile)
   -------------------------------------------------------------------------- */

/* Sidebar avatar ring — warm orange */
.apt-helper-profile .hp-vendor__image img {
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #F2884B;
}

/* Sidebar name */
.apt-helper-profile .hp-vendor__summary .hp-vendor__name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A1A1A;
}

/* Sidebar meta */
.apt-helper-profile .hp-vendor__details--primary {
    font-size: .875rem;
    color: #6B7280;
}

/* Helper intro block — tone-setting, not service-listing */
.apt-helper-intro {
    padding: 1.5rem;
    background: #FDEFE6;
    border: 1px solid #f5d0b5;
    border-radius: 10px;
    margin-top: .5rem;
}
.apt-helper-intro__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 .625rem;
    font-family: 'DM Sans', sans-serif;
}
.apt-helper-intro__body {
    font-size: .9375rem;
    color: #6B7280;
    line-height: 1.65;
    margin: 0 0 1rem;
}
.apt-helper-intro__cta-hint {
    font-size: .875rem;
    color: #9CA3AF;
    margin: 0;
    font-style: italic;
}
.apt-helper-intro__cta-hint strong {
    color: #6B7280;
    font-style: normal;
}

/* --------------------------------------------------------------------------
   PROFILE PAGES — PROVIDER-HELPER-1B additions
   Role chips, headline, business name, verify icons (sidebar)
   Profile data sections, coverage chips, verification grid (main column)
   -------------------------------------------------------------------------- */

/* Sidebar: role chips */
.apt-sidebar-role-chips {
    display: flex;
    gap: .375rem;
    flex-wrap: wrap;
    margin: .375rem 0;
}
.apt-sidebar-role-chip {
    display: inline-block;
    border-radius: 100px;
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.6;
}
.apt-sidebar-role-chip--helper {
    background: #FFF0E6;
    color: #C05621;
    border: 1px solid #f5d0b5;
}
.apt-sidebar-role-chip--pro {
    background: #EAF7EE;
    color: #168238;
    border: 1px solid #c3e6cb;
}

/* Sidebar: headline */
.apt-sidebar-headline {
    font-size: .875rem;
    color: #374151;
    line-height: 1.5;
    margin: .5rem 0 0;
    font-style: italic;
}

/* Sidebar: business name */
.apt-sidebar-biz-name {
    font-size: .8125rem;
    color: #6B7280;
    margin: .375rem 0 0;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.apt-sidebar-biz-name .fas {
    color: #9CA3AF;
    font-size: .75rem;
}

/* Sidebar: verification icons */
.apt-sidebar-verify-icons {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin: .625rem 0 0;
    padding-top: .5rem;
    border-top: 1px solid #E5E7EB;
}
.apt-sidebar-verify-item {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .75rem;
    color: #168238;
}
.apt-sidebar-verify-item .fas {
    font-size: .75rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.apt-sidebar-verify-item__label {
    color: #374151;
}

/* Main column: shared profile section */
.apt-profile-section {
    margin-bottom: 1.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
}
.apt-profile-section__heading {
    font-family: 'DM Sans', sans-serif;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6B7280;
    margin: 0;
    padding: .875rem 1.25rem .5rem;
}
.apt-profile-section--helper .apt-profile-section__heading { color: #C05621; }
.apt-profile-section--pro    .apt-profile-section__heading { color: #168238; }

/* Profile data rows */
.apt-profile-row {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    padding: .5rem 1.25rem;
    border-top: 1px solid #F3F4F6;
    font-size: .9rem;
}
.apt-profile-row:first-of-type { border-top: none; }
.apt-profile-row__label {
    flex-shrink: 0;
    min-width: 110px;
    font-size: .8125rem;
    font-weight: 600;
    color: #6B7280;
}
.apt-profile-row__value {
    color: #374151;
    line-height: 1.5;
}

/* Coverage section */
.apt-profile-section--coverage { background: #FAFAFA; }
.apt-coverage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    padding: .375rem 1.25rem .875rem;
}
.apt-coverage-chip {
    display: inline-block;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    border-radius: 100px;
    padding: 2px 11px;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.6;
}
.apt-coverage-emergency {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .8125rem;
    color: #C05621;
    font-weight: 600;
    padding: .375rem 1.25rem .875rem;
    margin: 0;
}
.apt-coverage-emergency .fas { font-size: .8125rem; }
/* Separator when both chips and emergency signal are present */
.apt-coverage-chips + .apt-coverage-emergency {
    border-top: 1px solid #F3F4F6;
    padding-top: .625rem;
}

/* Verification section */
.apt-profile-section--verify { background: #F0FDF4; border-color: #BBF7D0; }
.apt-profile-section--verify .apt-profile-section__heading { color: #15803D; }
.apt-verify-items {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .375rem 1.25rem 1rem;
}
.apt-verify-item {
    display: flex;
    align-items: center;
    gap: .375rem;
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: .8125rem;
}
.apt-verify-item__icon { color: #15803D; font-size: .75rem; }
.apt-verify-item__label { color: #166534; font-weight: 500; }

/* -----------------------------------------------------------------------
   PROVIDER-HELPER-1C: Responsive polish for public profile
   ----------------------------------------------------------------------- */

/* ≤768px — reduce section horizontal padding, switch verify icons to row */
@media (max-width: 768px) {
    .apt-profile-section__heading {
        padding: .75rem 1rem .375rem;
    }
    .apt-profile-row {
        padding: .5rem 1rem;
    }
    .apt-coverage-chips {
        padding: .25rem 1rem .75rem;
    }
    .apt-coverage-emergency {
        padding: .375rem 1rem .75rem;
    }
    .apt-coverage-chips + .apt-coverage-emergency {
        padding-top: .5rem;
    }
    .apt-verify-items {
        padding: .25rem 1rem .875rem;
    }
    .apt-services-empty__section {
        padding: 1rem 1.25rem;
    }
    /* Sidebar verify icons: compact row when sidebar stacks full-width on mobile */
    .apt-sidebar-verify-icons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: .375rem .75rem;
    }
}

/* ≤480px — stack profile row label/value vertically to prevent crowding */
@media (max-width: 480px) {
    .apt-profile-row {
        flex-direction: column;
        gap: .25rem;
        padding: .625rem 1rem;
    }
    .apt-profile-row__label {
        min-width: unset;
    }
}

/* -----------------------------------------------------------------------
   HP Geolocation — detect-location changed from <a> to <button type="button">
   Mirror the plugin's .hp-field--location a rules for the button element
   so search/filter forms keep the same look on all pages.
   ----------------------------------------------------------------------- */
.hp-field--location button.apt-locate-btn {
    flex: 0 0 3rem;
    margin-left: -3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(7, 36, 86, 0.25);
    text-decoration: none;
    transition: color 0.25s;
}
.hp-field--location button.apt-locate-btn:hover {
    color: rgba(7, 36, 86, 0.35);
}
.hp-field--location button.apt-locate-btn.is-loading {
    cursor: wait;
    opacity: 0.6;
}

/* -----------------------------------------------------------------------
   HEADER-OVERFLOW-1A — defensive truncation for the WP admin-bar display
   name ("Hi, {name}"), shown to logged-in users with edit_posts capability
   (site admins, and helper/vendor-mode users via APT_Capabilities).

   Investigation found no actual visible overflow at 1440px or 375px, even
   with a 44-character test name: WP core's own admin-bar.css already
   collapses #wp-admin-bar-my-account to an icon-only 52px box with
   text-overflow:clip at its own <=782px breakpoint, and 1440px has ample
   room. This is a defensive safety net for names longer than tested,
   scoped only to the width range where WP renders the full text (>782px)
   so it never interferes with WP's own mobile icon-only handling.
   ----------------------------------------------------------------------- */
@media screen and (min-width: 783px) {
    #wpadminbar #wp-admin-bar-my-account > .ab-item .display-name {
        display: inline-block;
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
    }
}
