/* ============================================================
   tsites software — additions on top of dash.css
   (listing grid + per-program detail page bits)
   ============================================================ */



/* ---------- software listing grid ---------- */

.swgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 14px;
    background: var(--panel-bg);
    border: 1px solid var(--accent-dim);
    border-radius: 8px;
}

.switem {
    padding: 8px;
}

.swname {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.swicon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 6px;
}

/* ---------- detail (per-program) pages ---------- */

img.picinset {
    width: 64px;
    height: 64px;
    margin: 6px 12px 6px 0;
    border-radius: 10px;
}

#windowbody img {
    max-width: 100%;
    height: auto;
}

#windowbody video {
    max-width: 100%;
    height: auto;
}

/* video wrapper divs carried over from the old stylesheet */
.adptb, .adtd, .alrt {
    max-width: 650px;
}

/* ---------- copyable command blocks ---------- */

.cmdtext {
    font-family: Menlo, Consolas, Monaco, "Courier New", monospace;
    background: #1a1a30;
    color: #59ff00;
    border: 1px solid #33335c;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 8px 0;
    white-space: pre-wrap;
}

.copybtn {
    background: #20203c;
    color: var(--text);
    border: 1px solid #3c3c60;
    border-radius: 4px;
    padding: 3px 12px;
    font-size: 12px;
    cursor: pointer;
}

.copybtn:hover {
    border-color: var(--accent);
    color: #ffffff;
}

/* ---------- slideshows ---------- */

.slideshow {
    margin: 10px 0;
}

/* ---------- small screens ---------- */

@media (max-width: 1100px) {
    .swgrid {
        grid-template-columns: 1fr;
    }
}

/* ---------- orange theme ----------
   Overrides the navy palette from dash.css. Delete this block
   to go back to blue. */

:root {
    --backdrop:       #1b0f08;
    --backdrop-grid:  rgba(255, 150, 60, 0.05);
    --titlebar:       #453222;
    --titlebar-text:  #f7ead9;
    --window-bg:      #2b1d12;
    --window-edge:    #5c4128;
    --panel-bg:       #221510;
    --text:           #efe6da;
    --accent:         #ff9d2e;
    --accent-dim:     #9a5c17;
    --link:           #ffa94d;
    --link-hover:     #ffd09a;
    --magenta:        #ffb08a;
    --amber:          #ffbb00;
}

/* hardcoded colours in dash.css that don't use the variables */
#taskbar {
    background: #170c06;
}
#taskbar .tab {
    background: #2a1a0f;
    color: #b09070;
    border-color: #45301d;
}
#taskbar a.tab:hover {
    background: #382512;
}
#navPalette a {
    background: #281a11;
    border-color: #4d3520;
}
#navPalette h4 {
    color: #b09070;
}
#navPalette hr {
    border-top-color: #4d3520;
}
#navPalette a.active {
    background: #402818;
}
.titlebar .win-btns span {
    background: #7a5c3d;
}
h1 {
    background: linear-gradient(to bottom, #8a3d00, #ffa54d, #331200);
    -webkit-background-clip: text;
    background-clip: text;
    filter:
        drop-shadow(0 -3px 2px rgba(255, 160, 80, 0.35))
        drop-shadow(0 4px 2px rgba(0, 0, 0, 1));
}
h3 {
    color: #ffc48f;
}
.code, .cmdtext {
    background: #1d120a;
    border-color: #4d3421;
}
.twocol .column {
    border-color: #4d3421;
}
.compatfooter {
    background: #170c06;
}
.copybtn {
    background: #281a11;
    border-color: #4d3520;
}

/* ---------- end orange theme ---------- */
