/* devices.css -- the look all the device pages share (Config.DEVICE_PAGES): the gadget, the Pi watchdog, the
   silo tower, the pocket tower and the touch tower. Copyright (c) 2026 Ken Bernard, InyoSys. MIT License: see LICENSE.
   Per direct request ("All of these pages should look the same, a section about what it does, a image you created
   of the device, then a link to see the real device ... all on one page with no scrolling"):
     the top bar   the device's name, a live line, and the five pages
     the left      the drawing of the device, live
     the right     WHAT IT DOES, then THE REAL ONE (its photo: click for bigger) */
:root { --dv-bg: #08090b; --dv-card: #121418; --dv-line: #2a2e35; --dv-muted: #7c838d; --dv-silk: #c8ccd2;
        --dv-ok: #5ad27f; --dv-bad: #ef6b5b; --dv-acc: #4fc3d9; }
html, body { height: 100%; }
body.dv { margin: 0; background: var(--dv-bg); color: var(--dv-silk); font-family: "Segoe UI", Arial, sans-serif;
          display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; gap: 0;
          min-height: 100vh; overflow-x: hidden; }
.dv-top { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding: 10px 20px;
          border-bottom: 1px solid #1c1f24; background: #0c0e11; }
.dv-top h1 { margin: 0; font-size: 14px; letter-spacing: .14em; font-weight: 700; color: #fff; white-space: nowrap; }
.dv-live { font-size: 12.5px; color: var(--dv-muted); flex: 1; min-width: 160px; }
.dv-live b { color: var(--dv-silk); font-weight: 600; }
.dv-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.dv-nav a { font-size: 12px; color: var(--dv-muted); text-decoration: none; border: 1px solid var(--dv-line);
            border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.dv-nav a:hover { color: var(--dv-silk); border-color: #4a5059; }
.dv-nav a.on { color: #fff; border-color: var(--dv-acc); background: #10242b; }
.dv-main { width: 100%; max-width: 1360px; margin: 0 auto; padding: 14px 16px 16px; display: grid;
           grid-template-columns: minmax(0, 1fr); gap: 18px; box-sizing: border-box; }
.dv-device { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.dv-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 980px) {
  .dv-main { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
}
.dv-card { background: var(--dv-card); border: 1px solid var(--dv-line); border-radius: 10px; padding: 12px 14px; }
.dv-side h2 { margin: 0 0 7px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dv-silk); font-weight: 700; }
.dv-what p { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: var(--dv-muted); }
.dv-what p:last-child { margin-bottom: 0; }
.dv-what b { color: var(--dv-silk); font-weight: 600; }
.dv-what code { color: var(--dv-silk); font-size: 12px; }
.dv-real { margin: 0; }
.dv-real a { display: block; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.dv-real img { width: 100%; height: 190px; object-fit: cover; display: block; border-radius: 6px; background: #0b0c0e; }
.dv-real figcaption { font-size: 12px; color: var(--dv-muted); margin-top: 7px; text-align: center; }
.dv-real.missing a { cursor: default; border: 1px dashed #3a3f47; padding: 26px 12px; text-align: center; color: var(--dv-muted);
                     font-size: 13px; text-decoration: none; }
.dv-status { font-size: 13px; text-align: center; color: var(--dv-muted); }
.dv-status b { color: var(--dv-silk); }
.dv-status.ok b.w { color: var(--dv-ok); }
.dv-status.bad { background: #3a1210; border-color: var(--dv-bad); color: #ffd9d4; }
.dv-status.bad b { color: #fff; letter-spacing: .05em; }
.dv-note { font-size: 12.5px; color: var(--dv-muted); text-align: center; }
.dv-note b { color: var(--dv-silk); font-weight: 600; }
/* the photo, bigger, over the page (click or Esc to close) */
#dv-zoom { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center;
           z-index: 50; cursor: zoom-out; padding: 20px; box-sizing: border-box; }
#dv-zoom.on { display: flex; }
#dv-zoom img { max-width: 94vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 60px rgba(0,0,0,.8); }
#dv-zoom span { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #9aa1aa; font-size: 12px; }
/* the installed Silo Gadget app: the gadget only */
@media (display-mode: standalone) { .dv-top, .dv-side { display: none; } }
