/* ─────────────────────────────────────────────────────────────
   IfaLang · The 16 Laws of Ifa · CENProject
   toe.cenproject.org/ifa-language/
───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,400;1,600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07090f;
  --surface:   #0d1117;
  --surface-2: #12192a;
  --surface-3: #1a2338;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.13);

  --gold:    #f5c518;
  --gold-2:  #f0a500;

  --text:   #eaedf5;
  --text-2: #8b92a5;
  --text-3: #4a5166;

  --header-h: 88px;
  --r:    10px;
  --r-sm: 6px;
  --r-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);

  /* PT section — shared with Ifa Periodic Table app */
  --primary:    #0036F7;
  --primary-lt: #3d6aff;
  --primary-dk: #0025b3;
  --surface-1:  #0f1320;
  --border-1:   rgba(255,255,255,0.07);
  --radius:     8px;
  --radius-lg:  14px;
  --cat-primordial: #c9a227;
  --cat-cognitive:  #4361ee;
  --cat-vital:      #e63946;
  --cat-social:     #daa520;
  --cat-active:     #2d9e6b;
  --cat-strategic:  #5e72b4;
  --cat-sacred:     #7c4dff;
  --cat-abundant:   #e9498a;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(13,17,23,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* ── Topbar ── */
.header__topbar {
  display: flex; align-items: center; justify-content: center;
  height: 28px;
  background: linear-gradient(90deg, rgba(245,197,24,0.07) 0%, rgba(240,165,0,0.04) 100%);
  border-bottom: 1px solid rgba(245,197,24,0.1);
  padding: 0 28px;
}
.header__topbar-link {
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.header__topbar-title {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #f7d060, #f5c518, #d4860a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__top {
  height: var(--header-h);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 28px; gap: 16px;
}

.header__brand { display: flex; align-items: center; gap: 7px; flex-shrink: 0; color: var(--text); }
.header__logo {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-style: italic; font-weight: 600; font-size: 2.15rem;
  letter-spacing: 0.03em; line-height: 1;
  background: linear-gradient(135deg, #f7d060 0%, #f5c518 40%, #d4860a 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(245, 197, 24, 0.28));
}

.header__ext {
  font-size: 0.78rem; color: var(--text-3); text-decoration: none;
  padding: 5px 12px; border: 1px solid var(--border);
  border-radius: var(--r-sm); transition: all 0.15s; white-space: nowrap; flex-shrink: 0;
}
.header__ext:hover { color: var(--gold); border-color: rgba(245,197,24,0.35); }

/* ── Law nav strip ── */
.law-nav {
  display: flex; align-items: stretch;
  overflow-x: auto; gap: 0;
  border-top: 1px solid var(--border);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.law-nav::-webkit-scrollbar { display: none; }

.law-nav__btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border: none; border-bottom: 2px solid transparent;
  background: transparent; color: var(--text-3);
  font-family: inherit; font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
  position: relative;
}
.law-nav__btn:hover { color: var(--text-2); }
.law-nav__btn--active {
  color: var(--text);
  border-bottom-color: var(--law-color, var(--gold));
}
.law-nav__btn--dual {
  font-style: italic;
  opacity: 0.8;
}
.law-nav__btn--dual.law-nav__btn--active {
  opacity: 1;
}
.law-nav__sep {
  display: flex; align-items: center;
  color: var(--text-3); font-size: 0.65rem; padding: 0 2px;
  flex-shrink: 0; opacity: 0.5;
}

/* ════════════════════════════════════════════════════════════
   LOADING
════════════════════════════════════════════════════════════ */
.app-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--header-h));
  gap: 10px; color: var(--text-3); font-size: 0.9rem;
}
.app-loading__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: dot-bounce 0.8s ease-in-out infinite;
}
.app-loading__dot:nth-child(2) { animation-delay: 0.15s; }
.app-loading__dot:nth-child(3) { animation-delay: 0.30s; }
@keyframes dot-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-6px); opacity: 1; }
}

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  max-width: 800px; margin: 0 auto;
  padding: 52px 28px 40px; text-align: center;
}
.hero__title {
  font-size: 2.8rem; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 60%, #e08800 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__sub {
  color: var(--text-2); font-size: 0.97rem; line-height: 1.75;
  max-width: 640px; margin: 0 auto 14px;
}
.hero__ifapl {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-3); text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 5px 12px; transition: all 0.15s;
}
.hero__ifapl:hover { color: var(--gold); border-color: rgba(245,197,24,0.3); }

.hero__itoe-tag {
  font-size: 0.67rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 10px;
}
.hero__context {
  font-size: 0.875rem; color: var(--text-2); line-height: 1.75;
  max-width: 620px; margin: 0 auto 16px;
}
.hero__context strong { color: var(--text); font-weight: 600; }
.hero__links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   ALL-LAWS OVERVIEW  (8 pair rows)
════════════════════════════════════════════════════════════ */
.overview { padding: 0 28px 80px; }

.overview__search-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.overview__search {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  font-family: inherit; font-size: 0.9rem;
  padding: 8px 14px; width: 260px; transition: border-color 0.15s;
}
.overview__search:focus { outline: none; border-color: var(--border-2); }
.overview__search::placeholder { color: var(--text-3); }

.overview__filter {
  display: flex; gap: 4px;
  background: var(--surface-2); padding: 3px;
  border-radius: var(--r-sm); border: 1px solid var(--border);
}
.filter-btn {
  padding: 4px 14px; border: none; border-radius: 4px;
  background: transparent; color: var(--text-3);
  font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.filter-btn:hover { color: var(--text-2); }
.filter-btn--active { background: var(--surface-3); color: var(--text); }

.overview__count {
  margin-left: auto; font-size: 0.78rem; color: var(--text-3);
  font-family: 'SF Mono','Fira Code',monospace;
}

.pair-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 10px;
}

