/* ===========================
   devices.css (FINAL CLEAN)
   =========================== */

/* ===========================
   Base (DEVICES PAGES ONLY)
   =========================== */

body{
  background: black;
  color: white;
}

/* ===========================
   Scoped Link Styles
   (DO NOT BREAK HEADER/NAV)
   =========================== */

.device-detail a,
.device-detail a:visited,
.device-grid a,
.device-grid a:visited,
.crumbs a,
.crumbs a:visited{
  color: #ddd;
  text-decoration: none;
  font-size: 10px;
}

.device-detail a:hover,
.device-grid a:hover,
.crumbs a:hover{
  color: #fff;
}

/* ===========================
   Device Grid (Overview Page)
   =========================== */

.device-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  padding: 10px;
}

/* ===========================
   Device Cards
   =========================== */

.device-card{
  border: 1px solid #333;
  background: #c00;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}

.device-card h3{
  margin: 8px 0 0;
  font-size: 14px;
  color: white;
}

.device-card img,
.device-card svg{
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 10px;
}

/* ===========================
   Device Detail Page
   =========================== */

.device-detail{
  padding-bottom: 40px;
}

/* Breadcrumbs */

.crumbs{
  margin: 10px 0 16px;
  font-size: 12px;
  color: #ccc;
}

/* ===========================
   Device Header (Hero)
   =========================== */

.device-head{
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

/* HERO IMAGE — SAFE & FINAL */

.device-hero{
  width: 220px;
  height: 220px;
  max-width: 220px;
  max-height: 220px;

  object-fit: contain;
  flex-shrink: 0;
  position: static;

  background: #f5f6f7;
  padding: 16px;
  border-radius: 12px;
}

/* Title / Blurb */

.device-head h1{
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  color: white;
}

.device-head p{
  margin: 0;
  font-size: 14px;
  color: #d6d6d6;
  max-width: 70ch;
}

/* ===========================
   Two-Column Layout
   =========================== */

.twocol{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  align-items: start;
}

/* ===========================
   Panes
   =========================== */

.pane{
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 14px;
}

.pane h2{
  margin: 0 0 12px;
  font-size: 16px;
  color: white;
}

/* ===========================
   Code Blocks
   =========================== */

.code-block{
  border: 1px solid #222;
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
  background: #0e0e0e;
}

.code-block summary{
  cursor: pointer;
  padding: 10px 12px;
  font-size: 14px;
  color: white;
  background: #141414;
}

.code-body{
  padding: 10px 12px;
  color: #ddd;
  font-size: 13px;
}

.code-body ul{
  margin: 8px 0 0 18px;
}

.refs{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #222;
}

.refs strong{
  color: #fff;
}

/* ===========================
   Checklist
   =========================== */

.checklist{
  margin: 8px 0 0 18px;
}

/* ===========================
   Manufacturers / Models
   =========================== */

.mfr{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #222;
}

.mfr:first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.mfr h3{
  margin: 0 0 8px;
  font-size: 14px;
  color: #fff;
}

.mfr ul{
  margin: 0 0 0 18px;
}

.mfr a,
.mfr a:visited{
  color: #ddd;
  font-size: 13px;
}

.mfr a:hover{
  color: #fff;
}

.aka{
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #aaa;
}

/* ===========================
   Muted Text
   =========================== */

.muted{
  color: #aaa;
  font-size: 13px;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 900px){
  .twocol{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .device-head{
    flex-direction: column;
    text-align: center;
  }

  .device-hero{
    width: 170px;
    height: 170px;
    max-width: 170px;
    max-height: 170px;
  }

  .device-head h1{
    font-size: 22px;
  }
}
