/* Text pages (about, policies, guides, observatories, partners) and the FAQ. */
/* No width of its own: a page's body is exactly as wide as <main>, whose width is the site's one
   width (--page-width less the gutters), the same as the header and footer above and below it. */
.text-page {
  padding-block: 44px 72px;
  color: var(--site-text);
  font: 15px / 1.7 var(--font-site);
}
.text-page h1 {
  margin: 0 0 36px;
  font: 400 30px / 1.25 var(--font-site);
  text-align: center;
  text-wrap: balance;
}

/* Markdown body */
.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1em;
}
.prose ul,
.prose ol {
  padding-left: 1.5em;
}
.prose li + li {
  margin-top: 0.15em;
}
.prose strong {
  color: #fff;
  font-weight: 700;
}
.prose a {
  color: var(--gold);
}
.prose code {
  font-size: 0.95em;
}
.prose h2 {
  margin: 1.6em 0 0.6em;
  font: 400 22px / 1.3 var(--font-site);
}
.prose h3 {
  margin: 1.4em 0 0.5em;
  font: 700 16px / 1.4 var(--font-site);
}
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 1.1em;
  border-collapse: collapse;
}
.prose th,
.prose td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
}
.prose hr {
  width: 48px;
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--site-text);
}

/* Media */
.lead-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 32px;
}
.video {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  margin-bottom: 32px;
  background: #000;
}
.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.page-body.has-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.aside {
  margin: 0;
  text-align: center;
}
.aside img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: auto;
}
.aside-videos .video:last-child {
  margin-bottom: 0;
}
.aside figcaption {
  margin-bottom: 16px;
  font-size: 18px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

/* Observatory stat cards */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 24px;
  margin: 0 0 48px;
  padding: 0;
  list-style: none;
  text-align: center;
}
.stat-icon {
  width: 64px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--gold);
}
.stat-line {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.stat-line small {
  margin: 0 0.35em;
  font-size: 14px;
}
.stat-caption {
  margin: 4px 0 0;
}

/* FAQ */
.faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 28px;
}
.text-page.faq h1 {
  margin: 0;
  color: var(--gold);
  text-align: left;
}
#faq-search {
  width: min(100%, 270px);
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--site-text);
  border-radius: 0;
  background: transparent;
  color: var(--site-text);
  font: inherit;
}
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.faq-tabs button {
  padding: 12px 26px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--site-text);
  font: 13px var(--font-site);
}
.faq-tabs button[aria-selected="true"] {
  border-bottom-color: var(--gold);
  color: var(--gold);
}
.faq-category h2 {
  margin: 36px 0 8px;
  color: var(--gold);
  font: 600 18px var(--font-site);
}
.faq.tabbed .faq-category h2 {
  display: none;
}
.faq-item {
  border-bottom: 1px solid var(--site-text);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: 4px 6px 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.faq-item[open] summary::after {
  margin-top: 9px;
  transform: rotate(-135deg);
}
.faq-item .prose {
  padding-bottom: 32px;
  font-size: 14px;
}
/* A numbered question with its answer under it: leave air between one question and the next. */
.faq-item .prose li + li {
  margin-top: 1em;
}
.faq-empty {
  padding: 30px 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .text-page {
    padding-top: 28px;
  }
  .text-page h1 {
    font-size: 25px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 12px;
  }
  .page-body.has-aside,
  .gallery {
    grid-template-columns: 1fr;
  }
  .faq-tabs button {
    padding: 10px 14px;
  }
}

/* The home page is empty until the rental pages arrive; it still needs to occupy the screen so
   the footer does not ride up under the header. */
.home-placeholder {
  min-height: 40vh;
}
