:root {
  --bg: #07100d;
  --bg-elevated: #0a1511;
  --panel: #0e1b16;
  --panel-strong: #13231c;
  --panel-soft: #0a1712;
  --text: #f1f4ee;
  --text-soft: #cdd7d0;
  --muted: #94a69b;
  --faint: #65766c;
  --line: rgba(112, 156, 132, 0.16);
  --line-strong: rgba(124, 180, 145, 0.28);
  --malachite: #5c9f78;
  --malachite-bright: #a8cbae;
  --malachite-pale: #d2e2d4;
  --malachite-deep: #2d5d46;
  --mist: #789b87;
  --champagne: #c6b78f;
  --purple: var(--malachite);
  --purple-bright: var(--malachite-bright);
  --purple-deep: var(--malachite-deep);
  --cyan: #79b596;
  --gold: var(--champagne);
  --danger: #d98c91;
  --success: #77c39d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--serif);
  --shell: min(1180px, calc(100% - 48px));
  --article-shell: min(1080px, calc(100% - 48px));
  --wide-shell: min(1280px, calc(100% - 64px));
  --header-h: 68px;
  --wiki-nav-h: 62px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--wiki-nav-h) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-soft);
  background:
    radial-gradient(circle at 70% 0%, rgba(45, 67, 110, 0.08), transparent 30%),
    linear-gradient(180deg, #07100d 0%, #07100d 100%);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.05) 0 0.6px, transparent 0.8px),
    radial-gradient(circle at 82% 12%, rgba(104, 164, 128, 0.06) 0 0.7px, transparent 0.9px);
  background-size: 34px 34px, 53px 53px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

::selection {
  color: #09110e;
  background: var(--purple-bright);
}

:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

p:last-child {
  margin-bottom: 0;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  color: #09110e;
  background: var(--purple-bright);
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.page-shell--article {
  width: var(--article-shell);
}

.page-shell--wide {
  width: var(--wide-shell);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 17, 0.9);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 17, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.header-shell {
  width: var(--shell);
  min-height: var(--header-h);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--text);
}


.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-copy strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.16em;
}

.brand-copy small {
  color: var(--faint);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
}

.main-navigation a,
.wiki-navigation a,
.site-footer nav a {
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus-visible,
.wiki-navigation a:hover,
.wiki-navigation a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--text);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #07100d;
  background: linear-gradient(135deg, #b8d5bf, #6ea984);
  box-shadow: 0 8px 28px rgba(92, 159, 120, 0.24);
}

.button--primary:hover {
  box-shadow: 0 12px 34px rgba(92, 159, 120, 0.34);
}

.button--ghost {
  color: var(--text-soft);
  border-color: var(--line-strong);
  background: rgba(11, 15, 29, 0.6);
}

.button--ghost:hover {
  color: var(--text);
  border-color: rgba(104, 164, 128, 0.45);
  background: rgba(17, 22, 42, 0.8);
}

.button--wiki {
  justify-self: end;
  min-width: 76px;
  color: var(--text);
  border-color: rgba(104, 164, 128, 0.35);
  background: rgba(43, 88, 65, 0.18);
}

.button--wiki.is-active,
.button--wiki:hover {
  border-color: rgba(164, 202, 176, 0.62);
  background: rgba(54, 103, 77, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle > span {
  display: grid;
  place-items: center;
}

.wiki-navigation-wrap {
  border-top: 1px solid rgba(112, 156, 132, 0.08);
  background: rgba(7, 9, 20, 0.88);
}

.wiki-navigation {
  width: var(--shell);
  min-height: var(--wiki-nav-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 54px;
}

.wiki-navigation__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wiki-navigation a {
  position: relative;
  min-height: var(--wiki-nav-h);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wiki-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.wiki-navigation a.is-active {
  color: var(--text);
}

.wiki-navigation a.is-active::after {
  transform: scaleX(1);
}

/* Shared headings */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--purple-bright);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 18px;
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, transparent, currentColor);
}

.eyebrow span:last-child {
  background: linear-gradient(90deg, currentColor, transparent);
}

.section {
  position: relative;
  padding: 100px 0;
}

.section + .section {
  border-top: 1px solid rgba(112, 156, 132, 0.08);
}

.section-heading {
  max-width: 440px;
}

.section-heading--center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(46px, 5vw, 68px);
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Home hero */

.home-hero {
  position: relative;
  min-height: min(730px, calc(100vh - var(--header-h)));
  overflow: hidden;
  border-bottom: 1px solid rgba(112, 156, 132, 0.08);
  background:
    radial-gradient(circle at 52% 50%, rgba(40, 80, 60, 0.09), transparent 31%),
    linear-gradient(90deg, #07100d 0%, #07100d 42%, #0b1b15 100%);
}

.home-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, transparent, #07100d 98%);
}

.home-hero__art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(64vw, 940px);
  background-image:
    linear-gradient(90deg, #07100d 0%, rgba(5, 7, 17, 0.62) 20%, rgba(5, 7, 17, 0.12) 58%, rgba(5, 7, 17, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 7, 17, 0.05), rgba(5, 7, 17, 0.5)),
    url("elora-city-malachite.jpg?v=1.6.0");
  background-repeat: no-repeat;
  background-position: center, center, right center;
  background-size: cover, cover, auto 100%;
  filter: saturate(0.82) contrast(1.05);
  opacity: 0.92;
}

.home-hero__rings {
  position: absolute;
  top: 50%;
  left: -300px;
  width: 780px;
  aspect-ratio: 1;
  border: 1px solid rgba(111, 154, 131, 0.1);
  border-radius: 50%;
  transform: translateY(-50%);
}

.home-hero__rings::before,
.home-hero__rings::after {
  position: absolute;
  inset: 14%;
  content: "";
  border: 1px solid rgba(111, 154, 131, 0.08);
  border-radius: 50%;
}

.home-hero__rings::after {
  inset: 30%;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding: 70px 0 92px;
}

.home-hero__copy {
  width: min(520px, 48%);
}

.home-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(84px, 8.7vw, 132px);
  line-height: 0.78;
  letter-spacing: 0.03em;
  text-shadow: 0 12px 46px rgba(0, 0, 0, 0.4);
}

.home-hero__subtitle {
  margin-bottom: 22px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.05;
}

.home-hero__intro {
  max-width: 370px;
  margin-bottom: 26px;
  color: var(--text-soft);
  font-size: 13px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 10px;
  list-style: none;
}

.hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-features li::before {
  color: var(--purple);
  content: "✦";
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--purple), transparent);
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.55); transform-origin: top; opacity: 0.45; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* Home sections */

.section--welcome {
  background: linear-gradient(180deg, #07100d, #08130f);
}

.welcome-grid {
  max-width: 900px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 0, rgba(74, 126, 101, 0.12), transparent 44%),
    linear-gradient(145deg, rgba(15, 21, 39, 0.94), rgba(10, 13, 28, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}

.feature-card__symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 48px;
  color: var(--purple-bright);
  border: 1px solid rgba(104, 164, 128, 0.18);
  border-radius: 9px;
  background: rgba(56, 101, 77, 0.12);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.feature-card p {
  max-width: 350px;
  color: var(--muted);
  font-size: 12px;
}

.section--hours {
  background:
    radial-gradient(circle at 83% 50%, rgba(39, 78, 59, 0.13), transparent 34%),
    #0a1511;
}

.hours-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 90px;
}

.hours-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hours-card {
  min-height: 134px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(14, 18, 36, 0.88);
}

.hours-card--main {
  min-height: 170px;
  grid-column: 1 / -1;
  background:
    linear-gradient(110deg, rgba(14, 18, 34, 0.95), rgba(27, 58, 44, 0.92)),
    rgba(14, 18, 34, 0.9);
}

.hours-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hours-card small {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hours-card strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}

.hours-card--main strong {
  font-size: 48px;
}

.hours-card p {
  margin-top: 16px;
  color: var(--faint);
  font-size: 9px;
}

.status-dot {
  position: relative;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 181, 150, 0.2);
  border-radius: 50%;
  background: rgba(121, 181, 150, 0.08);
}

.status-dot::after {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.section--join {
  background: #07100d;
}

.join-steps {
  max-width: 1040px;
  margin: 48px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  list-style: none;
}

.join-step {
  min-height: 230px;
  padding: 24px 20px 30px;
}

.join-step + .join-step {
  border-left: 1px solid var(--line);
}

.join-step__number {
  display: block;
  margin-bottom: 54px;
  color: var(--purple);
  font-family: var(--serif);
  font-size: 10px;
}

.join-step h3 {
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.1;
}

.join-step p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.join-action {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.join-action .button {
  min-width: 210px;
}

/* Public player guide */

.guide-public-page main {
  min-height: 70vh;
}

.guide-hero {
  padding: 92px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(47, 92, 69, 0.12), transparent 30%),
    radial-gradient(circle at 18% 72%, rgba(63, 112, 88, 0.07), transparent 26%),
    linear-gradient(180deg, #08130f, #07100d);
}

.guide-hero h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(64px, 8vw, 106px);
}

.guide-hero__subtitle {
  margin-bottom: 18px;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.guide-hero__intro {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.85;
}

.guide-hero__intro--stacked {
  display: grid;
  gap: 12px;
}

.guide-hero__intro--stacked p {
  margin: 0;
}

.guide-content {
  padding-top: 64px;
  padding-bottom: 100px;
}

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

.glossary-card {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(16, 21, 40, 0.9), rgba(8, 11, 23, 0.94));
}

.glossary-card h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.08;
}

