/*
 * BluSup generated-site shared CSS foundation.
 *
 * This file owns generated-site structure, safety, cards, sections, forms,
 * image slots, and mobile behavior. Individual generated sites should keep
 * /sites/{slug}/assets/css/styles.css for personality only.
 */

.sg-page-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: .25rem 0 .6rem;
}

.sg-page-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    padding: .52rem .82rem;
    border-radius: 999px;
    border: 1px solid var(--bs-panel-border);
    background: rgba(255, 255, 255, .68);
    color: var(--bs-text-strong);
    text-decoration: none;
    font-weight: 700;
    overflow-wrap: anywhere;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.sg-page-nav-link:hover,
.sg-page-nav-link:focus-visible,
.sg-page-nav-link.is-active {
    border-color: var(--bs-button-border-hover);
    box-shadow: 0 10px 24px rgba(47, 111, 144, .12);
    transform: translateY(-1px);
}

.sg-page-nav-link.is-active {
    background: rgba(255, 255, 255, .92);
}

.sg-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 1rem;
}

.sg-hero-card,
.sg-hero-side,
.sg-entry-media-card,
.sg-note-card,
.sg-value-card,
.sg-step-card {
    padding: 1.1rem 1rem;
}

.sg-lead {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--bs-text-soft);
    font-weight: 600;
}

.sg-entry-media-card {
    display: grid;
    align-content: start;
    gap: .9rem;
    overflow: hidden;
}

.sg-entry-showcase-button,
.sg-entry-showcase-art .bs-showcase-art__button {
    position: relative;
    display: block;
    margin: 0;
    border: 0;
    padding: 0;
    border-radius: 18px;
    background: transparent;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
}

.sg-entry-showcase-button:focus-visible {
    outline: 2px solid var(--bs-button-border-hover);
    outline-offset: 3px;
}

.sg-entry-showcase-art .bs-showcase-art__placeholder {
    margin: 0;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
}

.sg-entry-showcase-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.sg-entry-media-copy {
    display: grid;
    gap: .35rem;
}

.sg-entry-media-copy h2 {
    font-size: clamp(1.28rem, 2.6vw, 1.8rem);
    line-height: 1.12;
    margin: 0;
}

.sg-entry-media-copy p:last-child {
    margin-bottom: 0;
}

.sg-mini-list,
.sg-category-grid,
.sg-listing-grid,
.sg-value-grid,
.sg-step-grid {
    display: grid;
    gap: .95rem;
    min-width: 0;
}

.sg-mini-list div,
.sg-value-card,
.sg-step-card {
    display: grid;
    gap: .18rem;
    min-width: 0;
    padding: .9rem .95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .56);
    border: 1px solid var(--bs-panel-border);
}

.sg-mini-list strong,
.sg-value-card strong,
.sg-step-card strong {
    color: var(--bs-text-strong);
}

.sg-mini-list span,
.sg-value-card span,
.sg-step-card span {
    color: var(--bs-text-soft);
    line-height: 1.45;
}

.sg-category-grid,
.sg-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.sg-listing-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
    align-items: stretch;
}

.sg-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.sg-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg-category-card,
.sg-listing-card {
    display: grid;
    gap: .62rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    align-content: start;
}

.sg-category-section {
    scroll-margin-top: 1rem;
    padding-top: .95rem;
    border-top: 1px solid rgba(163, 185, 198, .34);
}

.sg-category-section-head {
    display: grid;
    gap: .25rem;
    margin-bottom: .75rem;
}

.sg-category-section-head h2 {
    margin-bottom: .05rem;
}

.sg-category-section-head p:last-child {
    margin-bottom: 0;
}

.sg-empty-state {
    border: 1px solid rgba(163, 185, 198, .45);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    color: #38515f;
    padding: 1rem;
}

.sg-empty-state strong {
    display: block;
    color: #172b36;
    margin-bottom: .35rem;
}

.sg-empty-state p {
    margin: 0;
}

.sg-listing-card {
    grid-template-rows: auto auto auto auto auto 1fr auto;
}

.sg-category-card {
    grid-template-rows: auto auto auto 1fr auto;
}

.sg-category-card *,
.sg-listing-card * {
    min-width: 0;
    max-width: 100%;
}

.sg-image-button {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
}

