/* Silver Memories Directory — Layout & Component Styles */

/* ── Public site wrapper ──────────────────────────────────── */
/* All brand typography/colour is scoped here so it cannot reach
   the admin section, which never renders inside .sm-public-site. */

.sm-public-site {
    font-family: var(--font-body);
    color: var(--sm-ink);
    background-color: var(--sm-bg);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100dvh;
}

.sm-public-site h1,
.sm-public-site h2,
.sm-public-site h3,
.sm-public-site h4,
.sm-public-site h5,
.sm-public-site h6,
.sm-public-site .display-heading {
    font-family: var(--font-display);
    color: var(--sm-teal);
    line-height: 1.2;
}

/* ── Public shell ─────────────────────────────────────────── */

.sm-site-header {
    background-color: var(--sm-teal);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(60,117,132,0.07);
}

.sm-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    gap: 1rem;
}

.sm-logo { height: 48px; width: auto; }

.sm-site-header--dense { padding: 0.5rem 0; }

.sm-header-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
}

.sm-logo-compact { height: 64px; width: auto; }

.sm-header-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 400;
    font-style: normal;
    color: var(--sm-paper);
    line-height: 1.2;
}

.sm-header-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic !important;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--sm-paper);
}

.sm-nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.sm-nav-links a {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--sm-paper);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.15s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.sm-nav-links a:hover { background-color: rgba(255,255,255,0.10); }
.sm-nav-links a.active { color: #fff; font-weight: 700; background-color: rgba(255,255,255,0.15); }

.sm-nav-hamburger {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 6px;
    color: var(--sm-paper);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1.2rem;
    min-height: 44px;
}

/* ── Footer ───────────────────────────────────────────────── */

.sm-site-footer {
    background-color: var(--sm-teal);
    color: var(--sm-paper);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

/* Home page: reset main background so below-fold sections sit on the normal site bg */
main:has(.sm-home-hero) {
    background-color: var(--sm-bg);
}

/* The last home section is teal — footer snugs flush against it */
main:has(.sm-home-hero) + .sm-site-footer {
    margin-top: 0;
}

/* Mobile nav dropdown on homepage: match the glass teal header */
body:has(.sm-home-hero) .sm-nav-links.open {
    background: rgba(45, 90, 103, 0.97);
}

body:has(.sm-home-hero) .sm-nav-links.open a {
    color: var(--sm-paper);
}

.sm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sm-footer-logo { height: 72px; width: auto; }

.sm-footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.sm-footer-cols h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--sm-aqua-tint);
    margin-bottom: 0.75rem;
}

.sm-footer-cols a,
.sm-footer-cols p {
    color: rgba(255,255,255,0.80);
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
}

.sm-footer-cols a:hover { color: var(--sm-paper); text-decoration: underline; }

.sm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.25rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.60);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Page wrapper ─────────────────────────────────────────── */

.sm-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.sm-page-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── Homepage: transparent header, fades to glass on scroll ── */

body:has(.sm-home-hero) .sm-site-header {
    position: fixed;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

body:has(.sm-home-hero).header-scrolled .sm-site-header {
    background: rgba(60, 117, 132, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

body:has(.sm-home-hero) .sm-home-hero {
    min-height: 100vh;
}

body:has(.sm-home-hero) .sm-home-hero-content {
    padding-top: 10rem;
}

/* ── Home hero — full-viewport, solid image over teal ─────────── */

.sm-home-hero {
    position: relative;
    min-height: calc(100vh - 72px);
    background-color: var(--sm-teal);
    background-image: url('/brand/entertainer2.png');
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.sm-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(30, 65, 75, 0.72) 0%,
        rgba(30, 65, 75, 0.35) 55%,
        transparent 100%
    );
    z-index: 0;
}

.sm-home-hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    padding: 3rem 3rem 5rem 4rem;
    max-width: 720px;
    width: 100%;
}

.sm-home-eyebrow {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sm-aqua-tint);
    margin-bottom: 1rem;
}

.sm-home-hero-content .sm-home-title {
    color: var(--sm-paper);
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    outline: none;
}

.sm-home-sub {
    color: rgba(255,255,255,0.88);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 560px;
    margin: 0 0 2.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ── Legacy hero (used on other pages if needed) ──────────── */

.sm-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    background-color: var(--sm-teal);
}

.sm-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.sm-hero-content {
    position: relative;
    padding: 3rem 2rem 3.5rem;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.sm-hero-eyebrow {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sm-aqua-tint);
    margin-bottom: 0.75rem;
}

.sm-hero h1 {
    color: var(--sm-paper);
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 1rem;
}

