/* ============================================================
   RELATIONSHIPS — concept 09
   Theme: deep rose (#8E3B4D) · honey (#C99D5A) · sage (#6F8B6F) ·
   old paper cream (#F1E8D7) · charcoal (#1F1B17)
   Dark-mode-safe variable remap inside [data-theme="dark"].
   ============================================================ */

.page-relationships {
    --re-cream:     #F1E8D7;
    --re-cream-2:   #E5D8BD;
    --re-rose:      #8E3B4D;
    --re-rose-d:    #6B2937;
    --re-honey:     #C99D5A;
    --re-honey-d:   #A57D3F;
    --re-sage:      #6F8B6F;
    --re-sage-d:    #4F6B4F;
    --re-charcoal:  #1F1B17;
    --re-mute:      #6F614C;

    --c-gold:    var(--re-honey);
    --c-bg:      var(--re-cream);
    --c-ink:     var(--re-charcoal);
    --c-mute:    var(--re-mute);
    --c-accent:  var(--re-rose);

    background: var(--re-cream);
    color: var(--re-charcoal);
}

[data-theme="dark"] .page-relationships,
[data-theme="dark"].page-relationships {
    --re-cream:     #14110E;
    --re-cream-2:   #1B1714;
    --re-charcoal:  #EFE5C9;
    --re-mute:      #B9AA87;
    --re-rose:      #DA7A8A;
    --re-rose-d:    #C25E70;
    --re-honey-d:   #E0B776;
    --re-sage:      #9BC09B;
    --re-sage-d:    #80A580;
    --c-bg:         #14110E;
    --c-ink:        #EFE5C9;
    --c-mute:       #B9AA87;
    background: #14110E;
    color: #EFE5C9;
}

/* shared --------------------------------- */
.re-section { padding: var(--s-10, 4rem) 0; position: relative; }
.re-section-head { max-width: 820px; margin: 0 auto var(--s-7, 2.5rem); text-align: center; }
.re-eyebrow {
    font-family: var(--f-mono, monospace);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--re-honey-d);
    margin-bottom: var(--s-3, 0.75rem);
}
.re-h2 {
    font-family: var(--f-serif, serif);
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    line-height: 1.2;
    color: var(--re-charcoal);
    margin-bottom: var(--s-4, 1rem);
    font-weight: 600;
}
.re-h2 em { font-style: italic; color: var(--re-rose); font-weight: 500; }
.re-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--re-mute);
    max-width: 70ch;
    margin: 0 auto;
}
.re-sub em { color: var(--re-rose); font-style: italic; }
.re-sub b  { color: var(--re-charcoal); }
.re-data {
    font-family: var(--f-mono, monospace);
    font-feature-settings: "tnum";
    letter-spacing: 0.01em;
}
.container.narrow { max-width: 800px; }

.re-field { display: block; }
.re-field-label {
    display: block;
    font-size: 0.92rem;
    color: var(--re-charcoal);
    font-weight: 500;
    margin-bottom: 4px;
}
.re-hint-inline {
    font-weight: 400;
    color: var(--re-mute);
    font-size: 0.84em;
    font-style: italic;
}
.re-hint-bottom {
    display: block;
    font-size: 0.78rem;
    color: var(--re-mute);
    margin-top: 2px;
    font-style: italic;
}
.re-input-text,
.re-field input[type=text],
.re-field input[type=number],
.re-field select,
.re-select,
.re-textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(142, 59, 77, 0.3);
    border-radius: 4px;
    background: var(--re-cream-2);
    color: var(--re-charcoal);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}
.re-textarea { resize: vertical; line-height: 1.55; font-family: var(--f-serif, serif); font-size: 1.05rem; }
.re-input-text:focus, .re-textarea:focus, .re-select:focus { outline: none; border-color: var(--re-rose); }
[data-theme="dark"] .re-input-text,
[data-theme="dark"] .re-textarea,
[data-theme="dark"] .re-select,
[data-theme="dark"] .re-field input,
[data-theme="dark"] .re-field select { background: #0E0B09; color: #EFE5C9; }
.re-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%238E3B4D'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2.2rem !important;
}

