/* _content/SuttonTech.RitualEngine.Web/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-d8w6jsejag] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-d8w6jsejag] {
    flex: 1;
}

.sidebar[b-d8w6jsejag] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-d8w6jsejag] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-d8w6jsejag]  a, .top-row[b-d8w6jsejag]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-d8w6jsejag]  a:hover, .top-row[b-d8w6jsejag]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-d8w6jsejag]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-d8w6jsejag] {
        justify-content: space-between;
    }

    .top-row[b-d8w6jsejag]  a, .top-row[b-d8w6jsejag]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-d8w6jsejag] {
        flex-direction: row;
    }

    .sidebar[b-d8w6jsejag] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-d8w6jsejag] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-d8w6jsejag]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-d8w6jsejag], article[b-d8w6jsejag] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-d8w6jsejag] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-d8w6jsejag] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/SuttonTech.RitualEngine.Web/Components/Pages/Readings/Detail.razor.rz.scp.css */
/* -----------------------------------------------------------
   History Page — Ritual Engine Alignment
   Timeline • Calm Rhythm • Theme-Aware
----------------------------------------------------------- */

/* Page Container */
.history-container[b-hpfk2guwie] {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--re-space-6) var(--re-space-4);
}

/* Individual History Entry */
.history-entry[b-hpfk2guwie] {
    background: var(--re-surface);
    border: 1px solid var(--re-border);
    border-radius: 8px;
    padding: var(--re-space-5);
    margin-bottom: var(--re-space-5);
    box-shadow: var(--re-shadow-soft);
}

/* Entry Header */
.history-entry-header[b-hpfk2guwie] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--re-space-3);
}

/* Reading Title */
.history-title[b-hpfk2guwie] {
    font-family: var(--re-font-serif);
    font-size: var(--re-font-size-lg);
    font-weight: 600;
    color: var(--re-accent);
    line-height: 1.2;
}

/* Reading Date */
.history-date[b-hpfk2guwie] {
    font-size: var(--re-font-size-sm);
    color: var(--re-muted);
    white-space: nowrap;
}

/* Card Preview Row */
.history-cards[b-hpfk2guwie] {
    display: flex;
    gap: var(--re-space-3);
    margin-top: var(--re-space-4);
    flex-wrap: wrap;
}

/* Card Preview Image */
.history-card-image[b-hpfk2guwie] {
    max-width: 80px;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--re-shadow-soft);
}

/* Empty State */
.history-empty[b-hpfk2guwie] {
    text-align: center;
    padding: var(--re-space-8);
    color: var(--re-muted);
    font-style: italic;
}
/* _content/SuttonTech.RitualEngine.Web/Components/Pages/Readings/History.razor.rz.scp.css */
/* -----------------------------------------------------------
   History Page — Ritual Engine Alignment
   Timeline • Calm Rhythm • Theme-Aware
----------------------------------------------------------- */

/* Page Container */
.history-container[b-z0a1o2h196] {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--re-space-6) var(--re-space-4);
}

/* Individual History Entry */
.history-entry[b-z0a1o2h196] {
    background: var(--re-surface);
    border: 1px solid var(--re-border);
    border-radius: 8px;
    padding: var(--re-space-5);
    margin-bottom: var(--re-space-5);
    box-shadow: var(--re-shadow-soft);
}

/* Entry Header */
.history-entry-header[b-z0a1o2h196] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--re-space-3);
}

/* Reading Title */
.history-title[b-z0a1o2h196] {
    font-family: var(--re-font-serif);
    font-size: var(--re-font-size-lg);
    font-weight: 600;
    color: var(--re-accent);
    line-height: 1.2;
}

/* Reading Date */
.history-date[b-z0a1o2h196] {
    font-size: var(--re-font-size-sm);
    color: var(--re-muted);
    white-space: nowrap;
}

/* Card Preview Row */
.history-cards[b-z0a1o2h196] {
    display: flex;
    gap: var(--re-space-3);
    margin-top: var(--re-space-4);
    flex-wrap: wrap;
}

/* Card Preview Image */
.history-card-image[b-z0a1o2h196] {
    max-width: 80px;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--re-shadow-soft);
}

/* Empty State */
.history-empty[b-z0a1o2h196] {
    text-align: center;
    padding: var(--re-space-8);
    color: var(--re-muted);
    font-style: italic;
}
/* _content/SuttonTech.RitualEngine.Web/Components/Pages/Readings/Reading.razor.rz.scp.css */
/* -----------------------------------------------------------
   Reading Page — Ritual Engine Alignment
   Stable Layout • Vertical Rhythm • Theme-Aware
----------------------------------------------------------- */

/* Page Root */
.re-reading-page[b-wctwdzqbya] {
    display: flex;
    flex-direction: column;
    gap: var(--re-space-5);
}

/* Narrative / Interpretation Block */
.reading-narrative[b-wctwdzqbya] {
    margin-top: var(--re-space-6);
    padding: var(--re-space-5);
    background: var(--re-bg-alt);
    border-left: 4px solid var(--re-accent);
    font-style: italic;
    color: var(--re-ink);
    line-height: 1.7;
    border-radius: 4px;
    /* Preserve paragraph breaks between revealed cards */
    white-space: pre-line;
}

/* Spread Layout — Ritual Table */
.spread-layout[b-wctwdzqbya] {
    display: flex;
    justify-content: center;
    gap: var(--re-space-6);
    margin: var(--re-space-8) 0;
    flex-wrap: wrap;
}

/* Individual Card Container */
.spread-card[b-wctwdzqbya] {
    width: 180px;
    padding: var(--re-space-4);
    border-radius: 8px;
    background: var(--re-surface);
    border: 1px solid var(--re-border);
    text-align: center;
    box-shadow: var(--re-shadow-soft);
}

/* Card Face — Never Stretch */
.card-face[b-wctwdzqbya] {
    display: flex;
    flex-direction: column;
    gap: var(--re-space-2);
    padding: var(--re-space-3);
    border-radius: 10px;
    background: transparent;
}

/* Position Label */
.spread-position[b-wctwdzqbya] {
    font-size: var(--re-font-size-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--re-muted);
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
}

/* Image Container — Aspect Ratio Safe */
.card-image-container[b-wctwdzqbya] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
}

/* Card Image — Absolute Safety */
.card-image[b-wctwdzqbya] {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: var(--re-shadow-soft);
    transform-origin: 50% 50%;
}

    /* Reversed Cards */
    .card-image.reversed[b-wctwdzqbya] {
        transform: rotate(180deg);
    }

/* Card Back */
.card-back[b-wctwdzqbya] {
    filter: brightness(0.9) sepia(0.15);
}

/* Card Name */
.spread-card-name[b-wctwdzqbya] {
    font-size: var(--re-font-size-sm);
    font-weight: 600;
    color: var(--re-accent);
    line-height: 1.2;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
}

    /* Placeholder Name */
    .spread-card-name.placeholder[b-wctwdzqbya] {
        background: transparent;
        color: transparent;
    }

/* Interpreted State */
.card-face.interpreted[b-wctwdzqbya] {
    opacity: 0.92;
    box-shadow: inset 0 0 0 2px var(--re-border-strong);
}

/* Reveal Button Container */
.re-reveal[b-wctwdzqbya] {
    display: flex;
    justify-content: center;
    margin-top: var(--re-space-4);
}
.reading-question[b-wctwdzqbya] {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--re-text-secondary);
}
.upgrade-offer[b-wctwdzqbya] {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: var(--re-panel-bg);
    border: 1px solid var(--re-border);
}
