/* Layout/components specific to this site (not shared with the extension itself) — theme.css holds
   everything that IS shared (palette, fonts, resets). */

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

header.site-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
}

header.site-header img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

/* 22px to match section h2's own size (a site-wide "this is a header-level element" size) — 18px
   previously matched the hero's own body-copy tagline instead, reading as undersized next to the
   36px logo mark beside it. */
header.site-header .site-title {
  font-size: 22px;
  font-weight: 700;
}

.hero {
  text-align: center;
  padding: 48px 0 32px;
}

.hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
}

.hero p.tagline {
  font-size: 18px;
  color: var(--color-text-muted);
  margin: 0 0 28px;
}

/* Horizontal row, alphabetically by browser (Chrome, Edge, Firefox) — wraps onto a second line on a
   narrow viewport rather than ever forcing horizontal scroll (flex-wrap, not nowrap). */
.download-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.download-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 200px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-surface);
}

.download-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

a.download-item:hover {
  background: var(--color-border);
  color: var(--color-text);
}

/* A store/browser listing not published yet (see each page's own comment on which ones) — visually
   distinct (muted, no hover lift) and genuinely inert (no href), rather than a live-looking link to a
   URL that doesn't exist. Swap to a real `<a class="download-item" href="...">` once that listing
   exists — see index.html's own comment on its .download-list. */
.btn-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

section {
  margin: 48px 0;
}

section h2 {
  font-size: 22px;
  margin: 0 0 16px;
}

/* Each feature gets its own screenshot leading, with a caption describing it right below — see
   index.html's own comment on why this replaced a separate "Screenshots" section plus a parallel
   bullet list. Browser default <figure> margin reset to 0 (its own `margin: 0 0 32px` below is the
   only spacing that should apply) — the UA default `1em 40px` would otherwise indent every
   screenshot 40px from the left for no reason specific to this layout. */
.screenshot-feature {
  margin: 0 0 32px;
}

/* width: 100% here (the original rule) assumed a wide, full-browser-window screenshot — our actual
   screenshots are narrow UI-element crops (428px, a popup/tooltip/table-column width), so stretching
   them to this column's full ~860px width blew them up ~2x and made them look stretched/blurry.
   max-width instead displays them at their real, crisp resolution, shrinking only on a viewport
   narrower than that; margin: 0 auto centers them in the (wider) column. */
.screenshot-feature img {
  max-width: 100%;
  width: 428px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  display: block;
}

.screenshot-feature figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--color-text-muted);
}

ul.feature-list {
  padding-left: 20px;
}

/* Centered to match the BMC button below it — the "Support the project" h2 above stays left-aligned,
   matching every other section heading on the page, so this is scoped to just the paragraph rather
   than the whole section. */
.support-text {
  text-align: center;
}

/* Centers, then shrinks, whatever element BMC's own button.prod.min.js injects at this script's
   position — see index.html's own comment on why this exists (no documented size option on BMC's
   own side). flex + justify-content centers the element regardless of what display type BMC's own
   script gives it. `zoom`, not `transform: scale` — confirmed live that `transform` leaves this
   wrapper's own LAYOUT box at its full, pre-scale size (transform is purely visual, it never
   reflows), which left a dead-space gap below the button equal to the un-shrunk difference; `zoom`
   actually shrinks the box being laid out, not just its rendered appearance. */
.bmc-button-wrap {
  display: flex;
  justify-content: center;
  zoom: 0.85;
  margin-top: 8px;
}

ul.feature-list li {
  margin-bottom: 8px;
}

/* space-between puts the copyright notice on the left, the single nav link (Privacy Policy /
   "Back to home") on the right, and the deployed version roughly centered between them — both
   pages' own footer only ever has these same three children, so this works without needing
   page-specific overrides. The version text itself is substituted in at deploy time (see
   .github/workflows/deploy.yml) — there is no Worker script, this stays plain static hosting. */
footer.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
}

.privacy-page section h2 {
  font-size: 18px;
}

.privacy-page section {
  margin: 32px 0;
}