.re-slider {
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    background: rgba(142, 59, 77, 0.2);
}
.re-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--re-rose);
    border: 2px solid var(--re-cream);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.re-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--re-rose);
    border: 2px solid var(--re-cream);
    cursor: pointer;
}
.re-slider-trust::-webkit-slider-thumb { background: var(--re-honey); }
.re-slider-energy::-webkit-slider-thumb { background: var(--re-sage); }
.re-slider-wrap { display: flex; align-items: center; gap: var(--s-2, 0.5rem); }
.re-range-out {
    flex: 0 0 28px;
    text-align: right;
    font-family: var(--f-mono, monospace);
    color: var(--re-rose);
    font-weight: 600;
}

/* checkbox / radio shared */
.re-check {
    display: flex;
    align-items: flex-start;
    gap: var(--s-2, 0.5rem);
    padding: var(--s-3, 0.75rem);
    background: var(--re-cream);
    border: 1px solid rgba(142, 59, 77, 0.18);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
[data-theme="dark"] .re-check { background: #1B1714; }
.re-check:hover { border-color: var(--re-rose); }
.re-check input { position: absolute; opacity: 0; pointer-events: none; }
.re-check-box {
    flex: 0 0 16px;
    width: 16px; height: 16px;
    border: 2px solid var(--re-mute);
    border-radius: 3px;
    margin-top: 2px;
    background: white;
    position: relative;
}
[data-theme="dark"] .re-check-box { background: #0E0B09; }
.re-check input:checked ~ .re-check-box {
    background: var(--re-rose);
    border-color: var(--re-rose);
}
.re-check input:checked ~ .re-check-box::after {
    content: '✓';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white; font-size: 11px; font-weight: bold;
}
.re-check-text { font-size: 0.94rem; line-height: 1.5; color: var(--re-charcoal); }
.re-check:has(input:checked) { background: rgba(142, 59, 77, 0.06); border-color: var(--re-rose); }
[data-theme="dark"] .re-check:has(input:checked) { background: rgba(218, 122, 138, 0.12); }

.re-checkbox-inline {
    display: flex;
    align-items: center;
    gap: var(--s-2, 0.5rem);
    margin: var(--s-3, 0.75rem) 0;
    color: var(--re-charcoal);
    cursor: pointer;
}
.re-checkbox-inline input { accent-color: var(--re-rose); transform: scale(1.1); }

/* result blocks shared */
.re-result-tag {
    font-family: var(--f-mono, monospace);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--re-honey-d);
    margin-bottom: var(--s-2, 0.5rem);
}
.re-result-num {
    font-family: var(--f-mono, monospace);
    font-size: 3rem;
    color: var(--re-rose);
    font-weight: 600;
    line-height: 1;
    margin-bottom: var(--s-2, 0.5rem);
}
.re-result-of { font-size: 1.2rem; color: var(--re-mute); font-weight: 400; }
.re-result-band {
    font-family: var(--f-mono, monospace);
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--re-honey-d);
    margin-bottom: var(--s-3, 0.75rem);
}
.re-result-synth {
    font-family: var(--f-serif, serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--re-charcoal);
    max-width: 60ch;
    margin: 0 auto;
}

/* fade-up shared */
.page-relationships .fade-up {
    opacity: 0; transform: translateY(16px);
    animation: reFadeUp 0.7s ease-out forwards;
}
.page-relationships .fade-up.delay-1 { animation-delay: 0.12s; }
.page-relationships .fade-up.delay-2 { animation-delay: 0.24s; }
.page-relationships .fade-up.delay-3 { animation-delay: 0.36s; }
.page-relationships .fade-up.delay-4 { animation-delay: 0.48s; }
@keyframes reFadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   1. HERO
   ============================================================ */
.re-hero {
    position: relative;
    min-height: 78vh;
    padding: var(--s-12, 5rem) 0 var(--s-10, 4rem);
    background: linear-gradient(180deg, var(--re-cream) 0%, var(--re-cream-2) 100%);
    overflow: hidden;
}
[data-theme="dark"] .re-hero { background: linear-gradient(180deg, #14110E 0%, #1B1714 100%); }
.re-hero-canvas { position: absolute; inset: 0; pointer-events: none; }
.re-ribbons { position: absolute; inset: 0; width: 100%; height: 100%; }
.re-kanji {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--f-serif, serif);
    font-size: clamp(180px, 30vw, 360px);
    color: var(--re-rose);
    opacity: 0.07;
    line-height: 1;
    font-weight: 700;
    user-select: none;
}
[data-theme="dark"] .re-kanji { opacity: 0.15; }

.re-hero-content { position: relative; z-index: 1; max-width: 720px; }
.re-hero-title {
    font-family: var(--f-serif, serif);
    font-size: clamp(2.4rem, 5.6vw, 4.4rem);
    line-height: 1.05;
    color: var(--re-charcoal);
    margin: var(--s-4, 1rem) 0;
    font-weight: 600;
}
.re-hero-title span, .re-hero-title em { display: block; }
.re-hero-title em {
    font-style: italic;
    color: var(--re-rose);
    font-weight: 500;
    padding-left: 1.4em;
}
.re-hero-line-3 { padding-left: 0.4em; }
.re-hero-sub, .re-hero-promise {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--re-mute);
    margin-bottom: var(--s-4, 1rem);
    max-width: 62ch;
}
.re-hero-sub b { color: var(--re-charcoal); font-weight: 600; }
.re-hero-sub em, .re-hero-promise em { color: var(--re-rose); font-style: italic; }
.re-hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3, 0.75rem); margin-top: var(--s-6, 1.5rem); }