/* ── Law card (overview tile) ── */
.law-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 18px;
  cursor: pointer; transition: all 0.2s;
  --law-color: #888;
  border-left: 3px solid var(--law-color);
  display: flex; flex-direction: column; gap: 8px;
}
.law-card:hover {
  background: var(--surface-2);
  border-color: var(--law-color);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.law-card__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.law-card__name {
  font-size: 1.25rem; font-weight: 900; letter-spacing: -0.02em;
  color: var(--law-color); line-height: 1.15;
}
.law-card__badge {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; flex-shrink: 0;
  padding: 3px 7px; border-radius: 3px;
  border: 1px solid currentColor;
}
.law-card__badge--primary { color: var(--law-color); }
.law-card__badge--dual    { color: var(--text-3); border-color: var(--border); font-style: italic; }

.law-card__def {
  font-size: 0.82rem; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.law-card__fields {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px;
}
.law-card__field {
  font-size: 0.68rem; color: var(--text-3);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 3px; padding: 2px 7px;
}
.law-card__dual-ref {
  font-size: 0.72rem; color: var(--text-3);
  margin-top: auto; padding-top: 4px;
}
.law-card__dual-ref span { color: var(--law-color); }

/* ════════════════════════════════════════════════════════════
   LAW DETAIL VIEW  (single law full-page)
════════════════════════════════════════════════════════════ */
.law-detail {
  max-width: 960px; margin: 0 auto;
  padding: 40px 28px 80px;
  animation: fade-up 0.3s ease;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.law-detail__header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  flex-wrap: wrap;
}
.law-detail__header-left { flex: 1; min-width: 0; }
.law-detail__type {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-3); margin-bottom: 6px;
}
.law-detail__name {
  font-size: 3.2rem; font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.05; color: var(--law-color, var(--text));
  margin-bottom: 10px;
}
.law-detail__def {
  font-size: 1rem; color: var(--text-2); line-height: 1.75;
  max-width: 640px;
}
.law-detail__math {
  margin-top: 12px;
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 0.82rem; color: var(--gold);
  background: rgba(245,197,24,0.06);
  border: 1px solid rgba(245,197,24,0.15);
  border-radius: var(--r-sm); padding: 10px 14px;
  display: inline-block;
}
.law-detail__odu {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}
.law-detail__odu-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.law-detail__odu-name  { font-size: 0.9rem; font-weight: 700; color: var(--law-color, var(--text)); }
.law-detail__odu-code  { font-family: 'SF Mono','Fira Code',monospace; font-size: 0.75rem; color: var(--text-3); }

/* Principle */
.law-detail__principle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--law-color, var(--gold));
  border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 32px;
  font-size: 0.94rem; color: var(--text-2); line-height: 1.8;
}

/* Fields grid */
.law-detail__section-title {
  font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-3); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.law-detail__fields {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px; margin-bottom: 32px;
}
.field-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px;
}
.field-card__name {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--law-color, var(--gold));
  margin-bottom: 6px;
}
.field-card__body {
  font-size: 0.82rem; color: var(--text-2); line-height: 1.65;
}

/* Technology */
.law-detail__tech {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px 18px; margin-bottom: 32px;
  font-size: 0.875rem; color: var(--text-2); line-height: 1.7;
}

/* Unification */
.law-detail__unif {
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r); padding: 18px 20px; margin-bottom: 32px;
  font-size: 0.9rem; color: var(--text-2); line-height: 1.75;
  font-style: italic;
}

/* Dual law link card */
.dual-link {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--dual-color, var(--border-2));
  border-radius: var(--r); padding: 16px 18px;
  cursor: pointer; transition: all 0.18s;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  --dual-color: #888;
}
.dual-link:hover {
  border-color: var(--dual-color); box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.dual-link__label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 4px; }
.dual-link__name  { font-size: 1.1rem; font-weight: 800; color: var(--dual-color); }
.dual-link__def   { font-size: 0.8rem; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.dual-link__arrow { color: var(--text-3); font-size: 1.1rem; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   IFA MARKS
════════════════════════════════════════════════════════════ */
.ifa-marks { display: flex; gap: 6px; align-items: center; }
.ifa-marks__col { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.ifa-marks__row { display: flex; gap: 3px; align-items: center; justify-content: center; }
.ifa-marks__dot { display: block; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }

.ifa-marks--sm .ifa-marks__dot { width: 6px; height: 6px; }
.ifa-marks--sm .ifa-marks__col { gap: 3px; }
.ifa-marks--sm .ifa-marks__row { gap: 2px; }
.ifa-marks--sm { gap: 4px; }
.ifa-marks--md .ifa-marks__dot { width: 8px; height: 8px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .header__top { padding: 0 16px; }
  .header__tagline { display: none; }
  .law-nav__btn { padding: 7px 10px; font-size: 0.75rem; }
  .hero { padding: 36px 16px 28px; }
  .hero__title { font-size: 2.1rem; }
  .overview { padding: 0 16px 60px; }
  .overview__search { width: 100%; }
  .pair-row { grid-template-columns: 1fr; }
  .law-detail { padding: 28px 16px 60px; }
  .law-detail__name { font-size: 2.2rem; }
  .law-detail__fields { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }
  .law-card__name { font-size: 1.1rem; }
}

/* ════════════════════════════════════════════════════════════
   HEADER — SECTION TABS
════════════════════════════════════════════════════════════ */
.header__sections {
  display: flex; gap: 4px; flex: 1; justify-content: center;
}
.header__sec-btn {
  padding: 6px 16px; border-radius: var(--r-sm); font-size: 0.82rem; font-weight: 600;
  background: transparent; border: 1px solid var(--border); color: var(--text-2);
  cursor: pointer; transition: all 0.15s; letter-spacing: 0.01em;
}
.header__sec-btn:hover { border-color: var(--border-2); color: var(--text); }
.header__sec-btn--active {
  background: linear-gradient(135deg, rgba(245,197,24,0.12), rgba(240,165,0,0.08));
  border-color: rgba(245,197,24,0.4); color: var(--gold);
}

/* ════════════════════════════════════════════════════════════
   PT CONTROLS
════════════════════════════════════════════════════════════ */
.pt-controls {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(13,17,23,0.97); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px); padding: 10px 24px;
}
.pt-controls__heading {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-2); text-align: center; margin: 0 0 8px;
}
.pt-controls__inner {
  max-width: 1700px; margin: 0 auto; display: flex;
  align-items: center; gap: 12px; flex-wrap: wrap;
}
.pt-search { position: relative; flex-shrink: 0; }
.pt-search__icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 13px; pointer-events: none;
}
.pt-search__input {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 7px 12px 7px 32px; color: var(--text);
  font-size: 13px; width: 200px; outline: none; transition: border-color 0.15s, width 0.2s;
}
.pt-search__input::placeholder { color: var(--text-3); }
.pt-search__input:focus { border-color: var(--gold); width: 240px; }
.pt-chips { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.pt-chip {
  padding: 5px 11px; border-radius: 20px; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; border: 1px solid;
  transition: opacity 0.15s, transform 0.1s; background: transparent; user-select: none;
}
.pt-chip--inactive { opacity: 0.3; }
.pt-chip:hover { opacity: 0.8; transform: translateY(-1px); }
.pt-chip--active { opacity: 1; }
.pt-view-toggle { display: flex; gap: 3px; margin-left: auto; flex-shrink: 0; }
.pt-view-btn {
  padding: 6px 14px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text-2); font-size: 12px;
  cursor: pointer; transition: all 0.15s; font-weight: 500;
}
.pt-view-btn--active, .pt-view-btn:hover {
  background: rgba(245,197,24,0.15); border-color: rgba(245,197,24,0.4); color: var(--gold);
}

