/* ==========================================================================
   Multi Builder - Browser Helper install page (templates/extension.html)
   The body is a light theme (--bg: #f1f5f9). Text outside the dark cards
   must be dark; text inside .ext-step / .ext-notes (which have their own
   dark backgrounds) must be light. Every text element has explicit colour
   so nothing falls through to the global stylesheet.
   ========================================================================== */

.ext-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px;
}

.ext-page h1 {
  color: #b45309;
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.5px;
}

.ext-page .lead {
  color: #0f172a;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.55;
}

.ext-page .lead strong,
.ext-page .lead-sub strong {
  color: #0f172a;
  font-weight: 700;
}

.ext-page .lead-sub {
  color: #334155;
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.5;
}

.ext-page .lead a,
.ext-page .lead-sub a {
  color: #b45309;
  text-decoration: underline;
  text-decoration-color: rgba(180, 83, 9, 0.55);
  font-weight: 600;
}
.ext-page .lead a:hover,
.ext-page .lead-sub a:hover {
  color: #92400e;
  text-decoration-color: #92400e;
}

.ext-page .ext-notes a {
  color: #fbbf24;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.45);
}
.ext-page .ext-notes a:hover {
  color: #fde68a;
  text-decoration-color: #fde68a;
}

/* Numbered step cards (dark background)
   ========================================================================== */
.ext-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.ext-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #e2e8f0;
}

.ext-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5b400;
  color: #1c1c1c;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ext-body h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
}

.ext-body p {
  margin: 6px 0;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.55;
}

.ext-body strong {
  color: #ffffff;
  font-weight: 700;
}

.ext-body code {
  background: #0c0c0c;
  padding: 2px 6px;
  border-radius: 3px;
  color: #f5b400;
  font-size: 13px;
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ext-body .hint {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

/* Step 4 nested list (auto-add ON vs OFF)
   ========================================================================== */
.ext-body .step-list {
  margin: 8px 0;
  padding-left: 20px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
}
.ext-body .step-list li {
  margin: 6px 0;
  color: #e2e8f0;
}
.ext-body .step-list li strong {
  color: #fbbf24;
  font-weight: 700;
}

/* Notes section (dark panel)
   ========================================================================== */
.ext-notes {
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 18px 22px;
  color: #e2e8f0;
}

.ext-notes h3 {
  color: #f5b400;
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 22px 0 8px;
}

.ext-notes h3:first-child {
  margin-top: 0;
}

.ext-notes p {
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 6px 0 10px;
}

.ext-notes ul {
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 10px;
  padding-left: 22px;
  list-style: disc;
}

.ext-notes ul li {
  color: #e2e8f0;
  margin: 4px 0;
}

.ext-notes ul li::marker {
  color: #f5b400;
}

.ext-notes strong {
  color: #ffffff;
  font-weight: 700;
}

.ext-notes em {
  color: #fbbf24;
  font-style: normal;
  font-weight: 600;
}

.ext-notes code {
  background: #0c0c0c;
  padding: 2px 6px;
  border-radius: 3px;
  color: #f5b400;
  font-size: 12.5px;
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Buttons
   ========================================================================== */
.ext-page .btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 120ms ease-out;
}

.ext-page .btn-primary {
  background: #2563eb;
  color: #ffffff;
}
.ext-page .btn-primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* Mobile tweaks
   ========================================================================== */
@media (max-width: 640px) {
  .ext-page {
    padding: 16px 12px;
  }
  .ext-page h1 {
    font-size: 24px;
  }
  .ext-step {
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .ext-num {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .ext-notes {
    padding: 14px 16px;
  }
  .ext-notes ul,
  .ext-body .step-list {
    padding-left: 18px;
  }
}