/* ============================================================
   2. FIVE PEOPLE
   ============================================================ */
.re-five { background: var(--re-cream-2); }
[data-theme="dark"] .re-five { background: #1B1714; }

.re-five-form {
    max-width: 1180px;
    margin: 0 auto;
    background: var(--re-cream);
    border: 1px solid rgba(142, 59, 77, 0.3);
    padding: var(--s-5, 1.25rem);
    border-radius: 4px;
}
[data-theme="dark"] .re-five-form { background: #181513; }

.re-five-grid { display: flex; flex-direction: column; gap: var(--s-4, 1rem); margin-bottom: var(--s-4, 1rem); }
.re-five-row {
    display: grid;
    grid-template-columns: 32px 2fr 1.4fr 1.4fr 2fr;
    gap: var(--s-3, 0.75rem);
    align-items: end;
    padding-bottom: var(--s-3, 0.75rem);
    border-bottom: 1px dashed rgba(142, 59, 77, 0.2);
}
.re-five-row:last-child { border-bottom: none; padding-bottom: 0; }
@media (max-width: 900px) {
    .re-five-row { grid-template-columns: 32px 1fr; }
    .re-five-row label { grid-column: 2; }
    .re-five-row .re-five-num { grid-row: span 4; }
}
.re-five-num {
    font-family: var(--f-mono, monospace);
    font-size: 1.6rem;
    color: var(--re-rose);
    font-weight: 600;
    text-align: center;
}

/* ============================================================
   3. ATTACHMENT
   ============================================================ */
.re-att-form,
.re-horse-form,
.re-lang-form,
.re-conflict-form,
.re-lone-form,
.re-vuln-form,
.re-grat-form {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--re-cream);
    border: 1px solid rgba(142, 59, 77, 0.3);
    padding: var(--s-5, 1.25rem);
    border-radius: 4px;
}
[data-theme="dark"] .re-att-form,
[data-theme="dark"] .re-horse-form,
[data-theme="dark"] .re-lang-form,
[data-theme="dark"] .re-conflict-form,
[data-theme="dark"] .re-lone-form,
[data-theme="dark"] .re-vuln-form,
[data-theme="dark"] .re-grat-form { background: #181513; }

.re-att-list, .re-conflict-list, .re-lone-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-2, 0.5rem);
    margin-bottom: var(--s-3, 0.75rem);
}