/* ════════════════════════════════════════════════════════════
   PT MAIN / TABLE
════════════════════════════════════════════════════════════ */
.pt-main { max-width: 1700px; margin: 0 auto; padding: 20px 24px 40px; }
:root { --pt-cell: 62px; }
.pt-table-headers {
  display: flex; gap: 0; margin-bottom: 18px;
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.pt-table-header {
  flex: 1; font-size: 11px; font-weight: 700; color: var(--text);
  font-family: 'Times New Roman', Georgia, serif; line-height: 1.3;
}
.pt-table-header__sub {
  display: flex; gap: 8px; font-size: 9.5px;
  font-weight: 400; color: var(--text-3); margin-top: 2px;
}
.pt-table-scroll { overflow-x: auto; padding-bottom: 4px; }
.pt-grid {
  display: grid; grid-template-columns: repeat(16, var(--pt-cell)) 82px;
  gap: 3px; min-width: fit-content;
}
.pt-col-header {
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; padding: 4px 2px 6px; gap: 2px;
}
.pt-col-header__ifacat { font-size: 8px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; white-space: nowrap; }
.pt-col-header__apola  { font-size: 7.5px; color: var(--text-3); text-align: center; line-height: 1.2; white-space: nowrap; }
.pt-corner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(180deg); gap: 4px; padding: 6px 0;
}
.pt-corner__label { font-size: 8px; font-weight: 700; color: var(--text); white-space: nowrap; font-family: 'Times New Roman', Georgia, serif; }
.pt-corner__sub   { font-size: 7px; color: var(--text-3); white-space: nowrap; }
.pt-row-header { display: flex; flex-direction: column; justify-content: center; padding: 4px 0 4px 6px; gap: 1px; }
.pt-row-header__ifacomp { font-size: 8.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.pt-row-header--basepair { justify-content: center; border-left: 2px solid #c9a227; }
.pt-row-header__basepair { font-size: 8px; font-weight: 700; color: #c9a227; white-space: nowrap; letter-spacing: 0.06em; }
.pt-cell-placeholder {
  width: var(--pt-cell); height: var(--pt-cell); border-radius: 6px;
  background: transparent; border: 1px dashed rgba(255,255,255,0.05);
}

/* ════════════════════════════════════════════════════════════
   PT CELL
════════════════════════════════════════════════════════════ */
.pt-cell {
  width: var(--pt-cell); height: var(--pt-cell); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform 0.14s, box-shadow 0.14s, opacity 0.2s;
  padding: 3px 2px 2px; gap: 1px; user-select: none;
}
.pt-cell::before {
  content: ''; position: absolute; inset: 0; background: currentColor;
  opacity: 0.11; transition: opacity 0.14s; border-radius: inherit;
}
.pt-cell:hover { transform: scale(1.1); z-index: 20; box-shadow: 0 6px 24px rgba(0,0,0,0.5); }
.pt-cell:hover::before { opacity: 0.22; }
.pt-cell--meji { border-color: currentColor; border-width: 2px; }
.pt-cell--meji::before { opacity: 0.17; }
.pt-cell--dim { opacity: 0.08; pointer-events: none; }
.pt-cell__num { font-size: 8px; font-weight: 700; opacity: 0.55; line-height: 1; position: relative; align-self: flex-start; padding-left: 2px; }
.pt-cell__glyph { display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: 'Times New Roman', Georgia, serif; font-weight: 700; position: relative; }
.pt-cell__glyph-sec { font-size: 7px; opacity: 0.75; }
.pt-cell__glyph-pri { font-size: 13px; line-height: 1; }
.pt-cell__name { font-size: 7px; font-weight: 600; text-align: center; line-height: 1.2; max-width: 58px; position: relative; opacity: 0.85; }

/* ════════════════════════════════════════════════════════════
   PT LIST VIEW
════════════════════════════════════════════════════════════ */
.pt-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.pt-odu-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px; cursor: pointer; display: flex; gap: 14px; align-items: flex-start;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pt-odu-card:hover { border-color: rgba(245,197,24,0.4); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }
.pt-odu-card__badge {
  width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 17px; font-weight: 800; flex-shrink: 0; position: relative;
}
.pt-odu-card__badge::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0.16; }
.pt-odu-card__badge span { position: relative; }
.pt-odu-card__body { flex: 1; min-width: 0; }
.pt-odu-card__name   { font-size: 15px; font-weight: 700; line-height: 1.2; }
.pt-odu-card__yoruba { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.pt-odu-card__cat    { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.pt-odu-card__desc   { font-size: 12px; color: var(--text-2); margin-top: 6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ════════════════════════════════════════════════════════════
   PT MODAL
════════════════════════════════════════════════════════════ */
.pt-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px); animation: ptOverlayIn 0.2s ease;
}
@keyframes ptOverlayIn { from { opacity: 0; } to { opacity: 1; } }
.pt-modal {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px;
  max-width: 660px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; animation: ptModalIn 0.22s cubic-bezier(0.34,1.3,0.64,1);
}
@keyframes ptModalIn { from { opacity: 0; transform: scale(0.9) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.pt-modal__close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-2); font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background 0.12s; z-index: 10; line-height: 1;
}
.pt-modal__close:hover { background: var(--border-2); color: var(--text); }
.pt-modal__header { padding: 24px 24px 0; display: flex; gap: 18px; align-items: flex-start; }
.pt-modal__badge {
  width: 68px; min-height: 68px; border-radius: 14px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0; gap: 5px; padding: 10px 8px;
}
.pt-modal__badge::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0.18; }
.pt-modal__badge-num    { font-size: 12px; font-weight: 800; opacity: 0.7; position: relative; }
.pt-modal__badge-marks  { display: flex; gap: 5px; position: relative; }
.pt-modal__mark-col     { display: flex; flex-direction: column; gap: 2px; }
.pt-modal__dot          { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pt-modal__dot--zero    { opacity: 0.2; outline: 1px solid currentColor; background: transparent; }
.pt-modal__title        { flex: 1; }
.pt-modal__title h2     { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.15; }
.pt-modal__yoruba       { font-size: 14px; color: var(--text-2); margin-top: 3px; }
.pt-modal__tag {
  display: inline-flex; align-items: center; margin-top: 8px; padding: 3px 10px;
  border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; border: 1px solid;
}
.pt-modal__body          { padding: 20px 24px 24px; }
.pt-modal__section       { margin-bottom: 20px; }
.pt-modal__section:last-child { margin-bottom: 0; }
.pt-modal__section-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 8px; }
.pt-modal__meaning       { font-size: 14px; line-height: 1.7; color: #c4cad8; }
.pt-domain-chips         { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-domain-chip          { padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 20px; font-size: 12px; color: var(--text); }
.pt-ifabit               { display: flex; align-items: center; gap: 20px; }
.pt-ifabit__cols         { display: flex; gap: 12px; }
.pt-ifabit__col          { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.pt-ifabit__col-label    { font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; text-align: center; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-ifabit__mark         { display: flex; align-items: center; gap: 3px; height: 12px; }
.pt-ifabit__dot          { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.pt-ifabit__dot--zero    { background: transparent; outline: 1.5px solid currentColor; opacity: 0.3; }
.pt-ifabit__code         { font-family: 'Courier New', monospace; font-size: 22px; font-weight: 800; letter-spacing: 0.1em; word-break: break-all; }
.pt-info-grid            { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-info-card            { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; cursor: default; }
.pt-info-card--link      { cursor: pointer; transition: border-color 0.15s; }
.pt-info-card--link:hover { border-color: rgba(245,197,24,0.4); }
.pt-info-card__label     { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.pt-info-card__value     { font-size: 15px; font-weight: 700; }
.pt-info-card__sub       { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.pt-steamsex-tags        { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-steamsex-tag         { padding: 4px 10px; background: rgba(245,197,24,0.08); border: 1px solid rgba(245,197,24,0.2); border-radius: 5px; font-size: 12px; color: #f5c518; }
.pt-dual-row             { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color 0.15s; }
.pt-dual-row:hover       { border-color: rgba(245,197,24,0.4); }
.pt-dual-badge           { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; position: relative; flex-shrink: 0; }
.pt-dual-badge::before   { content: ''; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0.15; }
.pt-dual-badge span      { position: relative; }
.pt-dual-name            { font-size: 14px; font-weight: 700; flex: 1; }
.pt-dual-yoruba          { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.pt-dual-arrow           { font-size: 16px; color: var(--text-3); }
.pt-tooltip              { position: fixed; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 6px; padding: 5px 10px; font-size: 11px; color: var(--text); pointer-events: none; z-index: 500; white-space: nowrap; }

@media (max-width: 900px) {
  :root { --pt-cell: 50px; }
  .pt-info-grid { grid-template-columns: 1fr; }
  .header__sections { gap: 2px; }
  .header__sec-btn { padding: 5px 10px; font-size: 0.75rem; }
}
@media (max-width: 560px) {
  :root { --pt-cell: 40px; }
  .pt-main { padding: 12px 12px 32px; }
  .pt-controls { padding: 8px 12px; }
}

/* ─────────────────────────────────────────────────────────────
   OrisaLang Section  (ol- prefix)
───────────────────────────────────────────────────────────── */
.ol-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 48px;
}
.ol-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.ol-search {
  flex: 1;
  max-width: 400px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.ol-search:focus { border-color: rgba(245,197,24,0.5); }
.ol-count {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}
.ol-empty {
  text-align: center;
  padding: 48px;
  color: var(--text-3);
  font-size: 14px;
}
.ol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.ol-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.12s;
  cursor: default;
}
.ol-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ol-color, #f5c518);
  opacity: 0.06;
  pointer-events: none;
}
.ol-card:hover {
  border-color: color-mix(in srgb, var(--ol-color, #f5c518) 50%, transparent);
  transform: translateY(-2px);
}
.ol-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ol-card__lang {
  font-size: 15px;
  font-weight: 800;
  color: var(--ol-color, #f5c518);
  letter-spacing: -0.2px;
  position: relative;
}
.ol-card__orisa {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
}
.ol-card__domain {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 6px;
  position: relative;
}
.ol-card__energy {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0 0 12px;
  position: relative;
  font-style: italic;
}
.ol-card__sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  position: relative;
}
.ol-card__sector {
  padding: 3px 9px;
  background: color-mix(in srgb, var(--ol-color, #f5c518) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ol-color, #f5c518) 30%, transparent);
  border-radius: 20px;
  font-size: 11px;
  color: var(--ol-color, #f5c518);
  font-weight: 600;
}

@media (max-width: 900px) {
  .ol-overview { padding: 0 16px 32px; }
  .ol-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
}
@media (max-width: 560px) {
  .ol-grid { grid-template-columns: 1fr; }
  .ol-search { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   PT SECTION — NEW SECTIONS (ported from Ifa Periodic Table)
════════════════════════════════════════════════════════════ */

/* ── IFA HERO STRIP ── */
.ifa-hero {
  position: relative; height: 112px;
  background: linear-gradient(180deg, #07090f 0%, #0b1022 40%, #0e1430 60%, #07090f 100%);
  border-bottom: 1px solid var(--border-1);
  overflow: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ifa-hero__stripe {
  position: absolute; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg,
    #c9a227 0px, #c9a227 14px, #0036F7 14px, #0036F7 28px,
    #e63946 28px, #e63946 42px, #2d9e6b 42px, #2d9e6b 56px,
    #7c4dff 56px, #7c4dff 70px, #e9498a 70px, #e9498a 84px,
    #daa520 84px, #daa520 98px, #5e72b4 98px, #5e72b4 112px);
  opacity: 0.6;
}
.ifa-hero__stripe--top { top: 0; }
.ifa-hero__stripe--bot { bottom: 0; }
.ifa-hero__palm {
  position: absolute; bottom: -10px;
  color: var(--gold); pointer-events: none;
}
.ifa-hero__palm--l1 { left: -8px;  height: 138px; opacity: 0.16; }
.ifa-hero__palm--l2 { left: 90px;  height: 106px; opacity: 0.07; transform: scaleX(-1); }
.ifa-hero__palm--r1 { right: -8px; height: 138px; opacity: 0.16; transform: scaleX(-1); }
.ifa-hero__palm--r2 { right: 90px; height: 106px; opacity: 0.07; }
.ifa-hero__opon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  color: var(--gold); opacity: 0.055; pointer-events: none;
}
.ifa-hero__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 7px;
}
.ifa-hero__tagline {
  font-size: 11px; color: var(--text-2);
  letter-spacing: 0.18em; text-transform: uppercase;
  font-family: 'Times New Roman', Georgia, serif; opacity: 0.85;
}
.ifa-hero__tradition {
  font-size: 15px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.16em;
  font-family: 'Times New Roman', Georgia, serif; opacity: 0.75;
}

/* ── IFABOK BANNER ── */
.ifabok-banner {
  position: relative; background: var(--bg);
  border-bottom: 1px solid var(--border-1);
  padding: 36px 20px 40px; overflow: hidden;
}
.ifabok-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(0,54,247,0.06) 0%, rgba(197,162,39,0.04) 50%, transparent 75%);
  pointer-events: none;
}
.ifabok-banner__inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.ifabok-banner__figure { margin: 0; display: flex; justify-content: center; }
.ifabok-banner__img {
  width: 100%; max-width: 1040px; height: auto; border-radius: 14px;
  filter: invert(1) hue-rotate(180deg) brightness(0.88) contrast(1.1) saturate(1.25);
  border: 1px solid rgba(61,106,255,0.2);
  box-shadow: 0 0 0 1px rgba(61,106,255,0.08), 0 4px 40px rgba(0,0,0,0.7);
  transition: filter 0.35s, box-shadow 0.35s, transform 0.35s;
}
.ifabok-banner__img:hover {
  filter: invert(1) hue-rotate(180deg) brightness(0.94) contrast(1.12) saturate(1.35);
  box-shadow: 0 0 0 1px rgba(61,106,255,0.25), 0 8px 64px rgba(0,54,247,0.28);
  transform: translateY(-2px);
}

/* ── IFAPT INTRO ── */
.ifapt-intro {
  position: relative;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--bg) 60%, var(--surface-1) 100%);
  border-bottom: 1px solid var(--border-1);
  padding: 48px 24px 52px; overflow: hidden;
}
.ifapt-intro::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--primary) 0%, var(--cat-primordial) 16.6%, var(--cat-cognitive) 33.2%,
      var(--cat-vital) 50%, var(--cat-active) 66.6%, var(--cat-sacred) 83.2%, var(--cat-abundant) 100%) top / 100% 2px no-repeat,
    linear-gradient(90deg, var(--cat-abundant) 0%, var(--cat-sacred) 16.6%, var(--cat-active) 33.2%,
      var(--cat-vital) 50%, var(--cat-cognitive) 66.6%, var(--cat-primordial) 83.2%, var(--primary) 100%) bottom / 100% 2px no-repeat;
  pointer-events: none; opacity: 0.5;
}
.ifapt-intro::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 280px;
  background: radial-gradient(ellipse, rgba(0,54,247,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.ifapt-intro__inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.ifapt-intro__body { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.ifapt-intro__body > p { font-size: 1.05rem; line-height: 1.85; color: var(--text-2); max-width: 700px; }
.ifapt-intro__body > p strong { color: var(--text); font-weight: 600; }
.ifapt-intro__body > p em { color: var(--text); font-style: italic; }
.ifapt-intro__accent { color: var(--primary-lt) !important; font-weight: 700 !important; }
.ifapt-intro__accent--gold { color: var(--gold) !important; }
.ifapt-intro__note { font-size: 0.85em; color: var(--text-3); font-style: italic; }
.ifapt-intro__stats {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border-2); border-radius: 12px;
  overflow: hidden; background: var(--surface-2);
}
.ifapt-intro__stat { display: flex; flex-direction: column; align-items: center; padding: 16px 40px; gap: 4px; }
.ifapt-intro__stat-num { font-size: 2rem; font-weight: 800; color: var(--primary-lt); line-height: 1; letter-spacing: -0.02em; }
.ifapt-intro__stat-lbl { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); }
.ifapt-intro__divider { width: 1px; height: 48px; background: var(--border-2); flex-shrink: 0; }
.ifapt-intro__closing { font-size: 1.05rem !important; color: var(--text-2) !important; }
.ifapt-intro__expanded {
  font-size: 0.97rem; line-height: 1.85; color: var(--text-2);
  max-width: 680px; text-align: center;
  padding: 18px 24px; border: 1px solid var(--border-2); border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,54,247,0.05) 0%, rgba(197,162,39,0.04) 100%);
  position: relative;
}
.ifapt-intro__expanded::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary-lt), var(--gold));
}
.ifapt-intro__expanded strong { color: var(--text); font-weight: 600; }
.ifapt-intro__expanded em { font-style: normal; color: var(--text); font-weight: 500; border-bottom: 1px dashed rgba(61,106,255,0.4); }

/* ── IFAPT GALLERY ── */
.ifapt-gallery {
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border-2); padding: 48px 24px 56px;
}
.ifapt-gallery__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.ifapt-gallery__row--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ifapt-gallery__row--solo { display: flex; justify-content: center; }
.ifapt-gallery__row--solo .ifapt-gallery__figure { width: 100%; max-width: 720px; }
.ifapt-gallery__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ifapt-gallery__img { width: 100%; height: auto; border-radius: 10px; display: block; transition: box-shadow 0.3s, filter 0.3s; }
.ifapt-gallery__img--light {
  filter: invert(1) hue-rotate(180deg) brightness(0.88) contrast(1.08) saturate(1.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.05);
}
.ifapt-gallery__img--light:hover {
  filter: invert(1) hue-rotate(180deg) brightness(0.94) contrast(1.12) saturate(1.35);
  box-shadow: 0 6px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(61,106,255,0.25);
}
.ifapt-gallery__img--dark {
  filter: brightness(0.95) contrast(1.06) saturate(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}
.ifapt-gallery__img--dark:hover {
  filter: brightness(1.02) contrast(1.1) saturate(1.2);
  box-shadow: 0 6px 28px rgba(0,0,0,0.6), 0 0 0 1px rgba(61,106,255,0.25);
}
.ifapt-gallery__caption { font-size: 0.82rem; color: var(--text-2); text-align: center; font-style: italic; letter-spacing: 0.02em; }
@media (max-width: 800px) { .ifapt-gallery__row--duo { grid-template-columns: 1fr; } }

/* ── IFATOM INTRO ── */
.ifatom-intro {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-1);
  padding: 40px 24px; overflow: hidden;
}
.ifatom-intro::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,54,247,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.ifatom-intro__inner { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; }
.ifatom-intro__diagram {
  width: 100%; max-width: 580px; height: auto; border-radius: 12px;
  filter: invert(1) sepia(0.25) hue-rotate(185deg) saturate(1.6) brightness(0.88) contrast(1.08);
  border: 1px solid rgba(61,106,255,0.3);
  box-shadow: 0 0 0 1px rgba(61,106,255,0.12), 0 4px 32px rgba(0,36,180,0.35);
  transition: box-shadow 0.3s, filter 0.3s;
}
.ifatom-intro__diagram:hover {
  filter: invert(1) sepia(0.2) hue-rotate(185deg) saturate(1.8) brightness(0.92) contrast(1.1);
  box-shadow: 0 0 0 1px rgba(61,106,255,0.3), 0 6px 48px rgba(0,54,247,0.45);
}
.ifatom-intro__desc {
  font-size: 1rem; font-style: italic; color: var(--text-2);
  text-align: center; line-height: 1.7; max-width: 520px;
  padding: 14px 20px;
  border-left: 3px solid var(--primary-lt); border-right: 3px solid var(--primary-lt);
  border-radius: 4px; background: rgba(0,54,247,0.05);
}

/* ── DUAL LAWS ── */
.dual-laws { border-top: 1px solid var(--border-1); padding: 14px 24px; background: var(--bg); }
.dual-laws__inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dual-laws__label { font-size: 10.5px; font-weight: 700; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.dual-laws__chips { display: flex; gap: 5px; flex-wrap: wrap; }
.dual-chip { padding: 5px 11px; border-radius: 20px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid; background: transparent; user-select: none; }

/* ── PTOE DIAGRAMS ── */
.ptoe-diagrams {
  position: relative;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-2);
  padding: 40px 24px 48px; overflow: hidden;
}
.ptoe-diagrams::before, .ptoe-diagrams::after {
  content: ''; position: absolute; top: 50%; width: 420px; height: 360px; transform: translateY(-50%); pointer-events: none;
}
.ptoe-diagrams::before { left: 10%; background: radial-gradient(ellipse, rgba(197,162,39,0.07) 0%, transparent 70%); }
.ptoe-diagrams::after  { right: 10%; background: radial-gradient(ellipse, rgba(0,54,247,0.07) 0%, transparent 70%); }
.ptoe-diagrams__inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; position: relative; }
.ptoe-diagrams__img {
  width: 100%; max-width: 520px; height: auto; border-radius: 12px;
  filter: invert(1) sepia(0.2) hue-rotate(185deg) saturate(1.5) brightness(0.87) contrast(1.06);
  border: 1px solid rgba(61,106,255,0.25);
  box-shadow: 0 0 0 1px rgba(61,106,255,0.1), 0 4px 36px rgba(0,36,180,0.3);
  transition: box-shadow 0.3s, filter 0.3s, transform 0.3s;
}
.ptoe-diagrams__img:hover {
  filter: invert(1) sepia(0.15) hue-rotate(185deg) saturate(1.7) brightness(0.92) contrast(1.1);
  box-shadow: 0 0 0 1px rgba(61,106,255,0.28), 0 8px 56px rgba(0,54,247,0.4);
  transform: translateY(-3px);
}
.ptoe-diagrams__img:first-child:hover {
  filter: invert(1) sepia(0.35) hue-rotate(10deg) saturate(1.6) brightness(0.9) contrast(1.08);
  box-shadow: 0 0 0 1px rgba(197,162,39,0.28), 0 8px 56px rgba(197,162,39,0.28);
}

/* ── MENDELEEV REFERENCE ── */
.mendeleev-ref {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-2);
  padding: 44px 24px 48px; overflow: hidden;
}
.mendeleev-ref::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 900px; height: 340px;
  background: radial-gradient(ellipse, rgba(197,162,39,0.06) 0%, transparent 65%); pointer-events: none;
}
.mendeleev-ref__inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }
.mendeleev-ref__figure { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 0; }
.mendeleev-ref__img {
  width: 100%; max-width: 880px; height: auto; border-radius: 12px;
  filter: brightness(0.96) contrast(1.04) saturate(1.05);
  border: 1px solid rgba(197,162,39,0.2);
  box-shadow: 0 0 0 1px rgba(197,162,39,0.08), 0 6px 48px rgba(0,0,0,0.55);
  transition: filter 0.35s, box-shadow 0.35s, transform 0.35s;
}
.mendeleev-ref__img:hover {
  filter: brightness(1.0) contrast(1.06) saturate(1.12);
  box-shadow: 0 0 0 1px rgba(197,162,39,0.28), 0 10px 64px rgba(197,162,39,0.22);
  transform: translateY(-3px);
}
.mendeleev-ref__caption { font-size: 0.9rem; font-style: italic; color: var(--text-3); text-align: center; letter-spacing: 0.03em; padding: 8px 20px; border-bottom: 1px solid var(--border-1); }

/* ── STANDARD MODEL REFERENCE ── */
.standard-model-ref {
  position: relative;
  background: linear-gradient(160deg, var(--bg) 0%, var(--surface-1) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-2);
  padding: 48px 24px 52px; overflow: hidden;
}
.standard-model-ref::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 45% 70% at 25% 50%, rgba(67,97,238,0.08) 0%, transparent 65%),
              radial-gradient(ellipse 45% 70% at 75% 50%, rgba(124,77,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.standard-model-ref::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cat-primordial) 0%, var(--cat-cognitive) 14.3%, var(--cat-vital) 28.6%, var(--cat-social) 42.9%, var(--cat-active) 57.1%, var(--cat-strategic) 71.4%, var(--cat-sacred) 85.7%, var(--cat-abundant) 100%);
  opacity: 0.55; pointer-events: none;
}
.standard-model-ref__inner { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.standard-model-ref__figure { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 0; }
.standard-model-ref__img {
  width: 100%; max-width: 480px; height: auto; border-radius: 14px;
  filter: brightness(0.97) contrast(1.05) saturate(1.1);
  border: 1px solid rgba(124,77,255,0.25);
  box-shadow: 0 0 0 1px rgba(67,97,238,0.12), 0 0 40px rgba(124,77,255,0.18), 0 8px 48px rgba(0,0,0,0.65);
  transition: filter 0.35s, box-shadow 0.35s, transform 0.35s;
}
.standard-model-ref__img:hover {
  filter: brightness(1.03) contrast(1.07) saturate(1.18);
  box-shadow: 0 0 0 1px rgba(124,77,255,0.35), 0 0 64px rgba(124,77,255,0.3), 0 12px 60px rgba(0,0,0,0.55);
  transform: translateY(-4px);
}
.standard-model-ref__caption { font-size: 0.88rem; font-style: italic; color: var(--text-3); text-align: center; letter-spacing: 0.03em; padding: 8px 20px; border-bottom: 1px solid var(--border-1); }

/* ── TENFOLD REFERENCE ── */
.tenfold-ref {
  position: relative;
  background: linear-gradient(160deg, var(--surface-1) 0%, var(--bg) 55%, var(--surface-2) 100%);
  border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-2);
  padding: 48px 24px 52px; overflow: hidden;
}
.tenfold-ref::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 70% at 30% 50%, rgba(94,114,180,0.09) 0%, transparent 65%),
              radial-gradient(ellipse 55% 70% at 70% 50%, rgba(45,158,107,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.tenfold-ref::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cat-strategic) 0%, var(--cat-cognitive) 35%, var(--cat-sacred) 65%, var(--cat-active) 100%);
  opacity: 0.6; pointer-events: none;
}
.tenfold-ref__inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.tenfold-ref__figure { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 0; }
.tenfold-ref__img {
  width: 100%; max-width: 680px; height: auto; border-radius: 12px;
  filter: invert(1) sepia(0.2) hue-rotate(200deg) saturate(1.3) brightness(0.87) contrast(1.1);
  border: 1px solid rgba(94,114,180,0.3);
  box-shadow: 0 0 0 1px rgba(94,114,180,0.1), 0 0 36px rgba(94,114,180,0.16), 0 6px 48px rgba(0,0,0,0.65);
  transition: filter 0.35s, box-shadow 0.35s, transform 0.35s;
}
.tenfold-ref__img:hover {
  filter: invert(1) sepia(0.18) hue-rotate(200deg) saturate(1.5) brightness(0.93) contrast(1.12);
  box-shadow: 0 0 0 1px rgba(94,114,180,0.35), 0 0 60px rgba(94,114,180,0.28), 0 10px 56px rgba(0,0,0,0.55);
  transform: translateY(-3px);
}
.tenfold-ref__caption { font-size: 0.88rem; font-style: italic; color: var(--text-3); text-align: center; letter-spacing: 0.02em; line-height: 1.65; max-width: 600px; padding: 8px 20px; border-bottom: 1px solid var(--border-1); }

