/* Budgie product pages · consistency pass 2026-11-19.
   Keeps every product's own palette; only aligns structure, sizes and readability. */

/* Hero actions: same height, size, weight and radius on every product page. */
body[data-budgie-product] .hero :is(.hero-actions, .cta) > a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-inline: 20px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.1;
  box-sizing: border-box;
}
body[data-budgie-product] .hero :is(.hero-actions, .cta) {
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
body[data-budgie-product] .hero :is(.hero-actions, .cta) > a:focus-visible,
body[data-budgie-product] .hero a:focus-visible,
.bw-release:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Secondary hero links: readable size everywhere. */
body[data-budgie-product] .hero :is(.hero-links, .hero-guide, .hero-resources, .minor) a,
body[data-budgie-product] .hero :is(.hero-links, .hero-guide) button {
  font-size: 13px;
}
body[data-budgie-product] .hero .compat span,
body[data-budgie-product] .hero .chips .chip,
body[data-budgie-product] .hero .hero-compatibility {
  font-size: 12px;
}

/* Latest-version strip (inserted by product.js). Inherits each page's colours. */
.bw-release {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 16px;
  padding: 8px 14px 8px 12px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color .18s ease, background-color .18s ease;
}
.bw-release[hidden] { display: none; }
.bw-release i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #33b27a;
  box-shadow: 0 0 0 3px color-mix(in srgb, #33b27a 22%, transparent);
  flex: none;
}
.bw-release-label { opacity: .72; }
.bw-release b { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.bw-release-date { opacity: .62; font-variant-numeric: tabular-nums; }
.bw-release em { font-style: normal; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bw-release:hover { border-color: color-mix(in srgb, currentColor 34%, transparent); background: color-mix(in srgb, currentColor 9%, transparent); }
.hero .chips + .bw-release, .hero .hero-compatibility + .bw-release { margin-top: 12px; }

/* Readability floor on phones: running text and labels outside product mock-ups. */
@media (max-width: 760px) {
  body[data-budgie-product="ultimate-rack"] :is(.feature-note, .integration-note, .release-note, .price-market) { font-size: 12.5px; }
  body[data-budgie-product="hare"] :is(.name small, .gt small, .step small) { font-size: 12px; }
  /* MB Rack: decorative glow orbs pushed the page 14px wider than a phone screen. */
  body[data-budgie-product="mb-rack"] .hero .orb { display: none; }
  body[data-budgie-product] .hero :is(.hero-actions, .cta) > a { flex: 1 1 auto; white-space: nowrap; }
  .bw-release { font-size: 12.5px; }
}

/* Plug-in index (/plug-in) cards: 9–10px text was unreadable on phones. */
@media (max-width: 760px) {
  #budgie-content.catalog-shell .product-copy p { font-size: 13px; line-height: 1.5; }
  #budgie-content.catalog-shell .product-copy > p:first-child { font-size: 11px; letter-spacing: .12em; }
  #budgie-content.catalog-shell .product-tags span { font-size: 11.5px; }
  #budgie-content.catalog-shell .catalog-intro .kicker { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) { .bw-release { transition: none; } }
