:root {
  --jade-950: #0b211c;
  --jade-900: #102822;
  --jade-850: #143129;
  --jade-800: #183a31;
  --jade-700: #205044;
  --gold-500: #c9a668;
  --gold-400: #d9be87;
  --gold-soft: rgba(201, 166, 104, 0.16);
  --gold-line: rgba(201, 166, 104, 0.25);
  --ivory-100: #f5f1e8;
  --ivory-300: #ddd7ca;
  --ivory-500: #a9a398;
  --ivory-faint: rgba(245, 241, 232, 0.08);
  --terracotta: #d99b78;
  --good: #8fc2a7;
  --danger: #e7a38c;
  --display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --utility: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --rail-width: 232px;
  --content-max: 1120px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 26px 70px rgba(2, 13, 10, 0.26);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 77% -12%, rgba(201, 166, 104, 0.11), transparent 30rem),
    var(--jade-900);
  color: var(--ivory-100);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open { overflow: hidden; }

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }

button, a, input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--gold-500);
  color: var(--jade-950);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

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

.app-shell { min-height: 100vh; }

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--rail-width);
  flex-direction: column;
  padding: 28px 18px 22px;
  border-right: 1px solid rgba(201, 166, 104, 0.14);
  background:
    linear-gradient(180deg, rgba(24, 58, 49, 0.52), rgba(11, 33, 28, 0.86)),
    var(--jade-950);
}

.brand-lockup {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 11px;
  align-items: center;
  padding: 2px 4px 22px;
  text-decoration: none;
}

.brand-seal,
.mobile-brand svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.2;
}

.brand-seal .seal-dot,
.mobile-brand .seal-dot {
  fill: var(--gold-500);
  stroke: none;
}

.brand-name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.brand-index {
  grid-column: 2;
  margin-top: -10px;
  color: var(--gold-500);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--ivory-500);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: var(--ivory-100);
  transform: translateX(2px);
}

.nav-item.is-active {
  border-color: rgba(201, 166, 104, 0.18);
  background: linear-gradient(90deg, rgba(201, 166, 104, 0.14), rgba(201, 166, 104, 0.03));
  color: var(--gold-400);
}

.nav-item svg,
.icon-button svg,
.search-shell svg,
.inline-search svg,
.dialog-back svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.nav-count {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 20px;
  background: var(--gold-soft);
  color: var(--gold-400);
  font-family: var(--utility);
  font-size: 10px;
  line-height: 20px;
  text-align: center;
}

.rail-foot {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: auto;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  color: var(--ivory-500);
  font-size: 10px;
  line-height: 1.45;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  flex: none;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(143, 194, 167, 0.1);
}

.main {
  min-height: 100vh;
  margin-left: var(--rail-width);
  padding: 0 48px;
}

.view,
.site-footer {
  width: min(100%, var(--content-max));
  margin: 0 auto;
}

.view { padding: 72px 0 24px; }
.view[hidden] { display: none; }

.mobile-head,
.bottom-nav { display: none; }

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: center;
  min-height: 352px;
  padding: 32px 0 24px;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-500);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 22px; height: 1px; background: var(--gold-500); }

.hero-section h1,
.view-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-section h1 { font-size: clamp(48px, 6vw, 82px); }

.hero-section h1 em {
  color: var(--gold-400);
  font-weight: 400;
}

.hero-intro {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--ivory-300);
  font-size: 16px;
  line-height: 1.75;
}

.knowledge-orbit {
  position: relative;
  display: grid;
  width: min(26vw, 310px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
}

.knowledge-orbit::before,
.knowledge-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.knowledge-orbit::before {
  inset: 3%;
  border: 1px solid rgba(201, 166, 104, 0.2);
  box-shadow: inset 0 0 60px rgba(201, 166, 104, 0.05), 0 0 90px rgba(201, 166, 104, 0.06);
}

.knowledge-orbit::after {
  inset: 19%;
  border: 1px dashed rgba(201, 166, 104, 0.23);
}

.orbit-ring { position: absolute; inset: 0; }

.orbit-ring span {
  --angle: calc(var(--i) * 45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px;
  transform: rotate(var(--angle)) translateY(-138px) rotate(calc(-1 * var(--angle)));
  color: rgba(217, 190, 135, 0.76);
  font-family: var(--display);
  font-size: 26px;
  line-height: 38px;
  text-align: center;
}

.orbit-ring span:nth-child(1) { --i: 0; }
.orbit-ring span:nth-child(2) { --i: 1; }
.orbit-ring span:nth-child(3) { --i: 2; }
.orbit-ring span:nth-child(4) { --i: 3; }
.orbit-ring span:nth-child(5) { --i: 4; }
.orbit-ring span:nth-child(6) { --i: 5; }
.orbit-ring span:nth-child(7) { --i: 6; }
.orbit-ring span:nth-child(8) { --i: 7; }

.orbit-center {
  position: relative;
  z-index: 2;
  display: flex;
  width: 142px;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 166, 104, 0.12), rgba(20, 49, 41, 0.2) 64%, transparent 65%);
}

