/* =========================================================
   Fueghini — base styles
   ========================================================= */

:root {
    --gold: #c9a86a;
    --gold-bright: #e6c98a;
    --gold-deep: #8a6f3a;
    --ink: #000;  /* pure black — matches the logo's backdrop and the background art's edges */
    --banner-height-mobile: 80px;
    --banner-height-desktop: 110px;

    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left:   env(safe-area-inset-left, 0px);
    --safe-right:  env(safe-area-inset-right, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--ink);
}

body {
    font-family: 'Cinzel', 'Trajan Pro', serif;
    color: var(--gold-bright);
    min-height: 100vh;
    /* Transparent so the fixed wallpaper pseudo below shows through. */
    background: transparent;
    /* Content starts below the always-visible fixed banner. */
    padding-top: calc(var(--banner-height-mobile) + var(--safe-top));
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Viewport-pinned background art, starting beneath the banner. A real
   position:fixed element instead of background-attachment:fixed, which
   janks on iOS Safari — see _shared/docs/FRONTEND_PATTERNS.md. */
body::before {
    content: "";
    position: fixed;
    top: calc(var(--banner-height-mobile) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--ink);
    background-image: url("../images/fueghini-background.f8112fb46b51.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    body         { padding-top: calc(var(--banner-height-desktop) + var(--safe-top)); }
    body::before { top:         calc(var(--banner-height-desktop) + var(--safe-top)); }
}

/* =========================================================
   Banner — fixed at the top, always visible
   ========================================================= */

.banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-top: var(--safe-top);  /* clears iOS notch / Dynamic Island */
    /* Opaque black so the logo's black backdrop disappears into it. */
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.banner-inner {
    position: relative;
    height: var(--banner-height-mobile);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 76px;  /* side room so the centered logo never runs under the hamburger */
}

@media (min-width: 768px) {
    .banner-inner {
        height: var(--banner-height-desktop);
        padding: 8px 100px;
    }
}

.banner-image-wrap {
    height: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}
/* =========================================================
   Hamburger button
   ========================================================= */

.hamburger {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(201, 168, 106, 0.5);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hamburger:hover {
    border-color: var(--gold-bright);
    background: rgba(201, 168, 106, 0.08);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
}

.hamburger:hover span {
    background: var(--gold-bright);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .hamburger {
        right: 28px;
        width: 50px;
        height: 50px;
    }
    .hamburger span {
        width: 26px;
    }
}

/* =========================================================
   Menu drawer
   ========================================================= */

.menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background: linear-gradient(180deg, rgba(10, 7, 5, 0.96) 0%, rgba(10, 7, 5, 0.92) 100%);
    border-left: 1px solid rgba(201, 168, 106, 0.35);
    border-bottom: 1px solid rgba(201, 168, 106, 0.35);
    border-bottom-left-radius: 4px;
    box-shadow: -4px 8px 22px rgba(0, 0, 0, 0.5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.menu ul {
    list-style: none;
    padding: 8px 0;
}

.menu li + li {
    border-top: 1px solid rgba(201, 168, 106, 0.18);
}

.menu-link {
    display: block;
    padding: 16px 24px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

.menu-link:hover,
.menu-link:focus {
    color: var(--gold-bright);
    background: rgba(201, 168, 106, 0.08);
    outline: none;
}

/* =========================================================
   Page content (rendered over the background art)
   ========================================================= */

.content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 32px 16px 80px;
}

/* Fueghini's profile + portfolio on the homepage, on a dark card (same scrim
   and edge as the slide-out panels) so it stays legible over the art. */
.artist-home {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 56px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .artist-home {
        padding: 56px 48px 64px;
    }
}

/* =========================================================
   Slide-out panels (Aftercare, future About/Schedule)
   ========================================================= */

body.panel-open {
    overflow: hidden;
}

.panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 80;
}

.panel-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.panel {
    position: fixed;
    top: calc(var(--banner-height-mobile) + var(--safe-top));
    right: 0;
    bottom: 0;
    width: 100vw;
    background-color: var(--ink);
    /* Dark scrim over the art so the panel reads as its own surface (and its
       text stays legible) rather than blending into the page behind it. */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/fueghini-background.f8112fb46b51.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 90;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -14px 0 32px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
    .panel {
        top: calc(var(--banner-height-desktop) + var(--safe-top));
        width: min(620px, 90vw);
    }
}

.panel.open {
    transform: translateX(0);
}

.panel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 106, 0.5);
    background: rgba(10, 7, 5, 0.8);
    color: var(--gold-bright);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.panel-close:hover,
.panel-close:focus {
    border-color: var(--gold-bright);
    background: rgba(201, 168, 106, 0.12);
    color: var(--gold-bright);
    outline: none;
}

.panel-content {
    padding: 56px 24px 80px;
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .panel-content {
        padding: 64px 40px 100px;
    }
}

.panel-title {
    font-size: clamp(1.7rem, 4.5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-align: center;
    color: var(--gold-bright);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 36px;
    text-transform: uppercase;
}

/* =========================================================
   Artist detail
   ========================================================= */

.artist-detail {
    text-align: center;
    color: var(--gold-bright);
}

.artist-detail-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201, 168, 106, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    background: var(--ink);
}

.artist-detail-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.artist-detail-name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.artist-detail-city {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.artist-detail-specialties {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.9;
}

.artist-detail-bio {
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: 0.04em;
    color: var(--gold-bright);
    max-width: 440px;
    margin: 0 auto 32px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.artist-detail-payments {
    margin-top: 28px;
}

.artist-detail-payments-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.85;
}

.payment-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

.payment-list img {
    height: 32px;
    width: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.artist-detail-bio--placeholder {
    font-style: italic;
    opacity: 0.7;
}

/* =========================================================
   Instagram link (artist detail)
   ========================================================= */

.artist-detail-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 28px;
    padding: 8px 16px;
    border: 1px solid rgba(201, 168, 106, 0.4);
    border-radius: 999px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: lowercase;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.artist-detail-instagram:hover,
.artist-detail-instagram:focus {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    background: rgba(201, 168, 106, 0.08);
    outline: none;
}

.ig-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* =========================================================
   Portfolio gallery (artist detail)
   ========================================================= */

.artist-portfolio {
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 168, 106, 0.2);
}

.artist-portfolio-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
    opacity: 0.9;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 560px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.portfolio-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0;
    border: 1px solid rgba(201, 168, 106, 0.25);
    border-radius: 8px;
    background: var(--ink);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.portfolio-item:hover,
.portfolio-item:focus {
    border-color: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    outline: none;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.04);
}

.portfolio-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: var(--gold-bright);
    pointer-events: none;
    transition: background 0.2s ease;
}

.portfolio-item--video:hover .portfolio-play {
    background: rgba(0, 0, 0, 0.4);
}

.portfolio-play svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

/* =========================================================
   Lightbox (full-size image / video viewer)
   ========================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 200;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-inner {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-inner img,
.lightbox-inner video {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 106, 0.5);
    background: rgba(10, 7, 5, 0.8);
    color: var(--gold-bright);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    border-color: var(--gold-bright);
    background: rgba(201, 168, 106, 0.12);
    outline: none;
}

/* =========================================================
   Aftercare panel content
   Long-form healing/care document, scoped to the slide-out
   panel so the dark/gold theme matches the rest of the site.
   ========================================================= */

.aftercare-tagline {
    text-align: center;
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    margin-top: -22px;
    margin-bottom: 28px;
    opacity: 0.85;
}

.aftercare-intro {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gold-bright);
    background: rgba(14, 14, 18, 0.6);
    border-left: 2px solid var(--gold);
    padding: 14px 16px;
    border-radius: 2px;
    margin-bottom: 32px;
    text-align: center;
}

