/* ===========================================================================
   Naboo-8 — PO visual UAT polish                         (shared, all pages)
   Authority: PO UAT feedback, relayed by HANS. Preview only.

   One shared stylesheet, linked last in <head> on every public page, so each
   rule here is a single sitewide treatment rather than a per-page fix.
   BRAND-TYPE-01 (myqr-brand.css) is frozen and untouched.
   ======================================================================== */

/* --- B. Primary navigation logo ---------------------------------------------
   PO: "it gets lost in the page" — benchmarked against the prominence of the
   Adyen reference, not its pixels.

   Before, the rendered size was set by five competing bundle rules plus one
   Naboo override: 36px at ≥1280, 32px at 992–1279, 42px at 768–991 (larger
   than desktop), 30px on inner pages at ≤767 and 38px on the two home pages.

   Worse, the template's style.css sets
   `@media (max-width:991px) .header-v1 .logo img { width: 140px }` at
   specificity (0,2,1). Height came from elsewhere, so on every inner page the
   wordmark was STRETCHED: 140×30 at 375 (aspect 4.67 against the true 3.04,
   a 54% distortion) and 140×42 at 768. The home pages escaped only because a
   Naboo rule happened to reset their width.

   This rule, at (0,3,1), outranks both, restores `width: auto` so the aspect
   ratio always comes from the image, and sets one height per band. */
.header-v1 .logo img.myqr-logo-img {
  width: auto;
  max-width: none;
  height: 50px;                       /* ≥992: 32–36px → 50px (+39–56%) */
}
@media (min-width: 768px) and (max-width: 991px) {
  .header-v1 .logo img.myqr-logo-img { height: 48px; }   /* 42px, stretched → 48px true aspect */
}
@media (max-width: 767px) {
  /* Home pages keep their compact 57px header: 38px → 42px. Inner pages
     30px (stretched) → 42px. */
  .header-v1 .logo img.myqr-logo-img { height: 42px; }
}
/* The sticky header's logo box was capped at `width: 150px` (style.css,
   ≤1599px), narrower than the enlarged wordmark (152px at 50px tall). */
.header-v1.stuck .logo { width: auto; }

/* --- C. MyQR.at mark inside branded identity cards --------------------------
   PO: "inside boxes and inner pages again it gets lost". ~1.5× the rendered
   size, via the component's own selector so every instance moves together.
   Card content, labels and claims are untouched; no partner or legal marks. */
.mq-claimband-card .head img { height: 33px; }   /* 22px → 33px — 6 pages */
.p2-cred .top .brand { height: 36px; }           /* 24px → 36px — claim portal credential, EN + DE */

/* --- D. Hero photography: clear image, local contrast ----------------------
   Benchmark: the Paysafe reference — the photograph stays bright and legible,
   and only the area behind the words is darkened. The governed photographs
   themselves are not edited.

   Before: one bundle overlay over the WHOLE image on every carousel page —
   `linear-gradient(100deg, .70 0%, .42 46%, .16 100%)` plus a blue radial
   wash, and at ≤600px a near-black `.92 / .80 / .88`.

   Measured by sampling the real photograph under every text box and
   compositing the overlay: that treatment was simultaneously too dark for the
   photograph AND not dark enough for the text — body copy scored 2.6–4.2:1
   against a 4.5:1 requirement, readable only because of its text-shadow.

   After: darkness is concentrated in a band that tracks the copy column and
   ends where the words end; the photo side carries no overlay. The copy
   column's right edge sits at 54% of the image at ≥1200px (the container
   centres), 67% at 1024 and 77% at 768, identical in EN and DE, so the band
   widens as the viewport narrows. The blue radial wash is dropped. The
   controls keep their own local gradient (§28 / Naboo-6).

   The home page on mobile is unaffected: its copy sits below the photograph
   and that page hides the scrim entirely (naboo1). This rule only changes
   `background`, never `display`. */
@media (min-width: 1200px) {
  .mq-hero-carousel .mq-hc-scrim {
    background: linear-gradient(90deg, rgba(7,16,34,.82) 0%, rgba(7,16,34,.74) 40%, rgba(7,16,34,.56) 56%, rgba(7,16,34,0) 70%);
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .mq-hero-carousel .mq-hc-scrim {
    background: linear-gradient(90deg, rgba(7,16,34,.82) 0%, rgba(7,16,34,.74) 50%, rgba(7,16,34,.56) 70%, rgba(7,16,34,0) 84%);
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .mq-hero-carousel .mq-hc-scrim {
    background: linear-gradient(90deg, rgba(7,16,34,.82) 0%, rgba(7,16,34,.74) 60%, rgba(7,16,34,.56) 78%, rgba(7,16,34,0) 92%);
  }
}
@media (max-width: 767px) {
  /* Merchant carousels: the copy covers the whole slide (x to 96%, y 6–91%),
     so only the top strip can be released. */
  .mq-hero-carousel .mq-hc-scrim {
    background: linear-gradient(180deg, rgba(7,16,34,.60) 0%, rgba(7,16,34,.78) 8%, rgba(7,16,34,.78) 90%, rgba(7,16,34,.84) 100%);
  }
}

/* --- E. Claim band without the Founding Member credential card -------------
   PO ruling (21 Sep 2026): the simulated "Founding Member" credential card is
   retired from index, individuals and their DE pages. Its identity/custody
   disclosure is re-homed as ordinary text (.mq-claimband-note). With one
   column left, the band centres from 768px so no dead column remains; phones
   keep the left-aligned stack. The business pages' Verified Recipient card is
   untouched — only grids marked `.solo` are affected. */
.mq-claimband-grid.solo .mq-claimband-copy { flex: 1 1 100%; }
.mq-claimband.dark .mq-claimband-note { margin: 14px 0 0; max-width: 64ch; font-size: 13px; line-height: 1.7; color: #8FA9C2; }
@media (min-width:768px){
  .mq-claimband.dark .mq-claimband-grid.solo .mq-claimband-copy { text-align: center; }
  .mq-claimband.dark .mq-claimband-grid.solo h2 { text-wrap: balance; }
  .mq-claimband.dark .mq-claimband-grid.solo .lede,
  .mq-claimband.dark .mq-claimband-grid.solo .mq-claimband-note { margin-left: auto; margin-right: auto; }
  .mq-claimband.dark .mq-claimband-grid.solo .mq-claim-search.band { margin-left: auto; margin-right: auto; text-align: left; }
  .mq-claimband.dark .mq-claimband-grid.solo .micro { justify-content: center; }
  .mq-claimband.dark .mq-claimband-grid.solo + .mq-claimband-foot { text-align: center; }
}

/* --- F. Claim portal without the Founding Member credential card ----------
   PO/HANS ruling (21 Sep 2026): the post-verification credential card (badge,
   "Verified", shield, wallet note, member-since) is retired from claim.html and
   de/claim.html. Above the 980px stacking breakpoint the single remaining
   column is split in two — intro + actions left, "What you secured / What
   happens next" right — on the same 24px gutter as the Identity status and
   Invite boxes below, so no dead column is left behind. */
@media (min-width:981px){
  .mq-portal2 .p2-left { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 24px; row-gap: 26px; align-items: start; }
  .mq-portal2 .p2-left .p2-intro { grid-column: 1; grid-row: 1; }
  .mq-portal2 .p2-left .p2-ctas  { grid-column: 1; grid-row: 2; }
  .mq-portal2 .p2-left .p2-act   { grid-column: 2; grid-row: 1 / span 2; }
  .mq-portal2 .p2-left .p2-discl { grid-column: 1 / -1; }
}