.orbit-center strong {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
}

.orbit-small {
  color: var(--gold-500);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.search-shell,
.inline-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--gold-line);
  background: rgba(245, 241, 232, 0.055);
  box-shadow: 0 18px 48px rgba(4, 18, 14, 0.14);
}

.search-shell {
  gap: 14px;
  min-height: 64px;
  padding: 0 18px;
  border-radius: 18px;
}

.search-shell svg,
.inline-search svg { color: var(--gold-500); }

.search-shell input,
.inline-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ivory-100);
}

.search-shell input { font-size: 16px; }
.search-shell input::placeholder,
.inline-search input::placeholder { color: rgba(245, 241, 232, 0.38); }

kbd {
  padding: 4px 7px;
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 6px;
  color: var(--ivory-500);
  font-family: var(--utility);
  font-size: 10px;
  white-space: nowrap;
}

.topic-pills,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pills { margin: 16px 0 0; }

.pill,
.filter-chip {
  border: 1px solid rgba(201, 166, 104, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory-500);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.pill { padding: 7px 12px; }
.filter-chip { padding: 8px 13px; }

.pill:hover,
.pill.is-active,
.filter-chip:hover,
.filter-chip.is-active {
  border-color: rgba(201, 166, 104, 0.46);
  background: var(--gold-soft);
  color: var(--gold-400);
}

.section-block { margin-top: 72px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.section-head h2,
.closing-note h2,
.security-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-head .section-kicker,
.closing-note .section-kicker { margin-bottom: 5px; }

.text-button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--gold-400);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.text-button span { display: inline-block; transition: transform 160ms ease; }
.text-button:hover span { transform: translateX(4px); }

.featured-card {
  position: relative;
  display: grid;
  min-height: 350px;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.65fr);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 20%, rgba(201, 166, 104, 0.18), transparent 28%),
    linear-gradient(135deg, var(--jade-800), var(--jade-850));
  box-shadow: var(--shadow);
}

.featured-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 46px;
}

.article-label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--gold-400);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-label::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  content: "";
}

.featured-copy h3 {
  max-width: 650px;
  margin: 16px 0 12px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.featured-copy > p {
  max-width: 600px;
  margin: 0;
  color: var(--ivory-300);
  font-size: 14px;
}

.read-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 26px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  background: var(--gold-500);
  color: var(--jade-950);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.featured-symbol {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid rgba(201, 166, 104, 0.13);
}

.featured-symbol::before,
.featured-symbol::after {
  position: absolute;
  border: 1px solid rgba(201, 166, 104, 0.17);
  border-radius: 50%;
  content: "";
}

.featured-symbol::before { width: 250px; height: 250px; }
.featured-symbol::after { width: 150px; height: 150px; }

.featured-symbol span {
  position: relative;
  z-index: 1;
  color: var(--gold-400);
  font-family: var(--display);
  font-size: 88px;
  opacity: 0.92;
}

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

.branch-card {
  position: relative;
  min-height: 218px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(201, 166, 104, 0.16);
  border-radius: var(--radius-md);
  background: rgba(245, 241, 232, 0.035);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.branch-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 166, 104, 0.38);
  background: rgba(245, 241, 232, 0.06);
}

.branch-symbol {
  display: block;
  margin-bottom: 34px;
  color: var(--gold-500);
  font-family: var(--display);
  font-size: 33px;
  line-height: 1;
}

.branch-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
}

.branch-card p {
  margin: 0;
  color: var(--ivory-500);
  font-size: 11px;
  line-height: 1.55;
}

.branch-count {
  position: absolute;
  top: 22px;
  right: 18px;
  color: var(--ivory-500);
  font-family: var(--utility);
  font-size: 9px;
}

.closing-note {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.closing-note p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--ivory-500);
  font-size: 13px;
}

.closing-mark {
  display: grid;
  width: 120px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold-400);
  font-family: var(--display);
  font-size: 54px;
}

.view-heading {
  padding: 40px 0 32px;
  border-bottom: 1px solid rgba(201, 166, 104, 0.18);
}

.view-heading h1 { font-size: clamp(54px, 7vw, 86px); }

.view-heading > p:last-child {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--ivory-500);
  font-size: 14px;
}

.library-tools {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.inline-search {
  width: min(100%, 360px);
  min-height: 44px;
  gap: 10px;
  padding: 0 13px;
  border-radius: 12px;
}

.inline-search input { font-size: 13px; }

.result-meta {
  display: flex;
  justify-content: space-between;
  margin: 28px 0 14px;
  color: var(--ivory-500);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.server-badge { display: inline-flex; align-items: center; gap: 7px; }
.server-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

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

.article-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(201, 166, 104, 0.16);
  border-radius: var(--radius-md);
  background: rgba(245, 241, 232, 0.035);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 166, 104, 0.36);
  background: rgba(245, 241, 232, 0.05);
}

.article-card-top { display: flex; justify-content: space-between; gap: 14px; }