/* Editable intro (text before the first heading): an all-italic paragraph reads
   as the tagline; other paragraphs get the boxed intro look. */
.aftercare-lead > p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gold-bright);
    background: rgba(14, 14, 18, 0.6);
    border-left: 2px solid var(--gold);
    padding: 14px 16px;
    border-radius: 2px;
    margin-bottom: 20px;
    text-align: center;
}

.aftercare-lead > p:has(> em:only-child) {
    background: none;
    border: 0;
    padding: 0;
    margin: -22px 0 28px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.aftercare-lead { margin-bottom: 12px; }

.aftercare-section {
    margin-bottom: 22px;
    background: rgba(14, 14, 18, 0.55);
    padding: 18px 20px;
    border-radius: 3px;
    border: 1px solid rgba(201, 168, 106, 0.18);
}

.aftercare-section h3 {
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201, 168, 106, 0.3);
}

.aftercare-section h3 .aftercare-aside {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--gold);
    font-style: italic;
    margin-left: 6px;
}

.aftercare-section h4 {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-top: 16px;
    margin-bottom: 8px;
}

.aftercare-section h4:first-of-type {
    margin-top: 2px;
}

.aftercare-section p {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(230, 201, 138, 0.92);
    margin-bottom: 10px;
}

.aftercare-section p:last-child {
    margin-bottom: 0;
}

