/* radio-darker.css — GWAY Ultra-Compact Fallout Cyberdeck Dark Theme
   Sleek, neon green & black, tight spacing, pip-boy/terminal feel.
   Layer atop base.css.
*/

:root {
    --bg: #101915;
    --bg-alt: #0a140e;
    --card-bg: #131c18;
    --fg: #94ff66;
    --accent: #3aff2b;
    --accent-alt: #fff81a;
    --muted: #4a6d55;
    --terminal-green: #9aff57;
    --terminal-dark: #070f0b;
    --pip-outline: #0b0;
    --pip-glow: 0 0 8px #3aff2b88, 0 0 1px #9aff57cc;
}

body, .page-wrap {
    background: var(--bg) !important;
    color: var(--fg);
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', monospace;
    letter-spacing: 0.01em;
}

aside {
    background: var(--bg-alt);
    border-right: 2px solid #2b3e29;
    font-family: inherit;
    color: var(--fg);
    padding: 1.1rem 0.5rem;
    min-width: 170px;
    box-shadow: none;
}

aside ul {
    margin: 0.3em 0;
}
aside ul li {
    margin-bottom: 0.3em;
}
aside ul li a {
    display: block;
    padding: 0.32em 0.7em 0.32em 1em;
    border-radius: 4px;
    background: none;
    color: var(--fg);
    font-family: inherit;
    font-size: 0.93em;
    letter-spacing: 0.07em;
    font-weight: 500;
    border-left: 2.2px solid #0f2;
    transition: background 0.13s, color 0.13s, border 0.13s;
}
aside ul li a.active,
aside ul li a:hover {
    background: #1a2b1f;
    color: #fff;
    border-left: 2.5px solid var(--accent);
    text-shadow: 0 0 8px #3aff2b77;
}

aside ul.sub-links {
    list-style: none;
    padding-left: 1em;
    margin: 0.2em 0 0.4em;
    font-size: 0.85em;
}

aside ul.sub-links li a {
    text-transform: none;
    padding: 0.2em 0 0.2em 1em;
}

main {
    flex: 1 1 0;
    background: var(--card-bg);
    padding: 0.8rem 1.1rem;
    min-width: 0;
    box-shadow: 0 0 0 2px #253924;
    border-radius: 7px;
    margin: 1em 0.5em 1em 0.4em;
    font-family: inherit;
    color: var(--fg);
}

h1, h2, h3, h4 {
    font-family: inherit;
    color: var(--terminal-green);
    text-shadow: 0 0 4px #44ff44b0, 0 1px 0 #1c2519;
    letter-spacing: 0.09em;
    font-weight: 700;
    margin-top: 0.6em;
    margin-bottom: 0.2em;
    line-height: 1.11;
}
h1 { font-size: 1.4em; }
h2 { font-size: 1.16em; }
h3 { font-size: 1.01em; }
h4 { font-size: 0.92em; }

p, li, .help-entry {
    font-size: 0.99em;
    margin: 0.3em 0 0.7em 0;
    line-height: 1.35;
    color: var(--fg);
}

button,
input[type="submit"],
input[type="button"] {
    background: linear-gradient(90deg, #185c15 40%, #279f0e 100%);
    color: #dfffbe;
    border: 1.2px solid #3aff2b;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.96em;
    padding: 0.32em 0.88em;
    box-shadow: 0 0 8px #0f2b06;
    text-shadow: 0 1px 1px #070f0b99;
    margin: 0.2em 0.5em 0.2em 0;
    transition: background 0.16s, box-shadow 0.12s;
}
button:hover,
input[type="submit"]:hover {
    background: #314a2b;
    color: #fff;
    border-color: var(--accent-alt);
    box-shadow: 0 0 13px #fff81a99;
}
button:active,
input[type="submit"]:active {
    background: #3aff2b;
    color: #172616;
}

input,
textarea,
select {
    background: #142a1d;
    color: var(--fg);
    border: 1px solid #3aff2b;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.98em;
    margin-bottom: 0.35em;
    padding: 0.3em 0.7em;
    width: 100%;
    box-sizing: border-box;
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-alt);
    background: #19261b;
    outline: 1.7px solid var(--accent-alt);
}

pre, code, pre code {
    background: #081106 !important;
    color: #3aff2b !important;
    font-family: 'Share Tech Mono', 'Fira Mono', 'Consolas', monospace;
    border-radius: 3.5px;
    font-size: 0.97em;
    box-shadow: 0 0 4px #3aff2b33;
    padding: 0.5em 0.7em;
}

code {
    background: #132b13 !important;
    color: #a8ff9a !important;
    border-radius: 2.5px;
    border: 1px solid #3aff2b99;
    font-size: 0.94em;
}

.current, .active {
    color: #172616 !important;
    background: #3aff2b !important;
    border-radius: 6px;
    font-weight: bold;
    text-shadow: 0 0 8px #0f0;
}

footer {
    background: #0a140e;
    color: #7efc64;
    border-top: 1.4px solid #273f23;
    font-family: inherit;
    font-size: 0.98em;
    letter-spacing: 0.06em;
    box-shadow: 0 -1px 6px #122c18;
    text-align: center;
    padding: 0.55em 0;
}

footer::after {
    /* A glowing, subtle radioactive green bar */
    content: "";
    display: block;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #3aff2b55 50%, #222 100%);
    border-radius: 0 0 6px 6px;
    margin-top: 0.13em;
    box-shadow: 0 0 22px #3aff2b88;
}

.help-entry {
    background: #162a16;
    border: 1.1px solid #2b3e29;
    box-shadow: none;
    border-radius: 5px;
    padding: 0.6em 0.8em;
    margin-bottom: 0.6em;
    font-size: 0.97em;
}
.help-entry .doc {
    background: #0a140e;
    color: #a8ff9a;
    border-left: 2.5px solid #3aff2b;
}
.help-entry pre, .help-entry pre code.python {
    background: #081106;
    color: #b1ff81;
    box-shadow: none;
}
.help-entry a {
    color: var(--accent);
    text-shadow: 0 0 4px #3aff2b44;
    border-bottom: 1px dotted #fff81a;
    transition: color 0.13s, border 0.13s;
}
.help-entry a:hover {
    background: #162a16;
    color: #fff81a;
    border-bottom: 1.8px solid #fff81a;
}

aside img[src*="qr"] {
    border-radius: 7px;
    border: 1.5px solid #3aff2b;
    box-shadow: 0 0 18px #3aff2b66;
    background: #070f0b;
    padding: 4px;
    margin-bottom: 1.1em;
    margin-top: 0.6em;
}

hr {
    border: none;
    border-top: 1.2px dashed #3aff2b;
    margin: 1.1em 0 0.6em 0;
    opacity: 0.8;
}

textarea.help {
    background: #081106;
    color: #a8ff9a;
    border: 1px solid #3aff2b;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.97em;
}

::-webkit-scrollbar-thumb {
    background: #3aff2b;
    border-radius: 6px;
}
::-webkit-scrollbar-track {
    background: #101915;
}

/* Reduce spacing everywhere for that “cramped terminal” feel */
* {
    margin-top: 0;
    margin-bottom: 0;
}

/* Compact nav, compact main, compact everything */
aside, main, .help-entry, h1, h2, h3, h4, p, ul, li {
    margin-top: 0.12em !important;
    margin-bottom: 0.12em !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Responsive: on tiny screens, remove all border-radius for space */
@media (max-width: 650px) {
    main, aside, .help-entry { border-radius: 0 !important; }
    aside { min-width: 0; }
}