.bookmark-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(201, 166, 104, 0.16);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory-500);
  cursor: pointer;
}

.bookmark-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.bookmark-button.is-saved { background: var(--gold-soft); color: var(--gold-400); }
.bookmark-button.is-saved svg { fill: rgba(201, 166, 104, 0.18); }

.article-card h3 {
  margin: 20px 0 9px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.13;
}

.article-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ivory-500);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  color: var(--ivory-500);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-open {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.article-card > *:not(.card-open) { position: relative; z-index: 1; pointer-events: none; }
.article-card .bookmark-button { pointer-events: auto; }

.journey-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.journey-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background: rgba(245, 241, 232, 0.035);
}

.journey-intro {
  padding: 30px;
  border-right: 1px solid var(--gold-line);
  background: linear-gradient(145deg, rgba(201, 166, 104, 0.12), rgba(201, 166, 104, 0.02));
}

.journey-number {
  color: var(--gold-500);
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
}

.journey-intro h2 {
  margin: 26px 0 8px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.08;
}

.journey-intro p { margin: 0; color: var(--ivory-500); font-size: 11px; }

.journey-steps { padding: 18px 26px; }

.journey-step {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.journey-step:last-child { border-bottom: 0; }

.step-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold-500);
  font-family: var(--utility);
  font-size: 9px;
}

.journey-step strong { font-family: var(--display); font-size: 16px; font-weight: 600; }
.journey-step > span:last-child { color: var(--ivory-500); font-size: 16px; }

.empty-state,
.error-state,
.skeleton-card {
  min-height: 220px;
  border: 1px dashed rgba(201, 166, 104, 0.22);
  border-radius: var(--radius-md);
}

.empty-state,
.error-state {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  padding: 40px;
  color: var(--ivory-500);
  text-align: center;
}

.empty-state strong,
.error-state strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ivory-100);
  font-family: var(--display);
  font-size: 23px;
}

.skeleton-card {
  border-style: solid;
  background: linear-gradient(100deg, rgba(245, 241, 232, 0.03) 20%, rgba(245, 241, 232, 0.07) 40%, rgba(245, 241, 232, 0.03) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.featured-slot .skeleton-card { min-height: 350px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 70px;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  color: rgba(245, 241, 232, 0.35);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(201, 166, 104, 0.2);
  border-radius: 50%;
  background: rgba(245, 241, 232, 0.04);
  color: var(--gold-400);
  cursor: pointer;
}

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

dialog::backdrop {
  background: rgba(3, 15, 12, 0.8);
  backdrop-filter: blur(10px);
}

.article-dialog { width: 100vw; height: 100dvh; }

.dialog-shell {
  width: min(100%, 900px);
  min-height: 100dvh;
  margin-left: auto;
  background:
    radial-gradient(circle at 95% 0, rgba(201, 166, 104, 0.12), transparent 26rem),
    var(--jade-900);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.28);
}

.dialog-toolbar {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(201, 166, 104, 0.14);
  background: rgba(16, 40, 34, 0.92);
  backdrop-filter: blur(18px);
}

.dialog-actions { display: flex; gap: 8px; }
.dialog-actions .icon-button { width: 38px; height: 38px; }

.dialog-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ivory-300);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.article-reader {
  width: min(100% - 48px, 680px);
  margin: 0 auto;
  padding: 62px 0 80px;
}

