/* ============================================
   AVIS SANCTUM - Mystical Sanctuary Theme
   ============================================ */

:root {
    /* Color Palette - Deep mystical purples with warm gold accents */
    --void: #0a0810;
    --deep-purple: #120f1d;
    --twilight: #1a1528;
    --dusk: #251f38;
    --mist: #352d4d;
    
    --gold: #d4a855;
    --gold-light: #e8c878;
    --gold-dim: #9a7a3d;
    
    --silver: #b8b0c8;
    --silver-dim: #786e8f;
    
    --text-primary: #efe8ff;
    --text-secondary: #a89ec4;
    --text-muted: #6b5f85;
    
    --release-color: #c77d7d;
    --becoming-color: #7dc79a;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Quicksand', 'Segoe UI', sans-serif;
    
    /* Effects */
    --glow-gold: 0 0 30px rgba(212, 168, 85, 0.3);
    --glow-soft: 0 0 60px rgba(212, 168, 85, 0.15);
    --border-subtle: 1px solid rgba(212, 168, 85, 0.15);
    --border-glow: 1px solid rgba(212, 168, 85, 0.4);
    
    /* Transitions */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE & RESET
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background: var(--void);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 85, 0.3);
    color: var(--text-primary);
}

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */

.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(90, 60, 120, 0.6) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 85, 0.3) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
    animation-duration: 25s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 80, 140, 0.5) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    animation-duration: 30s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-lg);
}

/* ============================================
   HEADER
   ============================================ */

header {
    text-align: center;
    padding: var(--space-2xl) 0;
    animation: fadeInDown 1s var(--ease-out);
}

.logo-mark {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: var(--space-md);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    text-shadow: var(--glow-soft);
}

.subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   PROTOTYPE NOTICE
   ============================================ */

.prototype-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(212, 168, 85, 0.08);
    border: var(--border-subtle);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
    animation: fadeIn 1s var(--ease-out) 0.3s both;
}

.notice-icon {
    color: var(--gold-dim);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.ritual-flow { animation-delay: 0.2s; }
.rite-form-section { animation-delay: 0.3s; }
.past-rites-section { animation-delay: 0.4s; }

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.section-icon {
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.7;
}

section h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

/* ============================================
   FEELING SELECTOR (Flow Start)
   ============================================ */

.feeling-selector {
    background: var(--twilight);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: var(--space-xl);
    text-align: center;
}

.feeling-selector label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.select-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto var(--space-lg);
}

.feeling-dropdown {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    padding-right: 3rem;
    background: var(--deep-purple);
    border: var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s var(--ease-out);
}

.feeling-dropdown:hover,
.feeling-dropdown:focus {
    border-color: var(--gold-dim);
    outline: none;
    box-shadow: var(--glow-gold);
}

.feeling-dropdown option {
    background: var(--deep-purple);
    color: var(--text-primary);
    padding: var(--space-sm);
}

.select-arrow {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-dim);
    pointer-events: none;
    transition: transform 0.3s var(--ease-out);
}

.feeling-dropdown:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--void);
    box-shadow: var(--glow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 85, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-submit {
    width: 100%;
    padding: var(--space-lg);
    font-size: 1.1rem;
}

/* ============================================
   FLOW CONTAINER
   ============================================ */

#flow-container:empty {
    display: none;
}

.flow-card {
    margin-top: var(--space-xl);
}

.flow-node {
    background: var(--dusk);
    border: var(--border-glow);
    border-radius: 16px;
    padding: var(--space-xl);
    animation: fadeInUp 0.5s var(--ease-out);
}

.flow-prompt {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.flow-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.flow-option-btn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--twilight);
    border: var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.flow-option-btn:hover {
    background: var(--mist);
    border-color: var(--gold-dim);
    transform: translateX(8px);
}

.flow-end-note {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Flow active state - dims other sections */
body.flow-active .rite-form-section,
body.flow-active .past-rites-section,
body.flow-active footer {
    opacity: 0.2;
    pointer-events: none;
    filter: blur(2px);
    transition: all 0.5s var(--ease-out);
}

body.flow-active #flow-container {
    position: relative;
    z-index: 10;
}

/* ============================================
   RITE FORM
   ============================================ */

.rite-form-section {
    background: var(--twilight);
    border: var(--border-subtle);
    border-radius: 20px;
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group > label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.03em;
}