.re-att-result, .re-horse-result, .re-conflict-result, .re-lone-result {
    max-width: 800px;
    margin: var(--s-5, 1.25rem) auto 0;
    padding: var(--s-5, 1.25rem);
    background: var(--re-cream);
    border-left: 3px solid var(--re-rose);
    border-radius: 4px;
    text-align: center;
}
[data-theme="dark"] .re-att-result,
[data-theme="dark"] .re-horse-result,
[data-theme="dark"] .re-conflict-result,
[data-theme="dark"] .re-lone-result { background: #181513; }

.re-att-style, .re-conflict-style {
    font-family: var(--f-serif, serif);
    font-size: 2.2rem;
    color: var(--re-rose);
    font-weight: 600;
    margin: var(--s-2, 0.5rem) 0;
    text-transform: capitalize;
}

/* ============================================================
   4. FOUR HORSEMEN
   ============================================================ */
.re-horsemen { background: var(--re-cream-2); }
[data-theme="dark"] .re-horsemen { background: #1B1714; }

.re-horse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3, 0.75rem);
    margin-bottom: var(--s-3, 0.75rem);
}
@media (max-width: 700px) { .re-horse-grid { grid-template-columns: 1fr; } }

.re-horse-card {
    display: flex;
    align-items: flex-start;
    gap: var(--s-2, 0.5rem);
    padding: var(--s-4, 1rem);
    background: var(--re-cream-2);
    border: 1px solid rgba(142, 59, 77, 0.2);
    border-left: 3px solid var(--re-rose);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
[data-theme="dark"] .re-horse-card { background: #1B1714; }
.re-horse-card[data-h="contempt"] { border-left-color: var(--re-rose-d); }
.re-horse-card[data-h="defensiveness"] { border-left-color: var(--re-honey); }
.re-horse-card[data-h="stonewalling"] { border-left-color: var(--re-sage); }
.re-horse-card:hover { transform: translateY(-1px); }
.re-horse-card:has(input:checked) {
    background: rgba(142, 59, 77, 0.08);
}
[data-theme="dark"] .re-horse-card:has(input:checked) { background: rgba(218, 122, 138, 0.1); }

.re-horse-card input { position: absolute; opacity: 0; pointer-events: none; }
.re-horse-mark {
    flex: 0 0 16px;
    width: 16px; height: 16px;
    border: 2px solid var(--re-mute);
    border-radius: 3px;
    margin-top: 2px;
    background: white;
    position: relative;
}
[data-theme="dark"] .re-horse-mark { background: #0E0B09; }
.re-horse-card input:checked ~ .re-horse-mark {
    background: var(--re-rose);
    border-color: var(--re-rose);
}
.re-horse-card input:checked ~ .re-horse-mark::after {
    content: '✓';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white; font-size: 11px; font-weight: bold;
}
.re-horse-body { font-size: 0.94rem; line-height: 1.55; color: var(--re-charcoal); }
.re-horse-body b { color: var(--re-rose); }
.re-horse-body em { color: var(--re-honey-d); font-style: italic; }

.re-antidotes {
    list-style: none;
    padding: 0;
    margin: var(--s-3, 0.75rem) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-2, 0.5rem);
    text-align: left;
}
.re-antidotes li {
    padding: var(--s-3, 0.75rem) var(--s-4, 1rem);
    background: var(--re-cream-2);
    border-left: 2px solid var(--re-sage);
    border-radius: 0 4px 4px 0;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--re-charcoal);
}
[data-theme="dark"] .re-antidotes li { background: #14110E; }

/* ============================================================
   5. LOVE LANGUAGES
   ============================================================ */
.re-lang-group { margin-bottom: var(--s-4, 1rem); }
.re-lang-q {
    font-family: var(--f-mono, monospace);
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--re-honey-d);
    margin-bottom: var(--s-2, 0.5rem);
}
.re-lang-row { display: flex; flex-wrap: wrap; gap: 8px; }
.re-lang-pill, .re-lone-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    background: var(--re-cream-2);
    border: 1px solid rgba(142, 59, 77, 0.3);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--re-charcoal);
    transition: all 0.15s;
}
[data-theme="dark"] .re-lang-pill, [data-theme="dark"] .re-lone-opt { background: #14110E; }
.re-lang-pill:hover, .re-lone-opt:hover { border-color: var(--re-rose); }
.re-lang-pill input, .re-lone-opt input { position: absolute; opacity: 0; pointer-events: none; }
.re-pill-mark {
    width: 12px; height: 12px;
    border: 2px solid var(--re-mute);
    border-radius: 50%;
    background: white;
    position: relative;
    flex-shrink: 0;
}
[data-theme="dark"] .re-pill-mark { background: #0E0B09; }
.re-lang-pill input:checked ~ .re-pill-mark,
.re-lone-opt input:checked ~ .re-pill-mark { border-color: var(--re-rose); }
.re-lang-pill input:checked ~ .re-pill-mark::after,
.re-lone-opt input:checked ~ .re-pill-mark::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 6px; height: 6px;
    background: var(--re-rose);
    border-radius: 50%;
}
.re-lang-pill:has(input:checked),
.re-lone-opt:has(input:checked) {
    background: var(--re-rose);
    color: white;
    border-color: var(--re-rose);
}
.re-lang-pill:has(input:checked) .re-pill-mark,
.re-lone-opt:has(input:checked) .re-pill-mark { border-color: white; }
.re-lang-pill:has(input:checked) .re-pill-mark::after,
.re-lone-opt:has(input:checked) .re-pill-mark::after { background: white; }
.re-lang-pill b { color: inherit; }

.re-lang-others { margin-top: var(--s-4, 1rem); padding-top: var(--s-3, 0.75rem); border-top: 1px dashed rgba(142, 59, 77, 0.2); }
.re-lang-row-others { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3, 0.75rem); }
@media (max-width: 600px) { .re-lang-row-others { grid-template-columns: 1fr; } }
.re-lang-row-others input, .re-lang-row-others select { margin-bottom: 6px; }

