/* The Prompt Press: a11y fixes (Nov 2026 review). Load AFTER styles.css. */
/* Keep text and focus indicators legible on the navy header. */
.site-nav a:hover, .site-nav a:focus-visible, .hero-price strong { color: #fff; }
.site-header :focus-visible, .hero-demo:focus-visible { outline-color: #fff; }

/* (c) Tap targets */
.account-link {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; margin-right: .35rem !important;
  color: #fff !important; border-radius: 12px; font-size: 1.15rem; line-height: 1;
}
.account-link:hover { background: rgba(255,255,255,.08); }
.account-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cart-btn { min-height: 44px; display: inline-flex; align-items: center; gap: .25rem; }
.cart-count { color: var(--coral-dark); }
@media (max-width: 900px) {
  .nav-toggle { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .inspire-chip, .chip, .cat-chip, .style-chip, .sg-tab, .sg-unit button, .swatch-btn,
  .studio-form select, .studio-form input[type="text"], .studio-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .text-tool input[type="text"], .text-tool select, input[type="email"], input[type="text"], input[type="number"], select {
    min-height: 44px;
  }
  .inspire-chip, .chip, .sg-tab { display: inline-flex; align-items: center; }
  .site-footer a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .icon-btn { min-width: 44px; min-height: 44px; }
}

/* (e) Size guide unit toggle */
.sg-unit { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; margin: .2rem 0 .6rem; }
.sg-unit button { min-width: 56px; min-height: 36px; border: 0; background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; font-size: .9rem; }
.sg-unit button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sg-unit button:focus-visible { outline: 2px solid var(--coral); outline-offset: -3px; }

/* (g) review photos: hide cleanly if missing */
.review img.pp-img-missing, img.pp-img-missing { display: none !important; }

/* follow-up from re-audit */
.footer-social a { color: #fff; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.fr-hero .eyebrow, .tier-card .tb { color: #fff !important; } /* coral TEXT on navy */
.text-tool .chk input, #text-outline { width: 24px !important; height: 24px !important; }
#text-size, input[type="range"] { min-height: 24px; }
@media (min-width: 901px) { .site-nav a { padding-block: .35rem; } }
@media (max-width: 900px) {
  .inspire-cats button, .idea-wrap .btn-sm, .brand { min-height: 44px; display: inline-flex; align-items: center; }
  input[type="range"] { min-height: 44px; }
}
.brand { min-height: 44px; display: inline-flex; align-items: center; }
footer a { display: inline-block; padding-block: .6rem; }
@media (max-width: 900px) {
  .style-pills button, .customize-btn, .faq summary, .swatch, .size-link { min-height: 44px; }
  .swatch { min-width: 44px; }
  .size-link { display: inline-flex; align-items: center; }
  .faq summary { display: flex; align-items: center; }
}
@media (max-width: 420px) {
  .site-header .account-link { margin-right: 0 !important; }
  .site-header .cart-btn { padding-inline: .6rem; }
  .site-header { gap: .3rem; }
}
@media (max-width: 380px) { .site-header { padding-inline: .7rem; } }

/* === RC quick fixes (Nov 2026) === */
/* Generate button busy state */
#generate-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; }
#generate-btn .gen-spinner {
  display: none; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  flex-shrink: 0;
}
#generate-btn.is-generating .gen-spinner { display: inline-block; animation: pp-gen-spin 0.7s linear infinite; }
#generate-btn.is-generating { cursor: wait; opacity: 0.92; }
@keyframes pp-gen-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #generate-btn .gen-spinner { animation: none !important; border-top-color: #fff; opacity: 0.85; }
  #generate-btn.is-generating .gen-spinner { display: inline-block; }
}
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Hero / brand headline: never ellipsis-truncate "The Prompt Press" at 390–1280 */
.site-header .brand-name {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .site-header .brand {
    flex: 0 1 auto;
    min-width: 0;
    /* no max-width — previous calc(100% - 11.5rem) let the name overlap the menu ~4px at 360 */
  }
  .site-header .brand-name {
    font-size: clamp(0.74rem, 3.1vw, 1rem) !important;
    letter-spacing: -0.02em;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap;
  }
  .site-header .cart-btn { padding-left: 0.5rem; padding-right: 0.55rem; font-size: 0.82rem; }
}
@media (max-width: 390px) {
  .site-header .brand-name { font-size: 0.74rem !important; }
  .site-header .brand-logo, .site-header .brand img { width: 30px !important; height: 30px !important; }
}
@media (max-width: 360px) {
  .site-header .brand-name { font-size: 0.7rem !important; letter-spacing: -0.025em; }
}
@media (max-width: 330px) {
  /* Fit full name + 44px controls without overlap on very narrow phones */
  .site-header .brand { gap: 0.28rem; }
  .site-header .brand-name { font-size: 0.52rem !important; letter-spacing: -0.035em; }
  .site-header .brand-logo, .site-header .brand img { width: 24px !important; height: 24px !important; }
  .site-header .cart-btn { padding-left: 0.35rem; padding-right: 0.4rem; font-size: 0.74rem; }
  .site-header { column-gap: 0.25rem; gap: 0.25rem; }
}
/* Hero H1: keep full phrase visible without horizontal clip */
.hero h1 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: manual;
  max-width: 100%;
}
.fr-hero h1 {
  overflow-wrap: anywhere;
  max-width: 100%;
  font-size: clamp(1.55rem, 5.2vw, 2.4rem);
}

/* hero headline clear sticky header */
.hero-inner { padding-top: max(5.5rem, calc(var(--pp-header-h, 4.5rem) + 1.25rem)); }
@media (max-width: 900px) {
  .hero-inner { padding-top: max(4.75rem, calc(var(--pp-header-h, 4.25rem) + 1rem)); }
}