.glossary-card > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.78;
}

.glossary-card__example {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
}

.glossary-card__example strong {
  color: var(--purple-bright);
  font-weight: 600;
}

.guide-takeaway {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(104, 164, 128, 0.24);
  border-radius: 12px;
  background: rgba(43, 88, 65, 0.09);
}

.guide-takeaway > span {
  color: var(--purple-bright);
  font-size: 28px;
  line-height: 1;
}

.guide-takeaway h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.guide-takeaway p,
.live-section p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.8;
}

.guide-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-actions--left {
  justify-content: flex-start;
  padding-top: 34px;
}

.guide-article-layout {
  padding-top: 44px;
}

.guide-public-page .article-toc {
  top: calc(var(--header-h) + 38px);
}

.live-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.live-section h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 3vw, 44px);
}

.section--faq {
  background: #0a1511;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 100px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__toggle {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__toggle {
  transform: rotate(45deg);
}

.faq-item > div {
  padding: 0 42px 24px 0;
}

.faq-item p {
  color: var(--muted);
  font-size: 12px;
}

.section--lore-cta {
  padding-block: 56px 92px;
  background: #0a1511;
}

.lore-cta {
  position: relative;
  min-height: 132px;
  padding: 26px 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  border: 1px solid rgba(104, 164, 128, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(12, 16, 31, 0.96), rgba(42, 36, 78, 0.9)),
    var(--panel);
}

.lore-cta::after {
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 260px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(104, 164, 128, 0.14);
  border-radius: 50%;
}

.lore-cta__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--purple-bright);
  border: 1px solid rgba(104, 164, 128, 0.2);
  border-radius: 50%;
  background: rgba(104, 164, 128, 0.08);
}

.lore-cta p {
  margin-bottom: 5px;
  color: var(--purple-bright);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lore-cta h2 {
  margin-bottom: 0;
  font-size: 35px;
}

.lore-cta .button {
  position: relative;
  z-index: 1;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #050b09;
}

.footer-shell {
  width: var(--shell);
  min-height: 110px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
}


.site-footer nav {
  display: flex;
  gap: 26px;
}

.site-footer p {
  justify-self: end;
  margin: 0;
  color: var(--faint);
  font-size: 10px;
}

/* Wiki shared */

.wiki-page main {
  min-height: 70vh;
}

.wiki-hero {
  padding: 92px 0 58px;
}

.wiki-hero--left {
  background:
    radial-gradient(circle at 78% 15%, rgba(63, 112, 88, 0.08), transparent 28%),
    linear-gradient(180deg, #08130f, #07100d);
}

.wiki-hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(68px, 8vw, 112px);
}

.wiki-hero > .page-shell > p:last-child {
  max-width: 800px;
  color: var(--text-soft);
  font-size: 14px;
}

.article-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px) 230px;
  gap: 70px;
  align-items: start;
  padding-bottom: 100px;
}

.wiki-article {
  min-width: 0;
}

.article-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.article-section:first-child {
  padding-top: 18px;
}

.article-section__heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}

.article-section__heading > span {
  padding-top: 9px;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 10px;
}

.article-section__heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.03;
}

.article-section__body {
  padding-left: 48px;
}

.article-section__body > p {
  max-width: 700px;
  margin-bottom: 15px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.85;
}

.article-section__body > p + p {
  color: #aebbb3;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--wiki-nav-h) + 38px);
  padding-top: 28px;
}

.article-toc > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.article-toc li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
}

.article-toc li > span {
  color: var(--faint);
  font-family: var(--serif);
  font-size: 9px;
}

.article-toc a {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--text);
  transform: translateX(3px);
}

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

.cards-grid--single {
  grid-template-columns: 1fr;
}

.cards-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(15, 20, 37, 0.88), rgba(9, 12, 24, 0.9));
}

.mini-card__label {
  margin-bottom: 8px;
  color: var(--purple-bright) !important;
  font-size: 8px !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.1;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.callout {
  margin-top: 18px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  border: 1px solid rgba(121, 181, 150, 0.16);
  border-radius: 8px;
  background: rgba(18, 60, 42, 0.18);
}

.callout--warning {
  border-color: rgba(198, 183, 143, 0.18);
  background: rgba(66, 56, 33, 0.18);
}

.callout__icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
}

.callout--warning .callout__icon {
  color: var(--gold);
}

.callout h3 {
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.chip-row span {
  padding: 5px 9px;
  color: var(--purple-bright);
  border: 1px solid rgba(104, 164, 128, 0.15);
  border-radius: 999px;
  background: rgba(104, 164, 128, 0.05);
  font-size: 8px;
}

.article-list {
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.article-list li {
  position: relative;
  padding-left: 19px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.65;
}

.article-list li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(104, 164, 128, 0.6);
}

.reality-stack {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 11, 23, 0.9);
}

.reality-stack article {
  padding: 18px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: center;
}

.reality-stack__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--purple-bright);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.reality-stack small {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reality-stack h3 {
  margin: 2px 0 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.reality-stack p {
  color: var(--muted);
  font-size: 10px;
}

.reality-stack__veil {
  position: relative;
  height: 1px;
  display: grid;
  place-items: center;
  background: rgba(121, 181, 150, 0.24);
}

.reality-stack__veil span {
  padding: 2px 10px;
  color: var(--cyan);
  background: #081511;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.takeaway-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.takeaway-grid article {
  min-height: 105px;
  padding: 16px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 15, 29, 0.7);
}

.takeaway-grid span {
  color: var(--faint);
  font-family: var(--serif);
  font-size: 9px;
}

.takeaway-grid p {
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.6;
}

.next-chapter {
  padding-top: 42px;
}

.next-chapter > p,
.continue-reading > p {
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-chapter > a {
  min-height: 92px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: linear-gradient(110deg, rgba(16, 37, 29, 0.78), rgba(9, 20, 28, 0.8));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.next-chapter > a:hover {
  border-color: rgba(104, 164, 128, 0.55);
  transform: translateY(-2px);
}

.next-chapter > a > span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
}

.next-chapter small {
  color: var(--purple-bright);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-chapter strong {
  grid-column: 2;
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
}

/* History */

.history-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #08130f;
}

.history-hero__city {
  position: absolute;
  inset: 0 0 0 auto;
  width: 68%;
  background:
    linear-gradient(90deg, #08130f, rgba(6, 8, 21, 0.76) 36%, rgba(6, 8, 21, 0.88)),
    url("elora-city-malachite.jpg?v=1.6.0") right center / auto 100% no-repeat;
  opacity: 0.22;
  filter: grayscale(0.2) blur(0.3px);
}

.history-hero__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(104, 164, 128, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.history-hero__rings::before,
.history-hero__rings::after {
  position: absolute;
  inset: 18%;
  content: "";
  border: 1px solid rgba(104, 164, 128, 0.1);
  border-radius: 50%;
}

.history-hero__rings::after {
  inset: 36%;
}

.history-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 76px;
  text-align: center;
}

.round-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: var(--purple-bright);
  border: 1px solid rgba(104, 164, 128, 0.34);
  border-radius: 50%;
  background: rgba(104, 164, 128, 0.05);
}

.history-hero .eyebrow {
  justify-content: center;
}

.history-hero h1 {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: clamp(76px, 8vw, 118px);
}

.history-hero__intro {
  max-width: 700px;
  margin-bottom: 20px;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.25;
}

.history-hero__statement {
  max-width: 680px;
  color: var(--muted);
  font-size: 12px;
}

.history-timeline {
  padding: 80px 0 104px;
  background: #07100d;
}

.page-shell--timeline {
  position: relative;
  width: min(900px, calc(100% - 48px));
}

.timeline-line {
  position: absolute;
  top: 32px;
  bottom: 100px;
  left: 44px;
  width: 1px;
  background: linear-gradient(var(--line-strong), rgba(104, 164, 128, 0.04));
}

.timeline-period {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 46px;
  padding: 42px 0 56px;
}

.timeline-period__marker {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--purple-bright);
  border: 1px solid rgba(104, 164, 128, 0.34);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
}

.timeline-period__content > p:first-child {
  margin-bottom: 9px;
  color: var(--purple-bright);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.timeline-period h2 {
  margin-bottom: 20px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
}

.timeline-period__content > p:not(:first-child) {
  max-width: 660px;
  color: var(--muted);
  font-size: 12px;
}

.history-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Directory */

.directory-page {
  min-height: 850px;
  padding: 92px 0 120px;
  background:
    radial-gradient(circle at 80% 10%, rgba(52, 105, 78, 0.08), transparent 28%),
    radial-gradient(circle at 20% 8%, rgba(46, 86, 65, 0.08), transparent 26%),
    #07100d;
}

.directory-hero {
  max-width: 880px;
  margin-bottom: 70px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.directory-hero h1 {
  margin-bottom: 0;
  font-size: clamp(84px, 10vw, 138px);
}

.directory-hero > p:last-child {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

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

.species-card {
  position: relative;
  min-height: 190px;
  padding: 30px 54px 30px 30px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--species-accent) 12%, transparent), transparent 50%),
    linear-gradient(145deg, rgba(15, 20, 38, 0.96), rgba(10, 13, 27, 0.96));
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.species-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--species-accent) 50%, transparent);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
}