.sm-hero p {
    color: rgba(255,255,255,0.88);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.sm-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-sm-primary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sm-paper);
    background-color: var(--sm-coral);
    border: 2px solid var(--sm-coral);
    border-radius: var(--radius-pill);
    padding: 0.85rem 2.25rem;
    min-height: 52px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    line-height: 1;
}

.btn-sm-primary-hero:hover {
    background-color: var(--sm-orange);
    border-color: var(--sm-orange);
    color: var(--sm-paper);
    text-decoration: none;
}

.btn-sm-outline-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sm-paper);
    background-color: transparent;
    border: 2px solid var(--sm-paper);
    border-radius: var(--radius-pill);
    padding: 0.85rem 2.25rem;
    min-height: 52px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 1;
}

.btn-sm-outline-hero:hover {
    background-color: rgba(255,255,255,0.12);
    color: var(--sm-paper);
    text-decoration: none;
}

/* ── Homepage: below-fold sections ───────────────────────── */

.sm-home-how-it-works {
    background-color: var(--sm-paper);
    padding: 5rem 0 4rem;
}

.sm-home-section-heading {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--sm-teal);
    margin-bottom: 3rem;
}

.sm-home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.sm-home-step {
    text-align: center;
}

.sm-home-step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--sm-aqua-tint);
    color: var(--sm-teal);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.sm-home-step h3 {
    font-size: 1.1rem;
    color: var(--sm-teal);
    margin-bottom: 0.6rem;
}

.sm-home-step p {
    font-size: 0.95rem;
    color: var(--sm-ink-soft);
    line-height: 1.6;
    max-width: 240px;
    margin: 0 auto;
}

.sm-home-entertainer-cta {
    background-color: var(--sm-teal);
    padding: 5rem 0 4rem;
}

.sm-home-entertainer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.sm-home-entertainer-cta-inner h2 {
    color: var(--sm-paper);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 0.6rem;
}

.sm-home-entertainer-cta-inner p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    max-width: 520px;
    margin: 0;
    line-height: 1.6;
}

/* ── Directory grid ───────────────────────────────────────── */

.sm-search-bar {
    background: var(--sm-paper);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.sm-search-bar .sm-field { flex: 1; min-width: 160px; }
.sm-search-bar .sm-field label { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.3rem; display: block; color: var(--sm-ink-soft); }
.sm-search-bar .sm-field-hint { font-size: 0.78rem; line-height: 1.35; color: var(--sm-ink-soft); margin: 0.4rem 0 0; }
/* Push the Search button down so it aligns with the inputs rather than the labels */
.sm-search-bar .sm-search-action { padding-top: 1.55rem; }

.sm-entertainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.sm-entertainer-card {
    background: var(--sm-paper);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.sm-entertainer-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.sm-card-img-wrap {
    height: 220px;
    overflow: hidden;
    background-color: var(--sm-aqua-tint);
}

.sm-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sm-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--sm-teal);
}

.sm-card-location {
    font-size: 0.85rem;
    color: var(--sm-ink-soft);
    margin-bottom: 0.6rem;
}

.sm-card-location svg { vertical-align: -2px; margin-right: 3px; }

.sm-card-types { margin-bottom: 1rem; flex: 1; }

.sm-card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--sm-sand-light);
}

/* Name/location on the left, "From $X" price on the right */
.sm-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.sm-card-heading-text { min-width: 0; }

.sm-card-fee {
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    font-size: 0.8rem;
    line-height: 1.2;
    color: var(--sm-ink-soft);
}

.sm-card-fee strong {
    display: block;
    font-size: 1.15rem; /* same size as the name (.sm-card-body h3) */
    color: var(--sm-ink);
}

/* ── Profile page ─────────────────────────────────────────── */

.sm-profile-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

/* Entertainer name on the left, "From $X" price across from it on the right */
.sm-profile-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.sm-profile-fee {
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--sm-ink-soft);
    padding-top: 0.35rem;
}

.sm-profile-fee strong {
    display: block;
    font-size: 1.75rem;
    color: var(--sm-teal); /* matches the name colour */
}

.sm-profile-gallery {
    border-radius: var(--radius-card);
    overflow: hidden;
    background-color: var(--sm-aqua-tint);
    margin-bottom: 1.5rem;
}

