/* Tetracom in-app help — shared stylesheet
 *
 * Brand palette:
 *   Tetracom blue  #0057B7   (primary action, header band, links)
 *   Gold accent    #FFD700   (Download CTA, key callouts)
 *   Ink            #1c1c2a   (primary text)
 *   Muted          #555      (secondary text)
 *   Page bg        #f7f8fb
 *   Surface        #ffffff
 *   Soft border    #e3e6f0
 *
 * Typography is system-stack so the help page feels native to the
 * user's OS — no web-fonts to download, instant render.
 */

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: #f7f8fb;
  color: #1c1c2a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: #0057B7; text-decoration: none; }
a:hover { text-decoration: underline; }

.tetracom-help {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e3e6f0;
}
header.brand img {
  width: 36px;
  height: 36px;
}
header.brand h1 {
  font-size: 1.6em;
  margin: 0;
  font-weight: 600;
}
header.brand .subtitle {
  color: #555;
  font-size: 0.9em;
}

h2 { font-size: 1.35em; margin-top: 32px; margin-bottom: 8px; color: #0057B7; }
h3 { font-size: 1.1em; margin-top: 24px; margin-bottom: 4px; }
h4 { font-size: 1em;   margin-top: 16px; margin-bottom: 4px; color: #555; }

p { margin: 8px 0 12px; }

.card {
  background: #fff;
  border: 1px solid #e3e6f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 12px 0;
}

.detected {
  background: linear-gradient(135deg, #0057B7, #1d6dd6);
  color: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0;
}
.detected h2 { color: #fff; margin: 0 0 8px; font-size: 1.15em; }
.detected .device-meta {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  font-size: 0.85em;
}
.detected a.cta {
  display: inline-block;
  margin-top: 12px;
  background: #FFD700;
  color: #1c1c2a;
  padding: 10px 18px;
  border-radius: 22px;
  font-weight: 600;
}

.cta {
  display: inline-block;
  background: #0057B7;
  color: #fff;
  padding: 10px 18px;
  border-radius: 22px;
  font-weight: 600;
  margin: 8px 8px 8px 0;
}
.cta.gold { background: #FFD700; color: #1c1c2a; }
.cta.outline {
  background: transparent;
  color: #0057B7;
  border: 1px solid #0057B7;
}

.download-bar {
  background: #fff8d6;
  border: 1px solid #f3d671;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.download-bar .label {
  flex: 1 1 240px;
  font-weight: 500;
}
.download-bar .version {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: #555;
  font-size: 0.9em;
}

.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.mfr-card {
  background: #fff;
  border: 1px solid #e3e6f0;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  text-decoration: none;
  color: #1c1c2a;
  transition: border-color 0.12s, transform 0.08s;
}
.mfr-card:hover {
  border-color: #0057B7;
  transform: translateY(-1px);
  text-decoration: none;
}
.mfr-card .mfr-name {
  display: block;
  font-weight: 600;
  font-size: 1em;
}
.mfr-card .mfr-note {
  display: block;
  font-size: 0.8em;
  color: #555;
  margin-top: 4px;
}

.steps {
  counter-reset: step;
  margin: 12px 0 16px;
  padding: 0;
}
.steps > li {
  list-style: none;
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 36px;
  margin-bottom: 10px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #0057B7;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 0.85em;
}

.path {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #eef0f7;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.93em;
}

.warn {
  background: #fff8d6;
  border-left: 4px solid #f3d671;
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 4px;
}
.note {
  background: #eef4fc;
  border-left: 4px solid #4d8ee0;
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 4px;
  font-size: 0.95em;
}

footer.help-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid #e3e6f0;
  font-size: 0.85em;
  color: #555;
  text-align: center;
}
footer.help-footer a { color: #555; }

.faq dt {
  font-weight: 600;
  margin-top: 14px;
  color: #1c1c2a;
}
.faq dd { margin: 4px 0 8px 0; }

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.95em;
}
.back-link::before { content: "← "; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin: 8px 0 16px;
}
.model-card {
  background: #fff;
  border: 1px solid #e3e6f0;
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: #1c1c2a;
  font-size: 0.95em;
}
.model-card:hover { border-color: #0057B7; text-decoration: none; }
.model-card .model-note {
  font-size: 0.78em;
  color: #555;
  display: block;
  margin-top: 2px;
}