.sg-image-button:focus-visible {
    outline: 2px solid var(--bs-button-border-hover);
    outline-offset: 3px;
}

.sg-card-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.sg-image-slot {
    display: grid;
    place-items: center;
    text-align: center;
    gap: .22rem;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 1px dashed rgba(47, 111, 144, .34);
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .78), transparent 24%),
        linear-gradient(135deg, rgba(47, 111, 144, .13), rgba(255, 248, 232, .72));
    padding: .75rem;
    color: var(--bs-text-soft);
    overflow: hidden;
}

.sg-image-slot strong {
    color: var(--bs-text-strong);
    font-size: .93rem;
    line-height: 1.15;
}

.sg-image-slot small {
    max-width: 26ch;
    line-height: 1.3;
    font-size: .78rem;
}

.sg-category-image-slot {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.sg-image-chip {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    max-width: calc(100% - 1.5rem);
    padding: .42rem .7rem;
    border-radius: 999px;
    background: rgba(16, 33, 44, .72);
    color: #fff;
    font-size: .83rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sg-badge-row,
.sg-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
    min-width: 0;
}

.sg-badge-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .26rem;
    max-width: 100%;
    padding: .16rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .48);
    border: 1px solid rgba(163, 185, 198, .3);
}

.sg-badge-group-label {
    padding: 0 .28rem 0 .35rem;
    font-size: .68rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--bs-text-soft);
}

.sg-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .3rem .52rem;
    border-radius: 999px;
    font-size: .76rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--bs-text-strong);
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--bs-panel-border);
    overflow-wrap: anywhere;
}

.sg-badge-strong {
    background: rgba(47, 111, 144, .12);
    border-color: rgba(47, 111, 144, .22);
}

.sg-badge.bs-badge-trust {
    background: rgba(236, 253, 245, .9);
    border-color: rgba(34, 197, 94, .28);
    color: #166534;
}

.sg-badge.bs-badge-image {
    background: rgba(255, 248, 232, .92);
    border-color: rgba(217, 119, 6, .24);
    color: #875300;
}

.sg-badge.bs-badge-claim {
    background: rgba(239, 246, 255, .94);
    border-color: rgba(37, 99, 235, .22);
    color: #1d4ed8;
}

.sg-badge.bs-badge-placement {
    background: rgba(241, 245, 249, .96);
    border-color: rgba(71, 85, 105, .28);
    color: #334155;
}

.sg-card-location {
    margin-top: -.35rem;
    font-weight: 700;
    color: var(--bs-text-soft);
    overflow-wrap: anywhere;
}

.sg-card-phone {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: -.2rem 0 .15rem;
    font-weight: 800;
    color: var(--bs-text);
    overflow-wrap: anywhere;
}

.sg-card-phone span {
    color: var(--bs-text-soft);
    font-weight: 700;
}

.sg-card-phone a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: .38rem .75rem;
    border: 1px solid rgba(47, 111, 144, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .84);
    color: var(--bs-accent);
    text-decoration: none;
}

.sg-card-phone a:hover,
.sg-card-phone a:focus-visible {
    border-color: rgba(47, 111, 144, .44);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 111, 144, .14);
}

.sg-mini-checks {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--bs-text-soft);
    overflow-wrap: anywhere;
}

