/* =============================================================================
   SL Ladies — "Verified Members Registry"
   A discreet, concierge / private-atelier aesthetic: deep aubergine-charcoal,
   champagne brass accents, blush used sparingly, bone text. Signals a
   controlled quality directory — not an open listing site.

   Privacy note: no external font/CDN calls (honors the platform's privacy
   principle). Type personality is carried by a high-contrast system serif,
   wide-tracked uppercase micro-labels, and a brass seal signature.
   ============================================================================= */

:root {
    --ink:        #16121a;   /* base, warm near-black plum */
    --ink-2:      #1e1824;   /* panel */
    --ink-3:      #271f2e;   /* raised surface */
    --line:       rgba(200, 169, 106, 0.22);
    --line-soft:  rgba(236, 230, 221, 0.10);

    --brass:      #c8a96a;
    --brass-lit:  #e2c890;
    --blush:      #d6a2a0;
    --bone:       #ece6dd;
    --mauve:      #a596a3;   /* muted body / captions */

    --danger:     #d98c86;

    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Cambria, Georgia, ui-serif, serif;
    --sans: ui-sans-serif, system-ui, "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;

    --wrap: 1120px;
    --step: clamp(1.6rem, 1.1rem + 1.4vw, 2.2rem);
    --radius: 2px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background:
        radial-gradient(120% 80% at 50% -10%, #221a29 0%, var(--ink) 55%) fixed,
        var(--ink);
    color: var(--bone);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brass-lit); text-decoration: none; }
a:hover { color: var(--bone); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; }

/* --- Micro-labels: wide-tracked uppercase, the registry's connective tissue --- */
.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--brass);
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--brass);
    opacity: 0.7;
}

.wrap { width: min(var(--wrap), 100% - 2.4rem); margin-inline: auto; }

/* --- Seal monogram signature --------------------------------------------- */
.seal {
    --d: 40px;
    width: var(--d);
    height: var(--d);
    border-radius: 50%;
    border: 1px solid var(--brass);
    display: inline-grid;
    place-items: center;
    position: relative;
    color: var(--brass-lit);
    font-family: var(--serif);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    flex: none;
}
.seal::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid var(--line);
}

/* --- Header -------------------------------------------------------------- */
.masthead {
    border-bottom: 1px solid var(--line);
    background: rgba(22, 18, 26, 0.72);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}
.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.9rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.85rem; }
.brand__name {
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: var(--bone);
}
.brand__name b { color: var(--brass-lit); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
    color: var(--mauve);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.nav a:hover { color: var(--bone); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--brass);
    color: var(--ink);
    background: linear-gradient(180deg, var(--brass-lit), var(--brass));
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 26px -12px var(--brass); }
.btn--ghost {
    background: transparent;
    color: var(--bone);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-lit); box-shadow: none; }

/* --- Hero: framed as a threshold / gate ---------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 2rem + 8vw, 7rem); }
.hero__frame {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(2rem, 1rem + 5vw, 4.5rem);
    background:
        linear-gradient(180deg, rgba(39, 31, 46, 0.55), rgba(30, 24, 36, 0.35));
    overflow: hidden;
}
/* corner ticks — the "gate" hardware */
.hero__frame::before,
.hero__frame::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border: 1px solid var(--brass);
}
.hero__frame::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hero__frame::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.hero h1 {
    font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5rem);
    margin-top: 1.4rem;
    max-width: 15ch;
    letter-spacing: -0.005em;
}
.hero h1 em { font-style: italic; color: var(--blush); }
.hero__lede {
    margin-top: 1.4rem;
    max-width: 52ch;
    color: var(--mauve);
    font-size: 1.08rem;
}
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* hairline diamond divider */
.rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-block: var(--step);
    color: var(--line);
}
.rule::before, .rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.rule i {
    width: 6px; height: 6px;
    transform: rotate(45deg);
    border: 1px solid var(--brass);
    flex: none;
}

/* --- Sections & cards ---------------------------------------------------- */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section__head { max-width: 60ch; }
.section__head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); margin-top: 0.9rem; }
.section__head p { color: var(--mauve); margin-top: 0.8rem; }

.grid { display: grid; gap: 1.1rem; margin-top: 2.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.8rem;
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card h3 { font-size: 1.4rem; margin-top: 0.9rem; }
.card p { color: var(--mauve); font-size: 0.96rem; margin-top: 0.6rem; }
.card__num {
    font-family: var(--serif);
    font-size: 0.9rem;
    color: var(--brass);
    letter-spacing: 0.1em;
}

/* tag list of curated attributes */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.tag {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mauve);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
}

/* --- Panels (auth / forms) ----------------------------------------------- */
.panel {
    max-width: 460px;
    margin-inline: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.8rem, 1rem + 3vw, 3rem);
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.panel h1 { font-size: 2rem; margin-top: 1.1rem; }
.panel p.muted { color: var(--mauve); font-size: 0.95rem; margin-top: 0.7rem; }