/* ============================================================
   6. TWO-MINUTE CALL
   ============================================================ */
.re-two-min { background: var(--re-cream-2); }
[data-theme="dark"] .re-two-min { background: #1B1714; }

.re-two-min-card {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--s-5, 1.25rem);
    background: var(--re-cream);
    border-left: 3px solid var(--re-honey);
    border: 1px solid rgba(142, 59, 77, 0.3);
    border-left-width: 3px;
    padding: var(--s-5, 1.25rem);
    border-radius: 4px;
    align-items: center;
}
[data-theme="dark"] .re-two-min-card { background: #181513; }
@media (max-width: 600px) { .re-two-min-card { grid-template-columns: 1fr; } }

.re-two-min-stats { text-align: center; }
.re-two-min-tag {
    font-family: var(--f-mono, monospace);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--re-honey-d);
    margin-bottom: var(--s-2, 0.5rem);
}
.re-two-min-num {
    font-family: var(--f-mono, monospace);
    font-size: 3.2rem;
    color: var(--re-rose);
    font-weight: 600;
    line-height: 1;
    margin-bottom: var(--s-2, 0.5rem);
}
.re-two-min-unit { font-size: 1rem; color: var(--re-mute); font-weight: 400; }
.re-two-min-sub {
    font-size: 0.92rem;
    color: var(--re-mute);
    line-height: 1.5;
}
.re-two-min-sub em { color: var(--re-rose); font-style: italic; }

/* ============================================================
   7. CONFLICT — uses .re-conflict-form / .re-conflict-list (shared)
   ============================================================ */

/* ============================================================
   8. LONELINESS
   ============================================================ */