.sg-listing-card > p:not(.bs-app-eyebrow):not(.sg-card-location):not(.sg-card-phone),
.sg-category-card > p:not(.bs-app-eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.sg-listing-card .sg-mini-checks {
    font-size: .94rem;
    line-height: 1.38;
}

.sg-listing-card .sg-mini-checks li {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sg-mini-checks li + li {
    margin-top: .28rem;
}

.sg-link-row {
    margin-top: auto;
    align-self: end;
}

.sg-link-row-start {
    margin-top: .2rem;
}

.sg-link-row a,
.sg-listing-card a,
.sg-category-card a {
    overflow-wrap: anywhere;
}

.sg-badge-row a.sg-badge,
.sg-category-pill-link {
    align-items: center;
    justify-content: center;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.sg-badge-row a.sg-badge:hover,
.sg-badge-row a.sg-badge:focus-visible {
    border-color: rgba(47, 111, 144, 0.34);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 111, 144, 0.12);
}

.sg-badge-row .sg-category-back-link,
.sg-category-section-title-row .sg-category-back-link,
.sg-category-section > .sg-category-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .58rem;
    max-width: 100%;
    padding: .34rem .42rem .34rem .34rem;
    border-radius: 999px;
    border: 1.5px solid rgba(45, 86, 118, .34);
    background: linear-gradient(180deg, rgba(240, 247, 253, 1) 0%, rgba(215, 230, 242, 1) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
    color: var(--bs-text-strong);
    text-decoration: none;
    cursor: pointer;
}

.sg-badge-row .sg-category-back-link:visited,
.sg-badge-row .sg-category-back-link:focus,
.sg-badge-row .sg-category-back-link:active,
.sg-badge-row .sg-category-back-link:hover,
.sg-category-section-title-row .sg-category-back-link:visited,
.sg-category-section-title-row .sg-category-back-link:focus,
.sg-category-section-title-row .sg-category-back-link:active,
.sg-category-section-title-row .sg-category-back-link:hover,
.sg-category-section > .sg-category-back-link:visited,
.sg-category-section > .sg-category-back-link:focus,
.sg-category-section > .sg-category-back-link:active,
.sg-category-section > .sg-category-back-link:hover {
    color: var(--bs-text-strong);
    text-decoration: none;
}

.sg-badge-row .sg-category-back-link:focus-visible,
.sg-category-section-title-row .sg-category-back-link:focus-visible,
.sg-category-section > .sg-category-back-link:focus-visible {
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 3px rgba(47, 111, 144, .14);
}

.sg-category-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.95rem;
    height: 1.95rem;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(45, 86, 118, .24);
    background: rgba(98, 148, 186, .22);
    color: #245c84;
    font-size: 1rem;
    font-weight: 800;
}

.sg-category-badge {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bs-text-strong);
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.sg-contact-form {
    margin-top: .95rem;
}

.sg-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.sg-form-grid label {
    display: grid;
    gap: .42rem;
    min-width: 0;
    font-weight: 700;
    color: var(--bs-text-strong);
}

.sg-form-grid input,
.sg-form-grid select,
.sg-form-grid textarea {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: .85rem .95rem;
    border-radius: 16px;
    border: 1px solid var(--bs-panel-border-strong);
    background: var(--bs-input-bg);
    color: var(--bs-text);
    font: inherit;
}

.sg-form-grid textarea {
    resize: vertical;
}

.sg-form-grid input:focus,
.sg-form-grid select:focus,
.sg-form-grid textarea:focus {
    outline: none;
    border-color: var(--bs-button-border-hover);
    box-shadow: 0 0 0 3px rgba(47, 111, 144, .12);
}

.sg-wide {
    grid-column: 1 / -1;
}

.sg-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.sg-image-viewer[hidden] {
    display: none;
}

.sg-image-viewer-backdrop,
.sg-image-viewer-stage {
    position: absolute;
    inset: 0;
}

.sg-image-viewer-backdrop {
    background: rgba(8, 16, 21, .82);
}

.sg-image-viewer-stage {
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.sg-image-viewer-shell {
    width: min(1100px, 100%);
    display: grid;
    gap: .8rem;
}

.sg-image-viewer-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem .75rem;
    color: #fff;
    padding-right: 4.75rem;
}

.sg-image-viewer-head span {
    font-size: .9rem;
    opacity: .78;
    margin-left: auto;
    text-align: center;
}

.sg-image-viewer-controls {
    order: -1;
    display: inline-flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
    justify-content: flex-start;
}

.sg-image-viewer-zoom,
.sg-image-viewer-close {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
    padding: .55rem .72rem;
    cursor: pointer;
}

.sg-image-viewer-zoom:hover,
.sg-image-viewer-close:hover,
.sg-image-viewer-zoom:focus-visible,
.sg-image-viewer-close:focus-visible {
    background: rgba(255, 255, 255, .22);
    outline: none;
}

.sg-image-viewer-frame {
    display: grid;
    place-items: center;
    min-height: 240px;
    max-height: calc(100vh - 7rem);
    overflow: hidden;
    border-radius: 24px;
    background: #07101a;
    border: 1px solid rgba(255, 255, 255, .1);
}

.sg-image-viewer-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    object-fit: contain;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    will-change: transform;
}

.sg-image-viewer-image.is-dragging {
    cursor: grabbing;
}