.species-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--species-accent) 28%, transparent);
  border-radius: 13px;
  background: rgba(9, 12, 26, 0.64);
  font-size: 32px;
}

.species-card strong {
  display: block;
  margin: 4px 0 12px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
}

.species-card p {
  max-width: 460px;
  color: #a5b2aa;
  font-size: 13px;
  line-height: 1.7;
}

.species-card__arrow {
  position: absolute;
  top: 28px;
  right: 26px;
  color: var(--purple-bright);
}

.accent-amber { --species-accent: #e8af63; }
.accent-gold { --species-accent: #ffd066; }
.accent-rose { --species-accent: #ff5a9b; }
.accent-silver { --species-accent: #b7c1d8; }
.accent-cyan { --species-accent: #55d4ff; }
.accent-emerald { --species-accent: #4ed5a3; }
.accent-violet { --species-accent: #88b594; }
.accent-elf { --species-accent: #b6d89b; }

.veil-diagram {
  margin: 30px 0 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 20%, rgba(92, 159, 120, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(10, 23, 18, 0.96), rgba(7, 16, 13, 0.94));
}
.veil-layer { min-height: 148px; padding: 28px; display: grid; grid-template-columns: 74px 1fr; gap: 22px; align-items: center; }
.veil-symbol { width: 58px; height: 58px; display: grid; place-items: center; color: var(--malachite-bright); border: 1px solid rgba(168, 203, 174, 0.38); border-radius: 50%; background: rgba(92, 159, 120, 0.06); box-shadow: 0 0 28px rgba(92, 159, 120, 0.08); font-size: 22px; }
.veil-layer small, .veil-state small, .definition-grid small { color: var(--mist); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.veil-layer h3 { margin: 4px 0 5px; font-size: 28px; }
.veil-layer p, .veil-boundary p, .veil-boundary small { margin: 0; color: var(--muted); font-size: 12px; }
.veil-boundary { padding: 16px 28px; text-align: center; border-block: 1px solid rgba(121, 181, 150, 0.34); background: linear-gradient(90deg, rgba(45, 93, 70, 0.12), rgba(92, 159, 120, 0.24), rgba(45, 93, 70, 0.12)); }
.veil-boundary span { display: inline-block; margin-bottom: 5px; padding: 5px 14px; color: var(--malachite-bright); border: 1px solid rgba(168, 203, 174, 0.12); border-radius: 7px; background: #08120e; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.veil-boundary p { color: var(--text); font-weight: 600; }
.veil-diagram figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.veil-states, .definition-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.veil-state, .definition-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(14, 27, 22, 0.88), rgba(10, 21, 17, 0.82)); }
.veil-state--stable { border-color: rgba(121,181,150,.28); }
.veil-state--disturbed { border-color: rgba(198,183,143,.28); }
.veil-state h3, .definition-grid h3 { margin: 8px 0 10px; font-size: 21px; line-height: 1.1; }
.veil-state p, .definition-grid p { margin: 0 0 9px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.takeaway-list { margin-top: 0; }

/* World page — readable editorial scale and Malachite diagrams */
.world-page .wiki-hero > .page-shell > p:last-child,
.world-page .wiki-hero > .page-shell > p:nth-last-child(2) {
  max-width: 820px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.world-page .article-section__body > p {
  max-width: 720px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.world-page .article-toc > p,
.world-page .article-toc a {
  font-size: 12px;
}

.world-page .veil-diagram {
  border-color: rgba(92, 159, 120, 0.52);
  background:
    radial-gradient(circle at 12% 18%, rgba(92, 159, 120, 0.18), transparent 38%),
    linear-gradient(145deg, #0f211a, #091610);
  box-shadow: inset 0 1px 0 rgba(210, 226, 212, 0.04), 0 18px 50px rgba(0, 0, 0, 0.18);
}

.world-page .veil-layer {
  min-height: 174px;
  padding: 34px;
}

.world-page .veil-symbol {
  width: 64px;
  height: 64px;
  color: var(--malachite-pale);
  border-color: rgba(168, 203, 174, 0.58);
  background: rgba(92, 159, 120, 0.12);
}

.world-page .veil-layer small,
.world-page .veil-state small,
.world-page .definition-grid small {
  color: var(--malachite-bright);
  font-size: 12px;
}

.world-page .veil-layer h3 {
  margin: 6px 0 8px;
  font-size: 32px;
}

.world-page .veil-layer p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.world-page .veil-boundary {
  padding: 22px 34px;
  border-color: rgba(168, 203, 174, 0.5);
  background: linear-gradient(90deg, rgba(45, 93, 70, 0.2), rgba(92, 159, 120, 0.38), rgba(45, 93, 70, 0.2));
}

.world-page .veil-boundary span {
  color: var(--malachite-pale);
  border-color: rgba(168, 203, 174, 0.3);
  background: #0a1812;
  font-size: 13px;
}

.world-page .veil-boundary p {
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
}

.world-page .veil-boundary small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.world-page .veil-states,
.world-page .definition-grid {
  gap: 16px;
  margin-top: 16px;
}

.world-page .veil-state,
.world-page .definition-grid article {
  padding: 26px;
  border-color: rgba(92, 159, 120, 0.3);
  background: linear-gradient(145deg, #12271e, #0c1b15);
}

.world-page .veil-state--stable {
  border-color: rgba(119, 195, 157, 0.48);
}

.world-page .veil-state--disturbed {
  border-color: rgba(198, 183, 143, 0.48);
  background: linear-gradient(145deg, rgba(40, 45, 31, 0.9), #142018);
}

.world-page .veil-state--disturbed small {
  color: var(--champagne);
}

.world-page .veil-state h3,
.world-page .definition-grid h3 {
  margin: 9px 0 12px;
  font-size: 25px;
  line-height: 1.12;
}

.world-page .veil-state p,
.world-page .definition-grid p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.world-page .takeaway-list li {
  font-size: 15px;
  line-height: 1.65;
}

/* Species detail */

.species-detail {
  padding: 46px 0 110px;
  background:
    radial-gradient(circle at 12% 4%, color-mix(in srgb, var(--species-accent) 8%, transparent), transparent 24%),
    #07100d;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 10px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text);
}

.species-hero {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0 50%, color-mix(in srgb, var(--species-accent) 12%, transparent), transparent 44%),
    linear-gradient(120deg, rgba(19, 24, 45, 0.96), rgba(7, 19, 28, 0.94));
}

.species-hero::before,
.species-hero::after {
  position: absolute;
  top: 50%;
  left: 145px;
  width: 270px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid color-mix(in srgb, var(--species-accent) 13%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.species-hero::after {
  width: 205px;
}

.species-hero__orbit {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.species-hero__orbit::before,
.species-hero__orbit::after {
  position: absolute;
  width: 138px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid color-mix(in srgb, var(--species-accent) 22%, transparent);
  border-radius: 50%;
}

.species-hero__orbit::after {
  width: 102px;
  background: rgba(5, 8, 18, 0.44);
  box-shadow: 0 0 42px color-mix(in srgb, var(--species-accent) 15%, transparent);
}

.species-hero__orbit span {
  position: relative;
  z-index: 1;
  font-size: 50px;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--species-accent) 50%, transparent));
}

.species-hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 46px 54px 46px 14px;
}

.species-hero__copy .eyebrow {
  color: var(--species-accent);
}

.species-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(72px, 7.2vw, 104px);
}

.species-hero__tagline {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.species-hero__intro {
  max-width: 660px;
  color: var(--text-soft);
  font-size: 13px;
}

.essential-strip {
  margin: 10px 0 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(12, 15, 30, 0.88);
}

.essential-strip > div {
  min-height: 76px;
  padding: 17px;
}

.essential-strip > div + div {
  border-left: 1px solid var(--line);
}

.essential-strip dt {
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.essential-strip dd {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

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

.balance-grid--single {
  grid-template-columns: 1fr;
}

.balance-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(12, 16, 31, 0.72);
}

.balance-card--strengths {
  border-color: rgba(121, 181, 150, 0.17);
}

.balance-card--limits {
  border-color: rgba(198, 183, 143, 0.17);
}

.balance-card h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.balance-card--strengths .article-list li::before {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(121, 181, 150, 0.4);
}

.balance-card--limits .article-list li::before {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(198, 183, 143, 0.4);
}

.continue-reading {
  padding-top: 44px;
}

.continue-reading > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.continue-reading a {
  min-height: 96px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(13, 17, 33, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.continue-reading a:hover {
  border-color: color-mix(in srgb, var(--species-accent) 44%, transparent);
  transform: translateY(-2px);
}

.continue-reading small {
  display: block;
  margin-bottom: 6px;
  color: var(--purple-bright);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.continue-reading strong {
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
}

/* Jobs and 404 */

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

.job-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(16, 21, 40, 0.92), rgba(9, 12, 25, 0.94));
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.job-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--species-accent) 38%, transparent);
  background: linear-gradient(145deg, rgba(21, 26, 49, 0.96), rgba(10, 14, 29, 0.98));
}

.job-card__symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 48px;
  color: var(--purple-bright);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.job-card h2 {
  margin-bottom: 12px;
  font-size: 32px;
}

.job-card p {
  color: var(--muted);
  font-size: 11px;
}

.job-card > div {
  margin-top: auto;
}

.job-card__arrow {
  position: absolute;
  top: 30px;
  right: 28px;
  color: var(--species-accent);
}

.job-card__arrow .icon {
  width: 19px;
  height: 19px;
}

.institution-detail .species-hero__orbit > span {
  color: var(--species-accent);
  font-family: var(--serif);
  font-size: 54px;
}

.not-found {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 100px 0;
  text-align: center;
}

.not-found .page-shell {
  max-width: 760px;
}

.not-found .eyebrow,
.not-found .button-row {
  justify-content: center;
}

.not-found h1 {
  margin-bottom: 24px;
  font-size: clamp(62px, 8vw, 100px);
}

.not-found p {
  margin-bottom: 28px;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 40px, 980px);
    --article-shell: min(100% - 40px, 900px);
    --wide-shell: min(100% - 40px, 1080px);
  }

  .main-navigation {
    gap: 20px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 42px;
  }

  .species-hero {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .species-hero::before,
  .species-hero::after {
    left: 125px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
    --wiki-nav-h: 54px;
  }

  .header-shell {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
  }

  .main-navigation {
    position: fixed;
    top: var(--header-h);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 12px;
    visibility: hidden;
    opacity: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(8, 11, 23, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .main-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .main-navigation a {
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
  }

  .main-navigation a:hover {
    background: rgba(104, 164, 128, 0.07);
  }

  .button--wiki {
    min-width: 44px;
    padding-inline: 11px;
  }

  .button--wiki span {
    display: none;
  }

  .wiki-navigation {
    width: 100%;
    padding: 0 20px;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .wiki-navigation::-webkit-scrollbar {
    display: none;
  }

  .wiki-navigation__label {
    position: sticky;
    left: 0;
    z-index: 1;
    padding-right: 8px;
    background: #07100d;
  }

  .home-hero {
    min-height: 690px;
  }

  .home-hero__art {
    width: 100%;
    opacity: 0.44;
    background-image:
      linear-gradient(90deg, rgba(5, 7, 17, 0.96) 0%, rgba(5, 7, 17, 0.72) 50%, rgba(5, 7, 17, 0.18) 100%),
      linear-gradient(180deg, rgba(5, 7, 17, 0.08), rgba(5, 7, 17, 0.76)),
      url("elora-city-malachite.jpg?v=1.6.0");
  }

  .home-hero__copy {
    width: min(560px, 84%);
  }

  .home-hero__rings {
    left: -440px;
  }

  .welcome-grid,
  .hours-layout,
  .faq-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hours-layout,
  .faq-layout {
    gap: 48px;
  }

  .article-toc {
    position: static;
    order: -1;
    padding: 0 0 10px;
    overflow-x: auto;
  }

  .article-toc > p {
    margin-bottom: 10px;
  }

  .article-toc ol {
    display: flex;
    gap: 8px;
  }

  .article-toc li {
    min-width: max-content;
    display: block;
  }

  .article-toc li > span {
    display: none;
  }

  .article-toc a {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 13, 26, 0.7);
  }

  .join-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-step:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .join-step:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .species-grid {
    grid-template-columns: 1fr;
  }

  .species-hero {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .species-hero::before,
  .species-hero::after {
    left: 108px;
  }

  .species-hero__copy {
    padding-right: 28px;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    min-height: 180px;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 28px);
    --article-shell: calc(100% - 28px);
    --wide-shell: calc(100% - 28px);
  }

  body {
    font-size: 14px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .wiki-navigation {
    padding-inline: 14px;
    gap: 22px;
  }

  .wiki-navigation__label {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .home-hero__inner {
    padding-top: 56px;
  }

  .home-hero__copy {
    width: 100%;
  }

  .home-hero h1 {
    font-size: clamp(72px, 24vw, 104px);
  }

  .home-hero__subtitle {
    max-width: 280px;
  }

  .hero-features {
    display: grid;
    gap: 8px;
  }

  .welcome-grid,
  .hours-cards,
  .cards-grid,
  .cards-grid--four,
  .takeaway-grid,
  .balance-grid,
  .continue-reading > div {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 200px;
  }

  .feature-card__symbol {
    margin-bottom: 34px;
  }

  .hours-card--main {
    min-height: 150px;
  }

  .hours-card--main strong {
    font-size: 42px;
  }

  .join-steps {
    grid-template-columns: 1fr;
  }

  .join-step + .join-step,
  .join-step:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .join-step {
    min-height: 190px;
  }

  .join-step__number {
    margin-bottom: 36px;
  }

  .lore-cta {
    grid-template-columns: auto 1fr;
    padding: 24px;
  }

  .lore-cta .button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .footer-shell {
    padding: 28px 0;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    order: 3;
  }

  .site-footer p {
    align-self: center;
  }

  .wiki-hero {
    padding: 68px 0 38px;
  }

  .guide-hero {
    padding: 68px 0 44px;
  }

  .guide-hero h1 {
    font-size: clamp(56px, 16vw, 80px);
  }

  .guide-content {
    padding-top: 44px;
    padding-bottom: 72px;
  }

  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .glossary-card {
    min-height: 0;
  }

  .wiki-hero h1 {
    font-size: clamp(58px, 17vw, 82px);
  }

  .article-section {
    padding: 42px 0;
  }

  .article-section__heading {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
  }

  .article-section__heading h2 {
    font-size: 34px;
  }

  .article-section__body {
    padding-left: 34px;
  }

  .history-hero,
  .history-hero__inner {
    min-height: 600px;
  }

  .history-hero h1 {
    font-size: clamp(68px, 20vw, 92px);
  }

  .history-hero__intro {
    font-size: 21px;
  }

  .timeline-line {
    left: 29px;
  }

  .timeline-period {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
  }

  .timeline-period__marker {
    width: 58px;
    height: 58px;
  }

  .history-actions {
    flex-direction: column;
  }

  .history-actions .button {
    width: 100%;
  }

  .directory-page {
    padding: 70px 0 86px;
  }

  .directory-hero {
    margin-bottom: 42px;
  }

  .directory-hero h1 {
    font-size: clamp(76px, 24vw, 110px);
  }

  .species-card {
    min-height: 170px;
    padding: 24px 44px 24px 22px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
  }

  .species-card__icon {
    width: 54px;
    height: 54px;
    font-size: 27px;
  }

  .species-card strong {
    font-size: 27px;
  }

  .species-card p {
    font-size: 11px;
  }

  .species-detail {
    padding-top: 28px;
  }

  .species-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .species-hero::before,
  .species-hero::after {
    top: 92px;
    left: 50%;
  }

  .species-hero__orbit {
    min-height: 180px;
  }

  .species-hero__copy {
    padding: 12px 24px 34px;
    text-align: center;
  }

  .species-hero__copy .eyebrow {
    justify-content: center;
  }

  .species-hero h1 {
    font-size: clamp(66px, 21vw, 92px);
  }

  .species-hero__tagline {
    line-height: 1.5;
  }

  .essential-strip {
    grid-template-columns: 1fr;
  }

  .veil-states, .definition-grid { grid-template-columns: 1fr; }
  .veil-layer { grid-template-columns: 52px 1fr; gap: 16px; padding: 22px 18px; }
  .veil-symbol { width: 48px; height: 48px; }
  .veil-layer h3 { font-size: 23px; }

  .world-page .article-section__body > p,
  .world-page .wiki-hero > .page-shell > p:last-child,
  .world-page .wiki-hero > .page-shell > p:nth-last-child(2) { font-size: 16px; }
  .world-page .veil-layer { min-height: 150px; padding: 24px 18px; }
  .world-page .veil-symbol { width: 48px; height: 48px; }
  .world-page .veil-layer h3 { font-size: 26px; }
  .world-page .veil-layer p { font-size: 15px; }
  .world-page .veil-boundary { padding: 20px 18px; }
  .world-page .veil-state,
  .world-page .definition-grid article { padding: 22px; }
  .world-page .veil-state h3,
  .world-page .definition-grid h3 { font-size: 23px; }

  .essential-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Rich comparison blocks used by species articles */
.compare-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-card {
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(15, 20, 37, 0.86), rgba(9, 12, 24, 0.9));
}

.compare-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.1;
}

.compare-card .article-list {
  margin-top: 0;
}

.compare-card--positive { border-color: rgba(121, 181, 150, 0.2); }
.compare-card--negative,
.compare-card--warning { border-color: rgba(198, 183, 143, 0.22); }
.compare-card--fire,
.compare-card--blood { border-color: rgba(255, 102, 142, 0.22); }
.compare-card--water,
.compare-card--info { border-color: rgba(85, 212, 255, 0.22); }
.compare-card--earth { border-color: rgba(111, 193, 128, 0.2); }
.compare-card--air { border-color: rgba(194, 204, 232, 0.2); }

.compare-card--positive .article-list li::before { background: var(--cyan); }
.compare-card--negative .article-list li::before,
.compare-card--warning .article-list li::before { background: var(--gold); }
.compare-card--fire .article-list li::before,
.compare-card--blood .article-list li::before { background: #ff668e; }
.compare-card--water .article-list li::before,
.compare-card--info .article-list li::before { background: #55d4ff; }
.compare-card--earth .article-list li::before { background: #6fc180; }
.compare-card--air .article-list li::before { background: #c2cce8; }

.callout--neutral {
  border-color: var(--line);
  background: rgba(12, 16, 31, 0.76);
}

.callout--neutral .callout__icon {
  color: var(--purple-bright);
}

@media (max-width: 720px) {
  .compare-grid,
  .compare-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Internal editorial preview */

.preview-config-card > p,
.preview-section-heading p,
.preview-page-card__status {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, #8fbaa0);
}


.job-card {
  align-items: flex-start;
}

.job-card__symbol {
  flex: 0 0 auto;
}


.preview-dashboard-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(44, 89, 66, 0.13), transparent 35%),
    radial-gradient(circle at 82% 20%, rgba(66, 123, 91, 0.07), transparent 30%),
    #07100d;
}

.preview-page {
  min-height: 72vh;
  padding: 86px 0 120px;
}

.preview-hero {
  max-width: 880px;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.preview-hero h1 {
  max-width: 760px;
  margin: 18px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(58px, 8vw, 108px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.preview-hero > p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.preview-summary,
.preview-pages {
  padding-top: 58px;
}

.preview-section-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 26px;
}

.preview-section-heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(104, 164, 128, 0.3);
  border-radius: 50%;
  color: #abcbb4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.preview-section-heading h2 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 1;
}

.preview-config-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.preview-config-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 22, 43, 0.86), rgba(8, 11, 25, 0.88));
}

.preview-config-card strong {
  display: block;
  min-height: 46px;
  margin: 13px 0 20px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}

.preview-config-card > span,
.preview-page-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(104, 164, 128, 0.2);
  border-radius: 999px;
  background: rgba(104, 164, 128, 0.07);
  color: #abcbb4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-status="Prêt"] {
  border-color: rgba(80, 211, 176, 0.2) !important;
  background: rgba(80, 211, 176, 0.07) !important;
  color: #74d9bd !important;
}

[data-status="À valider"] {
  border-color: rgba(231, 185, 89, 0.22) !important;
  background: rgba(231, 185, 89, 0.07) !important;
  color: #dfbd75 !important;
}

[data-status="À compléter"],
[data-status="À configurer"] {
  border-color: rgba(208, 116, 150, 0.22) !important;
  background: rgba(208, 116, 150, 0.07) !important;
  color: #d58ca7 !important;
}

.preview-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.preview-page-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  gap: 16px;
  min-height: 160px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 24, 0.48);
  color: inherit;
  transition: background 180ms ease, transform 180ms ease;
}

.preview-page-card:hover {
  z-index: 1;
  background: rgba(22, 25, 47, 0.86);
  transform: translateY(-2px);
}

.preview-page-card__number {
  color: rgba(170, 200, 180, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.preview-page-card h3 {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

.preview-page-card div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.preview-page-card__arrow {
  align-self: center;
  color: #8fbaa0;
  font-size: 20px;
}

@media (max-width: 980px) {
  .preview-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .preview-page {
    padding: 58px 0 82px;
  }

  .preview-hero {
    padding-bottom: 40px;
  }

  .preview-config-grid,
  .preview-page-grid {
    grid-template-columns: 1fr;
  }

  .preview-page-card {
    min-height: 146px;
  }
}


/* Public content v1.3 */
@media (min-width: 961px) {
  .welcome-grid {
    max-width: 1120px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lore-cta__text {
  display: block;
  max-width: 640px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.jobs-directory-section {
  margin-bottom: 56px;
}

.jobs-directory-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.jobs-directory-heading > p {
  margin-bottom: 8px;
  color: var(--purple-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jobs-directory-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.job-card h3 {
  margin-bottom: 12px;
  font-size: 32px;
}

.jobs-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.jobs-info-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(14, 18, 35, 0.9), rgba(8, 11, 24, 0.94));
}

.jobs-info-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.jobs-info-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.jobs-cta {
  margin-top: 42px;
  display: flex;
  justify-content: center;
}

@media (max-width: 960px) {
  .jobs-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Métiers — secteur privé v1.5 */
.jobs-directory-section--private {
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.jobs-private-groups {
  display: grid;
  gap: 38px;
}

.jobs-private-group > h3 {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 19px;
  font-weight: 600;
}

.jobs-grid--private {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jobs-grid--private .job-card {
  min-height: 225px;
}

.job-card__category {
  display: block;
  margin-bottom: 8px;
  color: var(--species-accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.legal-updated {
  margin-top: 18px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .jobs-grid--private {
    grid-template-columns: 1fr;
  }
}


/* Elora visual identity - deep malachite / mist */
body {
  background:
    radial-gradient(circle at 12% 4%, rgba(72, 123, 93, 0.14), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(151, 184, 159, 0.08), transparent 22%),
    radial-gradient(circle at 54% 94%, rgba(48, 91, 68, 0.09), transparent 34%),
    linear-gradient(180deg, #07100d 0%, #07100d 46%, #050b09 100%);
}

body::before {
  opacity: 0.48;
  background-image:
    radial-gradient(circle at 14% 16%, rgba(230, 240, 232, 0.055) 0 0.55px, transparent 0.8px),
    radial-gradient(circle at 82% 10%, rgba(125, 177, 145, 0.09) 0 0.7px, transparent 0.95px),
    linear-gradient(112deg, transparent 0 40%, rgba(115, 158, 132, 0.018) 48%, transparent 58%);
  background-size: 37px 37px, 59px 59px, 100% 100%;
  mask-image: linear-gradient(to bottom, black, rgba(0,0,0,.72) 62%, transparent 96%);
}

.site-header {
  border-bottom-color: rgba(126, 170, 145, 0.14);
  background: rgba(6, 14, 11, 0.88);
  box-shadow: 0 1px 0 rgba(255,255,255,.015);
}

.site-header.is-scrolled {
  background: rgba(6, 14, 11, 0.96);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}



.brand-copy strong,
.elora-wordmark {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .22em;
}

.brand-copy strong {
  font-size: 15px;
}

.brand-copy small {
  color: #708278;
  letter-spacing: .16em;
}

.elora-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .04em;
  color: var(--text);
  line-height: .82;
  white-space: nowrap;
}


.elora-wordmark--hero {
  font-size: clamp(72px, 8.1vw, 124px);
  letter-spacing: .13em;
}

.home-hero h1 {
  margin-bottom: 20px;
  font-family: var(--sans);
  font-size: inherit;
  font-weight: 500;
  line-height: .78;
  letter-spacing: 0;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
}

.button--primary {
  color: #07100d;
  border-color: rgba(206, 227, 212, .22);
  background: linear-gradient(135deg, #bfd9c5 0%, #86b595 46%, #5f9977 100%);
  box-shadow: 0 10px 32px rgba(52, 103, 77, 0.28), inset 0 1px rgba(255,255,255,.22);
}

.button--primary:hover {
  box-shadow: 0 14px 38px rgba(52, 103, 77, 0.38), inset 0 1px rgba(255,255,255,.28);
}

.button--ghost {
  color: #d6ded8;
  border-color: rgba(135, 176, 151, 0.24);
  background: rgba(10, 24, 18, 0.58);
}

.button--ghost:hover {
  color: var(--text);
  border-color: rgba(159, 200, 174, 0.46);
  background: rgba(18, 39, 29, 0.78);
}

.button--wiki {
  color: #e8eee9;
  border-color: rgba(122, 177, 144, 0.3);
  background: rgba(52, 103, 77, 0.16);
}

.button--wiki.is-active,
.button--wiki:hover {
  border-color: rgba(166, 203, 177, 0.55);
  background: rgba(61, 116, 87, 0.26);
}

.wiki-navigation-wrap {
  border-top-color: rgba(112, 156, 132, 0.08);
  background: rgba(6, 15, 11, 0.9);
}

.wiki-navigation a::after {
  background: linear-gradient(90deg, #4e8d6b, #9ec9aa, #c6b78f);
}

.eyebrow {
  color: #9bc3a6;
}

.eyebrow span {
  background: linear-gradient(90deg, transparent, rgba(160, 199, 171, .82));
}

.eyebrow span:last-child {
  background: linear-gradient(90deg, rgba(160, 199, 171, .82), transparent);
}

.home-hero {
  border-bottom-color: rgba(112, 156, 132, 0.1);
  background:
    radial-gradient(circle at 56% 42%, rgba(72, 124, 93, 0.12), transparent 32%),
    radial-gradient(circle at 74% 58%, rgba(177, 194, 174, 0.045), transparent 24%),
    linear-gradient(90deg, #07100d 0%, #07100d 40%, #0a1712 100%);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 70% 52%, rgba(116, 162, 133, .12), transparent 34%),
    linear-gradient(115deg, rgba(7,16,13,.86) 0%, rgba(7,16,13,.42) 45%, rgba(12,28,20,.08) 76%);
}

.home-hero::after {
  z-index: 1;
  height: 48%;
  background: linear-gradient(to bottom, transparent, #07100d 98%);
}

.home-hero__art {
  width: min(67vw, 980px);
  background-image:
    linear-gradient(90deg, #07100d 0%, rgba(7,16,13,.7) 18%, rgba(7,16,13,.16) 55%, rgba(7,16,13,.04) 100%),
    linear-gradient(180deg, rgba(7,16,13,.04), rgba(7,16,13,.56)),
    radial-gradient(circle at 72% 55%, rgba(71, 125, 92, .28), transparent 38%),
    url("elora-city-malachite.jpg?v=1.6.0");
  background-blend-mode: normal, normal, color, normal;
  filter: saturate(.9) contrast(1.04) brightness(.92);
  opacity: .92;
}

.home-hero__rings {
  border-color: rgba(119, 164, 137, 0.11);
  box-shadow: 0 0 120px rgba(52, 103, 77, .05);
}

.home-hero__rings::before,
.home-hero__rings::after {
  border-color: rgba(119, 164, 137, 0.08);
}

.home-hero__subtitle {
  color: #cbbd98;
  font-weight: 500;
}

.hero-features li::before {
  color: #79ad8c;
}

.scroll-cue i {
  background: linear-gradient(#80b292, transparent);
}

.section--welcome {
  background:
    radial-gradient(circle at 50% 0%, rgba(62, 104, 80, .06), transparent 38%),
    linear-gradient(180deg, #07100d, #08120f);
}

.feature-card,
.glossary-card,
.job-card,
.mini-card,
.compare-card,
.preview-config-card {
  border-color: rgba(112, 156, 132, .15);
  background:
    radial-gradient(circle at 0 0, rgba(91, 148, 113, .09), transparent 44%),
    linear-gradient(145deg, rgba(15, 31, 24, .94), rgba(8, 18, 14, .96));
}

.feature-card:hover,
.glossary-card:hover,
.job-card:hover,
.mini-card:hover,
.compare-card:hover {
  border-color: rgba(137, 187, 156, .28);
}

.feature-card__symbol,
.job-card__symbol {
  color: #a8cbae;
  border-color: rgba(132, 182, 151, .2);
  background: rgba(59, 108, 80, .1);
}

.section--hours,
.section--faq,
.section--lore-cta {
  background:
    radial-gradient(circle at 82% 42%, rgba(58, 104, 77, .1), transparent 34%),
    #09140f;
}

.hours-card {
  border-color: rgba(112, 156, 132, .15);
  background: rgba(13, 29, 22, .88);
}

.hours-card--main {
  background: linear-gradient(110deg, rgba(13, 29, 22, .96), rgba(32, 64, 48, .92));
}

.status-dot {
  border-color: rgba(121, 181, 150, .24);
  background: rgba(121, 181, 150, .08);
}

.status-dot::after {
  background: #83bd9c;
  box-shadow: 0 0 13px rgba(131, 189, 156, .72);
}

.section--join {
  background: #07100d;
}

.guide-hero,
.wiki-hero--left {
  background:
    radial-gradient(circle at 79% 18%, rgba(58, 111, 82, .13), transparent 31%),
    radial-gradient(circle at 17% 72%, rgba(109, 148, 123, .05), transparent 28%),
    linear-gradient(180deg, #09140f, #07100d);
}

.guide-takeaway,

.lore-cta {
  border-color: rgba(132, 182, 151, .28);
  background:
    radial-gradient(circle at 92% 50%, rgba(79, 132, 99, .16), transparent 34%),
    linear-gradient(110deg, rgba(11, 26, 19, .97), rgba(30, 59, 45, .9));
}

.lore-cta::after,
.lore-cta__icon,
.round-icon,
.timeline-period__marker {
  border-color: rgba(143, 190, 160, .27);
}

.lore-cta__icon,
.round-icon {
  color: #a8cbae;
  background: rgba(79, 132, 99, .08);
}

.site-footer {
  background:
    radial-gradient(circle at 18% 0%, rgba(67, 112, 86, .05), transparent 34%),
    #050b09;
}

.article-section__body > p + p {
  color: #aebbb3;
}

.callout {
  border-color: rgba(121, 181, 150, .18);
  background: rgba(18, 60, 42, .16);
}

.chip-row span,
.preview-config-card > span,
.preview-page-card__status {
  color: #9fc5aa;
  border-color: rgba(126, 177, 145, .18);
  background: rgba(69, 123, 91, .07);
}

.article-list li::before {
  background: #6fa787;
  box-shadow: 0 0 8px rgba(92, 159, 120, .5);
}

.reality-stack,
.takeaway-grid article,
.balance-card,
.continue-reading a,
.essential-strip {
  border-color: rgba(112, 156, 132, .15);
  background: rgba(10, 24, 18, .82);
}

.reality-stack__veil {
  background: rgba(121, 181, 150, .22);
}

.reality-stack__veil span {
  color: #9cc9ad;
  background: #091610;
}

.next-chapter > a {
  border-color: rgba(124, 180, 145, .24);
  background: linear-gradient(110deg, rgba(18, 40, 30, .82), rgba(8, 22, 16, .82));
}

.next-chapter > a:hover {
  border-color: rgba(151, 198, 166, .5);
}

.history-hero {
  background: #08130f;
}

.history-hero__city {
  background:
    linear-gradient(90deg, #08130f, rgba(8,19,15,.77) 36%, rgba(8,19,15,.88)),
    radial-gradient(circle at 70% 54%, rgba(66, 120, 88, .2), transparent 40%),
    url("elora-city-malachite.jpg?v=1.6.0") right center / auto 100% no-repeat;
  background-blend-mode: normal, color, normal;
  opacity: .28;
  filter: saturate(.86) contrast(1.04) brightness(.88);
}

.history-hero__rings,
.history-hero__rings::before,
.history-hero__rings::after {
  border-color: rgba(126, 177, 145, .13);
}

.history-timeline,
.directory-page,
.species-detail,
.preview-dashboard-page {
  background:
    radial-gradient(circle at 80% 8%, rgba(61, 111, 83, .08), transparent 28%),
    radial-gradient(circle at 18% 10%, rgba(96, 139, 112, .05), transparent 25%),
    #07100d;
}

.timeline-line {
  background: linear-gradient(var(--line-strong), rgba(104, 164, 128, .04));
}

.species-card {
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--species-accent) 8%, transparent), transparent 50%),
    linear-gradient(145deg, rgba(14, 29, 22, .96), rgba(8, 18, 14, .97));
}

.species-card__icon {
  background: rgba(8, 22, 16, .68);
}

.species-hero {
  background:
    radial-gradient(circle at 0 50%, color-mix(in srgb, var(--species-accent) 10%, transparent), transparent 44%),
    linear-gradient(120deg, rgba(17, 35, 27, .97), rgba(7, 22, 16, .95));
}

.species-hero__orbit::after {
  background: rgba(6, 18, 13, .48);
}

.job-card:hover {
  background: linear-gradient(145deg, rgba(21, 42, 32, .97), rgba(9, 21, 16, .99));
}

.preview-page-card {
  background: rgba(8, 21, 15, .5);
}

.preview-page-card:hover {
  background: rgba(21, 43, 32, .86);
}

.preview-page-card__arrow,
.preview-page-card__number {
  color: #8fb9a0;
}

@media (max-width: 960px) {
  .home-hero::before {
    background: linear-gradient(180deg, rgba(7,16,13,.22), rgba(7,16,13,.86) 68%, #07100d 100%);
  }

  .home-hero__art {
    width: 100%;
    opacity: .46;
    background-position: center, center, center, 62% center;
    background-size: cover, cover, cover, auto 100%;
  }
}


/* v1.5.2 - clean ELORA wordmark; no improvised logo mark */
.brand { gap: 0; }
.brand-copy { display: block; }
.brand-copy strong { display: block; font-size: 15px; }
.elora-wordmark {
  display: inline-block;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 520;
  line-height: 1;
  letter-spacing: .24em;
  white-space: nowrap;
}
.elora-wordmark--hero {
  font-size: clamp(72px, 8.1vw, 124px);
  letter-spacing: .14em;
}
.home-hero h1 {
  font-size: inherit;
  line-height: .88;
}
@media (max-width: 680px) {
  .elora-wordmark--hero { font-size: clamp(54px, 17vw, 82px); letter-spacing: .1em; }
}

/* v1.5.8 - global readability, hierarchy and spacing pass */
:root {
  --type-body: clamp(16px, calc(15.7px + 0.1vw), 17px);
  --type-body-small: clamp(14.5px, calc(14.2px + 0.1vw), 15.5px);
  --type-label: clamp(11.5px, calc(11.2px + 0.08vw), 12.5px);
  --type-nav: 14px;
  --space-label-title: clamp(18px, 1.4vw, 24px);
  --space-title-copy: clamp(16px, 1.25vw, 22px);
}

body {
  font-size: var(--type-body);
  line-height: 1.72;
}

/* Navigation and controls */
.main-navigation a,
.site-footer nav a {
  font-size: var(--type-nav);
}

.wiki-navigation a {
  font-size: 12px;
}

.button {
  min-height: 46px;
  padding-inline: 18px;
  font-size: 14px;
}

/* Shared text scale */
.brand-copy small,
.eyebrow,
.scroll-cue,
.hours-card small,
.join-step__number,
.article-section__heading > span,
.article-toc > p,
.article-toc li > span,
.mini-card__label,
.reality-stack small,
.reality-stack__veil span,
.takeaway-grid span,
.next-chapter > p,
.continue-reading > p,
.next-chapter small,
.timeline-period__content > p:first-child,
.back-link,
.species-hero__tagline,
.essential-strip dt,
.continue-reading small,
.preview-config-card > p,
.preview-section-heading p,
.preview-page-card__status,
.preview-section-heading > span,
.preview-page-card__number,
.jobs-directory-heading > p,
.job-card__category,
.legal-updated {
  font-size: var(--type-label) !important;
}

.section-heading p,
.home-hero__intro,
.guide-hero__intro,
.wiki-hero > .page-shell > p:last-child,
.article-section__body > p,
.history-hero__statement,
.timeline-period__content > p:not(:first-child),
.directory-hero > p:last-child,
.species-card p,
.species-hero__intro,
.preview-hero > p:last-child {
  font-size: var(--type-body);
}

.feature-card p,
.join-step p,
.glossary-card > p,
.guide-takeaway p,
.live-section p,
.faq-item p,
.mini-card p,
.callout p,
.article-list li,
.reality-stack p,
.takeaway-grid p,
.job-card p,
.jobs-info-card p,
.preview-page-card div > p:last-child,
.lore-cta__text {
  font-size: var(--type-body-small);
}

.hero-features,
.hours-card p,
.site-footer p,
.article-toc a {
  font-size: var(--type-label);
}

.callout h3,
.reality-stack h3 {
  font-size: 16px;
  line-height: 1.25;
}

.essential-strip dd {
  font-size: 16px;
}

/* Consistent vertical rhythm for section introductions */
.eyebrow {
  margin: 0;
  line-height: 1.2;
}

.section-heading {
  max-width: 500px;
}

.section-heading--center {
  max-width: 760px;
}

.section-heading > .eyebrow {
  margin-bottom: var(--space-label-title);
  padding: 0;
}

.section-heading > h2 {
  margin: 0;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.02;
}

.section-heading > h2 + p {
  margin-top: var(--space-title-copy);
}

.section-heading > p {
  margin-bottom: 0;
  line-height: 1.75;
}

/* Secondary page heroes: large enough to identify the page, not dominate it */
.guide-hero h1,
.wiki-hero h1,
.history-hero h1,
.directory-hero h1,
.species-hero h1 {
  font-size: clamp(46px, 4.7vw, 68px);
  line-height: 1.02;
}

.guide-hero .eyebrow,
.wiki-hero .eyebrow,
.directory-hero .eyebrow,
.history-hero .eyebrow,
.species-hero__copy .eyebrow {
  margin-bottom: var(--space-label-title);
}

.guide-hero h1,
.wiki-hero h1,
.history-hero h1,
.directory-hero h1,
.species-hero h1 {
  margin-bottom: var(--space-title-copy);
}

.wiki-hero > .page-shell > p:last-child,
.guide-hero__intro,
.directory-hero > p:last-child,
.species-hero__intro {
  line-height: 1.75;
}

/* Home: preserve the hero identity while normalizing the rest of the page */
.home-hero__copy > .eyebrow {
  margin-bottom: 20px;
}

.section {
  padding: clamp(82px, 7vw, 96px) 0;
}

.welcome-grid,
.join-steps {
  margin-top: 44px;
}

.hours-layout {
  gap: clamp(52px, 6vw, 84px);
}

.faq-layout {
  gap: clamp(56px, 7vw, 84px);
}

.feature-card__symbol,
.job-card__symbol {
  margin-bottom: 36px;
}

.join-step__number {
  margin-bottom: 38px;
}

.feature-card p,
.join-step p,
.job-card p,
.jobs-info-card p,
.glossary-card > p,
.faq-item p {
  line-height: 1.72;
}

/* Article readability */
.article-section {
  padding: 48px 0;
}

.article-section__heading {
  margin-bottom: 22px;
}

.article-section__body > p {
  max-width: 68ch;
  margin-bottom: 18px;
  line-height: 1.78;
}

.article-section__body > p:last-child {
  margin-bottom: 0;
}

.article-list {
  gap: 12px;
}

.article-list li {
  line-height: 1.7;
}

.mini-card h3 {
  font-size: 20px;
  line-height: 1.15;
}

/* Directory and card balance */
.directory-page {
  padding-top: 78px;
}

.directory-hero {
  margin-bottom: 56px;
  padding-bottom: 38px;
}

.directory-hero > p:last-child {
  margin-top: 0;
}

.jobs-directory-heading {
  margin-bottom: 24px;
}

.jobs-directory-heading > p {
  margin-bottom: 12px;
}

.jobs-private-group > h3 {
  margin-bottom: 18px;
  font-size: 21px;
  line-height: 1.2;
}

.job-card h3 {
  font-size: 30px;
  line-height: 1.04;
}

/* Compact labels should remain readable without becoming dominant */
.hours-card small,
.job-card__category,
.legal-updated,
.species-hero__tagline {
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .main-navigation a {
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  :root {
    --space-label-title: 18px;
    --space-title-copy: 16px;
  }

  body {
    font-size: 16px;
  }

  .main-navigation a {
    font-size: 15px;
  }

  .wiki-navigation a {
    font-size: 12px;
  }

  .section {
    padding-block: 76px;
  }

  .section-heading > h2 {
    font-size: clamp(38px, 7vw, 50px);
  }

  .guide-hero h1,
  .wiki-hero h1,
  .history-hero h1,
  .directory-hero h1,
  .species-hero h1 {
    font-size: clamp(42px, 8vw, 56px);
  }

  .home-hero__intro,
  .section-heading p,
  .guide-hero__intro,
  .wiki-hero > .page-shell > p:last-child,
  .article-section__body > p,
  .directory-hero > p:last-child,
  .species-card p,
  .species-hero__intro {
    font-size: 16px;
  }

  .feature-card p,
  .join-step p,
  .glossary-card > p,
  .guide-takeaway p,
  .faq-item p,
  .mini-card p,
  .callout p,
  .article-list li,
  .job-card p,
  .jobs-info-card p,
  .lore-cta__text {
    font-size: 15px;
  }

  .hours-layout,
  .faq-layout {
    gap: 44px;
  }
}

@media (max-width: 600px) {
  :root {
    --space-label-title: 16px;
    --space-title-copy: 14px;
  }

  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .section {
    padding-block: 66px;
  }

  .section-heading > h2 {
    font-size: clamp(36px, 10.5vw, 46px);
    line-height: 1.04;
  }

  .guide-hero h1,
  .wiki-hero h1,
  .history-hero h1,
  .directory-hero h1,
  .species-hero h1 {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1.04;
  }

  .guide-hero,
  .wiki-hero {
    padding-top: 62px;
    padding-bottom: 40px;
  }

  .directory-page {
    padding-top: 62px;
    padding-bottom: 80px;
  }

  .directory-hero {
    margin-bottom: 40px;
    padding-bottom: 32px;
  }

  .feature-card__symbol,
  .job-card__symbol {
    margin-bottom: 28px;
  }

  .join-step__number {
    margin-bottom: 30px;
  }

  .article-section {
    padding: 40px 0;
  }

  .article-section__body {
    padding-left: 32px;
  }

  .button {
    min-height: 48px;
    font-size: 15px;
  }

  .hero-features {
    font-size: 13px;
  }

  .lore-cta h2 {
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: 1.06;
  }
}

/* v1.6.0 - homepage section heading spacing fix
   Keep the large display type, but tighten the vertical rhythm between
   the eyebrow, multiline heading and introductory copy. */
.home-page .section-heading {
  display: flex;
  flex-direction: column;
}

.home-page .section-heading > .eyebrow {
  margin: 0 0 12px;
  padding: 0;
}

.home-page .section-heading > h2 {
  margin: 0;
}

.home-page .section-heading > h2 + p {
  margin: 10px 0 0;
}

@media (max-width: 600px) {
  .home-page .section-heading > .eyebrow {
    margin-bottom: 10px;
  }

  .home-page .section-heading > h2 + p {
    margin-top: 8px;
  }
}



/* v1.6.1 - dedicated homepage hero artwork */
.home-hero::before {
  background: linear-gradient(115deg, rgba(7, 16, 13, .94) 0%, rgba(7, 16, 13, .68) 28%, rgba(7, 16, 13, .22) 50%, rgba(7, 16, 13, .035) 72%, transparent 100%);
}

.home-hero__art {
  inset: 0;
  width: 100%;
  background-image:
    linear-gradient(90deg, rgba(7, 16, 13, .66) 0%, rgba(7, 16, 13, .38) 24%, rgba(7, 16, 13, .08) 52%, transparent 72%),
    linear-gradient(180deg, rgba(7, 16, 13, .02), rgba(7, 16, 13, .42)),
    radial-gradient(circle at 76% 53%, rgba(91, 128, 108, .10), transparent 42%),
    url("elora-home-hero.webp?v=1.6.1");
  background-repeat: no-repeat;
  background-position: center, center, center, right center;
  background-size: cover, cover, cover, auto 100%;
  filter: saturate(.92) contrast(1.03) brightness(.97);
  opacity: .98;
}

@media (max-width: 960px) {
  .home-hero::before {
    background: linear-gradient(180deg, rgba(7, 16, 13, .18), rgba(7, 16, 13, .70) 60%, #07100d 100%);
  }

  .home-hero__art {
    background-position: center, center, center, 67% center;
    background-size: cover, cover, cover, auto 100%;
    opacity: .58;
  }
}


/* v1.6.5 - world cards use the same reading size as article paragraphs */
.world-page .veil-layer p,
.world-page .veil-boundary p,
.world-page .veil-boundary small,
.world-page .veil-state p,
.world-page .definition-grid p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
}
.world-page .veil-layer small,
.world-page .veil-state small,
.world-page .definition-grid small,
.world-page .veil-boundary span {
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .08em;
}

/* v1.6.6 - compact diagram; reading cards retain their validated scale */
.world-page .veil-diagram .veil-layer {
  min-height: 0;
  padding: 22px 26px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
}
.world-page .veil-diagram .veil-symbol {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.world-page .veil-diagram .veil-layer h3 {
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 4px 0 6px;
}
.world-page .veil-diagram .veil-layer p,
.world-page .veil-diagram .veil-boundary p {
  font-size: .875rem;
  line-height: 1.5;
}
.world-page .veil-diagram .veil-layer small,
.world-page .veil-diagram .veil-boundary span {
  font-size: .75rem;
}
.world-page .veil-diagram .veil-boundary {
  padding: 14px 24px;
}
.world-page .veil-diagram .veil-boundary small {
  font-size: .8125rem;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .world-page .veil-diagram .veil-layer {
    padding: 18px;
    gap: 14px;
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .world-page .veil-diagram .veil-symbol { width: 40px; height: 40px; }
  .world-page .veil-diagram .veil-layer h3 { font-size: 1.375rem; }
  .world-page .veil-diagram .veil-boundary { padding: 14px 18px; }
}

/* v1.6.8 - subheadings and summaries from the validated editorial copy */
.article-section__body > h3,
.history-summary > h3 {
  margin: 28px 0 12px;
  font-size: 1.5rem;
  line-height: 1.2;
}
.article-section__body > .section-subtitle {
  color: var(--malachite-bright);
  font-weight: 600;
}
.inline-reading-link a {
  color: var(--malachite-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.species-hero__intro > p:last-child { margin-bottom: 0; }
.history-summary {
  margin-left: 118px;
}
.history-summary > h2 {
  font-size: 2rem;
  line-height: 1.15;
}
.history-summary > p {
  font-size: var(--type-body, 1rem);
  line-height: 1.75;
}
@media (max-width: 600px) {
  .history-summary { margin-left: 0; }
}

/* v1.6.2 - join heading wrap and pre-opening status */
.section--join .section-heading--center {
  max-width: 920px;
}

.section--join .section-heading > h2 {
  text-wrap: balance;
}

@media (max-width: 960px) {
  .section--join .section-heading--center {
    max-width: min(860px, 100%);
  }
}


/* v1.6.9 - mobile hardening + navigation polish */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The explicit display rule on nav-toggle children can otherwise defeat
   the HTML hidden state in some mobile rendering paths. */
.nav-toggle > span[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .header-shell {
    grid-template-columns: minmax(0, 1fr) 48px 48px;
    gap: 10px;
  }

  .nav-toggle,
  .button--wiki {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
  }

  .nav-toggle > span {
    width: 100%;
    height: 100%;
  }

  .wiki-navigation {
    width: 100%;
    min-width: 0;
    padding-inline: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
  }

  .wiki-navigation__label {
    display: none;
  }

  .wiki-navigation a {
    min-width: 0;
    justify-content: center;
    padding-inline: 4px;
    font-size: clamp(10px, 2.8vw, 11px);
    letter-spacing: .08em;
    white-space: nowrap;
  }

  .article-toc {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .article-toc ol {
    width: 100%;
    max-width: 100%;
    padding: 0 0 8px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .article-toc ol::-webkit-scrollbar {
    display: none;
  }

  .article-toc li {
    flex: 0 0 auto;
    min-width: 0;
    max-width: min(78vw, 330px);
    scroll-snap-align: start;
  }

  .article-toc a {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    align-items: center;
    line-height: 1.35;
    white-space: normal;
  }

  .home-hero__copy,
  .home-hero__intro,
  .home-hero__subtitle,
  .section-heading,
  .guide-hero__intro,
  .wiki-hero > .page-shell > p,
  .article-section__body,
  .faq-list {
    min-width: 0;
    max-width: 100%;
  }

  .home-hero__subtitle,
  .home-hero__intro,
  .section-heading h2,
  .guide-hero h1,
  .wiki-hero h1,
  .history-hero h1,
  .directory-hero h1,
  .species-hero h1,
  .faq-item summary span:first-child {
    overflow-wrap: anywhere;
  }

  .faq-item summary {
    gap: 16px;
  }

  .faq-item > div {
    padding-right: 8px;
  }
}

@media (max-width: 480px) {
  .header-shell {
    gap: 8px;
  }

  .elora-wordmark {
    letter-spacing: .19em;
  }

  .wiki-navigation {
    padding-inline: 10px;
  }

  .wiki-navigation a {
    font-size: clamp(9.5px, 2.7vw, 10.5px);
    letter-spacing: .055em;
    padding-inline: 2px;
  }

  .home-hero__copy > .eyebrow {
    font-size: 11px !important;
    letter-spacing: .15em;
  }

  .home-hero__subtitle {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.08;
  }

  .home-hero__intro {
    font-size: 16px;
    line-height: 1.65;
  }

  .article-section__heading h2 {
    font-size: clamp(34px, 10.5vw, 46px);
    overflow-wrap: normal;
    hyphens: auto;
  }

  .article-section__body {
    padding-left: 24px;
  }

  .faq-item summary {
    min-height: 58px;
    font-size: clamp(17px, 5.2vw, 20px);
    line-height: 1.2;
  }

  .faq-item p {
    font-size: 15px;
    line-height: 1.72;
  }
}

/* v1.6.10 - mobile wiki: remove the horizontal in-page TOC.
   On narrow screens the sequential article layout is clearer without it. */
@media (max-width: 820px) {
  .wiki-page .article-toc {
    display: none !important;
  }
}
