.access-page {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) clamp(16px, 4vw, 34px);
  display: grid;
  place-items: center;
  flex: 1 0 auto;
}

.access-card {
  width: 100%;
  padding: clamp(30px, 7vw, 56px);
  text-align: center;
  background:
    linear-gradient(150deg, rgba(23, 30, 43, 0.94), rgba(13, 17, 25, 0.94)),
    var(--card);
}

.access-card .eyebrow {
  margin-bottom: 12px;
}

.access-card h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 8vw, 4.4rem);
}

.access-lede {
  max-width: 570px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(0.96rem, 2.2vw, 1.08rem);
}

.access-actions {
  width: min(100%, 430px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.access-actions .button {
  width: 100%;
  min-height: 52px;
  justify-content: center;
}

.access-actions .button-secondary {
  border-color: rgba(7, 133, 189, 0.34);
  background: rgba(7, 133, 189, 0.06);
}

.access-actions .button-secondary:hover {
  border-color: rgba(7, 133, 189, 0.7);
  background: rgba(7, 133, 189, 0.12);
}

html.light .access-card {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(230, 242, 249, 0.92)),
    var(--card);
}

html.light .access-actions .button-secondary {
  border-color: rgba(7, 133, 189, 0.34);
  background: rgba(255, 255, 255, 0.58);
}

html.light .access-actions .button-secondary:hover {
  border-color: rgba(7, 133, 189, 0.7);
  background: rgba(7, 133, 189, 0.08);
}

@media (max-width: 650px) {
  .access-page {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .access-card {
    padding: 30px 20px;
  }
}

/* ── GEL BACKGROUND v3 2026-09-02 — approved placement + Bella recipe (SurfaceBlur r8/t16 +
   right shadow crush 22/0.92). THIS SHEET'S <link> IS PLACED AFTER the inline
   #bi-access-merge style block in all 31 pages (his ruled mechanism): last-in-cascade wins
   every equal-specificity battle by position, exactly like the approved mock's appended
   block — proven by the 2026-09-02 browser probe on the real page. !important kept as belt.
   BOTH themes carry the photo (his ruling). Rollback = restore link position + accent-2
   stamps + delete this block. ── */
html, html.dark { background: #000 !important; }
html.dark body, body { background: transparent !important; }
html.dark body::before, body::before { content: none !important; background: none !important; }
html.dark body::after, body::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background: url("editorial-access-bg.jpg?v=20260902-gel-3") center calc(var(--bi-hdr-h, 77px) - 90px - 4.24vw) / cover no-repeat !important;
  animation: none !important;
  transform: none !important;
}
html.dark body > header.site-header.site-header,
html.dark footer.site-footer.site-footer {
  background: rgba(13,17,25,.58) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
  backdrop-filter: blur(28px) saturate(140%) !important;
}
html.dark body .registration-card, body .registration-card {
  background: rgba(14,18,26,.70) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
  backdrop-filter: blur(28px) saturate(140%) !important;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.dark body .registration-card, body .registration-card { background: rgba(14,18,26,.94) !important; }
  html.dark body > header.site-header.site-header,
  html.dark footer.site-footer.site-footer { background: rgba(13,17,25,.93) !important; }
}

/* ── LOGIN CELL = ACCESS CELL 2026-09-02 — his rule: the access card is the reference and
   NEVER changes; the login (and reset) panes render in a cell of exactly its size.
   Mechanism: the card becomes a one-cell grid; panes stack in that cell; in login/reset
   states the ACCESS copy pane stays IN LAYOUT but invisible, so the card's height is always
   derived from the access content — every locale, every viewport, no magic numbers.
   Login internals tightened to fit (fields/buttons keep 44px targets). ── */
.registration-card.access-card { display: grid; }
.registration-card.access-card > .bi-apane,
.registration-card.access-card > .bi-rpane { grid-area: 1 / 1; }
.access-card.bi-login #biAccessCopyPane,
.access-card.bi-reset #biAccessCopyPane {
  display: block !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}
/* login pane fills the access-sized cell, content vertically centered; hard cap = the
   cell (i.e. the access card's own height) so equality holds even if a verbose locale
   overflows — then it scrolls internally rather than growing the card */
.access-card.bi-login #biAccessLoginPane {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow-y: auto;
}
/* centering via auto margins, NOT justify-content:center — autos collapse to 0 on overflow
   so the content top-anchors and scrolls; a centered flex column would clip its top half
   above the scroll origin and strand the Back control (a11y-review Major, remedy verbatim) */
.access-card.bi-login #biAccessLoginPane .bi-lback { margin-top: auto; }
.access-card.bi-login #biAccessLoginPane #biAccessLoginErr { margin-bottom: auto; }
/* tightened rhythm (was: back mb14 · h1 mb22 clamp1.7-2.4 · lbl mb6 · fld mb14 · rem mb18 ·
   forgot own row mt14 · err mt14) */
#biAccessLoginPane .bi-lback { margin: 0 0 2px; padding: 4px 8px; align-self: flex-start; }
#biAccessLoginPane h1 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 0 0 8px; }
#biAccessLoginPane .bi-lform { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
#biAccessLoginPane .bi-llbl { grid-column: 1 / -1; margin: 0 0 4px; }
#biAccessLoginPane .bi-lfld { grid-column: 1 / -1; margin: 0 0 8px; }
#biAccessLoginPane label[for="biAccessUser"] { grid-row: 1; }
#biAccessLoginPane #biAccessUser { grid-row: 2; }
#biAccessLoginPane label[for="biAccessPass"] { grid-row: 3; }
#biAccessLoginPane #biAccessPass { grid-row: 4; }
#biAccessLoginPane .bi-lrem { grid-row: 5; grid-column: 1; margin: 0 0 8px; display: flex; align-items: center; }
#biAccessLoginPane .bi-lforgot { grid-row: 5; grid-column: 2; align-self: start; justify-self: end; margin: 0 0 8px; min-height: 24px; display: inline-flex; align-items: center; }
#biAccessLoginPane .bi-lform .button-primary { grid-row: 6; grid-column: 1 / -1; }
#biAccessLoginPane #biAccessLoginErr { margin: 4px 0 0 !important; }

/* ── EQUAL-GAP CENTERING 2026-09-02 (his ruling: equal air between header and footer).
   Measured: main.access-page padded 54px top / 109px bottom; the 109 = 32px + the 77px
   footer it reserves — net 22px more space ABOVE the card. 32px top pad equalizes:
   gapAbove == gapBelow at any card height (the grid centering does the rest). ── */
main#editorialAccessMain.access-page { padding-top: 32px; }

/* ══ LOGINTWINS 2026-09-03 (mock-approved, his ruling): contributor's legal block — License/
   Privacy/Terms + email consent + the reCAPTCHA sentence — imported verbatim below the login
   submit, contributor's 12px rhythm. Text is baked per locale twin (harvested from the
   contributor dictionaries), no runtime key. */
#biAccessLoginPane .bi-login-legal{grid-row:7;grid-column:1 / -1;margin-top:10px;font:400 12px/1.35 'Poppins',sans-serif;color:rgba(255,255,255,.78);text-align:justify} /* a11y #9: .62 measured 3.85:1 over bright photo; .78 = 5.04:1 worst case */
#biAccessLoginPane .bi-login-legal a{color:rgba(255,255,255,.82);text-decoration:underline}
/* a11y #8: the GEL glass card stays dark in BOTH themes — light-theme dark ink measured 1.1-1.8:1 (invisible); white ink runs in both themes like every other in-card element. */