body.sg-image-viewer-open {
    overflow: hidden;
}

body.sg-map-viewer-open {
    overflow: hidden;
}

.sg-map-viewer-frame {
    min-height: min(72vh, 620px);
    padding: 0;
    background: #07101a;
}

.sg-map-viewer-card {
    display: grid;
    grid-template-rows: minmax(260px, 1fr) auto auto auto;
    gap: .8rem;
    width: 100%;
    height: min(72vh, 620px);
    padding: .8rem;
    border-radius: 24px;
    background: #fff;
    color: var(--bs-text);
    text-align: left;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.sg-map-viewer-embed {
    min-height: 260px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--bs-panel-border-strong);
    background: #dce7e6;
}

.sg-map-viewer-embed[hidden] {
    display: none;
}

.sg-map-viewer-iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
}

.sg-map-viewer-copy {
    margin: 0;
    color: var(--bs-text-soft);
    font-size: .98rem;
}

.sg-map-viewer-note {
    margin: 0;
    padding: .7rem .8rem;
    border-radius: 12px;
    background: var(--bs-panel-muted);
    color: var(--bs-text);
    font-size: .92rem;
}

.sg-map-viewer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}

.sg-map-viewer-link {
    justify-self: start;
}

.sg-map-viewer-attribution {
    margin: 0;
    color: var(--bs-text-soft);
    font-size: .78rem;
}


/* Generated-site heading polish: avoid tiny orphan words like a lone state abbreviation on mobile. */
.sg-public-header .bs-public-page-title,
.sg-site-title-safe {
    max-width: min(100%, 34ch);
    margin-inline: auto;
    text-wrap: balance;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.sg-nowrap-place {
    white-space: nowrap;
}

.sg-public-header .bs-public-page-heading {
    max-width: min(100%, 44rem) !important;
}

@media (max-width: 980px) {
    .sg-hero-grid,
    .sg-value-grid,
    .sg-step-grid,
    .sg-form-grid {
        grid-template-columns: 1fr;
    }

    .sg-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }

    .sg-listing-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    }
}

@media (max-width: 720px) {
    .sg-page-nav {
        gap: .5rem;
        margin-bottom: .5rem;
    }

    .sg-page-nav-link {
        padding: .5rem .72rem;
        font-size: .95rem;
    }

    .sg-category-card,
    .sg-listing-card {
        width: 100%;
        padding-left: .9rem;
        padding-right: .9rem;
    }

    .sg-category-grid,
    .sg-listing-grid {
        grid-template-columns: 1fr;
    }

    .sg-image-chip {
        font-size: .78rem;
    }



    .sg-public-header .bs-public-page-title,
    .sg-site-title-safe {
        max-width: min(100%, 26ch);
        font-size: clamp(1.28rem, 7vw, 1.8rem) !important;
        line-height: 1.06 !important;
    }

    .sg-image-viewer-stage {
        padding: 1rem .7rem;
    }

    .sg-image-viewer-head {
        align-items: flex-start;
        flex-direction: column;
        padding-right: 4.5rem;
    }

    .sg-image-viewer-head span {
        margin-left: 0;
        text-align: left;
    }

    .sg-map-viewer .sg-image-viewer-stage {
        padding: .75rem;
    }

    .sg-map-viewer .sg-image-viewer-head {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding-right: 0;
    }

    .sg-map-viewer .sg-image-viewer-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .sg-map-viewer .sg-image-viewer-hint {
        display: none;
    }

    .sg-map-viewer .sg-image-viewer-controls {
        order: 0;
    }

    .sg-map-viewer .sg-image-viewer-close {
        min-height: 44px;
        padding: .75rem .9rem;
    }

    .sg-map-viewer-frame {
        min-height: 0;
        max-height: calc(100vh - 5.75rem);
        overflow: auto;
        border-radius: 18px;
    }

    .sg-map-viewer-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: min(56vh, 420px);
        height: auto;
        padding: 1rem;
        border-radius: 18px;
    }

    .sg-map-viewer-copy {
        font-size: 1rem;
        line-height: 1.4;
    }

    .sg-map-viewer-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .sg-map-viewer-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        text-align: center;
    }

    .sg-map-viewer-attribution {
        font-size: .76rem;
        text-align: center;
    }
}

/* Deploy Guard test patch — safe CSS comment only */