.reader-topic {
  margin: 0 0 18px;
  color: var(--gold-500);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reader-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 66px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.reader-dek {
  margin: 24px 0 0;
  color: var(--ivory-300);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.55;
}

.reader-meta {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--gold-line);
  color: var(--ivory-500);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader-body { padding-top: 32px; }

.reader-body .lead {
  margin: 0 0 30px;
  color: var(--ivory-100);
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.6;
}

.reader-body h2 {
  margin: 42px 0 14px;
  color: var(--gold-400);
  font-family: var(--display);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.reader-body p,
.reader-body li {
  color: var(--ivory-300);
  font-size: 15px;
  line-height: 1.85;
}

.reader-body p { margin: 0 0 20px; }
.reader-body ul { margin: 4px 0 24px; padding-left: 22px; }
.reader-body li { margin-bottom: 8px; padding-left: 5px; }

.reader-callout,
.reader-quote {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 2px solid var(--gold-500);
  background: rgba(201, 166, 104, 0.08);
  color: var(--ivory-100);
}

.reader-quote {
  font-family: var(--display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.55;
}

.reader-foot {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px dashed rgba(201, 166, 104, 0.22);
  color: var(--ivory-500);
  font-size: 11px;
}

.reader-foot p { margin: 0; }

.reader-loading {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: var(--ivory-500);
  font-size: 12px;
}

.security-dialog {
  width: min(calc(100vw - 32px), 480px);
  border-radius: 26px;
}

.security-card {
  position: relative;
  padding: 36px;
  border: 1px solid var(--gold-line);
  border-radius: 26px;
  background: var(--jade-850);
  box-shadow: var(--shadow);
}

.security-close { position: absolute; top: 16px; right: 16px; }

.security-emblem {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--good);
}

.security-emblem svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.security-card ul { margin: 22px 0 0; padding-left: 18px; color: var(--ivory-300); font-size: 13px; }
.security-card li { margin-bottom: 9px; }
.security-card .primary-button { width: 100%; }

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: 320px;
  padding: 12px 16px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--jade-800);
  box-shadow: var(--shadow);
  color: var(--ivory-100);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1080px) {
  :root { --rail-width: 196px; }
  .main { padding: 0 30px; }
  .hero-section { grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr); }
  .knowledge-orbit { width: 250px; }
  .orbit-ring span { transform: rotate(var(--angle)) translateY(-112px) rotate(calc(-1 * var(--angle))); }
  .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { background: var(--jade-900); }
  .side-rail { display: none; }
  .app-shell { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .main { margin-left: 0; padding: 0 16px; }
  .mobile-head {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    height: 68px;
    align-items: center;
    justify-content: space-between;
    margin: 0 -16px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(201, 166, 104, 0.14);
    background: rgba(16, 40, 34, 0.91);
    backdrop-filter: blur(18px);
  }
  .mobile-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-size: 16px; font-weight: 700; }
  .mobile-brand svg { width: 35px; height: 35px; }
  .mobile-head .icon-button { width: 37px; height: 37px; }
  .bottom-nav {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 5px 8px env(safe-area-inset-bottom);
    border-top: 1px solid rgba(201, 166, 104, 0.18);
    background: rgba(11, 33, 28, 0.95);
    backdrop-filter: blur(18px);
  }
  .bottom-nav .nav-item { flex-direction: column; gap: 2px; justify-content: center; min-height: 58px; padding: 5px 2px; border: 0; border-radius: 10px; font-size: 9px; }
  .bottom-nav .nav-item:hover { transform: none; }
  .bottom-nav .nav-item.is-active { background: rgba(201, 166, 104, 0.1); }
  .bottom-nav .nav-item svg { width: 19px; height: 19px; }
  .view { padding: 20px 0 12px; }
  .hero-section { display: block; min-height: auto; padding: 28px 0 12px; }
  .hero-section h1 { font-size: clamp(42px, 13vw, 62px); line-height: 1.01; }
  .hero-intro { margin-top: 18px; font-size: 14px; line-height: 1.65; }
  .knowledge-orbit { width: 210px; margin: 28px auto 18px; justify-self: center; }
  .orbit-ring span { width: 32px; height: 32px; margin: -16px; transform: rotate(var(--angle)) translateY(-94px) rotate(calc(-1 * var(--angle))); font-size: 22px; line-height: 32px; }
  .orbit-center { width: 112px; }
  .orbit-center strong { font-size: 19px; }
  .search-shell { min-height: 56px; padding: 0 15px; }
  .search-shell input { font-size: 14px; }
  kbd { display: none; }
  .section-block { margin-top: 52px; }
  .section-head { align-items: flex-end; margin-bottom: 17px; }
  .section-head h2 { font-size: 29px; }
  .featured-card { display: block; min-height: 0; border-radius: 22px; }
  .featured-copy { min-height: 330px; padding: 30px 25px; }
  .featured-copy h3 { font-size: 36px; }
  .featured-symbol { display: none; }
  .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .branch-card { min-height: 190px; padding: 18px; }
  .branch-symbol { margin-bottom: 30px; }
  .closing-note { grid-template-columns: 72px 1fr; gap: 18px; padding: 30px 0; }
  .closing-mark { width: 70px; font-size: 34px; }
  .closing-note h2 { font-size: 28px; }
  .view-heading { padding: 28px 0 26px; }
  .view-heading h1 { font-size: 54px; }
  .library-tools { display: block; }
  .inline-search { width: 100%; }
  .filter-row { margin-top: 12px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .result-meta { margin-top: 20px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 240px; }
  .journey-card { grid-template-columns: 1fr; }
  .journey-intro { border-right: 0; border-bottom: 1px solid var(--gold-line); }
  .journey-steps { padding: 10px 20px; }
  .site-footer { display: block; margin-top: 50px; padding-bottom: 24px; text-align: center; }
  .site-footer span { display: block; margin-bottom: 7px; }
  .dialog-shell { width: 100%; }
  .dialog-toolbar { height: 62px; padding: 0 14px; }
  .dialog-back span { display: none; }
  .article-reader { width: min(100% - 34px, 680px); padding-top: 42px; }
  .reader-head h1 { font-size: 42px; }
  .reader-dek { font-size: 18px; }
  .security-card { padding: 32px 24px 24px; }
  .toast { right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 16px; max-width: none; text-align: center; }
}

@media (max-width: 390px) {
  .branch-grid { grid-template-columns: 1fr; }
  .branch-card { min-height: 168px; }
  .branch-symbol { margin-bottom: 20px; }
  .closing-note { grid-template-columns: 1fr; }
}

@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; }
}

/* Verified Atlas v2 -------------------------------------------------------- */
textarea,
select { font: inherit; }

textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

.rail-security {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: auto;
  padding: 16px 10px 0;
  border: 0;
  border-top: 1px solid rgba(245, 241, 232, 0.08);
  background: transparent;
  color: var(--ivory-500);
  cursor: pointer;
  font-size: 10px;
  line-height: 1.45;
  text-align: left;
}

.atlas-hero { min-height: 410px; }
.atlas-orbit .orbit-center strong { font-size: 21px; }

.hero-metrics {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.hero-metrics > div {
  display: flex;
  min-width: 128px;
  flex-direction: column;
  padding-left: 13px;
  border-left: 1px solid var(--gold-line);
}

.hero-metrics strong {
  color: var(--gold-400);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.hero-metrics span {
  max-width: 120px;
  color: var(--ivory-500);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-transform: uppercase;
}

.group-grid,
.discipline-grid { display: grid; gap: 14px; }

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

.group-card {
  display: grid;
  min-height: 180px;
  grid-template-columns: 94px 1fr;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(201, 166, 104, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245, 241, 232, 0.045), rgba(201, 166, 104, 0.035));
}

.group-symbol {
  display: grid;
  width: 82px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold-400);
  font-family: var(--display);
  font-size: 36px;
}

.group-count,
.version-chip {
  color: var(--gold-500);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.group-card h3 {
  margin: 6px 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.08;
}

.group-card p { margin: 0; color: var(--ivory-500); font-size: 11px; }

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

.discipline-card {
  position: relative;
  min-height: 360px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(201, 166, 104, 0.17), transparent 16rem),
    var(--jade-850);
  box-shadow: var(--shadow);
}

.discipline-card::after {
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(201, 166, 104, 0.11);
  border-radius: 50%;
  content: "";
}

.discipline-top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; }

.verified-seal {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(143, 194, 167, 0.3);
  border-radius: 999px;
  color: var(--good);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.discipline-native {
  position: absolute;
  top: 54px;
  right: 28px;
  margin: 0;
  color: rgba(217, 190, 135, 0.14);
  font-family: var(--display);
  font-size: 82px;
  line-height: 1;
}

.discipline-card h3 {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 56px 0 11px;
  font-family: var(--display);
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.discipline-scope { position: relative; z-index: 1; max-width: 470px; min-height: 48px; margin: 0; color: var(--ivory-300); font-size: 12px; }

.discipline-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}

.discipline-stats span {
  padding: 5px 8px;
  border: 1px solid rgba(245, 241, 232, 0.11);
  border-radius: 8px;
  color: var(--ivory-500);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.discipline-card .read-button { position: relative; z-index: 2; }
.source-note { margin-top: 44px; padding: 20px; border: 1px solid var(--gold-line); border-radius: 14px; background: rgba(201, 166, 104, 0.055); }
.source-note strong { color: var(--gold-400); font-family: var(--utility); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.source-note p { margin: 7px 0 0; font-size: 12px; }

.discipline-dialog {
  width: min(calc(100vw - 32px), 760px);
  max-height: min(92dvh, 900px);
  border-radius: 28px;
}

.discipline-sheet {
  position: relative;
  max-height: min(92dvh, 900px);
  overflow-y: auto;
  padding: 42px;
  border: 1px solid var(--gold-line);
  border-radius: 28px;
  background: var(--jade-850);
  box-shadow: var(--shadow);
}

.discipline-sheet > h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.discipline-sheet-scope { margin: 20px 0 0; color: var(--ivory-300); font-size: 13px; }
.sheet-stats { margin: 22px 0 32px; }
.sheet-heading { margin: 34px 0 14px; color: var(--gold-400); font-family: var(--display); font-size: 24px; font-weight: 600; }

.requirement-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.requirement-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(245, 241, 232, 0.07); }
.requirement-check { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(143, 194, 167, 0.32); border-radius: 50%; color: var(--good); font-size: 11px; }
.requirement-list strong { font-family: var(--display); font-size: 16px; }
.requirement-list p,
.tradition-note p { margin: 3px 0 0; color: var(--ivory-500); font-size: 11px; }
.tradition-note { padding: 16px; border-left: 2px solid var(--gold-500); background: rgba(201, 166, 104, 0.06); }
.tradition-note strong { font-family: var(--display); }
.source-list { display: grid; gap: 8px; }
.source-link { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(245, 241, 232, 0.07); text-decoration: none; }
.source-link:hover strong { color: var(--gold-400); }
.source-link strong { font-family: var(--display); font-size: 15px; }
.source-link span { color: var(--ivory-500); font-family: var(--utility); font-size: 8px; text-align: right; text-transform: uppercase; }

.oracle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-top: 34px;
}

.oracle-method-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin: 42px 0 18px; padding-top: 28px; border-top: 1px solid rgba(201, 166, 104, 0.16); }
.oracle-method-head:first-of-type { margin-top: 24px; }
.oracle-method-head h2 { margin: 0; font-family: var(--display); font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1; }
.oracle-method-head p:last-child { max-width: 720px; margin: 10px 0 0; color: var(--ivory-500); font-size: 11px; }
.tarot-method-head { margin-top: 78px; }
.geomancy-method-head { margin-top: 78px; }
.numerology-method-head { margin-top: 78px; }

