@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');
/* Shared certificate identity, including legacy League and embedded workspace pages. */
:root,:root[data-theme=dark]{color-scheme:dark;--bg:#141918;--panel:#202722;--ink:#f2e9d7;--text:#f2e9d7;--muted:#bcb29e;--line:#494638;--gold:#d4b174;--gold-text:#d4b174;--surface-soft:#272d25;--field:#171e1b;--positive:#a7c59a;--negative:#eeaa98}
:root[data-theme=light]{color-scheme:light;--bg:#f3ecdd;--panel:#fbf6ea;--ink:#30291e;--text:#30291e;--muted:#706653;--line:#d4c4a4;--gold:#926a2c;--gold-text:#79551f;--surface-soft:#e9ddc4;--field:#fffaf0;--positive:#47613d;--negative:#9a3e31}
body{background:radial-gradient(ellipse at 90% 15%,#a17a2810,transparent 55%),repeating-linear-gradient(0deg,#ae885207 0 1px,transparent 1px 4px),var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif}
h1,h2,h3{font-family:'Playfair Display',Georgia,serif;font-weight:400}header{border-bottom:3px double #aa8446;background:var(--bg)}.brand{font-family:Georgia,serif}.brand small{font-family:'DM Sans',sans-serif}.brand .tat-mark{background:url('/egyptian-crest.svg') center/contain no-repeat;width:48px;height:38px;fill:transparent!important}.brand .tat-mark>*{display:none}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:0;background:var(--panel);color:var(--ink);font:500 12px 'DM Sans',sans-serif;cursor:pointer;white-space:nowrap;flex-shrink:0}.theme-toggle:hover{background:var(--surface-soft);border-color:var(--gold)}.theme-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.theme-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 24px;border-bottom:3px double #aa8446}.theme-toolbar a{color:var(--gold);font:18px Georgia,serif;letter-spacing:2px}.theme-toolbar a:before{content:'';display:inline-block;width:54px;height:30px;background:url('/egyptian-crest.svg') center/contain no-repeat;vertical-align:middle;margin-right:10px}
:is(.standings,.trader,.capacity-card,.stat-card,.setup-highlight,.table-scroll,.results details,.card,.trader-profile){background:var(--panel);border-color:var(--line);border-radius:0}.trader.first{background:linear-gradient(145deg,var(--surface-soft),var(--panel) 70%);border-color:var(--gold)}.trader{border-top:3px solid var(--gold)}.trader .avatar{border-color:var(--gold)}.standings{box-shadow:0 12px 35px #0000000c}thead{background:var(--surface-soft)}th{color:var(--muted)}.tabs button[aria-selected=true]{color:var(--gold-text);border-color:var(--gold)}:is(.metric,.rank,.eyebrow){color:var(--gold-text)}.positive{color:var(--positive)}.negative{color:var(--negative)}input:not([type=checkbox]):not([type=radio]),select,textarea{background:var(--field);color:var(--ink);border-color:var(--line)}.dashboard-sidebar{background:var(--panel);border-color:var(--line)}.sidebar-group button{font-family:'DM Sans',sans-serif;border-radius:0}.links{color:var(--muted)}.btn.alt{color:var(--ink);border-color:var(--line)}.btn{color:var(--bg)}.theme-toggle{color:var(--ink)}
/* Capital surfaces use the same tokens; parchment stays warm in both modes. */
:root[data-theme=dark] :is(.notice,.empty,.private,.team-blueprint){background:var(--panel);color:var(--muted);border-color:var(--line)}:root[data-theme=dark] :is(.metrics>div,.sheet .metrics>div){background:var(--panel)}:root[data-theme=dark] :is(.portfolio .value,.metrics strong,.badge,.quiet){color:var(--gold)}:root[data-theme=dark] .quiet{background:transparent;border-color:var(--line)}:root[data-theme=dark] .quiet:hover{background:var(--surface-soft)}:root[data-theme=dark] .tabs button[aria-selected=true]{color:var(--gold);border-color:var(--gold)}:root[data-theme=dark] .sheet{background:linear-gradient(115deg,#302c21,#1e241e);border-color:#a98b52}:root[data-theme=dark] .sheet :is(p,small){color:var(--muted)}:root[data-theme=dark] .roster-options label{background:var(--surface-soft)}:root[data-theme=dark] .roster-slots span{color:var(--gold)}:root[data-theme=dark] .error{color:#eeaa98;border-color:#bb715d}:root[data-theme=dark] .seal{background:radial-gradient(ellipse at 50% 35%,#453923,#26271e 85%);color:#ebd3a5;box-shadow:0 25px 60px #0004,inset 0 0 55px #9c6d2610}:root[data-theme=dark] .seal :is(.eyebrow,p){color:#c9b48b}:root[data-theme=dark] .seal .certificate-labels{color:#e1c38c;border-color:#806a40}:root[data-theme=dark] .hero .button{background:#d4b174;color:#20251d}:root[data-theme=dark] .hero-caption{color:var(--muted)}
@media(max-width:700px){.topbar{flex-wrap:wrap}.topbar nav{flex-wrap:wrap;height:auto}.theme-toolbar{padding:14px 18px}.theme-toolbar a{font-size:14px}.theme-toolbar a:before{width:35px}.theme-toggle{padding:9px 12px}.workspace-page header nav{gap:10px}.topbar nav .theme-toggle{margin-left:auto}}
@media print{:root,:root[data-theme=dark]{--bg:white;--panel:white;--ink:#30291e;--text:#30291e;--muted:#706653;--line:#d4c4a4;--gold:#926a2c;--gold-text:#79551f;--surface-soft:#f3ecdd;color-scheme:light}.theme-toggle,.theme-toolbar{display:none!important}body{background:white;color:#30291e}:root[data-theme=dark] .sheet{background:#fff9ea}:root[data-theme=dark] .sheet .metrics>div{background:white}}
[hidden]{display:none!important}header .brand{color:var(--ink)}header .brand small,header nav a,header .links{color:var(--muted)}header nav a:hover{color:var(--gold)}header .brand b{color:var(--gold)}
