/* ==========================================================
   RA Composer 3.0.0-alpha2
   Clean frontend system: content, layout, spacing, media, CTA
========================================================== */

.ra-module {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow: clip;
    isolation: isolate;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: inherit;
}

.ra-module > .ra-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    margin-inline: auto;
    padding-left: var(--ra-padding-left, 2rem);
    padding-right: var(--ra-padding-right, 2rem);
}

.ra-width-narrow > .ra-wrapper { max-width: 900px; }
.ra-width-default > .ra-wrapper { max-width: var(--ra-width, 1280px); }
.ra-width-wide > .ra-wrapper { max-width: 1600px; }
.ra-width-full > .ra-wrapper { max-width: none; }


/* RA Composer 4.3.2 — HERO safe area.
   The section background may remain full-bleed, but readable HERO content must
   never touch either viewport edge, even when Inline padding = None and the
   content is aligned to the right. Explicit larger padding still wins. */
.ra-type-hero > .ra-wrapper {
    --ra-hero-safe-gutter: clamp(24px, 3vw, 48px);
    --ra-hero-safe-left: max(var(--ra-padding-left, 0px), var(--ra-hero-safe-gutter));
    --ra-hero-safe-right: max(var(--ra-padding-right, 0px), var(--ra-hero-safe-gutter));
    padding-left: var(--ra-hero-safe-left);
    padding-right: var(--ra-hero-safe-right);
}

/* Absolute label/icon anchors use the wrapper border box, not its padded
   content box. Keep HERO edge anchors on the same safe line as normal copy. */
.ra-type-hero.ra-label-position-absolute.ra-label-anchor-top-left .ra-label,
.ra-type-hero.ra-label-position-absolute.ra-label-anchor-center-left .ra-label,
.ra-type-hero.ra-label-position-absolute.ra-label-anchor-bottom-left .ra-label,
.ra-type-hero.ra-icon-position-absolute.ra-icon-anchor-top-left .ra-section-icon,
.ra-type-hero.ra-icon-position-absolute.ra-icon-anchor-center-left .ra-section-icon,
.ra-type-hero.ra-icon-position-absolute.ra-icon-anchor-bottom-left .ra-section-icon {
    left: var(--ra-hero-safe-left);
}
.ra-type-hero.ra-label-position-absolute.ra-label-anchor-top-right .ra-label,
.ra-type-hero.ra-label-position-absolute.ra-label-anchor-center-right .ra-label,
.ra-type-hero.ra-label-position-absolute.ra-label-anchor-bottom-right .ra-label,
.ra-type-hero.ra-icon-position-absolute.ra-icon-anchor-top-right .ra-section-icon,
.ra-type-hero.ra-icon-position-absolute.ra-icon-anchor-center-right .ra-section-icon,
.ra-type-hero.ra-icon-position-absolute.ra-icon-anchor-bottom-right .ra-section-icon {
    right: var(--ra-hero-safe-right);
}

.ra-module-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
    pointer-events: none;
}