.field { margin-top: 1.5rem; }
.field label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.6rem;
}
.input {
    width: 100%;
    background: var(--ink-3);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--bone);
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    text-align: center;
    padding: 0.9rem 1rem;
}
.input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.18); }
.input--text { font-family: var(--sans); font-size: 1rem; letter-spacing: normal; text-align: left; }

.alert {
    margin-top: 1.2rem;
    border: 1px solid rgba(217, 140, 134, 0.4);
    border-left-width: 3px;
    background: rgba(217, 140, 134, 0.08);
    color: var(--blush);
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    font-size: 0.92rem;
}

.stack-actions { margin-top: 1.8rem; display: flex; gap: 1rem; align-items: center; }

/* --- Footer -------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--line);
    margin-top: 4rem;
    padding-block: 2.6rem;
    color: var(--mauve);
    font-size: 0.86rem;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.footer a { color: var(--mauve); }
.footer a:hover { color: var(--brass-lit); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.footer__col a { display: block; margin-top: 0.55rem; letter-spacing: 0.04em; }
.footer__disclaimer { max-width: 44ch; line-height: 1.5; }

/* --- Editor forms -------------------------------------------------------- */
.wrap--form { width: min(860px, 100% - 2.4rem); }
.form-title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.6rem); margin-top: 0.9rem; }

.form-section {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.6rem 1.6rem 1.9rem;
    margin-top: 1.6rem;
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.form-section legend {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brass);
    padding: 0 0.6rem;
    margin-left: -0.6rem;
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.6rem; }
.form-grid .field { margin-top: 0.4rem; }

.opt { color: var(--mauve); letter-spacing: 0.04em; text-transform: none; font-size: 0.9em; }
.hint { color: var(--mauve); font-size: 0.82rem; margin-top: 0.5rem; }
.lock-note { color: var(--bone); font-size: 0.92rem; margin-top: 0.4rem; }
.lock-note b { color: var(--brass-lit); }

.select {
    width: 100%;
    background: var(--ink-3);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--bone);
    font-family: var(--sans);
    font-size: 1rem;
    padding: 0.75rem 0.9rem;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--brass) 50%),
        linear-gradient(135deg, var(--brass) 50%, transparent 50%);
    background-position: calc(100% - 18px) 1.15rem, calc(100% - 12px) 1.15rem;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.select:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.18); }
.select option { background: var(--ink-2); color: var(--bone); }

.textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }

.checks { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 0.4rem; }
.checks--wrap {
    gap: 0.55rem 1.2rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--ink);
}
.check { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; color: var(--bone); }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--brass); flex: none; }
.check span { font-size: 0.95rem; }

.notice {
    margin-top: 1.2rem;
    border: 1px solid var(--line);
    border-left-width: 3px;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    font-size: 0.92rem;
}
.notice--ok { border-color: rgba(200, 169, 106, 0.5); color: var(--brass-lit); background: rgba(200, 169, 106, 0.08); }
.alert__list { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.alert__list li { margin-top: 0.25rem; }

.price-scroll { overflow-x: auto; margin-top: 1.2rem; }
.price-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.price-table th, .price-table td { padding: 0.55rem 0.6rem; text-align: left; }
.price-table thead th {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass);
    border-bottom: 1px solid var(--line);
    font-weight: 500;
}
.price-table tbody th { color: var(--bone); font-family: var(--serif); font-size: 1.05rem; font-weight: 500; white-space: nowrap; }
.price-table tbody tr + tr td, .price-table tbody tr + tr th { border-top: 1px solid var(--line-soft); }
.input--price {
    width: 100%;
    min-width: 90px;
    background: var(--ink-3);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--bone);
    font-family: var(--sans);
    font-size: 0.98rem;
    text-align: right;
    padding: 0.55rem 0.7rem;
    letter-spacing: normal;
}
.input--price:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.18); }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* --- Directory ----------------------------------------------------------- */
.filters {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin-top: 1.8rem;
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.filters__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.filters__field { display: block; }
.filters__field span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.45rem;
}
.filters__actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; flex-wrap: wrap; }
.filters__buttons { display: flex; align-items: center; gap: 1rem; }

.directory-grid { grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }

.pcard {
    display: block;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}
