/* ==========================================================
   BITPANGEA
   World Properties Domain Framework
   Path: /thecodex/003-world-properties/bitpangea-framework.css
   ========================================================== */

/* ----------------------------------------------------------
   Codex Metadata
   ---------------------------------------------------------- */

.codex-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(212, 169, 56, 0.28);
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   World Properties Domain Register
   ---------------------------------------------------------- */

.wp-register {
  width: 100%;
}

.wp-register > p {
  margin-bottom: 20px;
}

.wp-register-note {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   World Property Category Registers
   ---------------------------------------------------------- */

.wp-category-register {
  width: 100%;
  margin-top: 30px;
}

.wp-category-title {
  margin: 0 0 10px;
  color: var(--gold, #d4a938);
  font-size: 22px;
  letter-spacing: 3px;
  line-height: 1.35;
  text-transform: uppercase;
}

.wp-category-description {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.7;
}

.wp-category-note {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.wp-category-coming-soon {
  margin-top: 24px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(212, 169, 56, 0.25);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  letter-spacing: 1px;
}

.wp-category-divider {
  margin: 60px 0;
  border: 0;
  border-top: 1px solid rgba(212, 169, 56, 0.18);
}

/* Spatial category hook */

.wp-spatial-register {
  width: 100%;
}

.wp-spatial-register > p {
  margin-bottom: 20px;
}

.wp-spatial-register-note {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   Codex Cards / Shared Register Cards
   ---------------------------------------------------------- */

.codex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 34px;
}

.codex-card,
.codex-card:link,
.codex-card:visited {
  display: block;
  padding: 22px 20px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(212, 169, 56, 0.20);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.30);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.codex-card:hover,
.codex-card:focus-visible,
.codex-card:active {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(212, 169, 56, 0.52);
  background: rgba(0, 0, 0, 0.56);
  box-shadow: 0 0 34px rgba(212, 169, 56, 0.10);
}

.codex-card:focus-visible {
  outline: 2px solid var(--cyan, #00c8d7);
  outline-offset: 3px;
}

.codex-card h3 {
  margin-bottom: 12px;
  color: var(--gold, #d4a938);
  font-size: 13px;
  letter-spacing: 3px;
  line-height: 1.4;
  text-transform: uppercase;
  text-decoration: none;
}

.codex-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.55;
  text-decoration: none;
}

/* ----------------------------------------------------------
   Immutable Property Cards
   ---------------------------------------------------------- */

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.property-card {
  padding: 24px 24px 22px;
  background: rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(212, 169, 56, 0.18);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.28);
}

.property-card h3 {
  margin-bottom: 10px;
  color: var(--gold, #d4a938);
  font-size: 14px;
  letter-spacing: 2.5px;
  line-height: 1.45;
  text-transform: uppercase;
}

.property-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   Principle Cards
   ---------------------------------------------------------- */

.principle-card {
  margin-top: 18px;
  padding: 24px 24px 22px;
  background: rgba(0, 0, 0, 0.40);
  border-left: 3px solid rgba(212, 169, 56, 0.72);
  border-top: 1px solid rgba(212, 169, 56, 0.12);
  border-right: 1px solid rgba(212, 169, 56, 0.12);
  border-bottom: 1px solid rgba(212, 169, 56, 0.12);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.26);
}

.principle-card:first-of-type {
  margin-top: 24px;
}

.principle-card h3 {
  margin-bottom: 10px;
  color: var(--gold, #d4a938);
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1.45;
  text-transform: uppercase;
}

.principle-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.65;
}

/* ----------------------------------------------------------
   Two-Column Constitutional Comparison
   ---------------------------------------------------------- */

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.two-column > div {
  min-width: 0;
}

.two-column h2 {
  margin-bottom: 16px;
}

/* ----------------------------------------------------------
   Entry Cards
   ---------------------------------------------------------- */

.entry-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 24px;
}

.entry-card,
.entry-card:link,
.entry-card:visited {
  display: block;
  padding: 28px 28px 26px;
  background: rgba(0, 0, 0, 0.44);
  border: 1px solid rgba(212, 169, 56, 0.24);
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.34);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.entry-card:hover,
.entry-card:focus-visible,
.entry-card:active {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(212, 169, 56, 0.52);
  background: rgba(0, 0, 0, 0.56);
  box-shadow: 0 0 34px rgba(212, 169, 56, 0.10);
}

.entry-card:focus-visible {
  outline: 2px solid var(--cyan, #00c8d7);
  outline-offset: 3px;
}

.entry-card .entry-meta {
  margin-bottom: 10px;
  color: var(--cyan, #00c8d7);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.entry-card h3 {
  margin-bottom: 12px;
  color: var(--gold, #d4a938);
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1.4;
  text-transform: uppercase;
}

.entry-card p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.65;
}

.entry-card .entry-link {
  color: var(--white, #ffffff);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   Source Links
   ---------------------------------------------------------- */

.source-link {
  margin-top: 18px;
}

.source-link a,
.source-link a:link,
.source-link a:visited {
  color: rgba(212, 169, 56, 0.90);
  font-size: 12px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.source-link a:hover,
.source-link a:focus-visible,
.source-link a:active {
  color: var(--white, #ffffff);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(212, 169, 56, 0.60);
}

.source-link a:focus-visible {
  outline: 2px solid var(--cyan, #00c8d7);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 980px) {
  .codex-grid,
  .property-grid,
  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .codex-meta {
    gap: 8px;
  }

  .pill {
    padding: 7px 10px;
    font-size: 10px;
    letter-spacing: 1.6px;
  }

  .codex-card,
  .property-card,
  .principle-card,
  .entry-card {
    padding: 22px 20px;
  }

  .codex-card h3,
  .property-card h3,
  .principle-card h3,
  .wp-category-title {
    letter-spacing: 2px;
  }

  .wp-category-title {
    font-size: 19px;
  }
}