/* Backgrounds */
.ra-bg-inherit { background-color: transparent; }
.ra-bg-surface { background-color: var(--ra-bg-soft, #1e1e1e); }
.ra-bg-contrast { background-color: var(--ra-bg-contrast, #0c0c0c); }
.ra-bg-accent { background-color: var(--ra-accent, #d4af37); color: var(--ra-accent-contrast, #121212); }
.ra-bg-gradient { background-image: linear-gradient(var(--ra-gradient-angle, 135deg), var(--ra-gradient-start, #1e1e1e), var(--ra-gradient-end, #121212)); }
.ra-bg-color,
.ra-bg-image { position: relative; }

/* Theme-aware text */
.ra-text-auto { color: var(--ra-text, #e0e0e0); }
.ra-text-default { color: var(--ra-text, #e0e0e0); }
.ra-text-light { color: #f5f5f5; }
.ra-text-dark { color: #181818; }
.ra-text-accent { color: var(--ra-accent, #d4af37); }

.ra-module :where(.ra-title, .ra-subtitle, .ra-body, .ra-body p, .ra-body li, .ra-body div, .ra-body span, .ra-body a, .ra-body blockquote, .ra-body td, .ra-body th, .ra-body strong, .ra-body em) {
    color: inherit;
}

/* Vertical spacing */
.ra-space-none { padding-block: 0; }
.ra-space-xs { padding-block: var(--ra-space-xs, 1rem); }
.ra-space-sm { padding-block: var(--ra-space-sm, 2rem); }
.ra-space-md { padding-block: var(--ra-space-md, 4rem); }
.ra-space-lg { padding-block: var(--ra-space-lg, 6rem); }
.ra-space-xl { padding-block: var(--ra-space-xl, 8rem); }
.ra-custom-padding-top { padding-top: var(--ra-padding-top, 0); }
.ra-custom-padding-bottom { padding-bottom: var(--ra-padding-bottom, 0); }

/* Alignment */
.ra-align-left > .ra-wrapper { align-items: stretch; }
.ra-align-center > .ra-wrapper { align-items: stretch; }
.ra-align-right > .ra-wrapper { align-items: stretch; }
.ra-text-align-left { text-align: left; }
.ra-text-align-center { text-align: center; }
.ra-text-align-right { text-align: right; }
.ra-text-align-justify { text-align: justify; }

/* Typography */
.ra-label,
.ra-title,
.ra-subtitle,
.ra-body { margin-block: 0; }

.ra-label {
    color: var(--ra-label-color, var(--ra-accent, #d4af37));
    font-family: var(--ra-label-font, Manrope, sans-serif);
    font-size: var(--ra-label-size, 12px);
    font-weight: var(--ra-label-weight, 700);
    line-height: 1.3;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ra-title {
    color: var(--ra-title-color, inherit);
    font-family: var(--ra-title-font, "Cormorant Garamond", serif);
    font-size: clamp(2rem, 6vw, var(--ra-title-size, 64px));
    font-weight: var(--ra-title-weight, 500);
    line-height: var(--ra-title-line-height, 1.02);
    letter-spacing: -.035em;
}

.ra-subtitle {
    color: var(--ra-subtitle-color, inherit);
    font-family: var(--ra-subtitle-font, Manrope, sans-serif);
    font-size: var(--ra-subtitle-size, 20px);
    font-weight: var(--ra-subtitle-weight, 400);
    line-height: var(--ra-subtitle-line-height, 1.35);
}

.ra-body {
    color: var(--ra-body-color, inherit);
    font-family: var(--ra-body-font, "EB Garamond", serif);
    font-size: var(--ra-body-size, 18px);
    font-weight: var(--ra-body-weight, 400);
    line-height: var(--ra-body-line-height, 1.7);
}

.ra-body > :first-child { margin-top: 0; }
.ra-body > :last-child { margin-bottom: 0; }
.ra-body :where(p, li, div, span, a, blockquote, td, th, strong, em) { font-family: inherit !important; }
.ra-body :where(p, li, div, span, a, blockquote, td, th) { font-size: inherit !important; }
.ra-body :where(h1, h2, h3, h4, h5, h6) { font-family: var(--ra-title-font, "Cormorant Garamond", serif) !important; }
.ra-body :where(img, video, iframe, table) { max-width: 100%; }
.ra-body strong,
.ra-body b { font-weight: 700 !important; }

/* Semantic inline editor classes */
.ra-inline-accent { color: var(--ra-accent, #d4af37) !important; }
.ra-inline-muted { color: var(--ra-text-muted, #b4b4b4) !important; }
.ra-inline-light { color: #f5f5f5 !important; }
.ra-inline-dark { color: #181818 !important; }
.ra-font-manrope { font-family: Manrope, sans-serif !important; }
.ra-font-space-grotesk { font-family: "Space Grotesk", sans-serif !important; }
.ra-font-cormorant { font-family: "Cormorant Garamond", serif !important; }
.ra-font-eb-garamond { font-family: "EB Garamond", serif !important; }

/* Coherent content rhythm */
.ra-section-icon {
    display: flex;
    color: var(--ra-accent, #d4af37);
    font-size: 1.6rem;
}
.ra-icon { display: inline-flex; width: 1.35em; height: 1.35em; }
.ra-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ra-content-flow,
.ra-heading-group,
.ra-copy-group,
.ra-placement-area {
    min-width: 0;
}

.ra-content-flow,
.ra-heading-group,
.ra-copy-group,
.ra-placement-left,
.ra-placement-right,
.ra-placement-top,
.ra-placement-bottom {
    display: flex;
    flex-direction: column;
}

.ra-section-icon + .ra-label { margin-top: var(--ra-gap-icon-label, 12px); }
.ra-label + .ra-title,
.ra-section-icon + .ra-title { margin-top: var(--ra-gap-label-title, 12px); }
.ra-title + .ra-subtitle { margin-top: var(--ra-gap-title-subtitle, 16px); }
.ra-subtitle + .ra-body,
.ra-title + .ra-body,
.ra-label + .ra-body { margin-top: var(--ra-gap-subtitle-content, 32px); }
.ra-body + .ra-actions { margin-top: var(--ra-gap-body-cta, 32px); }
.ra-subtitle + .ra-media-container,
.ra-title + .ra-media-container,
.ra-body + .ra-media-container,
.ra-actions + .ra-media-container { margin-top: var(--ra-gap-subtitle-content, 32px); }

/* Standard internal grid */
.ra-section-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--ra-content-grid-gap, 2rem);
}
.ra-grid-valign-start .ra-section-grid { align-items: start; }
.ra-grid-valign-center .ra-section-grid { align-items: center; }
.ra-grid-valign-end .ra-section-grid { align-items: end; }
.ra-grid-6-6 .ra-heading-group { grid-column: 1 / span 6; }
.ra-grid-6-6 .ra-copy-group { grid-column: 7 / span 6; }
.ra-grid-4-8 .ra-heading-group { grid-column: 1 / span 4; }
.ra-grid-4-8 .ra-copy-group { grid-column: 5 / span 8; }
.ra-grid-8-4 .ra-heading-group { grid-column: 1 / span 8; }
.ra-grid-8-4 .ra-copy-group { grid-column: 9 / span 4; }
.ra-grid-3-9 .ra-heading-group { grid-column: 1 / span 3; }
.ra-grid-3-9 .ra-copy-group { grid-column: 4 / span 9; }
.ra-grid-9-3 .ra-heading-group { grid-column: 1 / span 9; }
.ra-grid-9-3 .ra-copy-group { grid-column: 10 / span 3; }
.ra-grid-6-6-reverse .ra-heading-group { grid-column: 7 / span 6; grid-row: 1; }
.ra-grid-6-6-reverse .ra-copy-group { grid-column: 1 / span 6; grid-row: 1; }

/* Custom placement engine */
.ra-placement-layout {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: var(--ra-gap-subtitle-content, 2rem);
}
.ra-placement-columns {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--ra-content-grid-gap, 2rem);
    flex: 1 1 auto;
}
.ra-grid-6-6 .ra-placement-left { grid-column: 1 / span 6; }
.ra-grid-6-6 .ra-placement-right { grid-column: 7 / span 6; }
.ra-grid-4-8 .ra-placement-left { grid-column: 1 / span 4; }
.ra-grid-4-8 .ra-placement-right { grid-column: 5 / span 8; }
.ra-grid-8-4 .ra-placement-left { grid-column: 1 / span 8; }
.ra-grid-8-4 .ra-placement-right { grid-column: 9 / span 4; }
.ra-grid-3-9 .ra-placement-left { grid-column: 1 / span 3; }
.ra-grid-3-9 .ra-placement-right { grid-column: 4 / span 9; }
.ra-grid-9-3 .ra-placement-left { grid-column: 1 / span 9; }
.ra-grid-9-3 .ra-placement-right { grid-column: 10 / span 3; }
.ra-grid-6-6-reverse .ra-placement-left { grid-column: 7 / span 6; }
.ra-grid-6-6-reverse .ra-placement-right { grid-column: 1 / span 6; }
.ra-left-valign-start .ra-placement-left,
.ra-right-valign-start .ra-placement-right { justify-content: flex-start; }
.ra-left-valign-center .ra-placement-left,
.ra-right-valign-center .ra-placement-right { justify-content: center; }
.ra-left-valign-end .ra-placement-left,
.ra-right-valign-end .ra-placement-right { justify-content: flex-end; }

.ra-placement-area > .ra-section-icon + .ra-label { margin-top: var(--ra-gap-icon-label, 12px); }
.ra-placement-area > .ra-label + .ra-title,
.ra-placement-area > .ra-section-icon + .ra-title { margin-top: var(--ra-gap-label-title, 12px); }
.ra-placement-area > .ra-title + .ra-subtitle { margin-top: var(--ra-gap-title-subtitle, 16px); }
.ra-placement-area > .ra-subtitle + .ra-body,
.ra-placement-area > .ra-title + .ra-body,
.ra-placement-area > .ra-label + .ra-body,
.ra-placement-area > .ra-subtitle + .ra-actions { margin-top: var(--ra-gap-subtitle-content, 32px); }
.ra-placement-area > .ra-body + .ra-actions { margin-top: var(--ra-gap-body-cta, 32px); }

/* Media */
.ra-media-container { min-width: 0; }
.ra-section-grid + .ra-media-container { margin-top: var(--ra-gap-subtitle-content, 32px); }
.ra-media { margin: 0; }
.ra-media img { display: block; width: 100%; height: auto; }
.ra-media figcaption { margin-top: .75rem; color: var(--ra-text-muted, #b4b4b4); font-size: .875rem; line-height: 1.5; }
.ra-cover { max-width: 640px; }
.ra-audio { width: 100%; }
.ra-audio + .ra-audio { margin-top: 1rem; }
.ra-audio audio { display: block; width: 100%; }

/* CTA */
.ra-actions { display: flex; width: 100%; }
.ra-actions-left { justify-content: flex-start; }
.ra-actions-center { justify-content: center; }
.ra-actions-right { justify-content: flex-end; }
.ra-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--ra-button-radius, 8px);
    font-family: var(--ra-body-font, Manrope, sans-serif);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.ra-button:hover,
.ra-button:focus-visible { text-decoration: none; transform: translateY(-1px); }
.ra-button-border-none { border-color: transparent; }
.ra-button-border-subtle { border-color: var(--ra-border, rgba(255,255,255,.18)); }
.ra-button-border-accent { border-color: var(--ra-accent, #d4af37); }
.ra-button-border-current { border-color: currentColor; }
.ra-button-primary { background: var(--ra-accent, #d4af37); color: #121212; }
.ra-button-primary:hover,
.ra-button-primary:focus-visible { background: var(--ra-accent-hover, #ebc34b); color: #121212; }
.ra-button-secondary { background: transparent; color: currentColor; }
.ra-button-secondary:hover,
.ra-button-secondary:focus-visible { border-color: var(--ra-accent, #d4af37); color: var(--ra-accent, #d4af37); }
.ra-button-ghost { background: transparent; color: currentColor; }
.ra-button-text { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--ra-accent, #d4af37); }
.ra-button-sm { padding: .65rem 1rem; font-size: .875rem; }
.ra-button-md { padding: .85rem 1.5rem; font-size: 1rem; }
.ra-button-lg { padding: 1rem 1.8rem; font-size: 1.125rem; }
.ra-button-text.ra-button-sm,
.ra-button-text.ra-button-md,
.ra-button-text.ra-button-lg { padding: 0; }
.ra-button-full { width: 100%; }

/* Finishing */
.ra-border-none { border: 0; }
.ra-border-subtle { border: 1px solid var(--ra-border, rgba(255,255,255,.15)); }
.ra-border-accent { border: 1px solid var(--ra-accent, #d4af37); }
.ra-radius-0 { border-radius: 0; }
.ra-radius-8 { border-radius: 8px; }
.ra-radius-16 { border-radius: 16px; }
.ra-radius-24 { border-radius: 24px; }
.ra-radius-32 { border-radius: 32px; }
.ra-shadow-none { box-shadow: none; }
.ra-shadow-soft { box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.ra-shadow-strong { box-shadow: 0 28px 80px rgba(0,0,0,.32); }
.ra-has-panel > .ra-wrapper::before {
    content: "";
    position: absolute;
    inset: 1rem;
    z-index: -1;
    border: 1px solid var(--ra-border, rgba(255,255,255,.14));
    background: color-mix(in srgb, var(--ra-bg-soft, #1e1e1e) 72%, transparent);
    backdrop-filter: blur(10px);
    border-radius: inherit;
}

/* Debug and motion */
.ra-debug { margin-top: 2rem; padding: 1rem; overflow: auto; background: rgba(0,0,0,.85); color: #fff; font: .75rem/1.5 monospace; text-align: left; }
.ra-anim-fade { animation: raComposerFade .6s ease both; }
.ra-anim-fade-up { animation: raComposerFadeUp .6s ease both; }
.ra-anim-fade-down { animation: raComposerFadeDown .6s ease both; }
@keyframes raComposerFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes raComposerFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes raComposerFadeDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 767px) {
    .ra-hide-mobile { display: none !important; }
    .ra-module > .ra-wrapper {
        padding-left: min(var(--ra-padding-left, 2rem), 1.5rem);
        padding-right: min(var(--ra-padding-right, 2rem), 1.5rem);
    }
    .ra-space-lg { padding-block: 4rem; }
    .ra-space-xl { padding-block: 5rem; }
    .ra-title { font-size: clamp(2rem, 10vw, var(--ra-title-size, 64px)); }
    .ra-subtitle { font-size: min(var(--ra-subtitle-size, 20px), 8vw); }
    .ra-section-grid,
    .ra-placement-columns { grid-template-columns: 1fr; }
    .ra-section-grid .ra-heading-group,
    .ra-section-grid .ra-copy-group,
    .ra-placement-left,
    .ra-placement-right { grid-column: 1 !important; grid-row: auto !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ra-hide-tablet { display: none !important; }
}

@media (min-width: 1025px) {
    .ra-hide-desktop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .ra-anim-fade,
    .ra-anim-fade-up,
    .ra-anim-fade-down { animation: none; }
    .ra-button { transition: none; }
}

/* ==========================================================
   RA Composer 3.0.0-alpha2 — Audio Player
========================================================== */
.ra-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ra-audio-player {
    --ra-audio-progress: 0%;
    --ra-audio-volume: 100%;
    width: 100%;
    color: inherit;
}

.ra-audio-element {
    display: block;
    width: 100%;
}

.ra-audio-ui {
    display: none;
}

.ra-audio-player.is-enhanced .ra-audio-element {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.ra-audio-player.is-enhanced .ra-audio-ui {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    border: 1px solid var(--ra-border, rgba(255, 255, 255, .16));
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .035);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
    backdrop-filter: blur(10px);
}

.ra-audio-player--editorial.ra-audio-player--has-cover .ra-audio-ui {
    grid-template-columns: minmax(112px, 180px) minmax(0, 1fr);
}

.ra-audio-player--compact .ra-audio-ui {
    border-radius: 12px;
}

.ra-audio-artwork {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: var(--ra-bg-soft, #1e1e1e);
}

.ra-audio-artwork img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 112px;
    object-fit: cover;
}

.ra-audio-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.ra-audio-player--compact .ra-audio-content {
    padding: .9rem 1rem;
}

.ra-audio-meta {
    min-width: 0;
    margin-bottom: 1rem;
}

.ra-audio-player--compact .ra-audio-meta {
    margin-bottom: .7rem;
}

.ra-audio-track-title {
    overflow: hidden;
    color: inherit;
    font-family: var(--ra-subtitle-font, Manrope, sans-serif);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ra-audio-track-artist {
    overflow: hidden;
    margin-top: .3rem;
    color: var(--ra-text-muted, #b4b4b4);
    font-family: var(--ra-body-font, Manrope, sans-serif);
    font-size: .875rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ra-audio-controls {
    display: grid;
    grid-template-columns: auto minmax(100px, 1fr) auto auto;
    gap: .75rem;
    align-items: center;
    min-width: 0;
}

.ra-audio-play,
.ra-audio-mute,
.ra-audio-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--ra-border, rgba(255, 255, 255, .16));
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.ra-audio-play {
    width: 46px;
    height: 46px;
    border-color: var(--ra-accent, #d4af37);
    border-radius: 50%;
    background: var(--ra-accent, #d4af37);
    color: var(--ra-accent-contrast, #121212);
}

.ra-audio-mute,
.ra-audio-download {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.ra-audio-play:hover,
.ra-audio-play:focus-visible,
.ra-audio-mute:hover,
.ra-audio-mute:focus-visible,
.ra-audio-download:hover,
.ra-audio-download:focus-visible {
    border-color: var(--ra-accent, #d4af37);
    color: var(--ra-accent, #d4af37);
    transform: translateY(-1px);
}

.ra-audio-play:hover,
.ra-audio-play:focus-visible {
    background: var(--ra-accent-hover, #ebc34b);
    color: var(--ra-accent-contrast, #121212);
}

.ra-audio-play:focus-visible,
.ra-audio-mute:focus-visible,
.ra-audio-download:focus-visible,
.ra-audio-seek:focus-visible,
.ra-audio-volume:focus-visible {
    outline: 2px solid var(--ra-accent, #d4af37);
    outline-offset: 3px;
}

.ra-audio-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.ra-audio-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ra-audio-icon-play svg,
.ra-audio-icon-pause svg {
    stroke: none;
}

.ra-audio-icon-pause,
.ra-audio-icon-muted {
    display: none;
}

.ra-audio-player.is-playing .ra-audio-icon-play,
.ra-audio-player.is-muted .ra-audio-icon-volume {
    display: none;
}

.ra-audio-player.is-playing .ra-audio-icon-pause,
.ra-audio-player.is-muted .ra-audio-icon-muted {
    display: inline-flex;
}

.ra-audio-timeline {
    min-width: 0;
}

.ra-audio-seek,
.ra-audio-volume {
    display: block;
    width: 100%;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    appearance: none;
}

.ra-audio-seek::-webkit-slider-runnable-track,
.ra-audio-volume::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--ra-accent, #d4af37) 0,
        var(--ra-accent, #d4af37) var(--ra-audio-progress),
        rgba(127, 127, 127, .32) var(--ra-audio-progress),
        rgba(127, 127, 127, .32) 100%
    );
}

.ra-audio-volume::-webkit-slider-runnable-track {
    background: linear-gradient(
        to right,
        currentColor 0,
        currentColor var(--ra-audio-volume),
        rgba(127, 127, 127, .32) var(--ra-audio-volume),
        rgba(127, 127, 127, .32) 100%
    );
}

.ra-audio-seek::-moz-range-track,
.ra-audio-volume::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(127, 127, 127, .32);
}

.ra-audio-seek::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--ra-accent, #d4af37);
}

.ra-audio-volume::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: currentColor;
}

.ra-audio-seek::-webkit-slider-thumb,
.ra-audio-volume::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border: 0;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .12);
    appearance: none;
}

.ra-audio-seek::-webkit-slider-thumb {
    background: var(--ra-accent, #d4af37);
}

.ra-audio-seek::-moz-range-thumb,
.ra-audio-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: currentColor;
}

.ra-audio-seek::-moz-range-thumb {
    background: var(--ra-accent, #d4af37);
}

.ra-audio-time {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .2rem;
    color: var(--ra-text-muted, #b4b4b4);
    font-family: var(--ra-body-font, Manrope, sans-serif);
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.ra-audio-volume-group {
    display: grid;
    grid-template-columns: auto 72px;
    gap: .45rem;
    align-items: center;
}

.ra-audio-player.is-loading .ra-audio-play {
    cursor: progress;
    opacity: .72;
}

.ra-audio-player.has-error .ra-audio-ui {
    border-color: rgba(190, 65, 65, .7);
}

.ra-audio-player.has-error .ra-audio-play {
    cursor: not-allowed;
    opacity: .5;
}

@media (max-width: 700px) {
    .ra-audio-player--editorial.ra-audio-player--has-cover .ra-audio-ui {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .ra-audio-artwork img {
        min-height: 100%;
    }

    .ra-audio-content {
        padding: .9rem;
    }

    .ra-audio-controls {
        grid-template-columns: auto minmax(80px, 1fr) auto;
        gap: .55rem;
    }

    .ra-audio-volume-group {
        grid-template-columns: auto;
    }

    .ra-audio-volume {
        display: none;
    }

    .ra-audio-download {
        display: none;
    }
}

@media (max-width: 460px) {
    .ra-audio-player--editorial.ra-audio-player--has-cover .ra-audio-ui {
        grid-template-columns: 1fr;
    }

    .ra-audio-artwork {
        aspect-ratio: 16 / 7;
    }

    .ra-audio-track-title,
    .ra-audio-track-artist {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ra-audio-play,
    .ra-audio-mute,
    .ra-audio-download {
        transition: none;
    }
}

/* ==========================================================
   RA Composer 4.0 — superBasicMod / Free placement / Motion
========================================================== */
.ra-module { max-width: var(--ra-module-max-width, none); }

.ra-section-icon {
    color: var(--ra-icon-color, var(--ra-accent, #d4af37));
    font-size: var(--ra-icon-size, 28px);
}
.ra-section-icon .ra-icon { width: 1em; height: 1em; }

/* Horizontal offsets between consecutive textual elements. Vertical rhythm
   continues to use the established Y gap variables. */
.ra-section-icon + .ra-label { margin-inline-start: var(--ra-gap-icon-label-x, 0px); }
.ra-label + .ra-title,
.ra-section-icon + .ra-title { margin-inline-start: var(--ra-gap-label-title-x, 0px); }
.ra-title + .ra-subtitle { margin-inline-start: var(--ra-gap-title-subtitle-x, 0px); }
.ra-subtitle + .ra-body,
.ra-title + .ra-body,
.ra-label + .ra-body { margin-inline-start: var(--ra-gap-subtitle-content-x, 0px); }

/* Label can remain in the document flow or be anchored freely inside the
   module wrapper. X/Y offsets are always relative to the chosen anchor. */
.ra-label-position-absolute > .ra-wrapper { position: relative; }
.ra-label-position-absolute .ra-label {
    position: absolute;
    z-index: 8;
    margin: 0 !important;
    translate: var(--ra-label-offset-x, 0px) var(--ra-label-offset-y, 0px);
}
.ra-label-position-absolute.ra-label-anchor-top-left .ra-label { top: 0; left: 0; }
.ra-label-position-absolute.ra-label-anchor-top-center .ra-label { top: 0; left: 50%; transform: translateX(-50%); }
.ra-label-position-absolute.ra-label-anchor-top-right .ra-label { top: 0; right: 0; }
.ra-label-position-absolute.ra-label-anchor-center-left .ra-label { top: 50%; left: 0; transform: translateY(-50%); }
.ra-label-position-absolute.ra-label-anchor-center .ra-label { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ra-label-position-absolute.ra-label-anchor-center-right .ra-label { top: 50%; right: 0; transform: translateY(-50%); }
.ra-label-position-absolute.ra-label-anchor-bottom-left .ra-label { bottom: 0; left: 0; }
.ra-label-position-absolute.ra-label-anchor-bottom-center .ra-label { bottom: 0; left: 50%; transform: translateX(-50%); }
.ra-label-position-absolute.ra-label-anchor-bottom-right .ra-label { right: 0; bottom: 0; }

/* Panel is now a real boundary on the module instead of an inset pseudo-layer:
   it therefore always encloses its text and media. */
.ra-has-panel {
    border: 1px solid var(--ra-border, rgba(255,255,255,.15)) !important;
    background-color: color-mix(in srgb, var(--ra-bg-soft, #1e1e1e) 72%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.ra-has-panel > .ra-wrapper::before { content: none !important; }

/* Video */
.ra-video-media video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #000;
}

/* Social / streaming */
.ra-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ra-social-gap, 14px);
    margin-top: var(--ra-gap-body-cta, 24px);
}
.ra-social-align-left { justify-content: flex-start; }
.ra-social-align-center { justify-content: center; }
.ra-social-align-right { justify-content: flex-end; }
.ra-social-link {
    width: var(--ra-social-icon-size, 22px);
    height: var(--ra-social-icon-size, 22px);
    display: inline-grid;
    place-items: center;
    color: currentColor;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}
.ra-social-link .ra-icon { width: 100%; height: 100%; }
.ra-social-link:hover,
.ra-social-link:focus-visible { color: var(--ra-accent, #d4af37); transform: translateY(-2px); }

/* Viewport-triggered content motion — fail-open.
   The module itself remains geometrically stable. Only its direct content
   wrapper moves/fades, so backgrounds, overlays and grid placement never jump.
   Content is hidden only while JavaScript explicitly owns the transition via
   .ra-motion-pending. */
.ra-composer-js .ra-module[data-ra-animation] > .ra-wrapper {
    opacity: 1;
    transform: none;
    filter: none;
    will-change: auto;
    transition-property: opacity, transform, filter;
    transition-duration: var(--ra-animation-duration, 700ms);
    transition-delay: var(--ra-animation-delay, 0ms);
    transition-timing-function: cubic-bezier(.22,.78,.18,1);
}
.ra-composer-js .ra-module[data-ra-animation].ra-motion-pending > .ra-wrapper {
    will-change: opacity, transform, filter;
}
.ra-composer-js .ra-module[data-ra-animation].ra-motion-pending:not(.is-ra-inview) > .ra-wrapper { opacity: 0; }
.ra-composer-js .ra-module[data-ra-animation="fade"].ra-motion-pending:not(.is-ra-inview) > .ra-wrapper { transform: none; }
.ra-composer-js .ra-module[data-ra-animation="fade-up"].ra-motion-pending:not(.is-ra-inview) > .ra-wrapper { transform: translateY(24px); }
.ra-composer-js .ra-module[data-ra-animation="fade-down"].ra-motion-pending:not(.is-ra-inview) > .ra-wrapper { transform: translateY(-24px); }
.ra-composer-js .ra-module[data-ra-animation="fade-left"].ra-motion-pending:not(.is-ra-inview) > .ra-wrapper { transform: translateX(30px); }
.ra-composer-js .ra-module[data-ra-animation="fade-right"].ra-motion-pending:not(.is-ra-inview) > .ra-wrapper { transform: translateX(-30px); }
.ra-composer-js .ra-module[data-ra-animation="scale"].ra-motion-pending:not(.is-ra-inview) > .ra-wrapper { transform: scale(.975); }
.ra-composer-js .ra-module[data-ra-animation="zoom-in"].ra-motion-pending:not(.is-ra-inview) > .ra-wrapper { transform: scale(.94); }
.ra-composer-js .ra-module[data-ra-animation="blur-up"].ra-motion-pending:not(.is-ra-inview) > .ra-wrapper { transform: translateY(20px); filter: blur(5px); }
.ra-composer-js .ra-module[data-ra-animation="slide-up"].ra-motion-pending:not(.is-ra-inview) > .ra-wrapper { transform: translateY(44px); }
.ra-ease-soft > .ra-wrapper { transition-timing-function: cubic-bezier(.25,.1,.25,1) !important; }
.ra-ease-snappy > .ra-wrapper { transition-timing-function: cubic-bezier(.2,.9,.25,1) !important; }
.ra-ease-linear > .ra-wrapper { transition-timing-function: linear !important; }

/* Disable the legacy page-load keyframes in v4. */
.ra-anim-fade,
.ra-anim-fade-up,
.ra-anim-fade-down,
.ra-anim-fade-left,
.ra-anim-fade-right,
.ra-anim-scale,
.ra-anim-zoom-in,
.ra-anim-blur-up,
.ra-anim-slide-up { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
    .ra-composer-js .ra-module[data-ra-animation] > .ra-wrapper {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}

/* Text block placement inside the module */
.ra-content-valign-start > .ra-wrapper { justify-content: flex-start; }
.ra-content-valign-center > .ra-wrapper { justify-content: center; }
.ra-content-valign-end > .ra-wrapper { justify-content: flex-end; }
.ra-content-halign-start > .ra-wrapper > .ra-content-flow { align-self: flex-start; }
.ra-content-halign-center > .ra-wrapper > .ra-content-flow { align-self: center; }
.ra-content-halign-end > .ra-wrapper > .ra-content-flow { align-self: flex-end; }
.ra-content-halign-stretch > .ra-wrapper > .ra-content-flow { align-self: stretch; width: 100%; }


/* ==========================================================
   RA Composer 4.1 — typography controls, six editorial presets,
   five dark/light palette pairs
========================================================== */
.ra-label {
    letter-spacing: var(--ra-label-letter-spacing, .14em);
    text-transform: var(--ra-label-transform, uppercase);
}
.ra-title {
    letter-spacing: var(--ra-title-letter-spacing, -.035em);
    text-transform: var(--ra-title-transform, none);
}
.ra-subtitle {
    letter-spacing: var(--ra-subtitle-letter-spacing, 0em);
    text-transform: var(--ra-subtitle-transform, none);
}
.ra-body {
    max-width: var(--ra-body-max-width, none);
    letter-spacing: var(--ra-body-letter-spacing, 0em);
}
.ra-bg-palette { background-color: var(--ra-palette-background, var(--ra-bg, #121212)); }

/* Preset 1 — Editorial Air: quiet serif scale, generous negative space. */
.ra-design-editorial-air {
    --ra-gap-icon-label: 14px !important;
    --ra-gap-label-title: 18px !important;
    --ra-gap-title-subtitle: 22px !important;
    --ra-gap-subtitle-content: 30px !important;
}
.ra-design-editorial-air .ra-label { font-family: Manrope, sans-serif !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .18em !important; }
.ra-design-editorial-air .ra-title { max-width: 15ch; font-family: "Cormorant Garamond", serif !important; font-size: clamp(2.7rem, 5.5vw, 4.5rem) !important; font-weight: 300 !important; line-height: .98 !important; letter-spacing: -.035em !important; }
.ra-design-editorial-air .ra-subtitle { max-width: 34ch; font-family: Manrope, sans-serif !important; font-size: clamp(.95rem, 1.5vw, 1.18rem) !important; font-weight: 400 !important; line-height: 1.45 !important; }
.ra-design-editorial-air .ra-body { max-width: 62ch; font-family: Newsreader, serif !important; font-size: clamp(1.05rem, 1.55vw, 1.3rem) !important; font-weight: 400 !important; line-height: 1.72 !important; }

/* Preset 2 — Cinema Frame: high-contrast title / restrained supporting copy. */
.ra-design-cinema-frame {
    --ra-gap-icon-label: 10px !important;
    --ra-gap-label-title: 22px !important;
    --ra-gap-title-subtitle: 16px !important;
    --ra-gap-subtitle-content: 34px !important;
}
.ra-design-cinema-frame .ra-label { font-family: "Space Grotesk", sans-serif !important; font-size: 10px !important; font-weight: 600 !important; letter-spacing: .22em !important; }
.ra-design-cinema-frame .ra-title { max-width: 13ch; font-family: "Bodoni Moda", serif !important; font-size: clamp(3rem, 6.2vw, 5.4rem) !important; font-weight: 400 !important; line-height: .94 !important; letter-spacing: -.045em !important; }
.ra-design-cinema-frame .ra-subtitle { max-width: 40ch; font-family: Manrope, sans-serif !important; font-size: clamp(.86rem, 1.25vw, 1.02rem) !important; font-weight: 600 !important; line-height: 1.45 !important; letter-spacing: .07em !important; text-transform: uppercase !important; }
.ra-design-cinema-frame .ra-body { max-width: 58ch; font-family: "EB Garamond", serif !important; font-size: clamp(1.05rem, 1.5vw, 1.28rem) !important; line-height: 1.68 !important; }

/* Preset 3 — Quiet Luxury: soft editorial hierarchy, especially suited to philosophy/about. */
.ra-design-quiet-luxury {
    --ra-gap-icon-label: 16px !important;
    --ra-gap-label-title: 20px !important;
    --ra-gap-title-subtitle: 24px !important;
    --ra-gap-subtitle-content: 36px !important;
}
.ra-design-quiet-luxury .ra-label { font-family: Manrope, sans-serif !important; font-size: 11px !important; letter-spacing: .16em !important; }
.ra-design-quiet-luxury .ra-title { max-width: 16ch; font-family: "Instrument Serif", serif !important; font-size: clamp(2.8rem, 5vw, 4.4rem) !important; font-weight: 400 !important; line-height: 1 !important; letter-spacing: -.028em !important; }
.ra-design-quiet-luxury .ra-subtitle { max-width: 36ch; font-family: Newsreader, serif !important; font-size: clamp(1.15rem, 1.7vw, 1.45rem) !important; font-weight: 400 !important; line-height: 1.35 !important; }
.ra-design-quiet-luxury .ra-body { max-width: 60ch; font-family: Manrope, sans-serif !important; font-size: clamp(.98rem, 1.2vw, 1.12rem) !important; font-weight: 300 !important; line-height: 1.78 !important; }

/* Preset 4 — Modern Signal: contemporary, precise, useful for process/services. */
.ra-design-modern-signal {
    --ra-gap-icon-label: 12px !important;
    --ra-gap-label-title: 14px !important;
    --ra-gap-title-subtitle: 18px !important;
    --ra-gap-subtitle-content: 24px !important;
}
.ra-design-modern-signal .ra-label { font-family: "Space Grotesk", sans-serif !important; font-size: 10px !important; font-weight: 600 !important; letter-spacing: .2em !important; }
.ra-design-modern-signal .ra-title { max-width: 18ch; font-family: Anybody, sans-serif !important; font-size: clamp(2.25rem, 4.2vw, 3.8rem) !important; font-weight: 500 !important; line-height: .98 !important; letter-spacing: -.025em !important; }
.ra-design-modern-signal .ra-subtitle { max-width: 42ch; font-family: "Space Grotesk", sans-serif !important; font-size: clamp(.95rem, 1.35vw, 1.12rem) !important; font-weight: 500 !important; line-height: 1.4 !important; }
.ra-design-modern-signal .ra-body { max-width: 66ch; font-family: Manrope, sans-serif !important; font-size: clamp(.95rem, 1.15vw, 1.08rem) !important; font-weight: 350 !important; line-height: 1.72 !important; }

/* Preset 5 — Monument: bold display typography with disciplined body copy. */
.ra-design-monument {
    --ra-gap-icon-label: 14px !important;
    --ra-gap-label-title: 18px !important;
    --ra-gap-title-subtitle: 20px !important;
    --ra-gap-subtitle-content: 32px !important;
}
.ra-design-monument .ra-label { font-family: Manrope, sans-serif !important; font-size: 10px !important; font-weight: 700 !important; letter-spacing: .2em !important; }
.ra-design-monument .ra-title { max-width: 18ch; font-family: Unbounded, sans-serif !important; font-size: clamp(2rem, 3.8vw, 3.4rem) !important; font-weight: 500 !important; line-height: 1.04 !important; letter-spacing: -.04em !important; text-transform: uppercase !important; }
.ra-design-monument .ra-subtitle { max-width: 40ch; font-family: Manrope, sans-serif !important; font-size: clamp(.9rem, 1.2vw, 1.05rem) !important; font-weight: 500 !important; line-height: 1.45 !important; }
.ra-design-monument .ra-body { max-width: 64ch; font-family: Manrope, sans-serif !important; font-size: clamp(.94rem, 1.12vw, 1.05rem) !important; font-weight: 300 !important; line-height: 1.75 !important; }

/* Preset 6 — Gallery Caption: restrained museum/editorial rhythm. */
.ra-design-gallery-caption {
    --ra-gap-icon-label: 12px !important;
    --ra-gap-label-title: 16px !important;
    --ra-gap-title-subtitle: 18px !important;
    --ra-gap-subtitle-content: 26px !important;
}
.ra-design-gallery-caption .ra-label { font-family: "DM Sans", sans-serif !important; font-size: 10px !important; font-weight: 600 !important; letter-spacing: .17em !important; }
.ra-design-gallery-caption .ra-title { max-width: 17ch; font-family: Newsreader, serif !important; font-size: clamp(2.45rem, 4.5vw, 4rem) !important; font-weight: 400 !important; line-height: 1 !important; letter-spacing: -.032em !important; }
.ra-design-gallery-caption .ra-subtitle { max-width: 38ch; font-family: "DM Sans", sans-serif !important; font-size: clamp(.9rem, 1.2vw, 1.05rem) !important; font-weight: 500 !important; line-height: 1.5 !important; }
.ra-design-gallery-caption .ra-body { max-width: 58ch; font-family: "DM Sans", sans-serif !important; font-size: clamp(.92rem, 1.12vw, 1.04rem) !important; font-weight: 400 !important; line-height: 1.72 !important; }

/* Palette pair 1 — Obsidian / Ivory */
html[data-theme="dark"] .ra-palette-obsidian-ivory { --ra-palette-background:#11100e; --ra-bg:#121212; --ra-bg-soft:#1d1c1a; --ra-bg-contrast:#080808; --ra-text:#eeeae2; --ra-text-muted:#aaa49b; --ra-accent:#d4af37; --ra-border:rgba(238,234,226,.14); }
html[data-theme="light"] .ra-palette-obsidian-ivory { --ra-palette-background:#f4f1eb; --ra-bg:#f4f1eb; --ra-bg-soft:#e8e3da; --ra-bg-contrast:#ded7ca; --ra-text:#1b1a18; --ra-text-muted:#6f6960; --ra-accent:#8a6d18; --ra-border:rgba(27,26,24,.14); }
/* Palette pair 2 — Midnight / Porcelain */
html[data-theme="dark"] .ra-palette-midnight-porcelain { --ra-palette-background:#0d141e; --ra-bg:#0e1520; --ra-bg-soft:#172131; --ra-bg-contrast:#09101a; --ra-text:#edf1f5; --ra-text-muted:#9eabb9; --ra-accent:#c9a76a; --ra-border:rgba(237,241,245,.14); }
html[data-theme="light"] .ra-palette-midnight-porcelain { --ra-palette-background:#f1f3f5; --ra-bg:#f1f3f5; --ra-bg-soft:#e2e7eb; --ra-bg-contrast:#d4dce3; --ra-text:#15202c; --ra-text-muted:#63707c; --ra-accent:#8b6329; --ra-border:rgba(21,32,44,.14); }
/* Palette pair 3 — Umber / Parchment */
html[data-theme="dark"] .ra-palette-umber-parchment { --ra-palette-background:#201a16; --ra-bg:#201a16; --ra-bg-soft:#2a221c; --ra-bg-contrast:#130f0d; --ra-text:#f0e7dc; --ra-text-muted:#b2a293; --ra-accent:#c99a52; --ra-border:rgba(240,231,220,.14); }
html[data-theme="light"] .ra-palette-umber-parchment { --ra-palette-background:#eee6d8; --ra-bg:#eee6d8; --ra-bg-soft:#e2d7c6; --ra-bg-contrast:#d5c6b2; --ra-text:#2b211a; --ra-text-muted:#746457; --ra-accent:#8b5d24; --ra-border:rgba(43,33,26,.14); }
/* Palette pair 4 — Forest / Paper */
html[data-theme="dark"] .ra-palette-forest-paper { --ra-palette-background:#111a17; --ra-bg:#111a17; --ra-bg-soft:#1b2722; --ra-bg-contrast:#0a100e; --ra-text:#e9efe9; --ra-text-muted:#9eaea4; --ra-accent:#b8a76c; --ra-border:rgba(233,239,233,.14); }
html[data-theme="light"] .ra-palette-forest-paper { --ra-palette-background:#edf0e9; --ra-bg:#edf0e9; --ra-bg-soft:#dfe5dc; --ra-bg-contrast:#cfd8cd; --ra-text:#17231d; --ra-text-muted:#627168; --ra-accent:#71652f; --ra-border:rgba(23,35,29,.14); }
/* Palette pair 5 — Wine / Blush */
html[data-theme="dark"] .ra-palette-wine-blush { --ra-palette-background:#1d1317; --ra-bg:#1d1317; --ra-bg-soft:#281a20; --ra-bg-contrast:#110b0d; --ra-text:#f1e7e9; --ra-text-muted:#b39ca3; --ra-accent:#c79a72; --ra-border:rgba(241,231,233,.14); }
html[data-theme="light"] .ra-palette-wine-blush { --ra-palette-background:#f2eaea; --ra-bg:#f2eaea; --ra-bg-soft:#e7dcdd; --ra-bg-contrast:#dbcacc; --ra-text:#2a1a1f; --ra-text-muted:#756067; --ra-accent:#8b5d3f; --ra-border:rgba(42,26,31,.14); }

/* ==========================================================
   RA Composer 4.2 — real style compositions + working palettes
========================================================== */

/* A selected paired palette is self-contained: choosing it is enough to
   change the module in both dark and light mode. Background = Inherit uses
   the palette base instead of remaining transparent. */
.ra-module.ra-palette-active {
    color: var(--ra-text, #e0e0e0);
    --ra-text-footer: var(--ra-text-muted, #888);
}
.ra-module.ra-palette-active.ra-bg-inherit,
.ra-module.ra-palette-active.ra-bg-palette {
    background-color: var(--ra-palette-background, var(--ra-bg, #121212));
}
.ra-module.ra-palette-active.ra-bg-surface { background-color: var(--ra-bg-soft, #1e1e1e); }
.ra-module.ra-palette-active.ra-bg-contrast { background-color: var(--ra-bg-contrast, #0c0c0c); }
.ra-module.ra-palette-active :where(.ra-title, .ra-subtitle, .ra-body) { color: inherit; }
.ra-module.ra-palette-active .ra-label,
.ra-module.ra-palette-active .ra-section-icon,
.ra-module.ra-palette-active .ra-social-link { color: var(--ra-accent, #d4af37); }
.ra-module.ra-palette-active .ra-button { border-color: color-mix(in srgb, var(--ra-accent) 64%, var(--ra-border)); }

/* Palette fallback in case the theme attribute is temporarily absent while
   Joomla is booting: use the dark member of the pair until the theme script
   sets data-theme. */
html:not([data-theme]) .ra-palette-obsidian-ivory { --ra-palette-background:#11100e; --ra-bg:#121212; --ra-bg-soft:#1d1c1a; --ra-bg-contrast:#080808; --ra-text:#eeeae2; --ra-text-muted:#aaa49b; --ra-accent:#d4af37; --ra-border:rgba(238,234,226,.14); }
html:not([data-theme]) .ra-palette-midnight-porcelain { --ra-palette-background:#0d141e; --ra-bg:#0e1520; --ra-bg-soft:#172131; --ra-bg-contrast:#09101a; --ra-text:#edf1f5; --ra-text-muted:#9eabb9; --ra-accent:#c9a76a; --ra-border:rgba(237,241,245,.14); }
html:not([data-theme]) .ra-palette-umber-parchment { --ra-palette-background:#201a16; --ra-bg:#201a16; --ra-bg-soft:#2a221c; --ra-bg-contrast:#130f0d; --ra-text:#f0e7dc; --ra-text-muted:#b2a293; --ra-accent:#c99a52; --ra-border:rgba(240,231,220,.14); }
html:not([data-theme]) .ra-palette-forest-paper { --ra-palette-background:#111a17; --ra-bg:#111a17; --ra-bg-soft:#1b2722; --ra-bg-contrast:#0a100e; --ra-text:#e9efe9; --ra-text-muted:#9eaea4; --ra-accent:#b8a76c; --ra-border:rgba(233,239,233,.14); }
html:not([data-theme]) .ra-palette-wine-blush { --ra-palette-background:#1d1317; --ra-bg:#1d1317; --ra-bg-soft:#281a20; --ra-bg-contrast:#110b0d; --ra-text:#f1e7e9; --ra-text-muted:#b39ca3; --ra-accent:#c79a72; --ra-border:rgba(241,231,233,.14); }

/* Common behaviour for complete style compositions. */
.ra-design-active > .ra-wrapper {
    width: 100%;
    max-width: min(100%, 1440px);
}
.ra-design-active .ra-content-flow {
    width: 100%;
    min-width: 0;
}
.ra-design-active .ra-content-flow > * { min-width: 0; }
.ra-design-active .ra-content-flow > :where(.ra-section-icon, .ra-label, .ra-title, .ra-subtitle, .ra-body, .ra-actions, .ra-social-links, .ra-media-container) {
    margin-top: 0 !important;
}

/* 1 — RA Studio Editorial
   Directly derived from the reference composition: a calm horizontal band,
   large serif title on the left, explanatory copy in the middle and action
   on the right. Designed to work with Philosophy / Process / Wanted / Contact
   without being tied to any specific section type. */
.ra-design-studio-editorial {
    --ra-gap-icon-label: 10px !important;
    --ra-gap-label-title: 10px !important;
    --ra-gap-title-subtitle: 18px !important;
    --ra-gap-subtitle-content: 16px !important;
}
.ra-design-studio-editorial > .ra-wrapper {
    max-width: var(--ra-width, 1280px);
    padding-block: clamp(3rem, 5.8vw, 5.75rem);
}
.ra-design-studio-editorial .ra-content-flow {
    display: grid;
    grid-template-columns: minmax(210px, .9fr) minmax(300px, 1.35fr) minmax(150px, .55fr);
    grid-auto-rows: auto;
    column-gap: clamp(2.5rem, 6vw, 7rem);
    row-gap: .65rem;
    align-items: start;
    text-align: left;
}
.ra-design-studio-editorial :where(.ra-section-icon, .ra-label, .ra-title) { grid-column: 1; }
.ra-design-studio-editorial :where(.ra-subtitle, .ra-body, .ra-media-container) { grid-column: 2; }
.ra-design-studio-editorial :where(.ra-actions, .ra-social-links) {
    grid-column: 3;
    justify-self: end;
    align-self: end;
    text-align: right;
}
.ra-design-studio-editorial .ra-section-icon { font-size: 1.2rem; margin-bottom: .15rem !important; }
.ra-design-studio-editorial .ra-label {
    font-family: Manrope, sans-serif !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    letter-spacing: .19em !important;
}
.ra-design-studio-editorial .ra-title {
    max-width: 12ch;
    font-family: "Cormorant Garamond", serif !important;
    font-size: clamp(2.9rem, 5vw, 4.7rem) !important;
    font-weight: 400 !important;
    line-height: .94 !important;
    letter-spacing: -.035em !important;
}
.ra-design-studio-editorial .ra-title::after {
    content: "";
    display: block;
    width: clamp(56px, 6vw, 92px);
    height: 1px;
    margin-top: clamp(1.1rem, 2vw, 1.7rem);
    background: var(--ra-accent, #d4af37);
}
.ra-design-studio-editorial .ra-subtitle {
    max-width: 34ch;
    font-family: "Newsreader", serif !important;
    font-size: clamp(1.15rem, 1.65vw, 1.45rem) !important;
    font-style: italic;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}
.ra-design-studio-editorial .ra-body {
    max-width: 46ch;
    font-family: Manrope, sans-serif !important;
    font-size: clamp(.98rem, 1.15vw, 1.1rem) !important;
    font-weight: 350 !important;
    line-height: 1.58 !important;
}
.ra-design-studio-editorial .ra-actions .ra-button {
    background: transparent;
    border: 0;
    padding-inline: 0;
    color: var(--ra-accent, #d4af37);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* 2 — Editorial Air: asymmetrical two-column editorial page. */
.ra-design-editorial-air > .ra-wrapper { padding-block: clamp(4rem, 7vw, 7rem); }
.ra-design-editorial-air .ra-content-flow {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) minmax(320px, 1.25fr);
    column-gap: clamp(3rem, 8vw, 8rem);
    row-gap: .85rem;
    align-items: start;
    text-align: left;
}
.ra-design-editorial-air :where(.ra-section-icon, .ra-label, .ra-title) { grid-column: 1; }
.ra-design-editorial-air :where(.ra-subtitle, .ra-body, .ra-actions, .ra-social-links, .ra-media-container) { grid-column: 2; }
.ra-design-editorial-air .ra-title { font-size: clamp(3.3rem, 6.3vw, 5.8rem) !important; }
.ra-design-editorial-air .ra-body { max-width: 50ch !important; }
.ra-design-editorial-air .ra-actions { justify-self: start; margin-top: 1.2rem !important; }

/* 3 — Cinema Frame: title behaves like a film title card, copy sits in the
   lower-right quadrant. */
.ra-design-cinema-frame > .ra-wrapper { padding-block: clamp(4rem, 8vw, 8rem); }
.ra-design-cinema-frame .ra-content-flow {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(.8rem, 1.4vw, 1.35rem);
    align-items: end;
    text-align: left;
}
.ra-design-cinema-frame :where(.ra-section-icon, .ra-label) { grid-column: 1 / 4; }
.ra-design-cinema-frame .ra-title { grid-column: 1 / 11; font-size: clamp(3.5rem, 7.6vw, 7.2rem) !important; max-width: 13ch !important; }
.ra-design-cinema-frame .ra-subtitle { grid-column: 7 / 13; margin-top: 1.4rem !important; }
.ra-design-cinema-frame .ra-body { grid-column: 7 / 13; max-width: 46ch !important; }
.ra-design-cinema-frame :where(.ra-actions, .ra-social-links) { grid-column: 7 / 13; justify-self: start; margin-top: 1rem !important; }
.ra-design-cinema-frame .ra-media-container { grid-column: 1 / 13; margin-top: 2rem !important; }

/* 4 — Gallery Asymmetry: museum/catalogue geometry with a narrow information
   rail and a strong editorial title. */
.ra-design-gallery-asym > .ra-wrapper { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.ra-design-gallery-asym .ra-content-flow {
    display: grid;
    grid-template-columns: minmax(100px, 1.2fr) minmax(260px, 4.4fr) minmax(260px, 4fr);
    column-gap: clamp(1.8rem, 4.8vw, 5.5rem);
    row-gap: .8rem;
    align-items: start;
    text-align: left;
}
.ra-design-gallery-asym :where(.ra-section-icon, .ra-label) { grid-column: 1; }
.ra-design-gallery-asym .ra-title { grid-column: 2; grid-row: 1 / span 3; font-family: Newsreader, serif !important; font-size: clamp(3rem, 5.4vw, 5.2rem) !important; font-weight: 400 !important; line-height: .96 !important; }
.ra-design-gallery-asym :where(.ra-subtitle, .ra-body, .ra-actions, .ra-social-links, .ra-media-container) { grid-column: 3; }
.ra-design-gallery-asym .ra-body { max-width: 46ch; }
.ra-design-gallery-asym .ra-label { writing-mode: vertical-rl; transform: rotate(180deg); }

/* 5 — Quiet Luxury: centered, restrained, deliberately spacious. */
.ra-design-quiet-luxury > .ra-wrapper { max-width: 1120px; padding-block: clamp(4.5rem, 9vw, 9rem); }
.ra-design-quiet-luxury .ra-content-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.ra-design-quiet-luxury .ra-section-icon { margin-bottom: .8rem !important; }
.ra-design-quiet-luxury .ra-label { margin-bottom: 1.15rem !important; }
.ra-design-quiet-luxury .ra-title { max-width: 15ch !important; font-size: clamp(3.15rem, 5.8vw, 5.4rem) !important; }
.ra-design-quiet-luxury .ra-subtitle { max-width: 34ch !important; margin-top: 1.4rem !important; }
.ra-design-quiet-luxury .ra-body { max-width: 54ch !important; margin-top: 2rem !important; }
.ra-design-quiet-luxury :where(.ra-actions, .ra-social-links) { margin-top: 2.2rem !important; }

/* 6 — Modern Signal: architectural 12-column composition with the icon/label
   acting as a side marker. */
.ra-design-modern-signal > .ra-wrapper { padding-block: clamp(3rem, 5.5vw, 5.5rem); }
.ra-design-modern-signal .ra-content-flow {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(.75rem, 1.35vw, 1.25rem);
    align-items: start;
    text-align: left;
}
.ra-design-modern-signal :where(.ra-section-icon, .ra-label) { grid-column: 1 / 3; }
.ra-design-modern-signal .ra-title { grid-column: 3 / 9; max-width: 18ch !important; }
.ra-design-modern-signal :where(.ra-subtitle, .ra-body) { grid-column: 9 / 13; }
.ra-design-modern-signal :where(.ra-actions, .ra-social-links) { grid-column: 9 / 13; justify-self: start; margin-top: 1rem !important; }
.ra-design-modern-signal .ra-media-container { grid-column: 3 / 13; margin-top: 1.5rem !important; }

@media (max-width: 920px) {
    .ra-design-active > .ra-wrapper { padding-block: clamp(3rem, 8vw, 5rem); }
    .ra-design-studio-editorial .ra-content-flow,
    .ra-design-editorial-air .ra-content-flow,
    .ra-design-gallery-asym .ra-content-flow,
    .ra-design-cinema-frame .ra-content-flow,
    .ra-design-modern-signal .ra-content-flow {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        text-align: left;
    }
    .ra-design-active :where(.ra-section-icon, .ra-label, .ra-title, .ra-subtitle, .ra-body, .ra-actions, .ra-social-links, .ra-media-container) {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto !important;
        align-self: auto !important;
    }
    .ra-design-active .ra-label { writing-mode: horizontal-tb; transform: none; margin-top: .75rem !important; }
    .ra-design-active .ra-title { margin-top: 1rem !important; }
    .ra-design-active .ra-subtitle { margin-top: 1.4rem !important; }
    .ra-design-active .ra-body { margin-top: 1.15rem !important; }
    .ra-design-active :where(.ra-actions, .ra-social-links) { margin-top: 1.6rem !important; }
    .ra-design-active .ra-media-container { width: 100%; margin-top: 1.8rem !important; }
}

/* RA Composer 4.3.1 — desktop preset alignment precedence.
   Complete visual presets own composition geometry, but the explicit
   Text alignment control must remain authoritative. The older preset
   rules had higher specificity than .ra-text-align-* and forced left. */
@media (min-width: 921px) {
    .ra-design-active.ra-text-align-left .ra-content-flow { text-align: left; }
    .ra-design-active.ra-text-align-center .ra-content-flow { text-align: center; }
    .ra-design-active.ra-text-align-right .ra-content-flow { text-align: right; }
    .ra-design-active.ra-text-align-justify .ra-content-flow { text-align: justify; }
}

/* ==========================================================
   RA Composer 4.3 — icon positioning, unified RA Studio styles,
   extended palettes and random-background compatibility
========================================================== */

/* Icon positioning mirrors the label positioning engine exactly. */
.ra-icon-position-absolute > .ra-wrapper { position: relative; }
.ra-icon-position-absolute .ra-section-icon {
    position: absolute;
    z-index: 9;
    margin: 0 !important;
    translate: var(--ra-icon-offset-x, 0px) var(--ra-icon-offset-y, 0px);
}
.ra-icon-position-absolute.ra-icon-anchor-top-left .ra-section-icon { top: 0; left: 0; }
.ra-icon-position-absolute.ra-icon-anchor-top-center .ra-section-icon { top: 0; left: 50%; transform: translateX(-50%); }
.ra-icon-position-absolute.ra-icon-anchor-top-right .ra-section-icon { top: 0; right: 0; }
.ra-icon-position-absolute.ra-icon-anchor-center-left .ra-section-icon { top: 50%; left: 0; transform: translateY(-50%); }
.ra-icon-position-absolute.ra-icon-anchor-center .ra-section-icon { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.ra-icon-position-absolute.ra-icon-anchor-center-right .ra-section-icon { top: 50%; right: 0; transform: translateY(-50%); }
.ra-icon-position-absolute.ra-icon-anchor-bottom-left .ra-section-icon { bottom: 0; left: 0; }
.ra-icon-position-absolute.ra-icon-anchor-bottom-center .ra-section-icon { bottom: 0; left: 50%; transform: translateX(-50%); }
.ra-icon-position-absolute.ra-icon-anchor-bottom-right .ra-section-icon { right: 0; bottom: 0; }

/* Native RA Studio compositions. These are now first-class RA Composer
   presets, not an external after-render decoration. */
.ra-design-atelier {
    --ra-gap-icon-label: 10px !important;
    --ra-gap-label-title: 12px !important;
    --ra-gap-title-subtitle: 18px !important;
    --ra-gap-subtitle-content: 26px !important;
}
.ra-design-atelier .ra-label { font-family: Manrope, sans-serif !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: .16em !important; }
.ra-design-atelier .ra-title { max-width: 18ch; font-family: "Instrument Serif", "Cormorant Garamond", serif !important; font-size: clamp(2.6rem, 5vw, 4.8rem) !important; font-weight: 400 !important; line-height: .98 !important; letter-spacing: -.035em !important; }
.ra-design-atelier .ra-subtitle { max-width: 42ch; font-family: Manrope, sans-serif !important; font-size: clamp(1rem, 1.45vw, 1.25rem) !important; font-weight: 400 !important; line-height: 1.45 !important; }
.ra-design-atelier .ra-body { max-width: 66ch; font-family: Manrope, sans-serif !important; font-size: clamp(.96rem, 1.15vw, 1.08rem) !important; font-weight: 350 !important; line-height: 1.72 !important; }

.ra-design-monograph {
    --ra-gap-icon-label: 12px !important;
    --ra-gap-label-title: 14px !important;
    --ra-gap-title-subtitle: 20px !important;
    --ra-gap-subtitle-content: 24px !important;
}
.ra-design-monograph .ra-label { font-family: Manrope, sans-serif !important; font-size: 10px !important; font-weight: 700 !important; letter-spacing: .18em !important; }
.ra-design-monograph .ra-title { max-width: 17ch; font-family: "Bodoni Moda", "Cormorant Garamond", serif !important; font-size: clamp(2.7rem, 5.2vw, 5rem) !important; font-weight: 500 !important; line-height: .96 !important; letter-spacing: -.045em !important; }
.ra-design-monograph .ra-subtitle { max-width: 40ch; font-family: Newsreader, "EB Garamond", serif !important; font-size: clamp(1.05rem, 1.6vw, 1.34rem) !important; font-weight: 400 !important; line-height: 1.45 !important; }
.ra-design-monograph .ra-body { max-width: 62ch; font-family: Newsreader, "EB Garamond", serif !important; font-size: clamp(1rem, 1.2vw, 1.12rem) !important; font-weight: 400 !important; line-height: 1.72 !important; }

.ra-design-cinematic {
    --ra-gap-icon-label: 12px !important;
    --ra-gap-label-title: 16px !important;
    --ra-gap-title-subtitle: 22px !important;
    --ra-gap-subtitle-content: 30px !important;
}
.ra-design-cinematic .ra-label { font-family: Manrope, sans-serif !important; font-size: 10px !important; font-weight: 700 !important; letter-spacing: .2em !important; }
.ra-design-cinematic .ra-title { max-width: 20ch; font-family: "Cormorant Garamond", serif !important; font-size: clamp(3rem, 6vw, 5.8rem) !important; font-weight: 500 !important; line-height: .94 !important; letter-spacing: -.045em !important; }
.ra-design-cinematic .ra-subtitle { max-width: 44ch; font-family: Manrope, sans-serif !important; font-size: clamp(.95rem, 1.35vw, 1.15rem) !important; font-weight: 500 !important; line-height: 1.45 !important; letter-spacing: .02em !important; }
.ra-design-cinematic .ra-body { max-width: 64ch; font-family: Manrope, sans-serif !important; font-size: clamp(.95rem, 1.1vw, 1.06rem) !important; font-weight: 350 !important; line-height: 1.75 !important; }

.ra-design-modernist {
    --ra-gap-icon-label: 10px !important;
    --ra-gap-label-title: 14px !important;
    --ra-gap-title-subtitle: 18px !important;
    --ra-gap-subtitle-content: 24px !important;
}
.ra-design-modernist .ra-label { font-family: Anybody, Manrope, sans-serif !important; font-size: 10px !important; font-weight: 600 !important; letter-spacing: .16em !important; }
.ra-design-modernist .ra-title { max-width: 18ch; font-family: Anybody, "Space Grotesk", sans-serif !important; font-size: clamp(2.35rem, 4.5vw, 4.2rem) !important; font-weight: 500 !important; line-height: .98 !important; letter-spacing: -.03em !important; }
.ra-design-modernist .ra-subtitle { max-width: 42ch; font-family: "DM Sans", Manrope, sans-serif !important; font-size: clamp(.95rem, 1.3vw, 1.12rem) !important; font-weight: 500 !important; line-height: 1.45 !important; }
.ra-design-modernist .ra-body { max-width: 66ch; font-family: "DM Sans", Manrope, sans-serif !important; font-size: clamp(.94rem, 1.1vw, 1.04rem) !important; font-weight: 400 !important; line-height: 1.7 !important; }

.ra-design-technical {
    --ra-gap-icon-label: 8px !important;
    --ra-gap-label-title: 12px !important;
    --ra-gap-title-subtitle: 16px !important;
    --ra-gap-subtitle-content: 22px !important;
}
.ra-design-technical .ra-label { font-family: Unbounded, "Space Grotesk", sans-serif !important; font-size: 9px !important; font-weight: 500 !important; letter-spacing: .14em !important; }
.ra-design-technical .ra-title { max-width: 20ch; font-family: Unbounded, "Space Grotesk", sans-serif !important; font-size: clamp(1.8rem, 3.4vw, 3.2rem) !important; font-weight: 500 !important; line-height: 1.05 !important; letter-spacing: -.03em !important; text-transform: uppercase !important; }
.ra-design-technical .ra-subtitle { max-width: 44ch; font-family: "DM Sans", Manrope, sans-serif !important; font-size: clamp(.9rem, 1.15vw, 1rem) !important; font-weight: 500 !important; line-height: 1.45 !important; }
.ra-design-technical .ra-body { max-width: 64ch; font-family: "DM Sans", Manrope, sans-serif !important; font-size: clamp(.9rem, 1.06vw, 1rem) !important; font-weight: 400 !important; line-height: 1.65 !important; }

/* Extended paired palettes — migrated from RA Builder Extras. */
html[data-theme="dark"] .ra-palette-carbon-clay { --ra-palette-background:#171412; --ra-bg:#171412; --ra-bg-soft:#211c19; --ra-bg-contrast:#0d0b0a; --ra-text:#eee7e1; --ra-text-muted:#b9aaa0; --ra-accent:#c7896e; --ra-border:rgba(238,231,225,.15); }
html[data-theme="light"] .ra-palette-carbon-clay { --ra-palette-background:#f0e9e2; --ra-bg:#f0e9e2; --ra-bg-soft:#e7ddd4; --ra-bg-contrast:#d8cbc0; --ra-text:#28211d; --ra-text-muted:#75655c; --ra-accent:#995f49; --ra-border:rgba(40,33,29,.16); }
html[data-theme="dark"] .ra-palette-petrol-linen { --ra-palette-background:#0f1c1f; --ra-bg:#0f1c1f; --ra-bg-soft:#17272a; --ra-bg-contrast:#081114; --ra-text:#e8ece8; --ra-text-muted:#a7b6b3; --ra-accent:#79aaa5; --ra-border:rgba(232,236,232,.14); }
html[data-theme="light"] .ra-palette-petrol-linen { --ra-palette-background:#efe9dd; --ra-bg:#efe9dd; --ra-bg-soft:#e3ddd2; --ra-bg-contrast:#d3cabd; --ra-text:#1e2929; --ra-text-muted:#687472; --ra-accent:#4f807c; --ra-border:rgba(30,41,41,.15); }
html[data-theme="dark"] .ra-palette-aubergine-chalk { --ra-palette-background:#20151f; --ra-bg:#20151f; --ra-bg-soft:#2b1d29; --ra-bg-contrast:#120b11; --ra-text:#eee8ed; --ra-text-muted:#bcaab8; --ra-accent:#bb809f; --ra-border:rgba(238,232,237,.14); }
html[data-theme="light"] .ra-palette-aubergine-chalk { --ra-palette-background:#f0e9ed; --ra-bg:#f0e9ed; --ra-bg-soft:#e5dade; --ra-bg-contrast:#d5c9cf; --ra-text:#2a2028; --ra-text-muted:#746570; --ra-accent:#925f7c; --ra-border:rgba(42,32,40,.15); }
html[data-theme="dark"] .ra-palette-olive-bone { --ra-palette-background:#181b14; --ra-bg:#181b14; --ra-bg-soft:#23271d; --ra-bg-contrast:#0e100b; --ra-text:#ecece4; --ra-text-muted:#b4b6a3; --ra-accent:#a6aa79; --ra-border:rgba(236,236,228,.14); }
html[data-theme="light"] .ra-palette-olive-bone { --ra-palette-background:#efeee5; --ra-bg:#efeee5; --ra-bg-soft:#e3e2d7; --ra-bg-contrast:#d2d1c4; --ra-text:#27291f; --ra-text-muted:#6d705f; --ra-accent:#797d50; --ra-border:rgba(39,41,31,.15); }
html[data-theme="dark"] .ra-palette-steel-paper { --ra-palette-background:#151a20; --ra-bg:#151a20; --ra-bg-soft:#1f2730; --ra-bg-contrast:#0b0f14; --ra-text:#e8ebee; --ra-text-muted:#a9b2bc; --ra-accent:#88a7c1; --ra-border:rgba(232,235,238,.14); }
html[data-theme="light"] .ra-palette-steel-paper { --ra-palette-background:#edf0f2; --ra-bg:#edf0f2; --ra-bg-soft:#dfe4e8; --ra-bg-contrast:#cfd6db; --ra-text:#20262c; --ra-text-muted:#66727d; --ra-accent:#5c7890; --ra-border:rgba(32,38,44,.15); }

/* Four seasons: each member is a complete dark/light pair. */
html[data-theme="dark"] .ra-palette-spring-bloom { --ra-palette-background:#132019; --ra-bg:#132019; --ra-bg-soft:#1d2d23; --ra-bg-contrast:#0a120d; --ra-text:#edf3eb; --ra-text-muted:#a8b9aa; --ra-accent:#d0a0a8; --ra-border:rgba(237,243,235,.14); }
html[data-theme="light"] .ra-palette-spring-bloom { --ra-palette-background:#edf2e8; --ra-bg:#edf2e8; --ra-bg-soft:#e0e9d9; --ra-bg-contrast:#cedbc5; --ra-text:#1d2a20; --ra-text-muted:#667467; --ra-accent:#a26472; --ra-border:rgba(29,42,32,.15); }
html[data-theme="dark"] .ra-palette-summer-coast { --ra-palette-background:#0d1d24; --ra-bg:#0d1d24; --ra-bg-soft:#152b33; --ra-bg-contrast:#071117; --ra-text:#edf4f3; --ra-text-muted:#a4b9ba; --ra-accent:#d6b86e; --ra-border:rgba(237,244,243,.14); }
html[data-theme="light"] .ra-palette-summer-coast { --ra-palette-background:#f0eadc; --ra-bg:#f0eadc; --ra-bg-soft:#e3e7dc; --ra-bg-contrast:#d2dbd2; --ra-text:#16303a; --ra-text-muted:#60757a; --ra-accent:#9a762a; --ra-border:rgba(22,48,58,.15); }
html[data-theme="dark"] .ra-palette-autumn-ember { --ra-palette-background:#241713; --ra-bg:#241713; --ra-bg-soft:#322019; --ra-bg-contrast:#130b09; --ra-text:#f2e9df; --ra-text-muted:#bda999; --ra-accent:#c87842; --ra-border:rgba(242,233,223,.14); }
html[data-theme="light"] .ra-palette-autumn-ember { --ra-palette-background:#efe4d4; --ra-bg:#efe4d4; --ra-bg-soft:#e5d5bf; --ra-bg-contrast:#d6c2a8; --ra-text:#352219; --ra-text-muted:#7a6658; --ra-accent:#9c542b; --ra-border:rgba(53,34,25,.15); }
html[data-theme="dark"] .ra-palette-winter-frost { --ra-palette-background:#101822; --ra-bg:#101822; --ra-bg-soft:#192536; --ra-bg-contrast:#080e16; --ra-text:#eef3f7; --ra-text-muted:#a8b6c4; --ra-accent:#94b7d0; --ra-border:rgba(238,243,247,.14); }
html[data-theme="light"] .ra-palette-winter-frost { --ra-palette-background:#eef3f6; --ra-bg:#eef3f6; --ra-bg-soft:#dfe8ee; --ra-bg-contrast:#cddbe4; --ra-text:#1d2a35; --ra-text-muted:#647582; --ra-accent:#587f9b; --ra-border:rgba(29,42,53,.15); }

html:not([data-theme]) .ra-palette-carbon-clay { --ra-palette-background:#171412; --ra-bg:#171412; --ra-bg-soft:#211c19; --ra-bg-contrast:#0d0b0a; --ra-text:#eee7e1; --ra-text-muted:#b9aaa0; --ra-accent:#c7896e; --ra-border:rgba(238,231,225,.15); }
html:not([data-theme]) .ra-palette-petrol-linen { --ra-palette-background:#0f1c1f; --ra-bg:#0f1c1f; --ra-bg-soft:#17272a; --ra-bg-contrast:#081114; --ra-text:#e8ece8; --ra-text-muted:#a7b6b3; --ra-accent:#79aaa5; --ra-border:rgba(232,236,232,.14); }
html:not([data-theme]) .ra-palette-aubergine-chalk { --ra-palette-background:#20151f; --ra-bg:#20151f; --ra-bg-soft:#2b1d29; --ra-bg-contrast:#120b11; --ra-text:#eee8ed; --ra-text-muted:#bcaab8; --ra-accent:#bb809f; --ra-border:rgba(238,232,237,.14); }
html:not([data-theme]) .ra-palette-olive-bone { --ra-palette-background:#181b14; --ra-bg:#181b14; --ra-bg-soft:#23271d; --ra-bg-contrast:#0e100b; --ra-text:#ecece4; --ra-text-muted:#b4b6a3; --ra-accent:#a6aa79; --ra-border:rgba(236,236,228,.14); }
html:not([data-theme]) .ra-palette-steel-paper { --ra-palette-background:#151a20; --ra-bg:#151a20; --ra-bg-soft:#1f2730; --ra-bg-contrast:#0b0f14; --ra-text:#e8ebee; --ra-text-muted:#a9b2bc; --ra-accent:#88a7c1; --ra-border:rgba(232,235,238,.14); }
html:not([data-theme]) .ra-palette-spring-bloom { --ra-palette-background:#132019; --ra-bg:#132019; --ra-bg-soft:#1d2d23; --ra-bg-contrast:#0a120d; --ra-text:#edf3eb; --ra-text-muted:#a8b9aa; --ra-accent:#d0a0a8; --ra-border:rgba(237,243,235,.14); }
html:not([data-theme]) .ra-palette-summer-coast { --ra-palette-background:#0d1d24; --ra-bg:#0d1d24; --ra-bg-soft:#152b33; --ra-bg-contrast:#071117; --ra-text:#edf4f3; --ra-text-muted:#a4b9ba; --ra-accent:#d6b86e; --ra-border:rgba(237,244,243,.14); }
html:not([data-theme]) .ra-palette-autumn-ember { --ra-palette-background:#241713; --ra-bg:#241713; --ra-bg-soft:#322019; --ra-bg-contrast:#130b09; --ra-text:#f2e9df; --ra-text-muted:#bda999; --ra-accent:#c87842; --ra-border:rgba(242,233,223,.14); }
html:not([data-theme]) .ra-palette-winter-frost { --ra-palette-background:#101822; --ra-bg:#101822; --ra-bg-soft:#192536; --ra-bg-contrast:#080e16; --ra-text:#eef3f7; --ra-text-muted:#a8b6c4; --ra-accent:#94b7d0; --ra-border:rgba(238,243,247,.14); }

/* Random is an image-backed background type; the actual URL is resolved
   server-side from /images/random_bg. */
.ra-bg-random { background-color: var(--ra-bg, transparent); }
