/* Shared accessible themes. Emerald/navy identity stays consistent in both modes. */
:root{color-scheme:dark;scroll-behavior:smooth;--foxrex-head-bg:rgba(11,19,32,.92)}
:root[data-theme="light"]{color-scheme:light;--foxrex-bg:#F5F7FA;--foxrex-bg-raised:#FFFFFF;--foxrex-surface:#FFFFFF;--foxrex-surface-2:#EDF2F6;--foxrex-border:rgba(11,19,32,.12);--foxrex-border-strong:rgba(11,19,32,.22);--foxrex-text:#142437;--foxrex-text-muted:#46596D;--foxrex-text-faint:#607287;--foxrex-primary:#007C64;--foxrex-primary-dark:#006C57;--foxrex-positive:#007C64;--foxrex-negative:#BA2948;--foxrex-warning:#926000;--foxrex-info:#245BB2;--foxrex-primary-tint:rgba(0,124,100,.07);--foxrex-primary-line:rgba(0,124,100,.28);--foxrex-shadow:0 20px 55px -28px rgba(11,19,32,.22);--foxrex-head-bg:rgba(255,255,255,.94)}
.site-head{background:var(--foxrex-head-bg)}
.site-nav a:hover{color:var(--foxrex-text);background:var(--foxrex-primary-tint)}
.theme-toggle{display:inline-grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid var(--foxrex-border-strong);border-radius:10px;background:var(--foxrex-surface);color:var(--foxrex-text);cursor:pointer;font-size:23px;line-height:1}
.language-picker{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--foxrex-border-strong);border-radius:10px;white-space:nowrap}
.language-picker a{font:600 12px/1.2 var(--foxrex-font-en);min-width:27px;padding:7px 5px;text-align:center;border-radius:6px;color:var(--foxrex-text-muted)}
.language-picker a[aria-current="true"]{background:var(--foxrex-primary-tint);color:var(--foxrex-primary)}
.calendar-filters select,.calendar-table th{color:var(--foxrex-text);background:var(--foxrex-surface-2)}
.calendar-scroll,.calendar-filters select{border-color:var(--foxrex-border-strong)}
.calendar-table th,.calendar-table td{border-bottom-color:var(--foxrex-border)}
:root[data-theme="light"] .fx-btn--primary{color:#FFFFFF;background:#007C64}
:root[data-theme="light"] .fx-btn--primary:hover{background:#006C57}
:root[data-theme="light"] ::selection{background:#C6F3E7;color:#142437}
.site-head__end{gap:9px}
@media(min-width:981px) and (max-width:1180px){.site-nav a{padding-inline:6px;font-size:12px}.site-head .fx-btn--sm{display:none}}
@media(max-width:600px){.site-head .fx-btn--sm{display:none}.site-head>.wrap{gap:8px}.site-head__end{gap:6px}.language-picker a{min-width:24px;padding:7px 3px}.theme-toggle{width:32px;height:32px;flex-basis:32px}.site-head .fx-logo img{width:32px}.site-head .fx-logo b{font-size:18px}.site-head .fx-logo{gap:5px}.theme-toggle{font-size:21px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

:root[data-theme="light"] .site-nav a[aria-current="page"],:root[data-theme="light"] .fx-logo b,:root[data-theme="light"] .fx-btn--ghost:hover,:root[data-theme="light"] .site-foot a:hover{color:var(--foxrex-text)}
.language-picker .lang-toggle{border:0;min-width:27px}

/* Owner social identity: navy grid, turquoise, orange and warm yellow. */
:root{--foxrex-dark:#0a1220;--foxrex-primary:#24d5bd;--foxrex-primary-dark:#09ae9a;--foxrex-primary-deep:#087b71;--foxrex-warning:#ffd35c;--foxrex-accent-orange:#ff8a32;--foxrex-accent-yellow:#ffd35c;--foxrex-bg:#0a1220;--foxrex-surface:#101c2a;--foxrex-surface-2:#152434;--foxrex-text:#f4f6fa;--foxrex-text-muted:#b2bfcc;--foxrex-text-faint:#96a6b8;--foxrex-grid:rgba(116,160,181,.045)}
:root[data-theme="light"]{--foxrex-bg:#f7f8fc;--foxrex-surface:#fff;--foxrex-surface-2:#eef4f5;--foxrex-primary:#007d73;--foxrex-positive:#007d73;--foxrex-warning:#8a5900;--foxrex-accent-orange:#ad4400;--foxrex-accent-yellow:#ffd35c;--foxrex-grid:rgba(37,64,88,.035);--foxrex-text:#101827;--foxrex-text-muted:#42536a;--foxrex-text-faint:#596a80}
body{background-color:var(--foxrex-bg);background-image:linear-gradient(var(--foxrex-grid) 1px,transparent 1px),linear-gradient(90deg,var(--foxrex-grid) 1px,transparent 1px);background-size:36px 36px}
h1,h2,h3{font-weight:800}.fx-kicker,.eyebrow{color:var(--foxrex-accent-orange)}
.fx-btn--primary{background:var(--foxrex-primary);color:#071720;border-radius:12px;font-weight:800}.fx-btn--ghost{border-radius:12px}
:root[data-theme="light"] .fx-btn--primary{background:#007d73;color:white}
.gateway-card,.fx-card,.catalog-card,.rex-lesson{border-radius:18px}.gateway-card__number{color:var(--foxrex-accent-orange)}
.social-showcase{padding-block:28px}.social-showcase__head{display:flex;gap:18px;justify-content:space-between;align-items:end;flex-wrap:wrap}.social-showcase__head h2{margin:0}.social-showcase__head a{color:var(--foxrex-primary);font-weight:800}.social-showcase__note{max-width:75ch;color:var(--foxrex-text-muted);font-size:14px;line-height:1.7}
.social-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.social-post{min-width:0;border:1px solid var(--foxrex-border-strong);border-radius:18px;overflow:hidden;background:var(--foxrex-surface);transition:transform .18s ease}.social-post:hover{transform:translateY(-4px)}.social-post:focus-visible{outline:3px solid var(--foxrex-primary);outline-offset:4px}.social-post__image{display:block;position:relative;aspect-ratio:4/5;overflow:hidden;background:#0a1220;direction:ltr}.social-post__image img{position:absolute;inset-inline-start:0;top:calc(var(--social-y) * -1%);width:100%;height:auto;max-width:none;display:block}.social-post__caption{padding:15px;display:grid;gap:7px}.social-post__caption strong{font-weight:800}.social-post__caption span{font-size:13px;color:var(--foxrex-text-muted)}
@media(max-width:640px){.social-posts{grid-template-columns:1fr}.social-post{width:100%;max-width:400px;margin-inline:auto}.social-showcase{padding-block:20px}}
@media(prefers-reduced-motion:reduce){.social-post{transition:none}.social-post:hover{transform:none}}