.oracle-panel,
.oracle-guide {
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background: rgba(245, 241, 232, 0.035);
}

.oracle-panel { padding: 34px; }
.oracle-panel > label:not(.check-row) { display: block; margin: 22px 0 8px; color: var(--ivory-300); font-size: 12px; font-weight: 700; }

.oracle-panel textarea,
.oracle-panel select,
.oracle-panel input[type="text"],
.oracle-panel input[type="date"] {
  width: 100%;
  border: 1px solid rgba(201, 166, 104, 0.22);
  border-radius: 13px;
  background: rgba(5, 23, 18, 0.36);
  color: var(--ivory-100);
}

.oracle-panel textarea { min-height: 118px; resize: vertical; padding: 14px; line-height: 1.6; }
.oracle-panel select { min-height: 48px; padding: 0 12px; }
.oracle-panel input[type="text"],
.oracle-panel input[type="date"] { width: 100%; min-height: 48px; padding: 0 12px; }
.field-note,
.spread-note { margin: 7px 0 0; color: var(--ivory-500); font-size: 10px; }
.spread-note { min-height: 34px; }

.check-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 18px; color: var(--ivory-300); cursor: pointer; font-size: 11px; }
.check-row input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--gold-500); }
.limit-check { padding: 14px; border: 1px solid rgba(201, 166, 104, 0.16); border-radius: 12px; background: rgba(201, 166, 104, 0.05); }
.oracle-submit { width: 100%; }
.oracle-submit:disabled { cursor: wait; opacity: 0.55; }
.oracle-proof { display: flex; justify-content: center; gap: 9px; margin-top: 14px; color: var(--ivory-500); font-family: var(--utility); font-size: 8px; text-align: center; }

.oracle-guide { position: relative; overflow: hidden; padding: 34px 26px; background: linear-gradient(160deg, rgba(201, 166, 104, 0.11), rgba(245, 241, 232, 0.025)); }
.guide-mark { position: absolute; right: -10px; top: -24px; color: rgba(201, 166, 104, 0.12); font-family: var(--display); font-size: 130px; }
.oracle-guide ol { position: relative; margin: 50px 0 0; padding-left: 20px; color: var(--ivory-300); font-size: 12px; }
.oracle-guide li { margin-bottom: 18px; padding-left: 5px; }