.aftercare-section p strong {
    color: var(--gold-bright);
    font-weight: 700;
}

.aftercare-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(230, 201, 138, 0.9);
}

.aftercare-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
}

.aftercare-list li::before {
    content: '\2022';
    color: var(--gold);
    position: absolute;
    left: 6px;
    top: -1px;
    font-size: 1.05rem;
    line-height: 1.55;
}

.aftercare-list--dont li::before {
    content: '\2715';
    color: #d57979;
    font-size: 0.8rem;
    top: 2px;
    font-weight: 700;
}

.aftercare-list--check li::before {
    content: '';
}

.aftercare-list--check li.ok::before {
    content: '\2714';
    color: #88c79b;
    font-size: 0.95rem;
    top: 1px;
    font-weight: 700;
}

.aftercare-list--check li.bad::before {
    content: '\2715';
    color: #d57979;
    font-size: 0.9rem;
    top: 2px;
    font-weight: 700;
}

.aftercare-callout {
    background: rgba(168, 58, 58, 0.14);
    border-left: 3px solid #c8746f;
    padding: 12px 14px;
    margin: 14px 0;
    border-radius: 2px;
}

.aftercare-callout p {
    margin: 0;
    color: #f1d3a2;
}

.aftercare-callout strong {
    color: #f5b08a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    margin-right: 2px;
}

.aftercare-section--alert {
    border-color: rgba(200, 116, 111, 0.4);
    background: rgba(50, 14, 14, 0.5);
}

.aftercare-section--alert h3 {
    color: #f5b08a;
    border-bottom-color: rgba(200, 116, 111, 0.4);
}

.aftercare-timeline {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 16px;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    margin: 10px 0 0;
}

.aftercare-timeline dt {
    font-family: 'Cinzel', serif;
    color: var(--gold-bright);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.82rem;
    padding-top: 1px;
    white-space: nowrap;
}

.aftercare-timeline dd {
    color: rgba(230, 201, 138, 0.9);
    margin: 0;
    line-height: 1.5;
}

.aftercare-footer {
    text-align: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(201, 168, 106, 0.25);
    font-family: 'Cinzel', serif;
}

.aftercare-footer > p {
    color: var(--gold);
    margin-bottom: 4px;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
}

.aftercare-brand {
    color: var(--gold-bright);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 10px 0 8px;
}

.aftercare-motto {
    font-style: italic;
    opacity: 0.75;
    font-size: 0.85rem;
}

/* =========================================================
   Booking + artist dashboard pages
   ========================================================= */

.page-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 22px 48px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.6);
    color: var(--gold-bright);
    font-family: 'Georgia', serif;
}

@media (min-width: 768px) {
    .page-card { padding: 48px 44px 56px; }
}

.page-card--wide { max-width: 860px; }
.page-card--narrow { max-width: 440px; }
.page-card--center { text-align: center; }

.page-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 14px;
}

.page-title--left { text-align: left; margin-bottom: 8px; }

.page-lede {
    text-align: center;
    color: var(--gold);
    line-height: 1.6;
    margin-bottom: 28px;
}

.page-lede--left { text-align: left; }
.page-kicker { font-size: 0.9rem; margin-bottom: 14px; }

.page-card a { color: var(--gold-bright); }

.slot-summary {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.slot-summary span { color: var(--gold); font-size: 0.9rem; }
.slot-summary--left { text-align: left; }

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 34px 0 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(201, 168, 106, 0.2);
}

.empty-note { color: var(--gold); font-style: italic; text-align: center; }

/* Public schedule */
.slot-day { margin-bottom: 24px; }