/* ── PT FOOTER ── */
.pt-footer { border-top: 1px solid var(--border-1); padding: 18px 24px; text-align: center; }
.pt-footer p { font-size: 12px; color: var(--text-3); }
.pt-footer__sub { margin-top: 5px; font-size: 11px; color: var(--text-3); opacity: 0.6; }
.pt-footer__launch {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 8px 16px 8px 12px;
  border: 1px solid #2e3a58; border-radius: 8px;
  background: rgba(67,97,238,0.07);
  text-decoration: none !important; transition: border-color 0.2s, background 0.2s;
}
.pt-footer__launch:hover { border-color: #4361ee; background: rgba(67,97,238,0.14); text-decoration: none !important; }
.pt-footer__launch-glyph { font-size: 20px; font-weight: 700; font-family: 'Times New Roman', Georgia, serif; color: #4361ee; line-height: 1; opacity: 0.9; }
.pt-footer__launch-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.pt-footer__launch-label { font-size: 11px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.pt-footer__launch-url { font-size: 10px; color: var(--text-3); }
.pt-footer__launch-arrow { font-size: 15px; color: var(--primary-lt); }

/* ════════════════════════════════════════════════════════════
   APP FOOTER
════════════════════════════════════════════════════════════ */
.app-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0 20px;
}
.app-footer__inner {
  max-width: 860px; margin: 0 auto;
  padding: 0 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.app-footer__brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.app-footer__logo {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-style: italic; font-weight: 600; font-size: 1.5rem;
  background: linear-gradient(135deg, #f7d060 0%, #f5c518 40%, #d4860a 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-footer__part { font-size: 0.78rem; color: var(--text-3); }
.app-footer__part a { color: var(--text-2); text-decoration: none; }
.app-footer__part a:hover { color: var(--gold); }
.app-footer__links { display: flex; flex-wrap: wrap; gap: 5px 16px; }
.app-footer__links a { font-size: 0.78rem; color: var(--text-2); text-decoration: none; transition: color 0.15s; }
.app-footer__links a:hover { color: var(--gold); }
.app-footer__copy { font-size: 0.68rem; color: var(--text-3); letter-spacing: 0.03em; }

/* ════════════════════════════════════════════════════════════
   IFA BINARY ENCODING SCHEME
════════════════════════════════════════════════════════════ */
.ifa-binary {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 28px 56px;
}
.ifa-binary__inner { max-width: 900px; margin: 0 auto; }

.ifa-binary__tag {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--gold); text-align: center; margin-bottom: 10px;
}
.ifa-binary__title {
  font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; text-align: center;
  color: var(--text); margin-bottom: 6px; line-height: 1.2;
}
.ifa-binary__subtitle {
  font-size: 0.78rem; color: var(--text-3); text-align: center;
  letter-spacing: 0.05em; margin-bottom: 20px;
}
.ifa-binary__desc {
  font-size: 0.88rem; color: var(--text-2); line-height: 1.8; text-align: center;
  max-width: 680px; margin: 0 auto 40px;
}
.ifa-binary__desc strong { color: var(--text); font-weight: 600; }

/* ── Two-card grid ── */
.ifa-binary__duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 36px;
}
.ifa-binary__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.ifa-binary__card--ogbe { border-top: 3px solid var(--gold); }
.ifa-binary__card--oyeku { border-top: 3px solid #4361ee; }

/* ── Symbol display ── */
.ifa-binary__symbol {
  display: flex; flex-direction: column; align-items: center;
  padding: 26px 20px 14px; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.ifa-binary__glyph {
  font-family: 'Times New Roman', Georgia, serif; font-weight: 700;
  line-height: 1; user-select: none;
}
.ifa-binary__glyph--ogbe {
  font-size: 3.6rem; color: var(--gold);
  filter: drop-shadow(0 0 14px rgba(245,197,24,0.4));
}
.ifa-binary__glyph--oyeku {
  font-size: 4.2rem; color: #4361ee;
  filter: drop-shadow(0 0 14px rgba(67,97,238,0.45));
}
.ifa-binary__glyph-label {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--text-3);
}

/* ── Card body ── */
.ifa-binary__card-body { padding: 18px 18px 22px; }
.ifa-binary__card-name {
  font-size: 1.3rem; font-weight: 900; margin-bottom: 10px; letter-spacing: -0.01em;
}
.ifa-binary__card-name--ogbe  { color: var(--gold); }
.ifa-binary__card-name--oyeku { color: #4361ee; }
.ifa-binary__card-name-dash   { color: var(--text-3); font-weight: 400; }
.ifa-binary__card-name-sub    { color: var(--text-2); font-weight: 600; }

.ifa-binary__card-desc {
  font-size: 0.8rem; color: var(--text-2); line-height: 1.7;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.ifa-binary__meta-label {
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--text-3); margin-bottom: 9px;
}

/* ── Meta-representation list ── */
.ifa-binary__metas { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ifa-binary__meta {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 11px;
}
.ifa-binary__meta-glyph {
  font-family: 'Times New Roman', Georgia, serif; font-weight: 700;
  font-size: 1.1rem; line-height: 1.1; flex-shrink: 0;
  width: 26px; text-align: center; margin-top: 1px;
}
.ifa-binary__meta-glyph--ogbe    { color: var(--gold); }
.ifa-binary__meta-glyph--oyeku   { color: #4361ee; }
.ifa-binary__meta-glyph--dualline { color: #4361ee; letter-spacing: -0.18em; }
.ifa-binary__meta-glyph--inf     { color: var(--text-2); font-style: italic; }
.ifa-binary__meta-glyph--img    { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; margin-top: 1px; }
.ifa-binary__meta-glyph--inf-img { width: 44px; height: 44px; min-width: 44px; object-fit: contain; flex-shrink: 0; display: block; }

.ifa-binary__meta-text { flex: 1; min-width: 0; }
.ifa-binary__meta-text strong { font-size: 0.8rem; color: var(--text); display: block; margin-bottom: 2px; }
.ifa-binary__meta-text p { font-size: 0.73rem; color: var(--text-2); line-height: 1.55; margin: 0; }

/* ── Axiom / connector + quote ── */
.ifa-binary__axiom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ifa-binary__connector {
  font-size: 0.88rem; color: var(--text-2); text-align: center;
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; justify-content: center;
}
/* em-dash: same font/weight as | (IfaLine), distinct teal color */
.ifa-binary__emdash {
  font-family: 'Times New Roman', Georgia, serif; font-weight: 700;
  font-size: 1.5rem; line-height: 1;
  color: #1dd3b0;
  filter: drop-shadow(0 0 6px rgba(29,211,176,0.45));
}
.ifa-binary__quote {
  font-size: 0.83rem; color: var(--text-3); font-style: italic; text-align: center;
  max-width: 680px; line-height: 1.8; margin: 0;
  padding: 14px 22px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface);
}

/* ════════════════════════════════════════════════════════════
   IFA NETWORKS  (kominifa.com + ejiodi.com)
════════════════════════════════════════════════════════════ */

.ifa-net__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ifa-net__card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 140px;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.ifa-net__card:hover {
  border-color: var(--border-2);
  background: var(--surface-3);
  transform: translateY(-2px);
}
.ifa-net__card--odu {
  background: var(--surface-2);
  border-color: var(--border-2);
}
.ifa-net__badge {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  align-self: flex-start;
}
.ifa-net__badge--ifa   { background: rgba(245,197,24,0.12);  color: var(--gold); }
.ifa-net__badge--orisa { background: rgba(255,255,255,0.05); color: var(--text-2); }
.ifa-net__badge--trad  { background: rgba(45,158,107,0.14);  color: #4eca8b; }
.ifa-net__card--ejiodi { border-color: rgba(45,158,107,0.2); }
.ifa-net__card--ejiodi:hover { border-color: rgba(45,158,107,0.5); background: rgba(45,158,107,0.05); }
.ifa-net__name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 2px;
}
.ifa-net__sub {
  font-size: 0.68rem;
  color: var(--text-3);
}

/* ════════════════════════════════════════════════════════════
   WIKIPEDIA KNOWLEDGE INTEGRATION
════════════════════════════════════════════════════════════ */

.wiki-loading {
  display: flex;
  gap: 6px;
  padding: 12px 0;
}
.wiki-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: wikiPulse 1.1s ease-in-out infinite;
}
@keyframes wikiPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.75); }
  50%       { opacity: 1;    transform: scale(1); }
}
.wiki-dot:nth-child(2) { animation-delay: 0.2s; }
.wiki-dot:nth-child(3) { animation-delay: 0.4s; }
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.wiki-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.wiki-card:hover {
  border-color: var(--border-2);
  background: var(--surface-3);
  transform: translateY(-2px);
}
.wiki-card__thumb {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
  opacity: 0.82;
}
.wiki-card__body {
  padding: 10px 12px 12px;
  flex: 1;
}
.wiki-card__title {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.wiki-card__extract {
  font-size: 0.71rem;
  color: var(--text-2);
  line-height: 1.55;
}
.wiki-empty {
  font-size: 0.75rem;
  color: var(--text-3);
  padding: 8px 0;
}

/* ════════════════════════════════════════════════════════════
   IFA BINARY — RESPONSIVE
════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  .ifa-binary__duo   { grid-template-columns: 1fr; }
  .ifa-binary        { padding: 36px 16px 40px; }
  .ifa-binary__title { font-size: 1.45rem; }
}