input[type="text"],
textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--deep-purple);
    border: var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s var(--ease-out);
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-dim);
    box-shadow: var(--glow-gold);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.8;
}

/* Rite Type Radio Buttons */
.rite-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.rite-type-selector input[type="radio"] {
    display: none;
}

.rite-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg);
    background: var(--deep-purple);
    border: var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-align: center;
}

.rite-type-option:hover {
    border-color: var(--gold-dim);
    transform: translateY(-2px);
}

.rite-type-selector input[type="radio"]:checked + .rite-type-option {
    border-color: var(--gold);
    background: var(--dusk);
    box-shadow: var(--glow-gold);
}

.rite-type-icon {
    font-size: 1.5rem;
    color: var(--gold);
}

.rite-type-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
}

.rite-type-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Release styling */
#type-release:checked + .rite-type-option .rite-type-icon {
    color: var(--release-color);
}

/* Becoming styling */
#type-becoming:checked + .rite-type-option .rite-type-icon {
    color: var(--becoming-color);
}

/* Consent Section */
.consent-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.consent-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: var(--border-subtle);
    border-radius: 4px;
    background: var(--deep-purple);
    position: relative;
    transition: all 0.3s var(--ease-out);
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--void);
    font-size: 0.75rem;
    font-weight: bold;
}

/* ============================================
   ESSENCE CARD
   ============================================ */

.essence-card-section {
    animation: fadeInUp 0.6s var(--ease-out);
}

.essence-card-section.hidden {
    display: none;
}

.essence-card {
    position: relative;
    background: var(--dusk);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: var(--space-xl);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 168, 85, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.card-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.rite-type-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.rite-type-badge.release {
    background: rgba(199, 125, 125, 0.2);
    color: var(--release-color);
    border: 1px solid var(--release-color);
}

.rite-type-badge.becoming {
    background: rgba(125, 199, 154, 0.2);
    color: var(--becoming-color);
    border: 1px solid var(--becoming-color);
}

.card-header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--gold-light);
}

.card-body .reflection {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-secondary);
    padding: var(--space-md);
    border-left: 2px solid var(--gold-dim);
    margin-bottom: var(--space-lg);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 8px 8px 0;
}

.essence-words {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.essence-word {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--mist), var(--dusk));
    border: 1px solid var(--gold-dim);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--gold-light);
}

.oracle-message {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gold-dim);
}

.oracle-icon {
    display: block;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    animation: pulse 3s ease-in-out infinite;
}

.oracle-message p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1.6;
}

/* ============================================
   PAST RITES
   ============================================ */

.past-rites-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.past-rite-card {
    background: var(--twilight);
    border: var(--border-subtle);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: all 0.3s var(--ease-out);
}

.past-rite-card:hover {
    border-color: var(--gold-dim);
    transform: translateX(8px);
    box-shadow: -8px 0 20px rgba(212, 168, 85, 0.1);
}

.past-rite-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.past-rite-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    flex: 1;
}

.past-rite-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.past-rite-oracle {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.past-rite-essence {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.past-rite-essence .essence-word {
    font-size: 0.75rem;
    padding: 2px var(--space-sm);
}

.loading,
.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: var(--space-xl);
}

.error-message {
    background: rgba(199, 125, 125, 0.2);
    border: 1px solid var(--release-color);
    color: var(--text-primary);
    padding: var(--space-md);
    border-radius: 8px;
    text-align: center;
    margin-top: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    text-align: center;
    padding: var(--space-2xl) 0;
    border-top: var(--border-subtle);
    margin-top: var(--space-2xl);
}

.footer-mark {
    font-size: 1.5rem;
    color: var(--gold-dim);
    margin-bottom: var(--space-sm);
}

footer p {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--space-xs);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .container {
        padding: var(--space-md);
    }

    header h1 {
        letter-spacing: 0.15em;
    }

    .rite-type-selector {
        grid-template-columns: 1fr;
    }

    .past-rite-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-prompt {
        font-size: 1.2rem;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-purple);
}

::-webkit-scrollbar-thumb {
    background: var(--mist);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dim);
}

/* ============================================
   LOCAL PAGE ONLY
   Everything below is scoped under .local-page,
   a class that exists ONLY on static/local.html.
   The original app pages (index.html) carry no
   such class, so their look is unchanged.
   ============================================ */