.draw-section { margin-top: 62px; scroll-margin-top: 20px; }
.draw-loading { display: grid; min-height: 240px; place-items: center; border: 1px dashed var(--gold-line); border-radius: var(--radius-lg); color: var(--ivory-500); font-size: 12px; }
.draw-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 22px; }
.draw-head h2 { margin: 0; font-family: var(--display); font-size: clamp(35px, 5vw, 54px); font-weight: 500; line-height: 1; }
.draw-question { max-width: 620px; margin: 13px 0 0; color: var(--ivory-300); font-family: var(--display); font-size: 17px; font-style: italic; }
.draw-proof { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.draw-proof span { padding: 5px 8px; border: 1px solid rgba(143, 194, 167, 0.22); border-radius: 999px; color: var(--good); font-family: var(--utility); font-size: 7px; letter-spacing: 0.05em; text-transform: uppercase; }

.yi-result-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); gap: 12px; }
.yi-lines-panel,
.yi-hexagram-card { border: 1px solid rgba(201, 166, 104, 0.17); border-radius: 16px; background: rgba(245, 241, 232, 0.035); }
.yi-lines-panel { padding: 22px; }
.yi-line-row { display: grid; grid-template-columns: 92px 1fr; gap: 15px; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(245, 241, 232, 0.07); }
.yi-line-row:last-child { border-bottom: 0; }
.yi-line-row.is-moving { color: var(--gold-400); }
.yi-line-mark { display: flex; width: 78px; gap: 9px; }
.yi-line-mark i { display: block; height: 7px; flex: 1; border-radius: 99px; background: currentColor; }
.yi-line-copy strong { font-family: var(--utility); font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.yi-line-copy p { margin: 5px 0 0; color: var(--ivory-500); font-size: 10px; line-height: 1.5; }
.yi-hexagram-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.yi-hexagram-card { min-width: 0; padding: 22px; }
.yi-hexagram-head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; margin: 16px 0 22px; }
.yi-hexagram-symbol { color: var(--gold-400); font-family: var(--display); font-size: 54px; line-height: 1; }
.yi-hexagram-head small { color: var(--ivory-500); font-family: var(--utility); font-size: 7px; letter-spacing: 0.04em; text-transform: uppercase; }
.yi-hexagram-head h3 { margin: 5px 0 0; font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.1; }
.yi-source-label { display: block; margin-top: 17px; color: var(--gold-500); font-family: var(--utility); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.yi-source-text { margin: 7px 0 0; color: var(--ivory-300); font-family: var(--display); font-size: 13px; line-height: 1.65; white-space: pre-line; }
.yi-source-link { display: inline-flex; margin-top: 18px; color: var(--gold-400); font-family: var(--utility); font-size: 9px; text-decoration: none; }
.yi-source-link:hover { text-decoration: underline; }

.geomancy-stages { display: grid; gap: 12px; }
.geomancy-group { padding: 20px; border: 1px solid rgba(201, 166, 104, 0.17); border-radius: 16px; background: rgba(245, 241, 232, 0.035); }
.geomancy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.geomancy-figure { display: grid; min-width: 0; grid-template-columns: 50px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; padding: 13px; border: 1px solid rgba(245, 241, 232, 0.08); border-radius: 12px; background: rgba(8, 13, 12, 0.35); }
.geomancy-figure > small { grid-column: 2; color: var(--gold-500); font-family: var(--utility); font-size: 7px; letter-spacing: 0.06em; text-transform: uppercase; }
.geomancy-figure > strong { grid-column: 2; margin-top: 4px; overflow: hidden; font-family: var(--display); font-size: 17px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.geomancy-figure > span:last-child { grid-column: 2; margin-top: 2px; overflow: hidden; color: var(--ivory-500); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.geomancy-mark { display: grid; grid-row: 1 / 4; gap: 5px; width: 42px; justify-items: center; color: var(--gold-400); }
.geomancy-mark > i { display: flex; gap: 9px; min-height: 5px; align-items: center; }
.geomancy-mark b { display: block; width: 5px; height: 5px; border-radius: 999px; background: currentColor; box-shadow: 0 0 9px rgba(201, 166, 104, 0.22); }

.numerology-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.numerology-card { position: relative; display: flex; min-height: 190px; flex-direction: column; padding: 22px; overflow: hidden; border: 1px solid rgba(201, 166, 104, 0.17); border-radius: 16px; background: linear-gradient(145deg, rgba(201, 166, 104, 0.065), rgba(245, 241, 232, 0.025)); }
.numerology-card::after { position: absolute; right: -18px; bottom: -44px; color: rgba(201, 166, 104, 0.045); content: "數"; font-family: var(--display); font-size: 120px; }
.numerology-card small { position: relative; z-index: 1; color: var(--gold-500); font-family: var(--utility); font-size: 8px; letter-spacing: 0.09em; text-transform: uppercase; }
.numerology-card strong { position: relative; z-index: 1; margin: 18px 0 10px; color: var(--gold-400); font-family: var(--display); font-size: 58px; font-weight: 400; line-height: 0.9; }
.numerology-card span { position: relative; z-index: 1; color: var(--ivory-300); font-family: var(--utility); font-size: 9px; line-height: 1.5; }
.numerology-card em { position: relative; z-index: 1; margin-top: 8px; color: var(--danger); font-size: 9px; font-style: normal; }
.numerology-card p { position: relative; z-index: 1; margin: auto 0 0; padding-top: 18px; color: var(--ivory-500); font-size: 10px; }
.numerology-card.is-predominant strong { font-size: 42px; }
.numerology-audit { display: grid; gap: 7px; margin-top: 12px; padding: 20px; border: 1px solid rgba(143, 194, 167, 0.15); border-radius: 14px; background: rgba(143, 194, 167, 0.04); }
.numerology-audit p { margin: 0; color: var(--ivory-300); font-size: 10px; }
.numerology-audit code { overflow-wrap: anywhere; color: var(--ivory-500); font-family: var(--utility); font-size: 8px; line-height: 1.5; }

.tarot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tarot-grid.is-dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tarot-card {
  border: 1px solid rgba(201, 166, 104, 0.17);
  border-radius: 16px;
  background: rgba(245, 241, 232, 0.035);
}

.tarot-card[open] { border-color: rgba(201, 166, 104, 0.34); background: linear-gradient(145deg, rgba(201, 166, 104, 0.08), rgba(245, 241, 232, 0.025)); }
.tarot-card summary { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; min-height: 84px; padding: 13px; cursor: pointer; list-style: none; }
.tarot-card summary::-webkit-details-marker { display: none; }
.tarot-glyph { display: grid; width: 52px; aspect-ratio: 0.72; place-items: center; border: 1px solid var(--gold-line); border-radius: 9px; color: var(--gold-400); font-family: var(--display); font-size: 19px; }
.is-reversed .tarot-glyph { transform: rotate(180deg); }
.tarot-title { display: flex; min-width: 0; flex-direction: column; }
.tarot-title small { overflow: hidden; color: var(--ivory-500); font-family: var(--utility); font-size: 7px; letter-spacing: 0.06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.tarot-title strong { margin: 4px 0 2px; font-family: var(--display); font-size: 17px; line-height: 1.1; }
.tarot-title em { color: var(--gold-500); font-family: var(--utility); font-size: 8px; font-style: normal; text-transform: uppercase; }
.tarot-card-body { padding: 0 16px 16px; }
.tarot-card-body .visual-note { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(245, 241, 232, 0.07); color: var(--ivory-500); font-size: 10px; line-height: 1.55; }
.keyword-row { display: flex; flex-wrap: wrap; gap: 5px; }
.keyword-row span { padding: 4px 7px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-400); font-size: 9px; }
.tarot-card-body .reflection-note { margin: 12px 0 0; color: var(--ivory-300); font-size: 11px; }
.tarot-grid.is-dense .tarot-card summary { min-height: 70px; grid-template-columns: 42px 1fr; }
.tarot-grid.is-dense .tarot-glyph { width: 42px; }
.tarot-grid.is-dense .tarot-title strong { font-size: 14px; }
.draw-limit { display: grid; grid-template-columns: 130px 1fr; gap: 20px; margin-top: 22px; padding: 20px; border: 1px solid rgba(231, 163, 140, 0.18); border-radius: 14px; background: rgba(231, 163, 140, 0.055); }
.draw-limit strong { color: var(--danger); font-family: var(--utility); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.draw-limit p { margin: 0; color: var(--ivory-300); font-size: 11px; }

.synthesis-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 36px; }
.synthesis-flow article { min-height: 230px; padding: 22px; border: 1px solid rgba(201, 166, 104, 0.16); border-radius: var(--radius-md); background: rgba(245, 241, 232, 0.035); }
.synthesis-flow article > span { color: var(--gold-500); font-family: var(--display); font-size: 33px; }
.synthesis-flow h2 { margin: 32px 0 8px; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.1; }
.synthesis-flow p { margin: 0; color: var(--ivory-500); font-size: 10px; }

.synthesis-gate { display: grid; grid-template-columns: 120px 1fr; gap: 30px; align-items: center; margin-top: 30px; padding: 34px; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(201, 166, 104, 0.1), rgba(245, 241, 232, 0.025)); }
.gate-lock { display: grid; width: 106px; aspect-ratio: 1; place-items: center; border: 1px dashed var(--gold-line); border-radius: 50%; color: var(--gold-400); font-family: var(--display); font-size: 42px; }
.synthesis-gate h2 { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 500; }
.synthesis-gate p:last-child { margin: 10px 0 0; color: var(--ivory-500); font-size: 12px; }

@media (max-width: 1080px) {
  .hero-metrics > div { min-width: 105px; }
  .group-grid,
  .discipline-grid { grid-template-columns: 1fr; }
  .synthesis-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .main,
  .view,
  .hero-section,
  .hero-copy { min-width: 0; max-width: 100%; }
  .bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bottom-nav .nav-item { min-width: 0; overflow: hidden; }
  .bottom-nav .nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .atlas-hero { min-height: auto; }
  .atlas-hero h1 { max-width: 100%; font-size: clamp(38px, 12vw, 56px); overflow-wrap: anywhere; }
  .atlas-hero h1 em { overflow-wrap: anywhere; }
  .search-shell { width: 100%; min-width: 0; }
  .hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .hero-metrics > div { min-width: 0; padding-left: 8px; }
  .hero-metrics strong { font-size: 16px; }
  .hero-metrics span { font-size: 6px; }
  .group-card { grid-template-columns: 65px 1fr; min-height: 150px; gap: 14px; padding: 20px; }
  .group-symbol { width: 62px; font-size: 28px; }
  .group-card h3 { font-size: 21px; }
  .discipline-card { min-height: 340px; padding: 24px; }
  .discipline-native { right: 20px; font-size: 68px; }
  .discipline-card h3 { margin-top: 62px; font-size: 34px; }
  .discipline-dialog { width: calc(100vw - 18px); }
  .discipline-sheet { padding: 34px 20px 24px; }
  .source-link { display: block; }
  .source-link span { display: block; margin-top: 5px; text-align: left; }
  .oracle-layout { grid-template-columns: 1fr; }
  .oracle-panel { padding: 24px 20px; }
  .oracle-guide { min-height: 260px; }
  .draw-head { display: block; }
  .draw-proof { justify-content: flex-start; margin-top: 15px; }
  .tarot-grid,
  .tarot-grid.is-dense { grid-template-columns: 1fr; }
  .geomancy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numerology-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draw-limit { grid-template-columns: 1fr; gap: 6px; }
  .synthesis-flow { grid-template-columns: 1fr 1fr; }
  .synthesis-flow article { min-height: 200px; padding: 18px; }
  .synthesis-gate { grid-template-columns: 72px 1fr; gap: 17px; padding: 24px 18px; }
  .gate-lock { width: 68px; font-size: 30px; }
  .synthesis-gate h2 { font-size: 24px; }
}

@media (max-width: 390px) {
  .geomancy-grid { grid-template-columns: 1fr; }
  .numerology-grid { grid-template-columns: 1fr; }
  .synthesis-flow { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-metrics > div { display: grid; grid-template-columns: 74px 1fr; align-items: center; }
  .hero-metrics span { max-width: none; }
  .synthesis-gate { grid-template-columns: 1fr; }
}