.sm-profile-gallery-primary {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.sm-profile-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.sm-profile-gallery-thumbs img {
    height: 80px;
    width: 110px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    scroll-snap-align: start;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.sm-profile-gallery-thumbs img:hover,
.sm-profile-gallery-thumbs img.active { opacity: 1; }

.sm-profile-sidebar {
    background: var(--sm-paper);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
}

.sm-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.sm-profile-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.sm-profile-contact-item a { color: var(--sm-teal); word-break: break-all; }

.sm-social-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.sm-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sm-teal);
    background-color: transparent;
    border: 2px solid var(--sm-teal);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.1rem;
    min-height: 40px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    line-height: 1;
}
.sm-social-links a svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.sm-social-links a:hover,
.sm-social-links a:focus-visible {
    background-color: var(--sm-teal);
    color: var(--sm-paper);
    box-shadow: 0 0 0 3px rgba(60, 117, 132, 0.3);
    text-decoration: none;
}

/* ── Register flow ────────────────────────────────────────── */

.sm-register-steps {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    border-radius: 999px;
    overflow: hidden;
    background: var(--sm-sand-light);
}

.sm-step {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sm-ink-soft);
    font-family: var(--font-body);
}

.sm-step.active {
    background-color: var(--sm-teal);
    color: var(--sm-paper);
}

.sm-step.done {
    background-color: var(--sm-aqua);
    color: var(--sm-teal);
}

/* ── Act section progress ─────────────────────────────────── */

.sm-act-section-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.sm-act-section-item {
    font-family: var(--font-body);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.sm-act-section-done {
    color: var(--sm-teal);
    font-weight: 600;
}

.sm-act-section-active {
    color: var(--sm-ink);
    font-weight: 700;
}

.sm-act-section-upcoming {
    color: var(--sm-ink-soft);
    font-weight: 400;
}

.sm-act-section-check {
    width: 15px;
    height: 15px;
    fill: var(--sm-teal);
    stroke: white;
    flex-shrink: 0;
}

.sm-act-section-sep {
    color: var(--sm-ink-soft);
    font-size: 0.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.sm-act-progress-bar {
    height: 5px;
    background: var(--sm-sand-light);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.sm-act-progress-fill {
    height: 100%;
    background: var(--sm-teal);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* ── Service range slider ─────────────────────────────────── */

.sm-service-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2.2rem;
    background: transparent;
    outline: none;
    padding: 0;
    margin: 0;
    display: block;
    cursor: pointer;
}

.sm-service-range::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: none;
}

.sm-service-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--sm-teal);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    margin-top: calc((4px - 2.2rem) / 2);
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.sm-service-range:hover::-webkit-slider-thumb,
.sm-service-range:focus::-webkit-slider-thumb {
    box-shadow: 0 3px 12px rgba(58,118,132,0.4);
}

.sm-service-range::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}

.sm-service-range::-moz-range-thumb {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--sm-teal);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    box-sizing: border-box;
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.sm-service-range:hover::-moz-range-thumb,
.sm-service-range:focus::-moz-range-thumb {
    box-shadow: 0 3px 12px rgba(58,118,132,0.4);
}

/* ── Table ────────────────────────────────────────────────── */

.sm-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--sm-paper);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.sm-table th {
    background-color: var(--sm-aqua-tint);
    color: var(--sm-teal);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--sm-aqua);
}

.sm-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--sm-sand-light);
    vertical-align: middle;
}

.sm-table tr:last-child td { border-bottom: none; }
.sm-table tr:hover td { background-color: rgba(171, 222, 222, 0.15); }

/* ── Modal ────────────────────────────────────────────────── */

.sm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sm-modal {
    background: var(--sm-paper);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 48px rgba(0,0,0,0.2);
    max-width: 560px;
    width: 100%;
    padding: 2rem;
}

.sm-modal h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

/* ── Demo Turnstile widget ────────────────────────────────── */

.cf-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fafafa;
    padding: 10px 14px;
    max-width: 300px;
    min-height: 64px;
    margin-bottom: 1rem;
}

.cf-widget-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cf-widget-clickable { cursor: pointer; }

.cf-check-box {
    width: 28px;
    height: 28px;
    border: 1.5px solid #9b9b9b;
    border-radius: 2px;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}

.cf-widget-clickable:hover .cf-check-box { border-color: #444; }

.cf-check-box--done {
    background: #31b447;
    border-color: #31b447;
    color: #fff;
    font-size: 1rem;
}

.cf-widget-label {
    font-size: 0.875rem;
    color: var(--sm-ink);
    font-family: var(--font-body);
}

.cf-spin-box {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-spin-ring {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-top-color: #f38020;
    border-radius: 50%;
    animation: cf-spin 0.8s linear infinite;
}

@keyframes cf-spin { to { transform: rotate(360deg); } }

.cf-widget-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: 12px;
    flex-shrink: 0;
}

.cf-widget-brand-logo {
    font-size: 0.7rem;
    font-weight: 700;
    color: #f38020;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
}

.cf-widget-brand-sub {
    font-size: 0.6rem;
    color: #aaa;
    font-family: var(--font-body);
}

/* ── Misc ─────────────────────────────────────────────────── */

.sm-page-section { margin-bottom: 3rem; }
.sm-section-title { margin-bottom: 1.5rem; }
.sm-divider { border: none; border-top: 1px solid var(--sm-sand); margin: 2rem 0; }

.sm-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--sm-ink-soft);
}