.slot-day-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    color: var(--gold-bright);
}

.slot-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.slot-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 8px;
    border: 1px solid rgba(201, 168, 106, 0.55);
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.slot-button:hover, .slot-button:focus { background: rgba(201, 168, 106, 0.12); border-color: var(--gold-bright); }
.slot-length { font-family: 'Georgia', serif; font-size: 0.78rem; color: var(--gold); letter-spacing: 0; }

/* Forms */
.booking-form { display: flex; flex-direction: column; gap: 4px; }

.form-group { border: 0; margin: 0 0 10px; padding: 0; }

.form-group legend {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }

.field label, .field-label { font-size: 0.95rem; color: var(--gold-bright); }

.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="password"], .field input[type="date"], .field input[type="time"],
.field input[type="number"], .field select, .field textarea {
    width: 100%;
    padding: 12px 12px;
    font-size: 16px; /* 16px stops iOS Safari zooming into the field */
    font-family: inherit;
    color: #f3ead6;
    background: rgba(20, 18, 16, 0.92);
    border: 1px solid rgba(201, 168, 106, 0.4);
    border-radius: 4px;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 2px rgba(230, 201, 138, 0.25);
}

/* iOS Safari autofill paints inputs yellow — FRONTEND_PATTERNS.md. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:active,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill,
.field input:autofill,
.field textarea:autofill,
.field select:autofill {
    -webkit-box-shadow: 0 0 0 1000px #141210 inset;
            box-shadow: 0 0 0 1000px #141210 inset;
    -webkit-text-fill-color: #f3ead6;
    caret-color: #f3ead6;
    transition: background-color 5000s ease-in-out 0s;
}

/* iOS date/time inputs overflow their container — FRONTEND_PATTERNS.md. */
.field input[type="date"], .field input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    max-width: 100%;
}

