/* Styles for the generated content pages (download, plugins, guides, FAQ).
   Layered on top of style.css — it keeps the existing dark palette and the
   .container / .button classes, and only adds what the new templates need. */

:root {
  --page-bg: #26272a;
  --page-bg-alt: #2f3033;
  --page-surface: #34363a;
  --page-border: #43454a;
  --page-text: #c9cdd3;
  --page-heading: #ffffff;
  --page-muted: #9298a1;
  --page-accent: #ff4f4a;
}

body {
  background: var(--page-bg);
  color: var(--page-text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #111;
  padding: 8px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

a {
  color: var(--page-accent);
}

/* ---- header nav ---- */

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--page-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  border-bottom: 2px solid var(--page-accent);
}

.header-logo-image {
  max-height: 40px;
  width: auto;
}

/* ---- breadcrumb ---- */

.breadcrumb {
  max-width: 1128px;
  margin: 0 auto;
  padding: 16px;
  font-size: 14px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--page-muted);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--page-border);
}

.breadcrumb a {
  color: var(--page-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---- page structure ---- */

.page-header {
  padding: 56px 0 32px;
  text-align: center;
}

.page-header h1,
.section-title,
.prose h2,
.prose h3,
.card h2,
.card h3,
.plugin-card h3 {
  color: var(--page-heading);
}

.page-header h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--page-text);
  margin: 0 auto 24px;
  max-width: 42em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--page-muted);
  margin-bottom: 8px;
}

.eyebrow a {
  color: var(--page-muted);
}

.meta,
.hero-meta,
.note {
  color: var(--page-muted);
  font-size: 15px;
}

.section {
  padding: 48px 0;
}

.section.alt {
  background: var(--page-bg-alt);
}

.section-lead {
  max-width: 42em;
  margin: 0 auto 32px;
}

.text-center {
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--page-accent);
  color: #fff;
  vertical-align: middle;
}

/* ---- prose ---- */

.prose {
  font-size: 17px;
  line-height: 1.75;
}

.prose h2 {
  font-size: 28px;
  margin: 40px 0 16px;
}

.prose h3 {
  font-size: 21px;
  margin: 28px 0 12px;
}

.prose p,
.prose li {
  color: var(--page-text);
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose code {
  background: #1e1f22;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.checklist {
  list-style: none;
  padding-left: 0 !important;
}

.checklist li {
  position: relative;
  padding-left: 28px;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--page-accent);
  font-weight: 700;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding-left: 0 !important;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 28px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--page-accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

/* ---- cards ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 8px;
  padding: 24px;
}

.card h2 {
  font-size: 22px;
  margin: 0 0 12px;
}

.card h3 {
  font-size: 19px;
  margin: 0 0 12px;
}

.card p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
}

.card a {
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* ---- plugin grid ---- */

.plugin-category {
  margin-bottom: 48px;
}

.plugin-category h2 {
  font-size: 24px;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--page-border);
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.plugin-card {
  display: block;
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.plugin-card:hover {
  border-color: var(--page-accent);
  transform: translateY(-2px);
}

.plugin-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.plugin-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--page-muted);
}

/* ---- FAQ ---- */

.faq-section h2 {
  color: var(--page-heading);
  text-align: center;
  margin-bottom: 28px;
}

.faq-list details {
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 4px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--page-heading);
  padding: 14px 0;
  font-size: 17px;
  list-style-position: outside;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
}

/* ---- install commands ---- */

.install-method {
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.install-method h3 {
  margin-top: 0;
}

.command {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1e1f22;
  border-radius: 6px;
  padding: 12px 16px;
  overflow-x: auto;
}

.command code {
  background: none;
  padding: 0;
  white-space: nowrap;
  color: #e6e8eb;
}

.copy-button {
  margin-left: auto;
  flex: none;
  background: var(--page-accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.copy-button[data-copied] {
  background: #3f9c5a;
}

/* ---- tables ---- */

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--page-border);
}

.table-wrap th {
  color: var(--page-heading);
}

/* ---- CTA band ---- */

.cta-band {
  background: linear-gradient(135deg, #3a1b1c 0%, #26272a 100%);
}

.cta-band h2 {
  color: var(--page-heading);
  margin-bottom: 12px;
}

.button-secondary {
  background: transparent !important;
  border: 2px solid var(--page-accent) !important;
  color: #fff !important;
}

.hero-cta .button + .button,
.page-header .button + .button {
  margin-left: 12px;
}

/* ---- footer ---- */

.site-footer {
  background: #1e1f22;
  padding: 48px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-heading {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--page-heading);
  margin: 0 0 12px;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: var(--page-muted);
  font-size: 15px;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

.footer-copyright {
  border-top: 1px solid var(--page-border);
  padding-top: 20px;
  font-size: 14px;
  color: var(--page-muted);
}

.footer-copyright p {
  margin: 0;
}

@media (max-width: 640px) {
  .page-header h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-cta .button + .button,
  .page-header .button + .button {
    margin-left: 0;
    margin-top: 12px;
  }
}

/* ---- header on content pages ----
   style.css positions .site-header absolutely and fades it in via the
   .has-animations/.is-loaded pair, which only the home page runs. Content
   pages get a normal, always-visible header instead. */

body.page .site-header {
  position: static;
  opacity: 1;
  border-bottom: 1px solid var(--page-border);
  margin-bottom: 8px;
}

.header-brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-wordmark {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.header-wordmark em {
  font-style: normal;
  color: var(--page-muted);
  font-weight: 500;
}

/* The hero copy inherits .text-light (#606483) from the template, which is too
   dim against the darker page background. */
.hero-paragraph,
.hero .hero-meta {
  color: var(--page-text);
}

@media (max-width: 560px) {
  .header-wordmark {
    display: none;
  }
}