.re-loneliness { background: var(--re-cream-2); }
[data-theme="dark"] .re-loneliness { background: #1B1714; }

.re-lone-list { display: flex; flex-direction: column; gap: var(--s-3, 0.75rem); }
.re-lone-row {
    padding: var(--s-3, 0.75rem);
    background: var(--re-cream);
    border-left: 2px solid var(--re-honey);
    border-radius: 0 4px 4px 0;
}
[data-theme="dark"] .re-lone-row { background: #14110E; }
.re-lone-q {
    font-size: 0.96rem;
    color: var(--re-charcoal);
    line-height: 1.5;
    margin-bottom: var(--s-2, 0.5rem);
}
.re-lone-options { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   9. VULNERABILITY
   ============================================================ */

/* ============================================================
   10. GRATITUDE LETTER
   ============================================================ */
.re-gratitude { background: var(--re-cream-2); }
[data-theme="dark"] .re-gratitude { background: #1B1714; }

.re-grat-recent {
    max-width: 800px;
    margin: var(--s-5, 1.25rem) auto 0;
}
.re-grat-recent h3 {
    font-family: var(--f-mono, monospace);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--re-honey-d);
    margin-bottom: var(--s-3, 0.75rem);
    text-align: center;
}
.re-grat-recent ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3, 0.75rem); }
.re-grat-recent li {
    background: var(--re-cream);
    border-left: 2px solid var(--re-rose);
    padding: var(--s-3, 0.75rem) var(--s-4, 1rem);
    border-radius: 0 4px 4px 0;
}
[data-theme="dark"] .re-grat-recent li { background: #181513; }
.re-grat-to {
    font-size: 0.94rem;
    color: var(--re-rose);
    margin-bottom: 4px;
}
.re-grat-to b { color: var(--re-rose); }
.re-grat-to em { color: var(--re-sage); font-style: italic; font-weight: 500; }
.re-grat-preview {
    font-family: var(--f-serif, serif);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--re-charcoal);
    line-height: 1.6;
    margin-bottom: 4px;
}
.re-grat-date {
    font-family: var(--f-mono, monospace);
    font-size: 0.76rem;
    color: var(--re-mute);
    letter-spacing: 0.06em;
}

/* ============================================================
   11. MAGIC RATIO
   ============================================================ */
.re-mr-stage {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-5, 1.25rem);
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}
@media (max-width: 800px) { .re-mr-stage { grid-template-columns: 1fr; } }

.re-mr-form {
    background: var(--re-cream);
    border: 1px solid rgba(142, 59, 77, 0.3);
    padding: var(--s-5, 1.25rem);
    border-radius: 4px;
}
[data-theme="dark"] .re-mr-form { background: #181513; }
.re-mr-form .re-field { margin-bottom: var(--s-3, 0.75rem); }
.re-mr-buttons { display: flex; gap: var(--s-2, 0.5rem); margin-bottom: var(--s-2, 0.5rem); flex-wrap: wrap; }
.re-mr-buttons button { flex: 1; min-width: 140px; }
.re-mr-pos { background: var(--re-sage) !important; border-color: var(--re-sage) !important; color: white !important; }
.re-mr-pos:hover { background: var(--re-sage-d) !important; }
.re-mr-neg { background: transparent !important; color: var(--re-rose) !important; border: 1px solid var(--re-rose) !important; }
.re-mr-neg:hover { background: var(--re-rose) !important; color: white !important; }

.re-mr-totals {
    background: var(--re-cream);
    border-left: 3px solid var(--re-honey);
    padding: var(--s-4, 1rem);
    border-radius: 4px;
    border: 1px solid rgba(142, 59, 77, 0.3);
}
[data-theme="dark"] .re-mr-totals { background: #181513; }
.re-mr-tag {
    font-family: var(--f-mono, monospace);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--re-honey-d);
    margin-bottom: var(--s-3, 0.75rem);
}
.re-mr-counts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2, 0.5rem); margin-bottom: var(--s-3, 0.75rem); }
.re-mr-count { text-align: center; padding: var(--s-2, 0.5rem); background: var(--re-cream-2); border-radius: 4px; }
[data-theme="dark"] .re-mr-count { background: #14110E; }
.re-mr-num { font-family: var(--f-mono, monospace); font-size: 1.8rem; font-weight: 600; line-height: 1; margin-bottom: 4px; }
.re-mr-pos-num { color: var(--re-sage); }
.re-mr-neg-num { color: var(--re-rose); }
.re-mr-label { font-family: var(--f-mono, monospace); font-size: 0.76rem; color: var(--re-mute); letter-spacing: 0.08em; }
.re-mr-ratio { text-align: center; padding: var(--s-3, 0.75rem) 0; border-top: 1px dashed rgba(142, 59, 77, 0.2); }
.re-mr-ratio-tag {
    font-family: var(--f-mono, monospace);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--re-mute);
}
.re-mr-ratio-num {
    font-family: var(--f-mono, monospace);
    font-size: 2.4rem;
    color: var(--re-rose);
    font-weight: 600;
    line-height: 1;
}
.re-mr-band {
    font-family: var(--f-mono, monospace);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--re-honey-d);
}
.re-mr-note {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--re-mute);
    margin-top: var(--s-3, 0.75rem);
}
.re-mr-note b { color: var(--re-charcoal); }

