/* webguyreports.com light/dark theme. Injected on every page by worker.js.
   Light = WebGuy navy/orange (the original look). Dark = Lubbock Web Guy black/cyan, same as the MarketAtlas reports.
   Choice is shared with the MarketAtlas reports (localStorage "atlas-theme"). */

/* ---- toggle (in the header nav) ---- */
.thm{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;margin-left:8px;padding:6px 10px;border:1px solid rgba(255,255,255,.18);border-radius:999px;color:#AEB9C2;font:600 12px/1 Archivo,system-ui,sans-serif;transition:border-color .15s,color .15s}
.thm:hover{color:#fff;border-color:rgba(255,255,255,.4)}
.thm:focus-visible{outline:2px solid #D9531E;outline-offset:2px}
.thm svg{width:14px;height:14px}
.thm .sun{display:none}
html[data-theme=dark] .thm .sun{display:block}
html[data-theme=dark] .thm .moon{display:none}
.xh nav{align-items:center}

/* ---- homepage hero: dark band in light mode ---- */
.home .hero{position:relative;isolation:isolate}
.home .hero::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);
  background:url(/media/topo-hero-dark.svg) 0 0/560px 560px repeat,
   radial-gradient(700px 420px at 12% 18%,rgba(217,83,30,.20),transparent 70%),
   radial-gradient(800px 500px at 92% 100%,rgba(44,110,158,.22),transparent 70%),
   linear-gradient(180deg,#16222C,#0F1922)}
.home .hero h1{color:#fff}
.home .hero h1 em{color:#F26A3D}
.home .hero p,.home .hero .vcap{color:#C3CCD3}
.home .hero .textme{color:#fff;border-bottom-color:rgba(255,255,255,.25)}
.home .hero .hstats{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.12)}
.home .hero .hstats a,.home .hero .hstats div{background:rgba(255,255,255,.04)}
.home .hero .hstats a:hover{background:rgba(255,255,255,.09)}
.home .hero .hstats b{color:#fff}.home .hero .hstats a b{color:#F26A3D}
.home .hero .hstats span{color:#AEB9C2}
.home .hero .xp-vid{border-color:rgba(255,255,255,.14)}
.home main>.wrap>.hero:first-child{margin-top:0}

/* ================= DARK ================= */
html[data-theme=dark]{color-scheme:dark;
  --sheet:#0b0d10;--panel:#111418;--ink:#f2f6f8;--mut:#8b97a2;--line:#262e36;--soft:#1a2027;--hair:rgba(255,255,255,.08);
  --hot:#ff7a59;--obs:#34d399}
html[data-theme=dark] body{background-color:#0b0d10;background-image:url(/media/topo-tile-dark.svg)}
html[data-theme=dark] ::selection{background:rgba(25,181,224,.35)}

/* header */
html[data-theme=dark] .xh{background:#07080a;border-bottom-color:#1a2027}
html[data-theme=dark] .xh nav a:hover{border-bottom-color:#19b5e0}
html[data-theme=dark] .thm:focus-visible{outline-color:#19b5e0}

/* hero flips to a light band in dark mode */
html[data-theme=dark] .home .hero::before{background:url(/media/topo-hero-light.svg) 0 0/560px 560px repeat,
   radial-gradient(700px 420px at 12% 18%,rgba(25,181,224,.16),transparent 70%),
   linear-gradient(180deg,#F4F7F8,#E6ECEF)}
html[data-theme=dark] .home .hero h1{color:#0b0d10}
html[data-theme=dark] .home .hero h1 em{color:#0e7fa0}
html[data-theme=dark] .home .hero p,html[data-theme=dark] .home .hero .vcap{color:#46525c}
html[data-theme=dark] .home .hero .textme{color:#0b0d10;border-bottom-color:rgba(11,13,16,.25)}
html[data-theme=dark] .home .hero .btn{background:#0b0d10;color:#fff}
html[data-theme=dark] .home .hero .btn:hover{background:#0e7fa0}
html[data-theme=dark] .home .hero .hstats{background:#cfd8de;border-color:#cfd8de}
html[data-theme=dark] .home .hero .hstats a,html[data-theme=dark] .home .hero .hstats div{background:#fff}
html[data-theme=dark] .home .hero .hstats b{color:#0b0d10}html[data-theme=dark] .home .hero .hstats a b{color:#0e7fa0}
html[data-theme=dark] .home .hero .hstats span{color:#5F6C77}

/* things that used --ink as a dark background stay dark */
html[data-theme=dark] :is(.bar,.band,.book,.sitefoot){background:#07080a;color:#f2f6f8}
html[data-theme=dark] :is(.band,.book){box-shadow:inset 0 0 0 1px rgba(25,181,224,.18);background:radial-gradient(600px 240px at 0% 0%,rgba(25,181,224,.10),transparent 70%),#07080a}
html[data-theme=dark] .tag.us,html[data-theme=dark] .btn.dark{background:#19b5e0;color:#04121a}
html[data-theme=dark] .starthere{background:#19b5e0;color:#04121a}
html[data-theme=dark] .btn{background:#19b5e0;color:#04121a;box-shadow:none}
html[data-theme=dark] .btn:hover{background:#8fe3f8}
html[data-theme=dark] .xpb i{color:#04121a}
html[data-theme=dark] .xpb:hover,html[data-theme=dark] header .xpb:hover{background:#19b5e0;border-color:#19b5e0;color:#04121a}
html[data-theme=dark] .sf-links{border-top-color:#1a2027}
html[data-theme=dark] .ailist li,html[data-theme=dark] :is(.band,.book) input{background:#111418;border-color:#262e36}

/* hard-coded light surfaces */
html[data-theme=dark] :is(.chip,.hstats a:hover,.xr-find,.wmb,.bookframe){background:#111418}
html[data-theme=dark] .chip{box-shadow:none;border-color:#262e36;color:#f2f6f8}
html[data-theme=dark] .lrow:hover,html[data-theme=dark] tbody tr:hover td,html[data-theme=dark] table tr:hover td{background:#161b20}
html[data-theme=dark] .lrow:nth-child(even){background:#0f1317}
html[data-theme=dark] table tr:nth-child(even):not(.sub):not(.total):not(.est) td{background:#13181d}
html[data-theme=dark] table tr:hover:not(.sub):not(.total) td{background:#182027}
html[data-theme=dark] .why{background:#13181d;color:#b9c3cc}
html[data-theme=dark] .foot{background:#0f1317}
html[data-theme=dark] .crew{background:linear-gradient(90deg,#111418,#0f1317)}
html[data-theme=dark] .sec.hot{background:linear-gradient(rgba(25,181,224,.05),rgba(25,181,224,.05)) padding-box}
html[data-theme=dark] .sec::before{background:linear-gradient(var(--line),var(--line)) 0 0/100% 1px no-repeat,repeating-linear-gradient(90deg,rgba(255,255,255,.28) 0 1px,transparent 1px 8px) 0 1px/96px 6px no-repeat,repeating-linear-gradient(90deg,rgba(25,181,224,.6) 0 1px,transparent 1px 40px) 0 1px/96px 7px no-repeat}
html[data-theme=dark] .versus>div:last-child{background:rgba(25,181,224,.08)}
html[data-theme=dark] .lock .ov{background:linear-gradient(90deg,rgba(11,13,16,.97) 45%,rgba(11,13,16,.6))}
html[data-theme=dark] .tile.other{background:repeating-linear-gradient(135deg,#1a2027 0 8px,#151a1f 8px 16px)}
html[data-theme=dark] .cell.na{background:#151a1f}
html[data-theme=dark] .mapw,html[data-theme=dark] .mapbox{filter:none}
html[data-theme=dark] .xr-strip{background:#07080a;border-bottom-color:#1a2027}
html[data-theme=dark] .xr-strip .xs-row{background:#111418;border-color:#262e36}
html[data-theme=dark] .xr-strip .xs-c{border-color:#262e36}
html[data-theme=dark] .xr-strip .xs-c span{color:#8b97a2}
html[data-theme=dark] .xr-strip .xs-c b{color:#f2f6f8}
html[data-theme=dark] .xr-strip .xs-k{color:#19b5e0}
html[data-theme=dark] .wmb .big,html[data-theme=dark] .you b,html[data-theme=dark] .xr-find h2{color:#19b5e0}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#111418;color:#f2f6f8;border-color:#262e36}

/* status chips */
html[data-theme=dark] :is(.miss,.status.no,.st.cant){background:rgba(248,113,113,.12);color:#fca5a5}
html[data-theme=dark] :is(.status.was,.st.part,.ph){background:rgba(251,191,36,.12);color:#fcd34d}
html[data-theme=dark] :is(.status.yes,.st.done){background:rgba(52,211,153,.12);color:#6ee7b7}
html[data-theme=dark] .st.can{background:rgba(25,181,224,.12);color:#8fe3f8}
html[data-theme=dark] .yes{color:#34d399}html[data-theme=dark] .no{color:#f87171}html[data-theme=dark] .mid,html[data-theme=dark] .paused{color:#fbbf24}

/* SVG charts drawn with fixed colors */
html[data-theme=dark] svg [fill="#15212B"],html[data-theme=dark] svg [fill="#16222C"]{fill:#f2f6f8}
html[data-theme=dark] svg [fill="#5E6B76"]{fill:#8b97a2}
html[data-theme=dark] svg [stroke="#15212B"]{stroke:#f2f6f8}
html[data-theme=dark] svg [fill="#D3DAE0"],html[data-theme=dark] svg [fill="#E3E8EC"]{fill:#262e36}
html[data-theme=dark] svg [stroke="#D3DAE0"],html[data-theme=dark] svg [stroke="#E3E8EC"]{stroke:#262e36}
html[data-theme=dark] svg [fill="#C5CDD4"]{fill:#3a434c}
html[data-theme=dark] svg [fill="#F3F5F7"]{fill:#151a1f}
html[data-theme=dark] svg [stroke="#fff"],html[data-theme=dark] svg [stroke="#ffffff"]{stroke:#0b0d10}
html[data-theme=dark] :is(.fr-badge,.wt .rk){background:rgba(25,181,224,.14);color:#8fe3f8}
html[data-theme=dark] .dl-flow>div::before{background:rgba(25,181,224,.14);color:#8fe3f8}
html[data-theme=dark] .mcta{background:rgba(17,20,24,.85);border-color:rgba(25,181,224,.45)}
html[data-theme=dark] .mf select{background:#111418;color:#f2f6f8}
html[data-theme=dark] .fr:hover,html[data-theme=dark] .fr:focus-visible{border-color:#19b5e0;box-shadow:inset 3px 0 0 var(--t3),0 4px 16px rgba(0,0,0,.4)}
html[data-theme=dark] .hcard:hover{border-color:#19b5e0}
/* inline-styled pieces in report pages */
html[data-theme=dark] [style*="background:#F3F5F6"],html[data-theme=dark] [style*="background:#F4F6F8"],html[data-theme=dark] [style*="background:#EEF2F5"]{background:#151a1f!important}
html[data-theme=dark] [style*="background:#FFF6F2"]{background:rgba(248,113,113,.07)!important}
html[data-theme=dark] [style*="background:#F1F8F3"]{background:rgba(52,211,153,.07)!important}
html[data-theme=dark] [style*="color:#1D6B33"]{color:#34d399!important}
html[data-theme=dark] [style*="color:#9A2A14"]{color:#f87171!important}
html[data-theme=dark] [style*="color:#8A5A12"]{color:#fbbf24!important}
html[data-theme=dark] .llogo.txt,html[data-theme=dark] .tile .lg,html[data-theme=dark] .zero .lg{color:#15212B}
html[data-theme=dark] .gapt tr.lead td{background:#1a2027!important;color:#b9c3cc}