/* --- Readability: brighten the faint text tiers ---
   Redefining these custom properties on the local page's
   body raises the contrast of every element that uses them
   (dates, taglines, helper text, reflections, oracle, etc.)
   in one place, local page only. */
.local-page {
    --text-secondary: #cfc6e6;   /* was #a89ec4 — brighter lavender */
    --text-muted: #b6adcf;       /* was #6b5f85 — large contrast lift */
    --silver-dim: #9a91b2;       /* was #786e8f */
}

/* --- Readability: bump up the small font sizes --- */
.local-page .tagline {
    font-size: 1rem;
}

.local-page .subtitle {
    font-size: 1.2rem;
}

.local-page .consent-note {
    font-size: 0.95rem;
}

.local-page .checkbox-label {
    font-size: 1rem;
}

/* Helper text rendered under flow prompts on the local page. */
.local-page .flow-help {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.local-page .loading,
.local-page .empty-state {
    font-size: 1.05rem;
}

/* The post-save essence card and the reflection text: comfortably readable. */
.local-page .card-body .reflection {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.local-page .past-rite-title {
    font-size: 1.2rem;
}

.local-page .past-rite-date {
    font-size: 0.95rem;
}

.local-page .past-rite-oracle {
    font-size: 1.05rem;
    line-height: 1.6;
}

.local-page .past-rite-essence .essence-word {
    font-size: 0.85rem;
}

.local-page .rite-type-badge {
    font-size: 0.8rem;
}

/* ============================================
   RECALL DETAIL VIEW — COOL BLUE THEME
   Visually distinct from the gold/purple essence
   card shown right after saving, so revisiting an
   old entry feels different from writing a new one.
   Same rounded shape and spacing as the gold card.
   ============================================ */

#local-rite-detail-section {
    --recall-blue: #5b8fc7;
    --recall-blue-light: #a9cdf2;
    --recall-blue-dim: #3f6491;
}

/* Back button: cool blue rather than the gold primary button. */
#local-rite-detail-section .btn#local-detail-back {
    background: linear-gradient(135deg, #1c3357, #16243f);
    border: 1px solid var(--recall-blue);
    color: var(--recall-blue-light);
    margin-bottom: var(--space-lg);
    box-shadow: 0 0 20px rgba(91, 143, 199, 0.18);
}

#local-rite-detail-section .btn#local-detail-back:hover {
    box-shadow: 0 0 30px rgba(91, 143, 199, 0.35);
    border-color: var(--recall-blue-light);
}

/* The card itself: deep blue, soft blue glow, same rounded card shape. */
#local-rite-detail-section .essence-card {
    background: linear-gradient(160deg, #0e1830 0%, #16223f 100%);
    border: 2px solid var(--recall-blue);
    box-shadow: 0 0 60px rgba(91, 143, 199, 0.18);
}

#local-rite-detail-section .card-glow {
    background: radial-gradient(circle at center, rgba(91, 143, 199, 0.16) 0%, transparent 55%);
}

#local-rite-detail-section .card-header h3 {
    color: var(--recall-blue-light);
}

/* Date line sits above the reflection, kept legible and cool-toned. */
#local-rite-detail-section .past-rite-date {
    display: block;
    text-align: center;
    color: var(--recall-blue-light);
    margin-bottom: var(--space-md);
    letter-spacing: 0.08em;
}

#local-rite-detail-section .card-body .reflection {
    border-left: 2px solid var(--recall-blue-dim);
    background: rgba(8, 16, 34, 0.45);
    color: #e4ecf8;
}

#local-rite-detail-section .essence-word {
    background: linear-gradient(135deg, #1c3357, #16243f);
    border: 1px solid var(--recall-blue-dim);
    color: var(--recall-blue-light);
}

#local-rite-detail-section .oracle-message {
    border-top: 1px solid var(--recall-blue-dim);
}

#local-rite-detail-section .oracle-icon {
    color: var(--recall-blue);
}

#local-rite-detail-section .oracle-message p {
    color: var(--recall-blue-light);
}

/* The recall type badge stays readable but takes a cool outline so it does
   not read as the warm "just created" badge. */
#local-rite-detail-section .rite-type-badge {
    background: rgba(91, 143, 199, 0.18);
    color: var(--recall-blue-light);
    border: 1px solid var(--recall-blue);
}