
/* RFC-AI distinct visual themes. All themes preserve the public read-only boundary. */
:root{--focus:#e6a100;--surface:var(--white);--link:#2563eb;--hero-start:#0b2b58;--hero-mid:#164ea5;--hero-end:#088fae}
body[data-rfc-theme="crimson"]{color-scheme:dark;--ink:#f9e8e9;--muted:#e2bac1;--paper:#16090e;--white:#30111e;--edge:#663142;--accent:#ff6577;--link:#ff9fa9;--hero-start:#510c21;--hero-mid:#941b39;--hero-end:#c13845}
body[data-rfc-theme="reddit"]{color-scheme:light;--ink:#22252a;--muted:#5b6066;--paper:#f2f2f4;--white:#fff;--edge:#ced3d9;--accent:#cf3b00;--link:#c43800;--hero-start:#992b06;--hero-mid:#e94d11;--hero-end:#ff8351}
body[data-rfc-theme="facebook"]{color-scheme:light;--ink:#16283f;--muted:#566b87;--paper:#edf2f9;--white:#fff;--edge:#cdd9ed;--accent:#1458bd;--link:#1458bd;--hero-start:#0a2863;--hero-mid:#1459ba;--hero-end:#2981ed}
body[data-rfc-theme="github"]{color-scheme:dark;--ink:#e6edf3;--muted:#adbac7;--paper:#0d1117;--white:#161b22;--edge:#30363d;--accent:#58a6ff;--link:#79c0ff;--hero-start:#0d1117;--hero-mid:#212b3c;--hero-end:#344a65}
body[data-rfc-theme="forest"]{color-scheme:dark;--ink:#e8fff3;--muted:#c1dccd;--paper:#081d18;--white:#12342a;--edge:#396f5c;--accent:#4de5a1;--link:#7af5b9;--hero-start:#063b2d;--hero-mid:#09704e;--hero-end:#11a67b}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .top{background:var(--white);border-color:var(--edge)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .topnav a,body[data-rfc-theme]:not([data-rfc-theme="classic"]) .side a{color:var(--ink)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .topnav a:hover,body[data-rfc-theme]:not([data-rfc-theme="classic"]) .side a:hover{background:var(--edge)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .brand,body[data-rfc-theme]:not([data-rfc-theme="classic"]) .brand span{color:var(--ink)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .hero{background:linear-gradient(135deg,var(--hero-start),var(--hero-mid) 65%,var(--hero-end))}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .eyebrow{color:#fff0d2}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .hero p{color:#fff}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .btn{color:var(--hero-start)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .tile .symbol,body[data-rfc-theme]:not([data-rfc-theme="classic"]) .metric b{color:var(--accent)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .metric{background:var(--paper)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .metric span,body[data-rfc-theme]:not([data-rfc-theme="classic"]) .footer,body[data-rfc-theme]:not([data-rfc-theme="classic"]) .side h2{color:var(--muted)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .notice{border-left-color:var(--accent)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .search-results a{color:var(--link)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .menu,body[data-rfc-theme]:not([data-rfc-theme="classic"]) .search{background:var(--white);color:var(--ink);border-color:var(--edge)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .mobile-dock{background:var(--white);border-color:var(--edge)}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) .mobile-dock a{color:var(--ink)}
.theme-control{display:flex;align-items:center;gap:6px;margin-left:5px}
.theme-control label{font-size:12px;font-weight:700;color:var(--ink)}
.theme-control select{max-width:145px;padding:8px;border:1px solid var(--edge);border-radius:10px;background:var(--white);color:var(--ink);font:inherit;font-size:13px}
.theme-control select:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media(max-width:700px){.theme-control{margin-left:auto}.theme-control select{max-width:115px}.theme-control label{display:none}}


/* Vivid palettes: substantial changes to canvas, surfaces, heading, and card accents */
body[data-rfc-theme="blackred"]{color-scheme:dark;--ink:#fff4f1;--muted:#f0c6c0;--paper:#09090b;--white:#251115;--edge:#713337;--accent:#ff5660;--link:#ffacb1;--hero-start:#29040a;--hero-mid:#a31725;--hero-end:#ea3442}
body[data-rfc-theme="earth"]{color-scheme:dark;--ink:#fff5dc;--muted:#ead7ae;--paper:#172114;--white:#293720;--edge:#6e7542;--accent:#ffcf59;--link:#ffe184;--hero-start:#273814;--hero-mid:#5a6e22;--hero-end:#9d7b20}
body[data-rfc-theme="ocean"]{color-scheme:dark;--ink:#efffff;--muted:#c4e8e8;--paper:#071e26;--white:#103841;--edge:#347886;--accent:#44e4de;--link:#8afff6;--hero-start:#063044;--hero-mid:#006c84;--hero-end:#009e9c}
body[data-rfc-theme="royal"]{color-scheme:dark;--ink:#fff8ef;--muted:#e4d6f0;--paper:#160e2c;--white:#291747;--edge:#73539f;--accent:#f4bc57;--link:#ffda8c;--hero-start:#1d0a44;--hero-mid:#54229a;--hero-end:#8952b7}
body[data-rfc-theme="crimson"]{--paper:#10040b;--white:#350e20;--edge:#963c55;--hero-mid:#b01a42;--hero-end:#e03955}
body[data-rfc-theme="github"]{--paper:#080b10;--white:#1b2430;--edge:#466178;--hero-mid:#263c57;--hero-end:#416f9a}
body[data-rfc-theme="reddit"]{--paper:#ebeef2;--edge:#bbc2ca;--hero-mid:#f04d10;--hero-end:#ff9b41}
body[data-rfc-theme="facebook"]{--paper:#e4edfa;--edge:#b1c8e8;--hero-mid:#0e53bb;--hero-end:#167ae7}
body[data-rfc-theme]:not([data-rfc-theme="classic"]) a:focus-visible,
body[data-rfc-theme]:not([data-rfc-theme="classic"]) button:focus-visible{outline:3px solid #ffd75e;outline-offset:3px}