.sm-empty-state svg { color: var(--sm-aqua); margin-bottom: 1rem; }

.sm-badge-pending {
    display: inline-block;
    background: var(--sm-yellow);
    color: var(--sm-ink);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sm-badge-published {
    display: inline-block;
    background: rgba(135, 208, 208, 0.25);
    color: var(--sm-teal);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .sm-profile-layout { grid-template-columns: 1fr; }
    .sm-profile-sidebar { position: static; padding: 0; background: none; box-shadow: none; }
    /* Contact buttons float as a fixed bottom bar, side by side */
    .sm-profile-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        flex-direction: row;
        gap: 0.6rem;
        margin: 0;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
        background: var(--sm-paper);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    }
    .sm-profile-actions .btn-sm-primary,
    .sm-profile-actions .btn-sm-outline { flex: 1; width: auto; padding-left: 0.75rem; padding-right: 0.75rem; }
    /* Reserve space at the very bottom of the document (on the footer) so the fixed
       bar clears the footer's content, without adding a gap before the footer. */
    .sm-page:has(.sm-profile-layout) { padding-bottom: 0; }
    body:has(.sm-profile-actions) .sm-site-footer { padding-bottom: 5.5rem; }
    .sm-footer-cols { grid-template-columns: 1fr 1fr; }
    /* Let the hero shrink to its content on mobile instead of forcing full viewport height.
       Uses the same specificity as the body:has(...) rule above so it actually wins here. */
    body:has(.sm-home-hero) .sm-home-hero { min-height: auto; }
    body:has(.sm-home-hero) .sm-home-hero-content { padding-top: 5.5rem; }
    .sm-home-hero-content { padding: 3rem 1.5rem 4rem; }
    .sm-home-steps { grid-template-columns: 1fr; gap: 2rem; }
    .sm-home-entertainer-cta-inner { flex-direction: column; text-align: center; }
    .sm-home-entertainer-cta-inner p { margin: 0 auto; }
}

@media (max-width: 640px) {
    .sm-entertainer-grid { grid-template-columns: 1fr; }
    .sm-footer-cols { grid-template-columns: 1fr; }
    .sm-nav-links { display: none; }
    .sm-nav-hamburger { display: flex; align-items: center; }
    .sm-nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--sm-paper); box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 0.5rem; z-index: 99; }
    .sm-hero-content { padding: 2rem 1.25rem 2.5rem; }
    .sm-search-bar { flex-direction: column; }
    .sm-search-bar .sm-field { min-width: 100%; }
    .sm-search-bar .sm-search-action { padding-top: 0; width: 100%; }
    .sm-search-bar .sm-search-action .btn-sm-primary { width: 100%; }
    .sm-home-hero-content { padding: 2.5rem 1.25rem 4rem; text-align: center; }
    .sm-home-sub { margin-left: auto; margin-right: auto; }
    .sm-hero-actions { justify-content: center; }
}

/* The dense (directory/register) header carries a wide brand title, so its inline
   links would wrap to a second line well before the 640px homepage breakpoint.
   Keep the hamburger active for that header until there's room for a single line.
   (Tune this max-width if the title width changes.) */
@media (max-width: 900px) {
    .sm-site-header--dense .sm-nav-links { display: none; }
    .sm-site-header--dense .sm-nav-hamburger { display: flex; align-items: center; }
    .sm-site-header--dense .sm-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--sm-paper);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 0.5rem;
        z-index: 99;
    }
}

/* Override Bootstrap defaults to use brand styles */
.form-control:focus { border-color: var(--sm-teal); box-shadow: 0 0 0 0.2rem rgba(60,117,132,0.2); }
.form-select:focus { border-color: var(--sm-teal); box-shadow: 0 0 0 0.2rem rgba(60,117,132,0.2); }

/* Blazor validation integration */
.validation-message { color: var(--sm-coral); font-size: 0.825rem; margin-top: 0.2rem; }
.field-validation-error { color: var(--sm-coral); font-size: 0.825rem; }
input.invalid, select.invalid, textarea.invalid,
input.modified.invalid, select.modified.invalid, textarea.modified.invalid { border-color: var(--sm-coral) !important; }