.pcard:hover { border-color: var(--line); transform: translateY(-2px); color: inherit; }
.pcard--present { border-color: rgba(200, 169, 106, 0.4); }
.pcard__top { display: flex; align-items: center; gap: 0.6rem; }
.pcard__role {
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mauve);
    margin-right: auto;
}
.pcard__name { font-size: 1.5rem; margin-top: 0.7rem; color: var(--bone); }
.pcard__headline { color: var(--mauve); font-size: 0.95rem; margin-top: 0.4rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.chip {
    font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--brass-lit); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.7rem;
}
.chip--live {
    color: var(--ink); background: var(--brass-lit); border-color: var(--brass-lit);
}
.dot {
    width: 8px; height: 8px; border-radius: 50%; flex: none;
    background: var(--brass-lit); box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.2);
}
.seal-badge { color: var(--brass-lit); font-size: 0.9rem; }
.seal-badge--lg { font-size: 1.3rem; vertical-align: middle; }

.empty { text-align: center; padding: 3rem 1rem; display: grid; gap: 1.2rem; justify-items: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 2.4rem; }
.pager__status { color: var(--mauve); font-size: 0.85rem; letter-spacing: 0.1em; }

/* --- Provider profile ---------------------------------------------------- */
.wrap--profile { width: min(980px, 100% - 2.4rem); }
.backlink { color: var(--mauve); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.backlink:hover { color: var(--brass-lit); }

.profile-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem;
    margin-top: 1.4rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line);
}
.profile-name { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); margin-top: 0.8rem; }
.profile-headline { color: var(--mauve); font-size: 1.1rem; margin-top: 0.8rem; max-width: 46ch; }
.present-line { color: var(--brass-lit); font-size: 0.9rem; margin-top: 1rem; display: flex; align-items: center; gap: 0.55rem; }
.rating-line { color: var(--brass-lit); font-size: 1rem; margin-top: 0.9rem; letter-spacing: 0.02em; }
.rating-line .muted { font-size: 0.85rem; }
.profile-head__cta { display: flex; flex-direction: column; gap: 0.7rem; flex: none; align-items: stretch; }
.profile-head__cta .btn { justify-content: center; }
.cta-note { color: var(--mauve); font-size: 0.8rem; max-width: 16ch; text-align: right; }
.profile-badges { margin-top: 1.4rem; }

.profile-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.4rem; margin-top: 2rem; }
.profile-section { margin-top: 2rem; }
.prose { color: var(--bone); line-height: 1.7; }
.prose p { margin: 0 0 1rem; }
.prose a { text-decoration: underline; }

.profile-aside { border-left: 1px solid var(--line-soft); padding-left: 1.8rem; }
.spec { display: grid; gap: 0.9rem; margin: 0; }
.spec > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-soft); padding-bottom: 0.7rem; }
.spec dt { color: var(--mauve); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; }
.spec dd { margin: 0; color: var(--bone); text-align: right; }
.aside-block { margin-top: 1.6rem; }
.aside-block .eyebrow { margin-bottom: 0.7rem; }

@media (max-width: 860px) {
    .directory-grid { grid-template-columns: repeat(2, 1fr); }
    .filters__row { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 1.6rem; }
}
@media (max-width: 560px) {
    .directory-grid { grid-template-columns: 1fr; }
    .filters__row { grid-template-columns: 1fr; }
    .profile-head { flex-direction: column; }
    .cta-note { text-align: left; }
}

/* --- Gallery inputs (provider editor) ------------------------------------ */
.gallery-inputs { display: grid; gap: 0.7rem; margin-top: 0.5rem; }
.gallery-row { display: flex; align-items: center; gap: 0.9rem; }
.gallery-row .input { flex: 1; }
.gallery-row .check { flex: none; }

/* --- Provider images (public) -------------------------------------------- */
.pcard__media {
    aspect-ratio: 3 / 2;
    background: var(--ink-3) center/cover no-repeat;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__monogram { font-family: var(--serif); font-size: 2.2rem; color: var(--brass); opacity: 0.7; }

.profile-hero-img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin-bottom: 1.6rem;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.7rem;
    margin-top: 1.4rem;
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-soft); }

/* --- Admin tables -------------------------------------------------------- */
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td { padding: 0.7rem 0.8rem; text-align: left; vertical-align: top; }
.admin-table thead th {
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass);
    border-bottom: 1px solid var(--line);
    font-weight: 500;
    white-space: nowrap;
}
.admin-table tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.admin-table td { color: var(--bone); font-size: 0.92rem; }
.mono { font-family: ui-monospace, "Cascadia Code", "Consolas", monospace; font-size: 0.8rem; color: var(--mauve); word-break: break-all; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.admin-actions form { display: inline-flex; gap: 0.4rem; align-items: center; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.7rem; }
.input--sm { font-size: 0.85rem; padding: 0.4rem 0.6rem; max-width: 160px; }

/* --- Utility ------------------------------------------------------------- */
.muted { color: var(--mauve); }
.center { text-align: center; }

:focus-visible { outline: 2px solid var(--brass-lit); outline-offset: 3px; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 820px) {
    .grid--3 { grid-template-columns: 1fr; }
    .nav { gap: 1rem; }
    .nav a.nav__hide { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