/* ============================================================
   12. VOICES — own dark palette
   ============================================================ */
.re-voices {
    background: linear-gradient(180deg, #6B2937 0%, #4A1822 100%);
    color: #F1E8D7;
}
.re-voices .re-h2 { color: #F1E8D7; }
.re-voices .re-h2 em { color: #C99D5A; }
.re-voices .re-eyebrow { color: #C99D5A; }
.re-voices .re-sub { color: rgba(241, 232, 215, 0.78); }
.re-voices .re-sub em { color: #C99D5A; }

.re-quote-card {
    background: rgba(241, 232, 215, 0.06);
    border: 1px solid rgba(201, 157, 90, 0.3);
    padding: var(--s-7, 2.5rem) var(--s-6, 1.5rem);
    border-radius: 4px;
    text-align: center;
    position: relative;
}
.re-quote-mark {
    font-family: var(--f-serif, serif);
    font-size: 5rem;
    color: #C99D5A;
    line-height: 1;
    margin-bottom: var(--s-2, 0.5rem);
    opacity: 0.7;
}
.re-quote-text {
    font-family: var(--f-serif, serif);
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    line-height: 1.5;
    color: #F1E8D7;
    margin-bottom: var(--s-4, 1rem);
    font-style: italic;
    font-weight: 400;
}
.re-quote-cite { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--s-4, 1rem); }
.re-quote-author {
    font-family: var(--f-mono, monospace);
    font-size: 0.92rem;
    color: #C99D5A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.re-quote-source { font-size: 0.84rem; color: rgba(241, 232, 215, 0.55); font-style: italic; }
.re-quote-actions { display: flex; justify-content: center; gap: var(--s-3, 0.75rem); flex-wrap: wrap; }
.re-quote-fav {
    background: transparent;
    border: 1px solid rgba(201, 157, 90, 0.4);
    color: #F1E8D7;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    transition: all 0.15s;
}
.re-quote-fav:hover         { border-color: #C99D5A; color: #C99D5A; }
.re-quote-fav.is-favorited  { background: #C99D5A; color: #6B2937; border-color: #C99D5A; }

/* ============================================================
   13. FINAL
   ============================================================ */
.re-final { background: var(--re-cream); text-align: center; padding: var(--s-12, 5rem) 0; }
[data-theme="dark"] .re-final { background: #14110E; }
.re-final-mark {
    font-family: var(--f-serif, serif);
    font-size: 4rem;
    color: var(--re-rose);
    line-height: 1;
    margin-bottom: var(--s-4, 1rem);
    opacity: 0.85;
}
.re-final-quote {
    font-family: var(--f-serif, serif);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.4;
    color: var(--re-charcoal);
    font-style: italic;
    max-width: 800px;
    margin: 0 auto var(--s-3, 0.75rem);
    font-weight: 500;
}
.re-final-quote em { color: var(--re-rose); font-style: italic; }
.re-final-cite {
    font-family: var(--f-mono, monospace);
    font-size: 0.92rem;
    color: var(--re-mute);
    letter-spacing: 0.08em;
    margin-bottom: var(--s-5, 1.25rem);
}
