/* Bosh sahifa: demo seriya kartochkasi bosilganda ogohlantirish oynasi (js/portal-guard.js).
   Kartochkalarning o'z ko'rinishi o'zgarmaydi. */

/* «Asosiy jurnalga o'tish» bosilganda asosiy kartochka qisqa vaqt ajralib turadi */
.portal-card--hint {
  outline: 4px solid #2563eb;
  outline-offset: 6px;
  transition: outline-color 0.3s ease;
}

/* Oyna */
html.pg-lock {
  overflow: hidden;
}

.pg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(23, 58, 150, 0.82);
  overflow-y: auto;
}

.pg-dialog {
  width: min(600px, 100%);
  box-sizing: border-box;
  margin: auto;
  padding: 1.6rem 1.75rem 1.4rem;
  border-radius: 14px;
  background: #fff;
  color: #0b1220;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.pg-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.pg-title {
  margin: 0.75rem 0 0.6rem;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0b1220;
}

.pg-body {
  margin: 0 0 1.1rem;
  font-size: 0.97rem;
  line-height: 1.6;
  color: #0b1220;
}

.pg-primary,
.pg-secondary {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pg-primary {
  margin-bottom: 0.6rem;
  padding: 0.95rem 1.1rem;
  border: 0;
  background: #2563eb;
  color: #fff;
  font-size: 0.97rem;
  text-align: left;
}

.pg-primary:hover {
  background: #1d4ed8;
}

.pg-secondary {
  padding: 0.75rem 1.1rem;
  border: 1px solid #9aa7bd;
  background: #fff;
  color: #0b1220;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.pg-secondary:hover {
  background: #f1f5f9;
}

.pg-primary:focus-visible,
.pg-secondary:focus-visible {
  outline: 3px solid #0b1220;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .pg-dialog {
    padding: 1.25rem 1.1rem 1.1rem;
  }

  .pg-title {
    font-size: 1.3rem;
  }
}
