:root{--site-bg:#040b17;--site-panel:#09172b;--site-panel-2:#0b1b31;--site-line:#29415c;--site-text:#f7f9ff;--site-muted:#aebed2;--site-lime:#c8ff32;--site-blue:#3eaaff;color-scheme:dark}
html{background:var(--site-bg);scroll-behavior:smooth}body.touchline-site{background:radial-gradient(ellipse at 55% 0%,#102746 0,transparent 42%),linear-gradient(180deg,#040b17,#061020 58%,#040b17);color:var(--site-text)}
.site-wide-header{position:sticky;top:0;z-index:100;background:#040b17f2;border-bottom:1px solid var(--site-line);backdrop-filter:blur(18px);box-shadow:0 10px 32px #0006}
.site-wide-header .header-inner{max-width:1600px;min-height:72px;padding:0 28px;gap:18px;display:flex;align-items:center;margin:auto}
.site-wide-header .brand-link{display:flex;align-items:center;gap:9px;flex:0 0 auto;color:#fff;text-decoration:none;font-size:26px;font-weight:950;font-style:italic;letter-spacing:-1.1px}
.site-wide-header .brand-emblem,.site-wide-header .brand-emblem img{width:45px;height:45px;display:block;object-fit:contain;background:transparent;box-shadow:none;border-radius:50%}
.site-wide-header .brand-word{color:#fff}
.site-wide-header .desktop-nav{display:flex;align-items:center;justify-content:center;gap:clamp(3px,1vw,15px);flex:1;min-width:0}
.site-wide-header .desktop-nav a{color:#e6edf7;text-decoration:none;font-size:11px;font-weight:850;padding:10px 9px;border-radius:10px;white-space:nowrap}
.site-wide-header .desktop-nav a:hover,.site-wide-header .desktop-nav a[aria-current=page]{background:var(--site-lime);color:#081321}
.site-wide-header .header-actions{display:flex;align-items:center;gap:12px}
.site-wide-header .reference-search{height:42px;width:clamp(150px,17vw,240px);display:flex;border:1px solid var(--site-line);border-radius:999px;background:var(--site-panel-2);overflow:hidden}
.site-wide-header .reference-search input{width:100%;min-width:0;background:transparent;border:0;outline:0;color:white;padding:0 14px;font-size:12px}
.site-wide-header .reference-search button{width:42px;background:transparent;border:0;color:#d9e5f4;font-size:22px;cursor:pointer}
.site-wide-header .reference-tracker-cta{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border-radius:999px;background:var(--site-lime);color:#081321;text-decoration:none;font-weight:950;font-size:11px;white-space:nowrap;box-shadow:0 0 24px #c8ff3240}
.site-wide-header .menu-action{display:none}
.site-wide-header .mobile-nav{padding:8px 16px 16px;background:#040b17;border-top:1px solid #1d3048;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.site-wide-header .mobile-nav[hidden]{display:none}
.site-wide-header .mobile-nav a{padding:12px;border:1px solid #233b56;border-radius:10px;background:#0a192c;color:#f3f7ff;text-decoration:none;font-size:13px;font-weight:800}
body.touchline-site main,body.touchline-site .main-container{color:var(--site-text)}
body.touchline-site .site-footer,body.touchline-site footer{color:#dce7f5}
body.touchline-site .site-footer a,body.touchline-site footer a{color:#dce7f5}
body.touchline-site .site-footer a:hover,body.touchline-site footer a:hover{color:var(--site-lime)}
body.touchline-site .panel,body.touchline-site .card,body.touchline-site .article-card,body.touchline-site .tool-card{background:linear-gradient(145deg,#0b1b30,#061020);border-color:#29415c}
body.touchline-site .eyebrow,body.touchline-site .section-kicker{color:var(--site-lime)}
body.touchline-site button:focus-visible,body.touchline-site a:focus-visible,body.touchline-site input:focus-visible,body.touchline-site select:focus-visible,body.touchline-site textarea:focus-visible{outline:2px solid var(--site-lime);outline-offset:3px}
@media(max-width:1180px){.site-wide-header .header-inner{gap:10px;padding:0 18px}.site-wide-header .brand-link{font-size:22px}.site-wide-header .brand-emblem,.site-wide-header .brand-emblem img{width:39px;height:39px}.site-wide-header .desktop-nav{gap:1px}.site-wide-header .desktop-nav a{font-size:10px;padding:9px 6px}.site-wide-header .reference-search{width:145px}}
@media(max-width:850px){.site-wide-header .header-inner{min-height:66px;padding:0 15px}.site-wide-header .desktop-nav,.site-wide-header .reference-search,.site-wide-header .reference-tracker-cta{display:none}.site-wide-header .header-actions{margin-left:auto}.site-wide-header .menu-action{display:grid;place-items:center;width:42px;height:42px;border:1px solid #29415c;border-radius:11px;background:#0b1b31;color:#fff;font-size:20px}.site-wide-header .brand-link{font-size:24px}.site-wide-header .brand-emblem,.site-wide-header .brand-emblem img{width:41px;height:41px}}
/* The legacy multi-tool workspace keeps its app layout, but shares Touchline's palette. */
body:not(.touchline-site){background:#040b17;color:#f4f7ff}
body:not(.touchline-site) .sidebar{background:#050e1d;border-right:1px solid #29415c;color:#f4f7ff}
body:not(.touchline-site) .sidebar a{color:#dce7f5}
body:not(.touchline-site) .sidebar a.active,body:not(.touchline-site) .sidebar a:hover{background:#c8ff321a;color:#c8ff32}
body:not(.touchline-site) .app>header{background:#071426;border-bottom:1px solid #29415c;color:#eaf1fb}
body:not(.touchline-site) .app main{color:#f4f7ff}
body:not(.touchline-site) .app main section,body:not(.touchline-site) .app main article,body:not(.touchline-site) .app .panel{background:#09172b;border-color:#29415c}
body:not(.touchline-site) .app a{color:#c8ff32}

/* Shared Touchline shell for the interactive workspace route. */
body.tools-workspace{--site-bg:#040b17;--site-panel:#09172b;--site-panel-2:#0b1b31;--site-line:#29415c;--site-text:#f7f9ff;--site-muted:#aebed2;--site-lime:#c8ff32;background:var(--site-bg);color:var(--site-text)}
.tools-global-header{position:sticky;top:0;z-index:1000;background:#040b17f5;border-bottom:1px solid var(--site-line);backdrop-filter:blur(18px)}
.tools-global-header .header-inner{max-width:1600px;min-height:72px;padding:0 28px;gap:18px;display:flex;align-items:center;margin:auto}
.tools-global-header .brand-link{display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none;font-size:25px;font-weight:950;font-style:italic;letter-spacing:-1px}
.tools-global-header .brand-emblem,.tools-global-header .brand-emblem img{width:44px;height:44px;display:block;object-fit:contain}
.tools-global-header .desktop-nav{display:flex;align-items:center;justify-content:center;gap:clamp(3px,1vw,15px);flex:1;min-width:0}
.tools-global-header .desktop-nav a{color:#e6edf7;text-decoration:none;font-size:11px;font-weight:850;padding:10px 9px;border-radius:10px;white-space:nowrap}
.tools-global-header .desktop-nav a:hover,.tools-global-header .desktop-nav a[aria-current=page]{background:var(--site-lime);color:#081321}
.tools-global-header .header-actions{display:flex;align-items:center;gap:12px}
.tools-global-header .reference-tracker-cta{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border-radius:999px;background:var(--site-lime);color:#081321;text-decoration:none;font-weight:950;font-size:11px;white-space:nowrap}
.tools-global-header .menu-action{display:none}
.tools-global-header .mobile-nav{padding:8px 16px 16px;background:#040b17;border-top:1px solid #1d3048;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.tools-global-header .mobile-nav[hidden]{display:none}
.tools-global-header .mobile-nav a{padding:12px;border:1px solid #233b56;border-radius:10px;background:#0a192c;color:#f3f7ff;text-decoration:none;font-size:13px;font-weight:800}
body.tools-workspace .sidebar{top:72px;height:calc(100vh - 72px);background:#071426;border-color:#243a55;color:#edf4ff}
body.tools-workspace .sidebar .brand{color:#fff}
body.tools-workspace .sidebar .navlabel,body.tools-workspace .sidebar .edition,body.tools-workspace .sidebar .sidebar-bottom{color:#aebed2}
body.tools-workspace .sidebar nav a{color:#dbe7f5}
body.tools-workspace .sidebar nav a:hover,body.tools-workspace .sidebar nav a.active{background:#c8ff32;color:#071321}
body.tools-workspace .app{background:#040b17;color:#f7f9ff;min-height:calc(100vh - 72px)}
body.tools-workspace .app>header{background:#071426;border-bottom:1px solid #29415c;color:#eaf2fc}
body.tools-workspace .app main{color:#f7f9ff}
body.tools-workspace .app footer{background:#071426;border-top:1px solid #29415c;color:#aebed2}
@media(max-width:1100px){.tools-global-header .desktop-nav{gap:2px}.tools-global-header .desktop-nav a{padding:9px 6px;font-size:10px}}
@media(max-width:960px){.tools-global-header .desktop-nav,.tools-global-header .reference-tracker-cta{display:none}.tools-global-header .menu-action{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #29415c;border-radius:12px;background:#0b1b31;color:#fff;font-size:20px}.tools-global-header .header-inner{min-height:66px;padding:0 16px}.tools-global-header .brand-emblem,.tools-global-header .brand-emblem img{width:40px;height:40px}body.tools-workspace .sidebar{top:66px;height:calc(100vh - 66px)}}
@media(prefers-reduced-motion:reduce){body.tools-workspace *,body.tools-workspace *::before,body.tools-workspace *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
