/* Great Pyramid article refinements derived from the Ancient Measures element kit. */

.great-pyramid-study .page-hero-inner {
  padding-bottom: clamp(2.7rem, 6vw, 4.6rem);
  padding-top: clamp(3.2rem, 7vw, 5.2rem);
}

.great-pyramid-study .page-hero h1 {
  letter-spacing: -0.025em;
  max-width: 12ch;
}

.great-pyramid-study .page-hero .lede {
  max-width: 52rem;
}

.hero-evidence-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.evidence-tag {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  padding: 0.36rem 0.48rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.evidence-tag-measured {
  color: #d4a94c;
}

.evidence-tag-reconstructed {
  color: #c9b98a;
}

.evidence-tag-model {
  color: #a9a1e4;
}

.hero-evidence-key .evidence-tag {
  background: rgba(20, 22, 43, 0.74);
}

.great-pyramid-study .section > .shell {
  width: min(calc(100% - 2rem), 74rem);
}

.great-pyramid-study .site-facts {
  background: #0e1022;
  border-color: rgba(212, 169, 76, 0.34);
  box-shadow: 0 16px 38px rgba(20, 22, 43, 0.14);
}

.great-pyramid-study .site-facts > div,
.great-pyramid-study .site-facts > div:nth-child(2) {
  border-color: rgba(163, 158, 196, 0.2);
}

.great-pyramid-study .site-facts span {
  color: #d4a94c;
  letter-spacing: 0.18em;
}

.great-pyramid-study .site-facts strong {
  color: #ece7d9;
}

.great-pyramid-study .site-facts small {
  color: #8f89b3;
}

.great-pyramid-study .prose > .article-tabs {
  align-items: center;
  background: #14162b;
  border: 1px solid rgba(163, 158, 196, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(2.8rem, 6vw, 4.6rem);
  padding: 0;
}

.article-tabs > span,
.article-tabs a {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 0.85rem 1rem;
  text-transform: uppercase;
}

.article-tabs > span {
  background: #d4a94c;
  color: #14162b;
}

.article-tabs a {
  border-left: 1px solid rgba(163, 158, 196, 0.2);
  color: #c6c1dc;
  text-decoration: none;
}

.article-tabs a:hover,
.article-tabs a:focus-visible {
  background: rgba(212, 169, 76, 0.12);
  color: #ecc56e;
}

.great-pyramid-study .essay-section {
  border-top: 1px solid rgba(117, 105, 84, 0.2);
  padding-top: clamp(2.2rem, 5vw, 3.5rem);
}

.great-pyramid-study .essay-section + .essay-section {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.great-pyramid-study .essay-section > p,
.great-pyramid-study .essay-section > .pull,
.great-pyramid-study .essay-section > .evidence-box {
  max-width: 52rem;
}

.great-pyramid-study .article-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1.2rem;
  max-width: 17ch;
  padding: 0;
}

.article-section-kicker {
  color: var(--gold-dark);
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.great-pyramid-study blockquote.pull {
  background: transparent;
  border-left: 3px solid var(--gold);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin: 2.25rem 0;
  padding: 0.4rem 0 0.4rem clamp(1.25rem, 3vw, 2rem);
}

.great-pyramid-study blockquote.pull p {
  margin-bottom: 0.6rem;
}

.great-pyramid-study blockquote.pull footer {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
  text-transform: uppercase;
}

.evidence-table-card {
  background: #0e1022;
  border: 1px solid rgba(163, 158, 196, 0.22);
  box-shadow: 0 16px 36px rgba(20, 22, 43, 0.12);
  color: #c6c1dc;
  margin: 2.4rem 0 0;
  scrollbar-color: #d4a94c #14162b;
}

.article-data-table {
  color: #c6c1dc;
  font-family: var(--sans);
  min-width: 44rem;
}

.article-data-table caption {
  border-bottom: 1px solid rgba(212, 169, 76, 0.34);
  color: #ece7d9;
  padding: 1.15rem 1.35rem 1rem;
  text-align: left;
}

.table-kicker,
.caption-title {
  display: block;
}

.table-kicker {
  color: #d4a94c;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.caption-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.1;
}

.article-data-table th,
.article-data-table td {
  border-bottom-color: rgba(163, 158, 196, 0.14);
  padding: 0.9rem 1rem;
}

.article-data-table thead th {
  border-bottom-color: rgba(212, 169, 76, 0.34);
  color: #d4a94c;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.article-data-table tbody th {
  color: #ece7d9;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  min-width: 10rem;
}

.article-data-table tbody tr:hover {
  background: rgba(212, 169, 76, 0.055);
}

.article-data-table .mono {
  color: #ecc56e;
  font-size: 0.76rem;
  line-height: 1.65;
}

.article-data-table .evidence-tag {
  display: table;
  margin-top: 0.55rem;
}

.article-data-table .badge {
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

.article-data-table .badge.measured {
  color: #d4a94c;
}

.article-data-table .badge.interpretation {
  color: #a9a1e4;
}

.great-pyramid-study .evidence-box {
  background: rgba(143, 134, 201, 0.08);
  border: 1px solid rgba(143, 134, 201, 0.4);
  border-left: 4px solid #8f86c9;
  margin-top: 2rem;
}

.great-pyramid-study .evidence-box .badge {
  background: transparent;
  border: 1px solid #8f86c9;
  border-radius: 0;
  color: #6d629e;
}

.great-pyramid-study #sources {
  background: #0e1022;
  border: 1px solid rgba(163, 158, 196, 0.22);
  color: #c6c1dc;
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.great-pyramid-study #sources .article-section-title {
  color: #ece7d9;
}

.great-pyramid-study #sources .article-section-kicker {
  color: #d4a94c;
}

.great-pyramid-study #sources .source-list {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.great-pyramid-study #sources .source-list li {
  border-top: 1px solid rgba(163, 158, 196, 0.16);
  margin: 0;
  padding: 1rem 0;
}

.great-pyramid-study #sources .source-list li:last-child {
  padding-bottom: 0;
}

.great-pyramid-study #sources cite {
  color: #ece7d9;
  font-family: var(--serif);
  font-size: 1rem;
}

@media (max-width: 48rem) {
  .great-pyramid-study .prose > * {
    min-width: 0;
    width: 100%;
  }

  .article-tabs > span {
    flex-basis: 100%;
  }

  .article-tabs a {
    border-bottom: 1px solid rgba(163, 158, 196, 0.2);
    flex: 1 1 50%;
  }

  .evidence-table-card {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 30rem) {
  .hero-evidence-key .evidence-tag {
    white-space: normal;
  }

  .article-tabs a {
    flex-basis: 100%;
  }

  .great-pyramid-study #sources {
    padding: 1.1rem;
  }
}
