/* ABC Theme Studio: grouped controls + consistent public color states. */
.appearance-editor .theme-color-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px 16px; }
.appearance-editor .appearance-pair-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px 16px; }
.appearance-editor .theme-color-control { display:flex; align-items:center; gap:6px; width:max-content; max-width:100%; }
.appearance-editor .theme-color-picker { width:34px; min-width:34px; height:34px; padding:3px; }
.appearance-editor .theme-color-hex { width:112px!important; max-width:112px; height:36px; padding:7px 9px; }
.appearance-editor .theme-color-field { min-width:0; }
.appearance-editor .theme-color-field label { font-size:.83rem; line-height:1.35; }
.appearance-editor .appearance-toggle { max-width:250px; margin:0 0 16px; }
@media (max-width:1100px) { .appearance-editor .theme-color-grid, .appearance-editor .appearance-pair-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) { .appearance-editor .theme-color-grid, .appearance-editor .appearance-pair-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:400px) { .appearance-editor .theme-color-grid, .appearance-editor .appearance-pair-grid { grid-template-columns:1fr; } }
/* Public buttons cannot inherit inline-link hover text. */
.public-main a.button:hover, .public-main a.button:focus-visible { color:var(--button-hover-text)!important; }
.public-main a.button:not(.button-light):not(.button-ghost):hover { color:var(--button-hover-text)!important; }
.public-main .button-light { background:var(--button-secondary-background); color:var(--button-secondary-text); }
.public-main .button-light:hover { background:var(--button-secondary-hover-background); color:var(--button-secondary-hover-text)!important; }
.public-main a.button-light:hover { color:var(--button-secondary-hover-text)!important; }
.public-main button, .public-main .button { border:1px solid var(--button-border); }
.public-main button:hover, .public-main .button:hover { border-color:var(--button-hover-border); }
/* Homepage category links have their own colors, not vertical menu hover. */
.public-main .category-link-grid a:hover, .public-main .category-link-grid a:focus-visible { background:var(--category-home-hover-background); color:var(--category-home-hover-text)!important; border-color:var(--category-home-hover-border); }
.public-main .category-index-card:hover, .public-main .category-index-card:focus-visible { color:var(--category-card-hover-text); }
.public-main .category-index-card:hover h2, .public-main .category-index-card:focus-visible h2 { color:var(--category-card-hover-text); }
/* Listing tools control their own button, hover, foreground and border. */
.public-main a.listing-tool-link:not(.listing-tool-report) { display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--listing-claim-border); border-radius:999px; padding:8px 15px; background:var(--listing-claim-background); color:var(--listing-claim-text); text-decoration:none; }
.public-main a.listing-tool-link:not(.listing-tool-report):hover, .public-main a.listing-tool-link:not(.listing-tool-report):focus-visible { border-color:var(--listing-claim-hover-border); background:var(--listing-claim-hover-background); color:var(--listing-claim-hover-text)!important; }
.public-main a.listing-tool-report { display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--listing-report-border); border-radius:999px; padding:8px 15px; background:var(--listing-report-background); color:var(--listing-report-text); text-decoration:none; }
.public-main a.listing-tool-report:hover, .public-main a.listing-tool-report:focus-visible { border-color:var(--listing-report-hover-border); background:var(--listing-report-hover-background); color:var(--listing-report-hover-text)!important; }
.public-main .social-links a { background:var(--social-background); color:var(--social-icon); border-color:var(--social-border); }
.public-main .social-links a:hover, .public-main .social-links a:focus-visible { background:var(--social-hover-background); color:var(--social-hover-icon)!important; border-color:var(--social-hover-border); }
.public-main .business-info-card a:not(.button):not(.social-link), .public-main .business-profile-info a:not(.button) { color:var(--contact-link); }
.public-main .business-info-card a:not(.button):hover, .public-main .business-profile-info a:not(.button):hover { color:var(--contact-hover)!important; }
.public-main .owner-business-row a.button[href*="/edit"], .public-main a.button[href*="/account/businesses/"][href$="/edit"] { background:var(--listing-action-background); color:var(--listing-action-text); border-color:var(--listing-action-background); }
.public-main .owner-business-row a.button[href*="/edit"]:hover, .public-main a.button[href*="/account/businesses/"][href$="/edit"]:hover { background:var(--listing-action-hover-background); color:var(--listing-action-hover-text)!important; border-color:var(--listing-action-hover-background); }
.public-main a[href*="/eligibility"].button, .public-main a.button[href*="eligibility"] { background:var(--listing-eligibility-background); color:var(--listing-eligibility-text); border-color:var(--listing-eligibility-background); }
.public-main a[href*="/eligibility"].button:hover, .public-main a.button[href*="eligibility"]:hover { background:var(--listing-eligibility-hover-background); color:var(--listing-eligibility-hover-text)!important; border-color:var(--listing-eligibility-hover-background); }
.site-footer a:hover { color:var(--footer-link-hover)!important; }
/* Floating Back to Top is independent from standard links and button colors. */
.abc-back-to-top[hidden] { display:none!important; }
.abc-back-to-top { position:fixed; z-index:95; right:22px; bottom:22px; display:grid; place-items:center; width:46px; height:46px; min-width:46px; min-height:46px; border-radius:50%; border:2px solid var(--floating-back-to-top-border); background:var(--floating-back-to-top-background); color:var(--floating-back-to-top-text); box-shadow:0 5px 18px rgba(0,0,0,.18); cursor:pointer; padding:0; transition:background-color .18s,border-color .18s,color .18s,transform .18s; }
.abc-back-to-top:hover, .abc-back-to-top:focus-visible { background:var(--floating-back-to-top-hover-background); border-color:var(--floating-back-to-top-hover-border); color:var(--floating-back-to-top-hover-text); transform:translateY(-2px); }
.abc-back-to-top svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2.8; stroke-linecap:round; stroke-linejoin:round; }
@media(max-width:600px){.abc-back-to-top{right:14px;bottom:18px;width:42px;height:42px;min-width:42px;min-height:42px}}
@media(prefers-reduced-motion:reduce){.abc-back-to-top{transition:none}}

