/* shared/about-modal.css — reusable Altiora About modal v89 */

body.has-altiora-about-modal {
  overflow: hidden;
}

.altiora-about-modal {
  position: fixed;
  inset: 0;
  z-index: 205;
  display: none;
  pointer-events: none;
}

.altiora-about-modal.open {
  display: block;
  pointer-events: auto;
}

.altiora-about-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0;
  color: transparent;
}

.altiora-about-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(780px, calc(100vw - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-2, rgba(112,149,210,.26));
  border-radius: 22px;
  background: #050f20;
  color: var(--text, #fff);
  box-shadow: 0 28px 86px rgba(0,0,0,.48);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.altiora-about-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px 15px;
  border-bottom: 1px solid var(--line, rgba(255,255,255,.08));
}

.altiora-about-modal-head h2 {
  margin: 0 0 8px;
  color: var(--text, #fff);
  font-size: 24px;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.altiora-about-modal-head p {
  margin: 0;
  color: var(--muted, rgba(240,244,255,.70));
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 640px;
}

.altiora-about-modal-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(255,255,255,.10));
  background: rgba(255,255,255,.06);
  color: var(--text, #fff);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.altiora-about-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 22px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.altiora-about-text-full {
  display: grid;
  gap: 14px;
}

.altiora-about-text-full p {
  margin: 0;
  color: var(--muted, rgba(240,244,255,.72));
  font-size: 14px;
  line-height: 1.65;
}

.altiora-about-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line, rgba(255,255,255,.10));
}

.altiora-about-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line, rgba(255,255,255,.10));
  border-radius: 999px;
  color: var(--text, #fff);
  text-decoration: none;
  background: rgba(255,255,255,.045);
  font-size: 13px;
  white-space: nowrap;
}

html[data-theme="light"] .altiora-about-modal-panel {
  background: #ffffff;
  color: #0c1728;
  border-color: rgba(25,48,82,.14);
  box-shadow: 0 28px 86px rgba(33,57,93,.20);
}

html[data-theme="light"] .altiora-about-modal-head {
  border-color: rgba(25,48,82,.10);
}

html[data-theme="light"] .altiora-about-modal-head h2 {
  color: #0c1728;
}

html[data-theme="light"] .altiora-about-modal-head p,
html[data-theme="light"] .altiora-about-text-full p {
  color: rgba(12,23,40,.68);
}

html[data-theme="light"] .altiora-about-modal-close,
html[data-theme="light"] .altiora-about-contacts a {
  color: #0c1728;
  background: rgba(244,248,255,.90);
  border-color: rgba(25,48,82,.14);
}

@media (max-width: 767px) {
  .altiora-about-modal-panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    top: 8px;
    width: auto;
    max-height: none;
    transform: none;
    border-radius: 20px;
  }

  .altiora-about-modal-head {
    padding: 16px 14px 12px;
  }

  .altiora-about-modal-head h2 {
    font-size: 19px;
  }

  .altiora-about-modal-head p {
    font-size: 12.5px;
  }

  .altiora-about-modal-body {
    padding: 14px 14px 18px;
  }

  .altiora-about-text-full p {
    font-size: 13px;
    line-height: 1.58;
  }

  .altiora-about-contacts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .altiora-about-contacts a {
    justify-content: center;
    width: 100%;
  }
}


/* v89 — hard hidden state for reusable about modal */
.altiora-about-modal[aria-hidden="true"] {
  display: none !important;
  pointer-events: none !important;
}