.field--error input, .field--error textarea, .field--error select { border-color: #e07a6b; }
.field-error { color: #f0a597; font-size: 0.88rem; }
.field-help { color: var(--gold); font-size: 0.85rem; font-style: italic; }

.choice-row { display: flex; gap: 22px; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--gold); }
.consent-choice { align-items: flex-start; margin: 4px 0 22px; font-size: 0.92rem; line-height: 1.45; }
.consent-choice input { flex: none; margin-top: 2px; }

.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.file-button {
    align-self: flex-start;
    padding: 10px 18px;
    border: 1px dashed rgba(201, 168, 106, 0.6);
    border-radius: 4px;
    cursor: pointer;
}

.file-button:hover { background: rgba(201, 168, 106, 0.1); }
.file-name { font-size: 0.9rem; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin: 6px 0 16px; }

.form-errors {
    border: 1px solid #c4553f;
    background: rgba(90, 20, 12, 0.55);
    color: #ffd2c8;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 22px;
    line-height: 1.5;
}

.form-errors-heading { font-weight: bold; margin-bottom: 6px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold-bright);
    background: transparent;
    border: 1px solid rgba(201, 168, 106, 0.7);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover { background: rgba(201, 168, 106, 0.12); }
.btn--primary { background: #8a6f3a; border-color: #8a6f3a; color: #fff6e4; }
.btn--primary:hover { background: #9c8045; }
.btn--danger { border-color: #c4553f; color: #f0a597; }
.btn--danger:hover { background: rgba(196, 85, 63, 0.15); }
.btn--block { width: 100%; margin-top: 8px; }

.link-button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--gold-bright);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.inline-form { display: inline; }

/* Flash messages */
.flash-list { margin-bottom: 18px; }
.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 8px; border: 1px solid rgba(201, 168, 106, 0.4); background: rgba(201, 168, 106, 0.1); }
.flash--success { border-color: #5e9b63; background: rgba(60, 120, 70, 0.25); }
.flash--error { border-color: #c4553f; background: rgba(90, 20, 12, 0.5); color: #ffd2c8; }

/* Dashboard */
.portal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(201, 168, 106, 0.2);
    font-size: 0.95rem;
}

.portal-nav a { text-decoration: none; }
.portal-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.portal-nav .inline-form { margin-left: auto; }

.req-list, .event-list, .msg-list, .history-list { list-style: none; }

.req-row a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.req-row a:hover { background: rgba(201, 168, 106, 0.06); }
.req-when { font-family: 'Cinzel', serif; letter-spacing: 0.05em; }
.req-who { grid-column: 1; font-weight: bold; }
.req-what { grid-column: 1; color: var(--gold); font-size: 0.9rem; }
.req-row .badge { grid-column: 2; grid-row: 1 / span 3; align-self: center; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    border: 1px solid rgba(201, 168, 106, 0.5);
    white-space: nowrap;
}

.badge--requested, .badge--held { border-color: #d8b25a; color: #f2d58e; background: rgba(216, 178, 90, 0.12); }
.badge--confirmed, .badge--booked { border-color: #5e9b63; color: #a9dbaa; background: rgba(60, 120, 70, 0.2); }
.badge--declined, .badge--cancelled, .badge--blocked, .badge--dismissed { border-color: #8a7f74; color: #c7bdb2; }
.badge--consultation { border-color: #6f8fc4; color: #bcd0f2; background: rgba(80, 110, 170, 0.2); }
.badge--appointment { border-color: #5e9b63; color: #a9dbaa; background: rgba(60, 120, 70, 0.2); }
.badge--open { border-color: rgba(201, 168, 106, 0.5); color: var(--gold-bright); }

.detail-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.action-row { display: flex; gap: 12px; margin: 18px 0 8px; }

.detail-list { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin-top: 20px; }
.detail-list dt { color: var(--gold); }
.pre { white-space: pre-wrap; }

@media (max-width: 520px) {
    .detail-list { grid-template-columns: 1fr; gap: 2px; }
    .detail-list dd { margin-bottom: 10px; }
}

.ref-image img { max-width: 100%; max-height: 420px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.15); }

.msg { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.msg-meta { color: var(--gold); font-size: 0.85rem; margin-bottom: 4px; }
.msg--failed .msg-meta strong { color: #f0a597; }
.history-list li { color: var(--gold); font-size: 0.9rem; padding: 3px 0; }

.feed-box { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(201, 168, 106, 0.2); font-size: 0.92rem; line-height: 1.5; }
.feed-box summary { cursor: pointer; color: var(--gold-bright); }
.feed-url { word-break: break-all; font-family: monospace; font-size: 0.85rem; margin-top: 8px; color: #f3ead6; }

.reminder-kind { margin: 22px 0 10px; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--gold-bright); }

/* Hours + minutes side by side (Settings → Reminders). */
.reminder-row { border-bottom: 1px solid rgba(201, 168, 106, 0.18); }
.reminder-row > summary {
    list-style: none; cursor: pointer; display: grid; align-items: center; gap: 4px 16px;
    grid-template-columns: 9.5em 1fr auto; padding: 12px 0;
}
.reminder-row > summary::-webkit-details-marker { display: none; }
.reminder-row-label { color: var(--gold); }
.reminder-row-state { color: #f3ead6; }
.reminder-row-edit { min-width: 5.2em; text-align: center; }
.reminder-row-edit::before { content: 'Edit'; }
.reminder-row[open] .reminder-row-edit::before { content: 'Close'; }
.reminder-row-edit--show::before { content: 'Show'; }
.reminder-row[open] .reminder-row-edit--show::before { content: 'Hide'; }
.reminder-row-form { padding: 6px 0 20px; }
.reminder-row .event-list { margin-bottom: 18px; }
@media (max-width: 520px) {
    .reminder-row > summary { grid-template-columns: 1fr auto; }
    .reminder-row-state { grid-column: 1; grid-row: 2; }
    .reminder-row-edit { grid-column: 2; grid-row: 1 / span 2; }
}
.hm-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hm-row label { color: #f3ead6; font-size: 0.95rem; }
.field .hm-row input[type="number"] { width: 5.5em; }
.field .hm-row select { width: auto; min-width: 4.5em; }

.slot-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }


/* =========================================================
   Artist dashboard: gallery + site text editing
   ========================================================= */

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.btn--small { padding: 8px 14px; font-size: 0.8rem; }
.link-button--danger { color: #f0a597; }
.page-lede--tight { margin-bottom: 8px; }

.icon-button {
    width: 36px; height: 36px;
    background: transparent;
    border: 1px solid rgba(201, 168, 106, 0.5);
    border-radius: 4px;
    color: var(--gold-bright);
    font-size: 1.05rem;
    cursor: pointer;
}

.icon-button:disabled { opacity: 0.3; cursor: default; }
.icon-button:not(:disabled):hover { background: rgba(201, 168, 106, 0.12); }

.upload-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }

.profile-manage { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.profile-manage-photo { margin: 0; }
.profile-manage-actions { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 220px; }

.gallery-admin { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.gallery-admin-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(20, 18, 16, 0.6);
}

.gallery-admin-item--hidden .gallery-admin-thumb img { opacity: 0.35; }
.gallery-admin-thumb { position: relative; }
.gallery-admin-thumb img { width: 110px; height: 110px; object-fit: cover; border-radius: 3px; display: block; }

.gallery-admin-tag {
    position: absolute; left: 6px; bottom: 6px;
    padding: 2px 8px; border-radius: 999px;
    font-size: 0.72rem; background: rgba(0, 0, 0, 0.75); color: var(--gold-bright);
}

.gallery-admin-tag--hidden { bottom: auto; top: 6px; }

.gallery-admin-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.describe-row { display: flex; gap: 8px; }

.describe-row input {
    flex: 1; min-width: 0;
    padding: 9px 10px;
    font-size: 16px;
    font-family: inherit;
    color: #f3ead6;
    background: rgba(10, 9, 8, 0.9);
    border: 1px solid rgba(201, 168, 106, 0.35);
    border-radius: 4px;
}

.gallery-admin-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.gallery-admin-actions .inline-form { display: inline-flex; gap: 10px; align-items: center; }

@media (max-width: 520px) {
    .gallery-admin-item { grid-template-columns: 80px 1fr; }
    .gallery-admin-thumb img { width: 80px; height: 80px; }
}

/* Rich text shown on the site (About page, bio). */
.rich-text, .artist-detail-bio { line-height: 1.7; }
.rich-text p, .artist-detail-bio p { margin-bottom: 14px; }
.rich-text h2 { font-family: 'Cinzel', serif; font-size: 1.15rem; letter-spacing: 0.12em; margin: 26px 0 10px; }
.rich-text h3 { font-family: 'Cinzel', serif; font-size: 1rem; letter-spacing: 0.08em; margin: 20px 0 8px; color: var(--gold); }
.rich-text ul, .rich-text ol { margin: 0 0 14px 22px; }
.rich-text blockquote { border-left: 2px solid var(--gold); padding: 8px 14px; margin: 0 0 14px; background: rgba(201, 168, 106, 0.08); }

/* Quill editor, re-themed dark to match the site. */
.editor-wrap { margin: 16px 0 6px; }
.editor-wrap .ql-toolbar.ql-snow {
    background: #1c1916;
    border: 1px solid rgba(201, 168, 106, 0.4);
    border-radius: 4px 4px 0 0;
}
.editor-wrap .ql-container.ql-snow {
    background: #110f0d;
    border: 1px solid rgba(201, 168, 106, 0.4);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    color: #f3ead6;
    font-family: Georgia, serif;
    font-size: 16px;
}
.editor-wrap .ql-editor { min-height: 320px; line-height: 1.65; }
.editor-wrap .ql-editor.ql-blank::before { color: rgba(243, 234, 214, 0.45); font-style: italic; }
.editor-wrap .ql-editor h2 { font-family: 'Cinzel', serif; letter-spacing: 0.08em; }
.editor-wrap .ql-editor h3 { font-family: 'Cinzel', serif; color: var(--gold); }
.editor-wrap .ql-snow .ql-stroke { stroke: #e6c98a; }
.editor-wrap .ql-snow .ql-fill { fill: #e6c98a; }
.editor-wrap .ql-snow .ql-picker { color: #e6c98a; }
.editor-wrap .ql-snow .ql-picker-options { background: #1c1916; border-color: rgba(201, 168, 106, 0.4); }
.editor-wrap .ql-snow button:hover .ql-stroke, .editor-wrap .ql-snow .ql-active .ql-stroke { stroke: #fff6e4; }
.editor-wrap .ql-snow .ql-tooltip { background: #1c1916; color: #f3ead6; border-color: rgba(201, 168, 106, 0.4); box-shadow: none; }
.editor-wrap .ql-snow .ql-tooltip input[type=text] { background: #110f0d; color: #f3ead6; border-color: rgba(201, 168, 106, 0.4); }
.reset-form { margin-top: 18px; font-size: 0.9rem; }

.settings-password { max-width: 440px; }

/* Sign-in history */
.signin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.signin-table th { text-align: left; color: var(--gold); font-weight: normal; padding: 6px 8px; border-bottom: 1px solid rgba(201, 168, 106, 0.3); }
.signin-table td { padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; }
.signin-table .mono { font-family: monospace; font-size: 0.85rem; word-break: break-all; }
.signin-locked td { color: #f0a597; }
.signin-more, .signin-export, .pager { margin-top: 12px; font-size: 0.92rem; }
.pager { display: flex; gap: 18px; align-items: center; }
@media (max-width: 560px) {
    .signin-table thead { display: none; }
    .signin-table tr { display: block; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .signin-table td { display: block; border: 0; padding: 2px 0; }
}

/* =========================================================
   Artist dashboard: calendar
   ========================================================= */

.nav-count {
    display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 2px;
    border-radius: 999px; background: #8a6f3a; color: #fff6e4;
    font-size: 0.75rem; line-height: 20px; text-align: center; text-decoration: none;
}

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-title { margin: 0; }
.cal-nav { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.5rem; width: 44px; height: 44px; }
.cal-sub { text-align: center; color: var(--gold); font-size: 0.9rem; margin: 10px 0 6px; line-height: 1.6; }
.cal-legend { text-align: center; font-size: 0.82rem; color: var(--gold); margin-bottom: 14px; }
.cal-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 12px; vertical-align: middle; }
.cal-key--consultation, .cal-chip--consultation { background: #4f6ea3; }
.cal-key--appointment, .cal-chip--appointment { background: #4c8a52; }

.cal-grid { border: 1px solid rgba(201, 168, 106, 0.3); border-radius: 4px; overflow: hidden; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-row + .cal-row { border-top: 1px solid rgba(201, 168, 106, 0.15); }
.cal-dow { padding: 6px 0; text-align: center; font-family: 'Cinzel', serif; font-size: 0.78rem; color: var(--gold); background: rgba(201, 168, 106, 0.08); }

.page-card a.cal-day {
    display: flex; flex-direction: column; gap: 3px;
    min-height: 92px; padding: 5px;
    text-decoration: none; color: #f3ead6;
    border-left: 1px solid rgba(201, 168, 106, 0.12);
    min-width: 0;
}
.cal-day:first-child { border-left: 0; }
.cal-day:hover, .cal-day:focus { background: rgba(201, 168, 106, 0.1); }
.cal-day--outside { opacity: 0.4; }
.cal-day--past .cal-num { color: rgba(243, 234, 214, 0.55); }
.cal-num { font-size: 0.85rem; line-height: 1; }
.cal-day--today .cal-num {
    display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
    width: 24px; height: 24px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: #8a6f3a; color: #fff6e4;
}
.cal-chip {
    display: block; padding: 1px 4px; border-radius: 3px;
    font-size: 0.7rem; line-height: 1.3; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-more { font-size: 0.7rem; color: var(--gold); }

/* Phones: entries become coloured bars; names are in the list under the grid. */
@media (max-width: 600px) {
    .page-card a.cal-day { min-height: 58px; padding: 4px 3px; gap: 2px; }
    .cal-chip { height: 5px; padding: 0; }
    .cal-chip-text { display: none; }
    .cal-title { font-size: 1.3rem; letter-spacing: 0.1em; }
}

.event-row a {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
    padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}
.event-row a:hover { background: rgba(201, 168, 106, 0.06); }
.event-when { font-family: 'Cinzel', serif; letter-spacing: 0.04em; }
.event-who { font-weight: bold; }
.event-meta { flex-basis: 100%; color: var(--gold); font-size: 0.88rem; }
.event-row--removed { opacity: 0.5; }

.day-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.day-action summary { list-style: none; display: block; text-align: center; }
.day-action summary::-webkit-details-marker { display: none; }
.day-action-body { padding: 18px 2px 4px; }
.remove-form { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(201, 168, 106, 0.2); }