/* Overrides inline owner-dashboard style declarations by specificity. */
.public-main .abc-owner-side-action { background:var(--listing-eligibility-background); color:var(--listing-eligibility-text)!important; }
.public-main .abc-owner-side-action:hover, .public-main .abc-owner-side-action:focus-visible { background:var(--listing-eligibility-hover-background); color:var(--listing-eligibility-hover-text)!important; }
.public-main .abc-owner-wait-arrow { color:var(--listing-eligibility-background); }
.public-main .account-businesses-panel a.button[href$="/edit"] { background:var(--listing-action-background); color:var(--listing-action-text); border-color:var(--listing-action-background); }
.public-main .account-businesses-panel a.button[href$="/edit"]:hover { background:var(--listing-action-hover-background); color:var(--listing-action-hover-text)!important; border-color:var(--listing-action-hover-background); }

.public-main .business-info a[href^="tel:"], .public-main .business-info a:not(.button), .public-main .business-info-list a:not(.button) { color:var(--contact-link); }
.public-main .business-info a[href^="tel:"]:hover, .public-main .business-info a:not(.button):hover, .public-main .business-info-list a:not(.button):hover { color:var(--contact-hover)!important; }

/* Preview samples only; never affect public controls or saved themes. */
.appearance-live-preview .appearance-preview-row { display:flex; gap:10px; flex-wrap:wrap; align-items:stretch; }
.appearance-live-preview .appearance-demo { min-width:155px; flex:1 1 155px; border:1px solid #e0e6e1; border-radius:10px; padding:12px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.appearance-live-preview .appearance-demo>span:first-child { font-weight:750; font-size:.76rem; color:#516258; }
.appearance-live-preview a.appearance-sample-link { color:var(--link-color); font-weight:750; text-decoration:underline; }
.appearance-live-preview a.appearance-sample-link:hover { color:var(--link-hover); }
.appearance-live-preview .appearance-sample-button { background:var(--button-bg); color:var(--button-text); padding:9px 12px; border-radius:7px; border:0; font-size:.82rem; }
.appearance-live-preview .appearance-sample-button:hover { background:var(--button-hover); color:var(--button-hover-text)!important; }
.appearance-live-preview .appearance-sample-category { display:block; width:100%; background:var(--category-bg); color:var(--category-text); border:1px solid var(--category-border); border-radius:8px; padding:9px; font-size:.82rem; font-weight:750; text-decoration:none; }
.appearance-live-preview .appearance-sample-category:hover { background:var(--category-home-hover-background); color:var(--category-home-hover-text)!important; border-color:var(--category-home-hover-border); }
.appearance-live-preview .appearance-sample-social { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:var(--social-background); color:var(--social-icon); border:1px solid var(--social-border); font-weight:bold; text-decoration:none; }
.appearance-live-preview .appearance-sample-social:hover { background:var(--social-hover-background); color:var(--social-hover-icon)!important; border-color:var(--social-hover-border); }
.appearance-live-preview .appearance-sample-top { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:var(--floating-back-to-top-background); color:var(--floating-back-to-top-text); border:2px solid var(--floating-back-to-top-border); font-size:22px; }
.appearance-live-preview .appearance-demo:hover .appearance-sample-top { background:var(--floating-back-to-top-hover-background); color:var(--floating-back-to-top-hover-text); border-color:var(--floating-back-to-top-hover-border); }
/* Contact phone and website within the real Business Info sidebar. */
.public-main .business-sidebar .info-row a { color:var(--contact-link); }
.public-main .business-sidebar .info-row a:hover, .public-main .business-sidebar .info-row a:focus-visible { color:var(--contact-hover)!important; }

/* 2026-12-05 comprehensive component pass: guide filters, guide cards,
   FAQ open/hover, pagination, bookmarks and public poll choices.
   All scoped to public main; no carousel sizing, layout or animation changed. */
.public-main .guide-type-filter a { background:var(--guide-filter-background); color:var(--guide-filter-text); border-color:var(--guide-filter-border); }
.public-main .guide-type-filter a:not(.active):hover,
.public-main .guide-type-filter a:not(.active):focus-visible { background:var(--guide-filter-hover-background); color:var(--guide-filter-hover-text)!important; border-color:var(--guide-filter-hover-border); }
.public-main .guide-type-filter a.active,
.public-main .guide-type-filter a.active:hover,
.public-main .guide-type-filter a.active:focus-visible { background:var(--guide-filter-active-background); color:var(--guide-filter-active-text)!important; border-color:var(--guide-filter-active-border); }
.public-main .guide-card { background:var(--guide-card-background); border-color:var(--guide-card-border); }
.public-main .guide-card:hover, .public-main .guide-card:focus-within { background:var(--guide-card-hover-background); border-color:var(--guide-card-hover-border); }
.public-main .guide-card a, .public-main .guide-card-copy h2 { color:var(--guide-card-text); }
.public-main .guide-card:hover a, .public-main .guide-card:hover h2,
.public-main .guide-card:focus-within a, .public-main .guide-card:focus-within h2 { color:var(--guide-card-hover-text)!important; }
.public-main .guide-context a { color:var(--guide-context-link); }
.public-main .guide-context a:hover, .public-main .guide-context a:focus-visible { color:var(--guide-context-hover)!important; }
.public-main .faq-item { background:var(--faq-background); border-color:var(--faq-border); }
.public-main .faq-item[open] { background:var(--faq-open-background); border-color:var(--faq-open-border); }
.public-main .faq-item summary { color:var(--faq-text); }
.public-main .faq-item summary:hover, .public-main .faq-item summary:focus-visible { color:var(--faq-hover-text); }
.public-main .faq-item summary::after { color:var(--faq-icon); }
.public-main .faq-item[open] summary::after { color:var(--faq-open-icon); }
.public-main .pagination-link { background:var(--paging-background); color:var(--paging-text); border-color:var(--paging-border); }
.public-main a.pagination-link:not(.is-current):not(.is-disabled):hover,
.public-main a.pagination-link:not(.is-current):not(.is-disabled):focus-visible { background:var(--paging-hover-background); color:var(--paging-hover-text)!important; border-color:var(--paging-hover-border); }
.public-main .pagination-link.is-current,
.public-main .pagination-link.is-current:hover { background:var(--paging-active-background); color:var(--paging-active-text)!important; border-color:var(--paging-active-border); }
.public-main .button-save:not(.is-saved) { background:var(--save-background); color:var(--save-icon); }
.public-main .button-save:not(.is-saved):hover, .public-main .button-save:not(.is-saved):focus-visible { background:var(--save-hover-background); color:var(--save-hover-icon)!important; }
.public-main .button-save.is-saved, .public-main .button-save.is-saved:hover { background:var(--save-saved-background); color:var(--save-saved-icon)!important; }
.public-main .poll-choice { background:var(--poll-choice-background); color:var(--poll-choice-text); border-color:var(--poll-choice-border); }
.public-main .poll-choice:hover, .public-main .poll-choice:focus-within { background:var(--poll-choice-hover-background); color:var(--poll-choice-hover-text); border-color:var(--poll-choice-hover-border); }
.appearance-live-preview .appearance-sample-guide-filter { background:var(--guide-filter-background); color:var(--guide-filter-text); border:1px solid var(--guide-filter-border); border-radius:999px; padding:8px 12px; font-weight:800; text-decoration:none; font-size:.82rem; }
.appearance-live-preview .appearance-sample-guide-filter:hover { background:var(--guide-filter-hover-background); color:var(--guide-filter-hover-text)!important; border-color:var(--guide-filter-hover-border); }

/* Component-based Appearance editor: no color family may spill into the next. */
.appearance-editor .appearance-component-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
.appearance-editor .appearance-component-group { border:1px solid #e0e6e1; background:#fbfcfb; border-radius:12px; padding:13px 14px; min-width:0; }
.appearance-editor .appearance-component-group h3 { margin:0 0 13px; font-size:1rem; line-height:1.35; color:#183b2a; }
.appearance-editor .appearance-component-pairs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 8px; align-items:start; }
.appearance-editor .appearance-component-pairs .theme-color-field { min-width:0; }
.appearance-editor .appearance-component-pairs .theme-color-field label { display:block; max-width:100%; }
@media(max-width:920px){.appearance-editor .appearance-component-groups{grid-template-columns:1fr;}}
@media(max-width:460px){.appearance-editor .appearance-component-group{padding:12px 10px;}.appearance-editor .appearance-component-pairs{gap:12px 5px;}.appearance-editor .appearance-component-pairs .theme-color-picker{width:28px;min-width:28px}.appearance-editor .appearance-component-pairs .theme-color-hex{width:93px!important;max-width:93px;padding:5px 6px}}
/* Guide-card text must NOT follow the generic anchor color on hover. */
.public-main .guide-card .guide-card-copy .eyebrow { color:var(--guide-card-label)!important; }
.public-main .guide-card:hover .guide-card-copy .eyebrow,
.public-main .guide-card:focus-within .guide-card-copy .eyebrow { color:var(--guide-card-hover-label)!important; }
.public-main .guide-card .guide-card-copy p { color:var(--guide-card-description)!important; }
.public-main .guide-card:hover .guide-card-copy p,
.public-main .guide-card:focus-within .guide-card-copy p { color:var(--guide-card-hover-description)!important; }
.public-main .guide-card .guide-card-meta { color:var(--guide-card-meta)!important; }
.public-main .guide-card:hover .guide-card-meta,
.public-main .guide-card:focus-within .guide-card-meta { color:var(--guide-card-hover-meta)!important; }
/* Correctly scoped live preview for the Guide card's separate component colors. */
.appearance-live-preview .appearance-sample-guide-card { width:100%; display:flex; flex-direction:column; gap:5px; background:var(--guide-card-background); border:1px solid var(--guide-card-border); border-radius:9px; padding:10px; }
.appearance-live-preview .appearance-sample-guide-card strong { font-size:.83rem; line-height:1.3; color:var(--guide-card-text); }
.appearance-live-preview .appearance-sample-guide-card .appearance-sample-guide-label { font-size:.7rem; font-weight:900; letter-spacing:.08em; color:var(--guide-card-label); }
.appearance-live-preview .appearance-sample-guide-card .appearance-sample-guide-description { color:var(--guide-card-description); }
.appearance-live-preview .appearance-sample-guide-card .appearance-sample-guide-meta { font-size:.7rem; color:var(--guide-card-meta); }
.appearance-live-preview .appearance-sample-guide-card:hover { background:var(--guide-card-hover-background);border-color:var(--guide-card-hover-border); }
.appearance-live-preview .appearance-sample-guide-card:hover strong { color:var(--guide-card-hover-text); }
.appearance-live-preview .appearance-sample-guide-card:hover .appearance-sample-guide-label { color:var(--guide-card-hover-label); }
.appearance-live-preview .appearance-sample-guide-card:hover .appearance-sample-guide-description { color:var(--guide-card-hover-description); }
.appearance-live-preview .appearance-sample-guide-card:hover .appearance-sample-guide-meta { color:var(--guide-card-hover-meta); }


/* ABC 2026-12-05 — public header link hover backgrounds, independent of Admin navigation. */
.site-header .public-nav a:not(.public-nav-business-cta) {
    padding-inline:6px;
    border-radius:8px;
    background:var(--header-nav-background, #ffffff);
    transition:background-color .17s ease,color .17s ease;
}
.site-header .public-nav a:not(.public-nav-business-cta):hover,
.site-header .public-nav a:not(.public-nav-business-cta):focus-visible {
    background:var(--header-nav-hover-background, #eef3f0);
    color:var(--header-link-hover, #123924);
}
/* Preserve header width while adding interior padding to each link. */
@media (min-width:761px) { .site-header .public-nav { gap:6px; } }
@media (prefers-reduced-motion:reduce) { .site-header .public-nav a { transition:none; } }

/* /categories: background photo lives behind the EXISTING card content.
   Existing color and hover color remain authoritative; alpha applies only to
   cards with an uploaded photo. Image-free cards retain their original styling. */
.public-main .category-index-card.has-category-image {
    position:relative;
    isolation:isolate;
    overflow:hidden;
}
.public-main .category-index-card.has-category-image > .category-index-card-image {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
    pointer-events:none;
}
.public-main .category-index-card.has-category-image::before {
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background-color:var(--category-card-bg, #ffffff);
    opacity:var(--category-card-image-opacity, .65);
    pointer-events:none;
    transition:opacity .15s ease, background-color .15s ease;
}
.public-main .category-index-card.has-category-image:hover::before,
.public-main .category-index-card.has-category-image:focus-visible::before {
    background-color:var(--category-card-hover-bg, #eef3f0);
    opacity:var(--category-card-image-hover-opacity, .80);
}
.public-main .category-index-card.has-category-image > div,
.public-main .category-index-card.has-category-image > .category-index-count {
    position:relative;
    z-index:2;
}
