/*
 * Shared Sepehrno palette — synchronized with Sepehrno Atelier.
 * Theme toggle in the site header sets html[data-sp-theme="dark"] and
 * persists localStorage["sp-sepehrno-theme"].
 */
:root{
 --sp-bg:#FCF9F3;
 --sp-bg2:#F6F0E9;
 --sp-ink:#2E2D27;
 --sp-gold:#D08E27;
 --sp-gold-light:#E8D4A5;
 --sp-muted:#6B675F;
 --sp-placeholder:#B2AFA7;
 --sp-card:#FBF8F0;
 --sp-border:#BCB9B3;
 --sp-shadow:0 18px 55px rgba(46,45,39,.09);
 --sp-radius:18px;
}
html[data-sp-theme="dark"]{
 --sp-bg:#111315;
 --sp-bg2:#181B1E;
 --sp-ink:#F2EEE6;
 --sp-gold:#E0A642;
 --sp-gold-light:#F0D79F;
 --sp-muted:#B8B2A8;
 --sp-placeholder:#85837E;
 --sp-card:#1D2124;
 --sp-border:#3B3F42;
 --sp-shadow:0 18px 55px rgba(0,0,0,.38);
 color-scheme:dark;
}
.sp-os-public-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;direction:rtl}
.sp-os-public-card,.sp-os-account,.sp-os-panel,.sp-os-module-card{
 color:var(--sp-ink);background:var(--sp-card);border:1px solid var(--sp-border);
 border-radius:var(--sp-radius);padding:18px;box-shadow:var(--sp-shadow);
 transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.sp-os-public-card img{max-width:100%;height:auto;border-radius:12px}
.sp-os-public-card h3{margin-top:10px;color:var(--sp-ink)}
.sp-os-public-card a{color:var(--sp-ink)}
.sp-os-public-card a:hover{color:var(--sp-gold)}
.sp-os-account{direction:rtl}
.sp-os-public-card p,.sp-os-account p,.sp-os-account li{color:var(--sp-muted)}
.sp-os-public-card button,.sp-os-account button,.sp-os-button{
 background:var(--sp-gold);color:#fff;border:1px solid var(--sp-gold);
 border-radius:12px;padding:9px 15px;font:inherit;font-weight:700;cursor:pointer;
}
.sp-os-public-card input,.sp-os-public-card select,.sp-os-public-card textarea,
.sp-os-account input,.sp-os-account select,.sp-os-account textarea{
 background:var(--sp-bg);color:var(--sp-ink);border:1px solid var(--sp-border);
 border-radius:10px;padding:10px;max-width:100%;
}
html[data-sp-theme="dark"] .sp-os-public-card,
html[data-sp-theme="dark"] .sp-os-account,
html[data-sp-theme="dark"] .sp-os-panel,
html[data-sp-theme="dark"] .sp-os-module-card{background:var(--sp-card);color:var(--sp-ink);border-color:var(--sp-border)}
html[data-sp-theme="dark"] .sp-os-public-card input,
html[data-sp-theme="dark"] .sp-os-public-card select,
html[data-sp-theme="dark"] .sp-os-public-card textarea,
html[data-sp-theme="dark"] .sp-os-account input,
html[data-sp-theme="dark"] .sp-os-account select,
html[data-sp-theme="dark"] .sp-os-account textarea{
 background:#202428;color:var(--sp-ink);border-color:#484D50;
}
@media(prefers-reduced-motion:reduce){.sp-os-public-card,.sp-os-account,.sp-os-panel,.sp-os-module-card{transition:none}}
