/* Compact module header, shared by trade.php and index.php via includes/site-head.php.
   Self-contained (literal colors, not the importing page's own tokens) so it renders
   identically regardless of which stylesheet imports it. Imported by trading.css and
   observatory.css - edit only here, not per-page. */
.site-head{display:flex;align-items:center;gap:32px;min-height:78px;padding:16px max(24px,calc((100% - 1376px)/2));border-bottom:1px solid #354044;background:#121617}
.site-head .brand{display:flex;align-items:center;gap:10px;color:#eef3f2;font-weight:800;text-decoration:none;white-space:nowrap;font-family:system-ui,sans-serif;font-size:15px}
.site-head .brand img{object-fit:contain;border-radius:4px;display:block}
.site-head nav{display:flex;flex:1}
.site-head .account-link{display:flex;align-items:center;min-height:44px;color:#b8e4d8;font:600 13px system-ui,sans-serif;text-decoration:none}
.site-head .account-link[aria-current]{text-decoration:underline;text-underline-offset:5px}
.owner-nav{display:flex;justify-content:flex-end;padding:4px max(24px,calc((100% - 1376px)/2));background:#172124;border-bottom:1px solid #354044}
.owner-nav a{display:flex;align-items:center;min-height:36px;color:#a6decf;font:600 12px system-ui,sans-serif;text-decoration:none}
.site-head .badge{font-size:11px;text-transform:uppercase;font-weight:700;font-family:system-ui,sans-serif;border:1px solid #4d6861;color:#82dec5;padding:4px 8px;border-radius:4px;white-space:nowrap}
.site-head .section-nav{display:flex;gap:2px;padding:3px;background:#171d1f;border:1px solid #354044;border-radius:999px}
.site-head .section-nav a{padding:9px 18px;border-radius:999px;font-size:13px;font-weight:650;font-family:system-ui,sans-serif;color:#aab8b9;text-decoration:none;white-space:nowrap}
.site-head .section-nav a:hover{color:#eef3f2}
.site-head .section-nav a[aria-current="page"]{background:#82dec5;color:#09291f;box-shadow:0 4px 14px -6px rgba(130,222,197,.55)}
@media(prefers-reduced-motion:no-preference){.site-head .section-nav a{transition:background .15s ease,color .15s ease}}
@media(max-width:720px){.site-head{padding:14px 16px;gap:16px;flex-wrap:wrap}.site-head nav{order:3;flex-basis:100%}.site-head>.badge{margin-left:auto}.site-head img{width:28px;height:28px}.site-head .section-nav{width:100%}.site-head .section-nav a{flex:1;text-align:center;padding:11px 10px}}

/* Source badges: a consistent, non-photographic visual anchor per provider.
   Shared here (not per-page) so Browse Markets and Practice Trading match. */
.src-badge{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;font:700 10px/1 system-ui,sans-serif;flex-shrink:0;color:#0b1213}
.src-badge-polymarket{background:#c9a6ff}
.src-badge-kalshi{background:#8ec8ff}
.src-badge-manifold{background:#ffc98a}
.site-head .journal-enabled a{padding-left:12px;padding-right:12px}
@media(min-width:721px) and (max-width:1000px){.site-head:has(.journal-enabled){gap:16px;flex-wrap:wrap}.site-head .journal-enabled{order:3;flex-basis:100%}}
@media(max-width:720px){.site-head .section-nav.journal-enabled{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.site-head .section-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:8px}.site-head .section-nav a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;white-space:normal;overflow-wrap:anywhere;padding:8px 6px;border-radius:5px;font-size:12px}}
.site-legal-notice{max-width:1100px;margin:0 auto;padding:12px 24px 32px;font-size:12px;line-height:1.6;color:#aab8b9;text-align:center}.site-legal-notice strong{color:#eef3f2}.site-legal-notice a{color:#82dec5;text-underline-offset:3px}
.source-legal-note{margin:4px 0 12px;font-size:11px;line-height:1.6;color:#aab8b9}
/* Tablet: let the header wrap so the badge never pushes the page sideways */
@media(min-width:721px) and (max-width:1000px){.site-head{flex-wrap:wrap;row-gap:10px}}
