/* Device hubs under /devices/. Reuses the site palette (#13131f background,
   #ce0171 accent, Montserrat) rather than introducing a second visual
   language, so these pages sit next to the existing ones without a redesign. */

.hub {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  max-width: 52em;
  margin: 0 auto;
  padding: 0 1.5em 4em;
  line-height: 1.65;
}

.breadcrumb {
  margin: 1.5em 0 2.5em;
  font-size: 0.85em;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.35);
  margin-right: 0.5em;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
}

.hub-hero h1 {
  font-size: 2.6em;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  background: linear-gradient(to right, #fad686, #efbfaa, #e3a2d4, #d499f1, #bbb8f7, #a8cffb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hub-hero p {
  font-size: 1.05em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1em;
}

.hub-section {
  margin-top: 3.5em;
}

.hub-section h2 {
  font-size: 1.7em;
  font-weight: 700;
  margin: 0 0 0.8em;
  color: #fff;
}

.hub-section h3 {
  font-size: 1.15em;
  font-weight: 600;
  margin: 1.6em 0 0.5em;
  color: #fff;
}

.hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-list li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.7em;
  color: rgba(255, 255, 255, 0.85);
}

.hub-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #ce0171;
}

.hub-list-negative li::before {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Requirements and troubleshooting share a definition-list layout: a short
   label on the left, the answer on the right, collapsing to one column on
   narrow screens. */
.hub-facts {
  margin: 0;
}

.hub-facts > div {
  display: grid;
  grid-template-columns: 14em 1fr;
  gap: 1.5em;
  padding: 1em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hub-facts-wide > div {
  grid-template-columns: 18em 1fr;
}

.hub-facts > div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hub-facts dt {
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.hub-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.hub-steps {
  counter-reset: hub-step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-steps > li {
  counter-increment: hub-step;
  position: relative;
  padding-left: 3.2em;
  margin-bottom: 1.8em;
}

.hub-steps > li::before {
  content: counter(hub-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: #ce0171;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-steps h3 {
  margin: 0.3em 0 0.3em;
}

.hub-steps p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.hub-faq {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1em 0;
}

.hub-faq:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hub-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
}

.hub-faq p {
  margin: 0.7em 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.hub-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8em;
  margin: 2em 0 0;
}

.hub-cta img {
  width: 12em;
  height: auto;
}

.hub-cta-text {
  display: inline-block;
  background: #ce0171;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9em 1.8em;
  border-radius: 0.4em;
}

.hub-cta-note {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
}

.hub-closing {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2.5em;
}

.hub-related,
.hub-index {
  margin-top: 3.5em;
}

.hub-related h2 {
  font-size: 1.7em;
  font-weight: 700;
  margin: 0 0 0.8em;
}

.hub-related ul,
.hub-index {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
  gap: 1em;
}

.hub-related a,
.hub-index a {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  height: 100%;
  padding: 1.2em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.6em;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.hub-related a:hover,
.hub-index a:hover {
  border-color: #ce0171;
}

.hub-related-name {
  font-weight: 700;
  color: #fff;
}

.hub-related-summary {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}

.hub a {
  color: #e3a2d4;
}

@media screen and (max-width: 700px) {
  .hub-hero h1 {
    font-size: 2em;
  }

  .hub-facts > div,
  .hub-facts-wide > div {
    grid-template-columns: 1fr;
    gap: 0.35em;
  }
}
