/* Case Builder-only / freemium: hide destinations this account cannot open.
   Allowed surfaces are home, Case Builder, News, and the RUL checker (see lib/case-builder-only-paths.ts). */

html.op-case-builder-only .suite-nav__zone[href^="/letters"],
html.op-case-builder-only .suite-nav__zone[href^="/codes"],
html.op-case-builder-only .suite-nav__zone[href^="/genie"],
html.op-case-builder-only .suite-subnav,
html:not(.op-case-builder-only) a.home-parent[href="/rul"],
html.op-case-builder-only a.home-parent[href="/letters"],
html.op-case-builder-only .home-group:has(#homeParentExplore),
html.op-case-builder-only .compliance-panel__letter {
  display: none !important;
}

.home-brand__sub--free,
.home-copy-free { display: none; }
html.op-case-builder-only:not(.op-guest) .home-brand__sub--full,
html.op-case-builder-only:not(.op-guest) .home-brand__sub--free { display: none; }
html.op-case-builder-only .home-copy-paid { display: none; }
html.op-case-builder-only .home-copy-free { display: inline; }

html.op-case-builder-only .suite-nav {
  z-index: 500;
}
html.op-case-builder-only .suite-subnav {
  z-index: 490;
}

html.op-case-builder-only #letterPillSlot,
html.op-case-builder-only #purchasePillSlot,
html.op-case-builder-only a.suite-nav__admin {
  display: none !important;
}

/* Hide locked-section content until the overlay mounts (role-boot sets this in <head>). */
html.op-section-locked body {
  overflow: hidden;
}
html.op-section-locked body > *:not(.suite-nav):not(.suite-subnav):not(#sectionLockOverlay) {
  visibility: hidden !important;
  pointer-events: none !important;
}

.section-lock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px) saturate(0.6);
  -webkit-backdrop-filter: blur(14px) saturate(0.6);
}

.section-lock__card {
  width: min(100%, 400px);
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  padding: 24px 22px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.section-lock__title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lock__copy {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.section-lock__copy a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.section-lock__copy a:hover {
  text-decoration: underline;
}

.section-lock__error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.85rem;
  line-height: 1.4;
}

.section-lock__error.is-visible {
  display: block;
}

.section-lock__card label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.section-lock__card input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  color: #0f172a;
}

.section-lock__card input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: #2563eb;
}

.section-lock__submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.section-lock__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
