/* Studio theme layer for older Ray Syntax pages (loaded last). Black, ivory and gold; Cormorant Garamond + Manrope. */
:root{
/* old styles.css tokens -> studio palette */
--night:#0f0d0c;--navy:#141210;--indigo:#1c1916;--violet-deep:#2a2219;--violet:#c9a46a;--lilac:#e2c48a;--coral:#c9a46a;--coral-2:#e2c48a;--gold:#c9a46a;--gold-2:#e2c48a;--text:#f3ece0;--soft:#d9cfbf;--muted:#a89d8e;--line:rgba(201,164,106,.22);
/* old home-restyle (language homes) tokens: light paper theme -> dark studio */
--night-2:#1c1916;--ink:#f3ece0;--ink-2:#d9cfbf;--paper:#141210;--white:#1c1916;--line-dark:rgba(243,236,224,.10);--coral-ink:#17120c;--coral-text:#e2c48a;--sand:#e2c48a;
/* fonts */
--serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;--display:"Cormorant Garamond",Georgia,serif;--sans:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
/* studio tokens for page fixes */
--st-bg:#141210;--st-bg2:#1c1916;--st-bg3:#0f0d0c;--st-panel:#1f1b17;--st-ivory:#f3ece0;--st-ivory2:#d9cfbf;--st-muted:#a89d8e;--st-gold:#c9a46a;--st-gold2:#e2c48a;--st-goldd:#a7834b;--st-line:rgba(201,164,106,.28);--st-line2:rgba(243,236,224,.10);--st-err:#eba597;--st-ok:#b9d6a4}
html{background:#141210}
body{font-family:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;background-color:#141210;color:#d9cfbf;-webkit-font-smoothing:antialiased}
h1,h2,h3,.h1,.h2{font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.005em;color:#f3ece0}
h4,h5{font-family:"Manrope",system-ui,sans-serif;color:#f3ece0}
h1 em,h2 em,h3 em,h1 i,h2 i{font-style:italic;color:#e2c48a}
::selection{background:rgba(201,164,106,.35);color:#fff8ec}
a{color:inherit}
:focus-visible{outline:2px solid #e2c48a;outline-offset:3px}
/* buttons (old component names) */
.btn{border-radius:999px;font-family:"Manrope",system-ui,sans-serif;font-weight:600;letter-spacing:.14em;text-transform:uppercase;font-size:12.5px;min-height:48px;padding-inline:26px}
.btn-coral,.btn-primary,.btn-nav,.btn-gold,.btn-solid,button.primary,.btn-cta{background:linear-gradient(100deg,#e2c48a,#c9a46a 55%,#a7834b)!important;color:#17120c!important;border:1px solid transparent!important;box-shadow:0 10px 30px -14px rgba(201,164,106,.7)}
.btn-coral:hover,.btn-primary:hover,.btn-nav:hover{filter:brightness(1.06)}
.btn-ghost,.btn-outline,.btn-line,.btn-secondary{background:transparent!important;color:#e2c48a!important;border:1px solid #c9a46a!important;box-shadow:none!important}
.btn-ghost:hover,.btn-outline:hover{background:rgba(201,164,106,.1)!important}
.btn-sm{min-height:40px;font-size:11.5px;padding-inline:18px}
.btn-lg{min-height:56px;font-size:13px;padding-inline:32px}
/* form controls inside tools and forms */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]),select,textarea{background-color:#0f0d0c;color:#f3ece0;border:1px solid rgba(201,164,106,.38);border-radius:10px;font-family:"Manrope",system-ui,sans-serif}
input::placeholder,textarea::placeholder{color:#8f8576}
input:focus,select:focus,textarea:focus{border-color:#e2c48a!important;box-shadow:0 0 0 3px rgba(201,164,106,.22)!important;outline:none}
input[type=checkbox],input[type=radio],input[type=range]{accent-color:#c9a46a}
select option{background:#141210;color:#f3ece0}
label,legend{color:#e8dfd0}
/* error + invalid states keep a clear (soft red) signal */
.err,.error,.field-error,.form-error,.msg.err,[role=alert].err,.is-error,.bad .err{color:#eba597!important}
[aria-invalid=true],.bad input,.bad textarea,.bad select,.invalid{border-color:#d98476!important}
.ok-msg,.success,.is-ok{color:#b9d6a4}
/* common old surfaces */
.card,.panel,.tile,.result,.results,.nc-card,.tk-card,.box{border-color:rgba(201,164,106,.24)}
hr{border-color:rgba(201,164,106,.24)}
.eyebrow,.kicker,.lbl{color:#c9a46a!important;letter-spacing:.24em}
/* old header/footer no longer used; hide any stragglers */
.site-header:not(.rs-hdr),.site-footer:not(.rs-ftr){display:none!important}

/* results / outputs */
.st-result,.result-card,.results,[data-result],.nc-result,.out{background:#1c1916;border:1px solid rgba(201,164,106,.3);border-radius:14px;color:#d9cfbf}
.st-result b,.st-num,.big-num,.result-num{font-family:"Cormorant Garamond",Georgia,serif;color:#e2c48a;font-weight:600}
/* RTL helpers */
html[dir=rtl] body{text-align:right}
html[dir=rtl] .btn .ar,html[dir=rtl] .arrow{display:inline-block;transform:scaleX(-1)}

/* old pages keep their own skip link: show it in studio gold when focused */
a.skip{background:#c9a46a!important;color:#0f0d0c!important;border-color:#c9a46a!important}

/* print: plain white paper, dark text (pages may add their own print rules) */
@media print{html,body{background:#fff!important;color:#111!important}}

/* RTL start pages (moved from batch C /fa/start/ block, per C request) */
html[dir="rtl"] .start-page{text-align:right}
html[dir="rtl"] .start-page .start-h,
html[dir="rtl"] .start-page .lead,
html[dir="rtl"] .start-page .fit-check,
html[dir="rtl"] .start-page fieldset,
html[dir="rtl"] .start-page legend,
html[dir="rtl"] .start-page label,
html[dir="rtl"] .start-page .pkg-body,
html[dir="rtl"] .start-page .success{text-align:right}
html[dir="rtl"] .start-page input[type=text],
html[dir="rtl"] .start-page input[type=email],
html[dir="rtl"] .start-page input[type=tel],
html[dir="rtl"] .start-page input[type=url],
html[dir="rtl"] .start-page textarea,
html[dir="rtl"] .start-page select{text-align:right;direction:rtl}
html[dir="rtl"] .start-page .pkg-body .price{margin-left:0;margin-inline-start:auto}
html[dir="rtl"] .start-page .success-next li{padding-left:0;padding-inline-start:1.4rem}
html[dir="rtl"] .start-page .success-next li::before{left:auto;right:0}
html[dir="rtl"] .start-page .next-steps .n,
html[dir="rtl"] .start-page .num{margin-left:.35rem;margin-right:0;margin-inline-end:.35rem;margin-inline-start:0}
html[dir="rtl"] .start-page .btn .ar,
html[dir="rtl"] .start-page .arrow{display:inline-block;transform:scaleX(-1)}
html[dir="rtl"] .start-page .progress{left:28px;right:28px}
html[dir="rtl"] .start-page .hp,
html[dir="rtl"] .start-page .rss-lang-hp{left:auto;right:-10000px;clip:rect(0 0 0 0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;position:absolute!important}
html[dir="rtl"] .start-page .rm{right:auto;left:4px;inset-inline-end:4px;inset-inline-start:auto}
html[dir="rtl"] .start-page .field .hint:has([data-count]){text-align:left;text-align:start}
html[dir="rtl"] .rs-offer-scope,html[dir="rtl"] .rs-offer-extra{text-align:right}

/* LTR amounts inside RTL text ($500 stays $500) */
.rs-ltr,[dir=ltr].rs-ltr{unicode-bidi:isolate;direction:ltr;display:inline-block}
