:root {
  color-scheme: light;
  --bg: #fbf6eb;
  --panel: #fffdf8;
  --panel-2: #f6ecd9;
  --panel-3: #fff8ea;
  --line: rgba(83, 57, 28, 0.16);
  --line-strong: rgba(179, 107, 30, 0.5);
  --text: #1d2635;
  --ink: #1d2635;
  --muted: #687386;
  --soft: #3e4858;
  --gold: #b66e1f;
  --gold-2: #d98a26;
  --gold-3: #7b421f;
  --red: #b9472c;
  --blue: #3f6ad8;
  --paper: #fffcf5;
  --paper-text: #27231d;
  --shadow: 0 24px 70px rgba(97, 68, 31, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ai-assistant {
  width: min(1180px, 100%);
  margin: 34px auto 0;
}

.ai-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(120, 80, 35, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(250, 239, 219, 0.82));
  box-shadow: 0 18px 44px rgba(93, 64, 28, 0.08);
}

.ai-status-card > div:first-child {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.ai-status-card strong,
.ai-status-card p {
  grid-column: 2;
}

.ai-status-card strong {
  color: var(--ink);
  font-size: 16px;
}

.ai-status-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.ai-status-dot {
  grid-row: 1 / span 2;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #9aa3ad;
  box-shadow: 0 0 0 6px rgba(154, 163, 173, 0.16);
}

.ai-status-card--ready .ai-status-dot {
  background: #3f9f6b;
  box-shadow: 0 0 0 6px rgba(63, 159, 107, 0.16);
}

.ai-status-card--blocked .ai-status-dot {
  background: #c76f2a;
  box-shadow: 0 0 0 6px rgba(199, 111, 42, 0.17);
}

.ai-small-button,
.ai-submit-button,
.ai-example-grid button {
  border: 1px solid rgba(120, 80, 35, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.88);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.ai-small-button {
  padding: 10px 16px;
}

.ai-small-button:hover,
.ai-example-grid button:hover,
.ai-submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(211, 134, 28, 0.45);
  background: #fff8e9;
}

.ai-setup-commands {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.ai-setup-commands span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-setup-commands code {
  padding: 7px 10px;
  border: 1px solid rgba(120, 80, 35, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #7f441b;
  font-size: 12px;
  font-weight: 850;
}

.ai-chat-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  margin-top: 22px;
}

.ai-question-panel,
.ai-answer-card,
.ai-empty-card {
  border: 1px solid rgba(120, 80, 35, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(230, 153, 42, 0.13), transparent 34%),
    rgba(255, 253, 247, 0.92);
  box-shadow: 0 18px 44px rgba(93, 64, 28, 0.08);
}

.ai-question-panel {
  padding: 22px;
}

.ai-form {
  display: grid;
  gap: 12px;
}

.ai-form label {
  color: var(--ink);
  font-weight: 900;
}

.ai-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  border: 1px solid rgba(120, 80, 35, 0.18);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  line-height: 1.55;
}

.ai-form textarea:disabled {
  color: var(--muted);
  background: rgba(245, 236, 219, 0.64);
  cursor: not-allowed;
}

.ai-submit-button {
  justify-self: start;
  padding: 13px 20px;
  background: linear-gradient(135deg, #ed9b28, #c97615);
  color: #1d1308;
  border-color: rgba(133, 72, 8, 0.32);
}

.ai-submit-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.ai-example-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ai-example-grid button {
  padding: 12px 14px;
  text-align: left;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.72);
}

.ai-privacy-note,
.ai-error {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.ai-privacy-note {
  color: var(--muted);
  font-weight: 700;
}

.ai-error {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(190, 75, 45, 0.1);
  color: #8a321f;
  font-weight: 850;
}

.ai-answer-panel {
  min-width: 0;
}

.ai-answer-card,
.ai-empty-card {
  padding: 24px;
  min-height: 390px;
}

.ai-empty-card h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
}

.ai-empty-card p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.65;
}

.ai-answer-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(120, 80, 35, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-answer-text {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.68;
}

.ai-answer-text p {
  margin: 0 0 14px;
}

.ai-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.ai-citations span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid rgba(120, 80, 35, 0.14);
  border-radius: 999px;
  background: rgba(255, 248, 233, 0.8);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.ai-citations em {
  color: var(--muted);
  font-style: normal;
}

.ai-source-drawer {
  margin-top: 14px;
  border: 1px solid rgba(120, 80, 35, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
}

.ai-source-drawer summary {
  cursor: pointer;
  padding: 13px 16px;
  color: #7f441b;
  font-weight: 900;
}

.ai-source-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.ai-source-list article {
  padding: 13px;
  border-radius: 16px;
  background: rgba(250, 239, 219, 0.52);
}

.ai-source-list strong,
.ai-source-list span {
  display: block;
}

.ai-source-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.ai-source-list p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .ai-status-card,
  .ai-chat-grid {
    grid-template-columns: 1fr;
  }

  .ai-small-button,
  .ai-submit-button {
    width: 100%;
  }

  .ai-answer-heading {
    display: grid;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -12%, rgba(223, 161, 46, 0.28), transparent 35%),
    linear-gradient(180deg, #fffaf0 0%, #f7ecd9 42%, #fbf6eb 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(83, 57, 28, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(83, 57, 28, 0.045) 1px, transparent 1px);
  background-size: 120px 120px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 28px 30px 22px;
  background: rgba(255, 253, 247, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(116, 65, 21, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 244, 197, 0.92), transparent 28%),
    conic-gradient(from 218deg, #a85d1e, #e79a31, #f1be52, #c57424, #a85d1e);
  box-shadow: 0 16px 34px rgba(168, 93, 30, 0.2);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #20150a;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-word strong {
  color: var(--gold-3);
  background: linear-gradient(135deg, #d98a26, #9c541d);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tab-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.76);
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 11px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-tab:hover,
.nav-tab:focus-visible {
  color: #1d2635;
  border-color: var(--line);
  outline: none;
}

.nav-tab.active {
  color: #1c1308;
  background: linear-gradient(135deg, #e99f34, #cf7924);
  box-shadow: 0 15px 32px rgba(210, 119, 31, 0.18);
}

.icon,
.target-icon {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.stack-icon::before,
.stack-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  width: 13px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: rotate(26deg) skew(-18deg);
}

.stack-icon::before {
  top: 1px;
}

.stack-icon::after {
  top: 7px;
  opacity: 0.65;
}

.cube-icon {
  border: 2px solid currentColor;
  transform: rotate(45deg);
  border-radius: 3px;
}

.target-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.target-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.flame-small::before {
  content: "";
  position: absolute;
  inset: 2px 4px 1px;
  border: 2px solid currentColor;
  border-radius: 60% 60% 60% 20%;
  transform: rotate(-35deg);
}

.attire-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 9px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 8px 8px 3px 3px;
}

.attire-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 13px;
  height: 7px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.calendar-icon {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 1px;
  right: 1px;
  border-top: 2px solid currentColor;
}

.clock-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.clock-icon::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 5px;
  left: 7px;
  top: 3px;
  background: currentColor;
}

.clock-icon::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 2px;
  left: 7px;
  top: 8px;
  background: currentColor;
}

.book-icon {
  border: 2px solid currentColor;
  border-radius: 2px;
}

.book-icon::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 4px;
  border-left: 2px solid currentColor;
}

.chat-icon {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.chat-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -5px;
  border-width: 5px 4px 0 0;
  border-style: solid;
  border-color: currentColor transparent transparent transparent;
}

main {
  min-height: calc(100vh - 98px);
}

.view-panel {
  display: none;
  scroll-margin-top: 150px;
  padding: 54px 24px 86px;
}

.view-panel.active {
  display: block;
}

.hero-copy,
.section-intro,
.map-hero {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1,
.section-intro h1,
.map-hero h1 {
  margin: 8px 0 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  color: #1d2635;
  text-shadow: 0 12px 34px rgba(140, 91, 26, 0.12);
}

.section-intro h1,
.map-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
}

.hero-copy p,
.section-intro p,
.map-hero p {
  margin: 0 auto;
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 650;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(223, 161, 46, 0.4);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(223, 161, 46, 0.09);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 36px;
  padding: 0 24px;
  border: 1px solid rgba(223, 161, 46, 0.27);
  border-radius: 999px;
  color: #c99a3e;
  background: rgba(223, 161, 46, 0.05);
  cursor: pointer;
  font-weight: 900;
}

.hint-pill .target-icon {
  width: 18px;
  height: 18px;
}

.phase-list {
  display: grid;
  gap: 64px;
  max-width: 1120px;
  margin: 76px auto 0;
}

.phase-section {
  text-align: center;
}

.phase-section h2 {
  margin: 8px 0 18px;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.05;
}

.phase-summary {
  max-width: 820px;
  margin: 0 auto 30px;
  padding: 24px 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.82);
  color: var(--soft);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.article-card-grid {
  display: grid;
  align-items: stretch;
  justify-content: center;
  justify-items: center;
  gap: 22px;
}

.article-card-grid--outer,
.article-card-grid--most {
  grid-template-columns: minmax(210px, 260px);
}

.article-card-grid--holy {
  grid-template-columns: repeat(2, minmax(210px, 260px));
  gap: 24px 38px;
}

.article-card-grid--holy .article-card:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 260px);
}

.article-card {
  display: grid;
  width: 100%;
  min-height: 214px;
  place-items: center;
  padding: 24px 22px;
  border: 1px solid rgba(132, 91, 41, 0.08);
  border-radius: 24px;
  color: var(--text);
  background: rgba(255, 253, 247, 0.66);
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(117, 80, 34, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(223, 161, 46, 0.55);
  background: rgba(255, 253, 247, 0.86);
  outline: none;
}

.article-card h3 {
  margin: 16px 0 8px;
  font-size: 16px;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
}

.card-symbol {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 14px;
  color: #fff9ed;
  background: var(--symbol-bg, linear-gradient(135deg, #d89a2e, #95571d));
  font-size: 27px;
  font-weight: 900;
}

.card-symbol svg {
  width: 33px;
  height: 33px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-help {
  display: grid;
  gap: 5px;
  max-width: 720px;
  margin: 16px auto 30px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.8);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.control-help strong {
  color: var(--gold);
}

.map-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: start;
  gap: 16px;
  position: relative;
  width: min(1420px, calc(100vw - 48px));
  margin: 0 auto;
}

.map-scene-column {
  min-width: 0;
}

.scene-frame {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(132, 91, 41, 0.22);
  border-radius: 30px;
  background: #d8b176;
  box-shadow: var(--shadow), 0 0 0 1px rgba(223, 161, 46, 0.13);
}

#sanctuary-canvas {
  display: block;
  width: 100%;
  height: clamp(400px, 40vw, 520px);
  min-height: 400px;
  cursor: grab;
  touch-action: none;
}

#sanctuary-canvas:active {
  cursor: grabbing;
}

.scene-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.scene-toolbar--primary {
  align-items: center;
}

.scene-orbit-pad {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 38px);
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(104, 66, 26, 0.18);
  border-radius: 18px;
  background: rgba(255, 248, 235, 0.78);
  box-shadow: 0 16px 36px rgba(62, 39, 16, 0.16);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.scene-frame--guided .scene-orbit-pad {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  visibility: hidden;
}

.scene-orbit-button,
.scene-orbit-center {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  line-height: 1;
}

.scene-orbit-button {
  border: 1px solid rgba(117, 80, 34, 0.18);
  color: #253044;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 8px 18px rgba(117, 80, 34, 0.08);
  cursor: pointer;
  font-size: 20px;
  font-weight: 950;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.scene-orbit-button:hover,
.scene-orbit-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(213, 140, 38, 0.62);
  background: #fffaf0;
  outline: none;
}

.scene-orbit-button:active {
  transform: translateY(0) scale(0.97);
}

.scene-orbit-center {
  border: 1px solid rgba(157, 92, 21, 0.22);
  color: #7a4a18;
  background: rgba(255, 240, 210, 0.72);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.scene-control-dock {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(104, 66, 26, 0.18);
  border-radius: 24px;
  background: rgba(255, 248, 235, 0.78);
  box-shadow: 0 18px 42px rgba(62, 39, 16, 0.18);
  backdrop-filter: blur(12px);
}

.scene-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.scene-control-group + .scene-control-group {
  padding-top: 12px;
  border-top: 1px solid rgba(117, 80, 34, 0.14);
}

.scene-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(117, 80, 34, 0.2);
  border-radius: 999px;
  padding: 0 11px;
  color: #253044;
  background: rgba(255, 253, 247, 0.78);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.scene-chip:hover,
.scene-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(213, 140, 38, 0.62);
  outline: none;
}

.scene-chip.active,
.scene-chip--path.active {
  border-color: rgba(157, 92, 21, 0.45);
  color: #1c1106;
  background: linear-gradient(135deg, #e69c2a, #bf7620);
  box-shadow: 0 8px 18px rgba(157, 92, 21, 0.18);
}

.scene-chip--stop {
  color: #7a3422;
}

@media (min-width: 1061px) {
  .scene-control-dock {
    position: sticky;
    top: 118px;
    max-height: 520px;
    overflow: auto;
  }

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

  .scene-control-group--paths {
    grid-template-columns: 1fr;
  }

  .scene-chip {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
  }
}

.tool-button,
.article-link {
  min-height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  color: #221407;
  background: rgba(255, 244, 224, 0.9);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.scene-path-caption {
  position: relative;
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  width: min(720px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(157, 92, 21, 0.24);
  border-radius: 18px;
  color: #2a3447;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 16px 42px rgba(62, 39, 16, 0.17);
  text-align: center;
  backdrop-filter: blur(14px);
}

.scene-path-caption[hidden] {
  display: none;
}

.scene-path-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0 10px;
}

.scene-path-copy em {
  color: #a05a18;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scene-path-caption strong {
  color: #9b5a16;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.scene-path-text {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 560;
  line-height: 1.55;
}

.scene-path-caption small {
  color: #8f5520;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scene-path-arrow {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(157, 92, 21, 0.22);
  border-radius: 999px;
  color: #263247;
  background: rgba(255, 248, 234, 0.95);
  box-shadow: 0 8px 20px rgba(62, 39, 16, 0.12);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.scene-path-arrow:hover:not(:disabled) {
  border-color: rgba(157, 92, 21, 0.42);
  background: #f1d394;
}

.scene-path-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.scene-tooltip {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  border: 1px solid rgba(179, 107, 30, 0.24);
  border-radius: 12px;
  padding: 9px 12px;
  color: #1d2635;
  background: rgba(255, 248, 234, 0.94);
  box-shadow: 0 18px 40px rgba(102, 72, 32, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.ministry-hub {
  max-width: 1220px;
  margin: 0 auto;
}

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

.ministry-switch-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  border: 1px solid rgba(150, 100, 43, 0.17);
  border-radius: 24px;
  padding: 16px 18px;
  color: #2a3447;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(255, 246, 229, 0.78)),
    radial-gradient(circle at 92% 12%, rgba(220, 145, 43, 0.14), transparent 34%);
  box-shadow: 0 16px 40px rgba(93, 61, 25, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ministry-switch-card:hover,
.ministry-switch-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(201, 124, 31, 0.42);
  outline: none;
  box-shadow: 0 20px 46px rgba(93, 61, 25, 0.12);
}

.ministry-switch-card.active {
  border-color: rgba(154, 85, 17, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 239, 204, 0.96), rgba(255, 248, 232, 0.86)),
    radial-gradient(circle at 92% 12%, rgba(220, 145, 43, 0.26), transparent 35%);
  box-shadow: 0 20px 48px rgba(202, 123, 29, 0.16);
}

.ministry-switch-card .ministry-icon {
  position: relative;
  grid-row: span 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(121, 65, 17, 0.12);
  border-radius: 17px;
  color: #fffaf1;
  background: linear-gradient(135deg, #eaa23a, #c67520);
  box-shadow: 0 12px 28px rgba(195, 113, 25, 0.2);
}

.ministry-switch-card .ministry-icon::before,
.ministry-switch-card .ministry-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.ministry-icon--sacrifices::before {
  width: 17px;
  height: 23px;
  border: 3px solid currentColor;
  border-top-color: transparent;
  border-radius: 58% 58% 62% 22%;
  transform: rotate(-34deg);
}

.ministry-icon--sacrifices::after {
  width: 7px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 58% 58% 62% 22%;
  transform: translate(3px, 4px) rotate(-34deg);
  opacity: 0.82;
}

.ministry-icon--specialCeremonies::before,
.ministry-icon--specialCeremonies::after {
  left: 14px;
  width: 25px;
  height: 15px;
  border: 3px solid currentColor;
  border-radius: 5px;
  transform: rotate(27deg) skew(-18deg);
}

.ministry-icon--specialCeremonies::before {
  top: 14px;
}

.ministry-icon--specialCeremonies::after {
  top: 23px;
  opacity: 0.64;
}

.ministry-icon--services::before {
  width: 25px;
  height: 25px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.ministry-icon--services::after {
  left: 26px;
  top: 15px;
  width: 3px;
  height: 17px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: -7px 9px 0 -1px currentColor;
  transform: rotate(-35deg);
  transform-origin: bottom center;
}

.ministry-switch-card strong,
.ministry-switch-card small {
  display: block;
}

.ministry-switch-card strong {
  align-self: end;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.1;
}

.ministry-switch-card small {
  align-self: start;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.35;
}

.ministry-panel {
  padding-top: 8px;
}

.ministry-subintro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ministry-subintro h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
}

.ministry-subintro p:last-child {
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  font-weight: 560;
  line-height: 1.55;
}

.offering-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 46px auto 48px;
}

.offering-tabs button {
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 28px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.72);
  cursor: pointer;
  font-weight: 900;
}

.offering-tabs button.active {
  color: #1d1208;
  background: linear-gradient(135deg, #e9a036, #cf7624);
  box-shadow: 0 18px 42px rgba(216, 128, 32, 0.22);
}

.offering-detail {
  max-width: 1130px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.offering-detail header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.offering-detail h2 {
  margin: 6px 0 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
}

.offering-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(223, 161, 46, 0.35);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.offering-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 22px;
  color: var(--gold);
  background: rgba(179, 107, 30, 0.09);
  font-size: 34px;
}

.source-line {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offering-summary {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.55;
}

.offering-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.offering-columns article,
.service-study-card,
.service-flow section,
.service-typology,
.feast-detail,
.feast-grid section,
.focus-panel,
.ai-placeholder {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 18px 50px rgba(102, 72, 32, 0.1);
}

.offering-columns h3,
.offering-ritual h3,
.source-insights h3,
.service-flow h3,
.service-typology h3,
.feast-grid h3 {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 20px;
}

.offering-columns p,
.ritual-grid p,
.source-insight-grid p,
.service-study-card p,
.service-flow p,
.service-typology p,
.feast-detail p,
.focus-panel p,
.ai-placeholder p {
  margin: 0;
  color: var(--soft);
  font-size: 15.5px;
  font-weight: 540;
  line-height: 1.55;
}

.offering-ritual,
.source-insights {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px 32px;
  background: rgba(223, 161, 46, 0.045);
}

.offering-ritual {
  background: linear-gradient(145deg, rgba(255, 249, 232, 0.95), rgba(246, 228, 195, 0.72));
}

.source-insights {
  background: rgba(255, 253, 247, 0.86);
}

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

.ritual-grid article,
.source-insight-grid article {
  border: 1px solid rgba(179, 107, 30, 0.16);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 253, 247, 0.88);
}

.ritual-grid strong,
.source-insight-grid span {
  display: block;
  margin-bottom: 10px;
  color: #7b421f;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 900;
}

.source-insight-grid span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid rgba(179, 107, 30, 0.28);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-insight-grid blockquote {
  margin: 2px 0 12px;
  border-left: 2px solid rgba(179, 107, 30, 0.42);
  padding-left: 13px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: 16.5px;
  font-style: italic;
  font-weight: 650;
  line-height: 1.45;
}

.source-insight-grid article p {
  color: #3e4858;
  font-weight: 500;
}

.scholar-note {
  margin: 30px 0 0;
  border-left: 3px solid var(--gold);
  border-radius: 20px;
  padding: 24px 28px;
  color: #273044;
  background: #fff7e7;
  font-family: var(--serif);
  font-size: 17px;
  font-style: normal;
  font-weight: 540;
  line-height: 1.55;
}

.scholar-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scholar-note p {
  margin: 0;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  font-weight: 650;
  line-height: 1.48;
}

.scholar-note cite {
  display: block;
  margin-top: 14px;
  color: #704323;
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scholar-note cite a {
  color: inherit;
  text-decoration: none;
}

.scholar-note cite a:hover {
  color: var(--gold);
}

.scholar-note small {
  display: block;
  margin-top: 14px;
  color: #3e4858;
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 520;
  line-height: 1.55;
}

.scholar-quote-list {
  display: grid;
  gap: 14px;
}

.scholar-quote-list figure {
  margin: 0;
  border: 1px solid rgba(179, 107, 30, 0.18);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(255, 253, 247, 0.7);
}

.scholar-quote-list blockquote {
  margin: 0;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(16.5px, 1.8vw, 20px);
  font-style: italic;
  font-weight: 650;
  line-height: 1.45;
}

.scholar-quote-list figcaption {
  margin-top: 10px;
  color: #704323;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.scholar-note .scholar-quote-list p {
  margin: 10px 0 0;
  color: #3e4858;
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.55;
}

.service-study-list {
  display: grid;
  gap: 34px;
  max-width: 1180px;
  margin: 50px auto 0;
}

.service-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  max-width: 640px;
  margin: 44px auto 34px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.76);
}

.service-tabs button {
  flex: 1 1 0;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.service-tabs button.active {
  color: #1d1208;
  background: linear-gradient(135deg, #e9a036, #cf7624);
  box-shadow: 0 18px 42px rgba(216, 128, 32, 0.2);
}

.service-study-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px;
}

.service-study-card > header {
  max-width: 980px;
  margin-bottom: 30px;
}

.service-study-card h2,
.focus-panel h2,
.ai-placeholder h2 {
  display: block;
  margin: 10px 0 12px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: 23px;
}

.service-study-card h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.service-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 28px;
  align-items: start;
}

.service-flow {
  display: grid;
  gap: 18px;
}

.service-flow section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 15px;
}

.service-flow span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #1d1208;
  background: var(--gold);
  font-weight: 950;
}

.service-flow h4,
.service-typology h4 {
  margin: 0 0 8px;
  color: #1d2635;
  font-size: 17px;
}

.service-typology {
  background: linear-gradient(145deg, #fff7e7, #f1e0c2);
  border-color: rgba(179, 107, 30, 0.28);
  box-shadow: 0 22px 70px rgba(102, 72, 32, 0.16);
}

.service-typology div {
  margin-top: 22px;
}

.step-number {
  color: var(--gold);
  font-size: 34px;
  font-weight: 950;
}

.attire-module {
  max-width: 1220px;
  margin: 46px auto 0;
}

.attire-intro-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 32px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(255, 244, 222, 0.78)),
    radial-gradient(circle at top left, rgba(223, 161, 46, 0.16), transparent 38%);
  box-shadow: 0 22px 70px rgba(102, 72, 32, 0.12);
}

.attire-intro-card h2 {
  margin: 10px 0 0;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.attire-intro-card p {
  margin: 0;
  color: #3e4858;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.65;
}

.attire-toggle-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.attire-toggle-row button {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  color: #4a5566;
  background: rgba(255, 253, 247, 0.82);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 16px 45px rgba(102, 72, 32, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.attire-toggle-row button:hover,
.attire-toggle-row button:focus-visible {
  border-color: rgba(179, 107, 30, 0.38);
  outline: none;
  transform: translateY(-2px);
}

.attire-toggle-row button.active {
  color: #201408;
  border-color: rgba(179, 107, 30, 0.45);
  background: linear-gradient(135deg, rgba(239, 166, 54, 0.96), rgba(222, 136, 38, 0.9));
  box-shadow: 0 18px 48px rgba(210, 119, 31, 0.22);
}

.attire-toggle-row strong,
.attire-toggle-row span {
  display: block;
}

.attire-toggle-row strong {
  font-size: 15px;
  font-weight: 950;
}

.attire-toggle-row span {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 560;
  line-height: 1.42;
}

.attire-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 28px;
  align-items: start;
}

.attire-wardrobe-card,
.attire-detail-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 24px 72px rgba(102, 72, 32, 0.12);
}

.attire-wardrobe-card {
  padding: 24px;
  overflow: hidden;
}

.attire-wardrobe-heading {
  margin-bottom: 18px;
}

.attire-wardrobe-heading span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.attire-wardrobe-heading h2 {
  margin: 6px 0 8px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: 28px;
}

.attire-wardrobe-heading p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
  font-weight: 520;
}

.attire-wardrobe-body {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(230px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.attire-figure {
  position: relative;
  --attire-person-y: 34px;
  --attire-person-scale: 1.16;
  display: grid;
  min-height: 650px;
  place-items: center;
  border: 1px solid rgba(179, 107, 30, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 48%, rgba(223, 161, 46, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(247, 230, 198, 0.46), rgba(255, 253, 247, 0.92)),
    repeating-linear-gradient(90deg, rgba(179, 107, 30, 0.035) 0 1px, transparent 1px 70px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.attire-figure::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 68px;
  width: 210px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(105, 68, 25, 0.18), transparent 68%);
}

.attire-selected-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  max-width: calc(100% - 36px);
  border: 1px solid color-mix(in srgb, var(--active-garment-accent), #6c3e15 24%);
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 14px 38px rgba(102, 72, 32, 0.1);
}

.attire-selected-chip span,
.attire-selected-chip strong {
  display: block;
}

.attire-selected-chip span {
  color: #7c4a20;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.attire-selected-chip strong {
  margin-top: 3px;
  color: #1d2635;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.attire-person {
  position: relative;
  z-index: 1;
  width: 310px;
  height: 456px;
  transform: translateY(var(--attire-person-y)) scale(var(--attire-person-scale));
  transform-origin: center center;
}

.attire-person > span {
  position: absolute;
  display: block;
}

.attire-person__halo {
  left: 82px;
  top: 14px;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 161, 46, 0.12), transparent 68%);
}

.attire-person__head {
  left: 128px;
  top: 57px;
  z-index: 5;
  width: 54px;
  height: 66px;
  border-radius: 48% 48% 42% 42%;
  background:
    radial-gradient(circle at 32% 34%, rgba(255, 207, 160, 0.16), transparent 20%),
    linear-gradient(180deg, #a96d40, #84502f);
  box-shadow: inset 6px 0 12px rgba(255, 255, 255, 0.14), inset -8px 0 12px rgba(55, 30, 17, 0.12);
}

.attire-person__face {
  left: 140px;
  top: 80px;
  z-index: 6;
  width: 30px;
  height: 23px;
  background:
    radial-gradient(circle at 8px 4px, rgba(38, 22, 13, 0.78) 0 1.7px, transparent 2.4px),
    radial-gradient(circle at 22px 4px, rgba(38, 22, 13, 0.78) 0 1.7px, transparent 2.4px),
    radial-gradient(ellipse at 15px 17px, rgba(58, 31, 19, 0.5) 0 6px, transparent 7px),
    linear-gradient(90deg, transparent 0 13px, rgba(84, 45, 24, 0.32) 13px 17px, transparent 17px);
}

.attire-person__beard {
  left: 130px;
  top: 102px;
  z-index: 6;
  width: 50px;
  height: 31px;
  border-radius: 14px 14px 52% 52%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(44, 24, 15, 0.9) 0 54%, transparent 56%),
    linear-gradient(180deg, rgba(82, 48, 29, 0.94), rgba(50, 29, 18, 0.9));
  clip-path: polygon(8% 0, 92% 0, 78% 100%, 22% 100%);
}

.attire-person__neck {
  left: 141px;
  top: 116px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #7e4e2d, #965f36);
}

.attire-person__turban {
  left: 104px;
  top: 24px;
  z-index: 7;
  width: 102px;
  height: 46px;
  border-radius: 50% 50% 16px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 45%),
    repeating-linear-gradient(0deg, #fff8eb 0 7px, #eadcc5 7px 10px);
  box-shadow: inset 0 -6px 0 rgba(123, 83, 43, 0.12), 0 5px 14px rgba(80, 52, 18, 0.12);
}

.attire-person__plate {
  left: 125px;
  top: 45px;
  z-index: 8;
  width: 60px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c78416, #f5d46e, #b06b0f);
}

.attire-person__shoulders {
  left: 58px;
  top: 128px;
  z-index: 1;
  width: 194px;
  height: 70px;
  border-radius: 72px 72px 24px 24px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.18), transparent 44%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 24% 72%, rgba(0, 0, 0, 0.14)),
    linear-gradient(180deg, #3e78b6, #2d5f96);
  box-shadow: 0 14px 26px rgba(70, 55, 40, 0.12);
}

.attire-person__arm {
  top: 168px;
  z-index: 0;
  width: 38px;
  height: 182px;
  border-radius: 24px 24px 21px 21px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 50%, rgba(0, 0, 0, 0.08)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, 0.07) 22px 24px),
    linear-gradient(180deg, #356ca7, #234e80);
  box-shadow: inset -7px 0 14px rgba(0, 0, 0, 0.11);
}

.attire-person__arm--left {
  left: 39px;
  transform: rotate(8deg);
}

.attire-person__arm--right {
  right: 39px;
  transform: rotate(-8deg);
}

.attire-person__hand {
  top: 342px;
  z-index: 2;
  width: 25px;
  height: 23px;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 70% 34%, rgba(255, 215, 168, 0.18), transparent 24%),
    linear-gradient(180deg, #a3683d, #83512f);
}

.attire-person__hand--left {
  left: 42px;
}

.attire-person__hand--right {
  right: 42px;
}

.attire-person__inner-tunic {
  left: 94px;
  top: 138px;
  z-index: 2;
  width: 122px;
  height: 268px;
  border-radius: 38px 38px 24px 24px;
  clip-path: polygon(16% 0, 84% 0, 95% 100%, 5% 100%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(247, 235, 211, 0.96) 32%, rgba(217, 199, 165, 0.9) 70%, rgba(255, 255, 255, 0.44)),
    repeating-linear-gradient(0deg, rgba(116, 83, 43, 0.08) 0 1px, transparent 1px 18px);
  box-shadow: inset 10px 0 18px rgba(255, 255, 255, 0.4), inset -12px 0 22px rgba(104, 73, 36, 0.12);
}

.attire-person__robe {
  left: 60px;
  top: 137px;
  z-index: 2;
  width: 190px;
  height: 272px;
  border-radius: 58px 58px 28px 28px;
  clip-path: polygon(15% 0, 85% 0, 95% 100%, 5% 100%);
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 22% 72%, rgba(0, 0, 0, 0.15)),
    repeating-linear-gradient(90deg, #3f7cb9 0 24px, #356da8 24px 30px, #2a5b91 30px 40px);
  box-shadow: inset 16px 0 24px rgba(255, 255, 255, 0.17), inset -20px 0 26px rgba(0, 0, 0, 0.16), 0 20px 36px rgba(65, 60, 55, 0.16);
}

.attire-person__ephod {
  left: 87px;
  top: 151px;
  z-index: 3;
  width: 136px;
  height: 212px;
  border-radius: 26px 26px 16px 16px;
  clip-path: polygon(12% 0, 88% 0, 96% 100%, 4% 100%);
  background:
    linear-gradient(90deg, rgba(201, 81, 58, 0.88) 0 25%, rgba(111, 61, 131, 0.9) 25% 50%, rgba(43, 91, 142, 0.9) 50% 74%, rgba(232, 198, 118, 0.94) 74%),
    repeating-linear-gradient(0deg, rgba(255, 239, 185, 0.16) 0 1px, transparent 1px 17px),
    linear-gradient(180deg, rgba(245, 227, 169, 0.34), transparent);
  border: 2px solid rgba(169, 112, 38, 0.72);
  box-shadow: inset 0 0 0 4px rgba(255, 235, 173, 0.16), 0 14px 28px rgba(73, 51, 28, 0.12);
}

.attire-person__ephod::after {
  content: "";
  position: absolute;
  inset: 12px 18px auto;
  height: 156px;
  border: 1px solid rgba(245, 211, 118, 0.3);
  border-radius: 18px 18px 12px 12px;
  box-shadow: inset 0 0 16px rgba(255, 246, 201, 0.12);
}

.attire-person__ephod-strap {
  top: 136px;
  z-index: 5;
  width: 22px;
  height: 104px;
  border-radius: 999px 999px 20px 20px;
  background:
    linear-gradient(180deg, rgba(246, 214, 125, 0.62), transparent 36%),
    linear-gradient(180deg, #9c602c, #d8a246 58%, #79512a);
  box-shadow: 0 8px 18px rgba(74, 50, 25, 0.16);
}

.attire-person__ephod-strap--left {
  left: 92px;
  transform: rotate(7deg);
}

.attire-person__ephod-strap--right {
  right: 92px;
  transform: rotate(-7deg);
}

.attire-person__shoulder-stone {
  top: 136px;
  z-index: 8;
  width: 25px;
  height: 15px;
  border: 2px solid #b27a21;
  border-radius: 999px;
  background: linear-gradient(135deg, #252727, #e0d6be 42%, #1e2324);
  box-shadow: 0 4px 10px rgba(80, 52, 18, 0.22);
}

.attire-person__shoulder-stone--left {
  left: 88px;
}

.attire-person__shoulder-stone--right {
  right: 88px;
}

.attire-person__breastplate {
  left: 113px;
  top: 185px;
  z-index: 6;
  width: 84px;
  height: 84px;
  border: 3px solid #c8972d;
  border-radius: 13px;
  background:
    radial-gradient(circle at 18% 14%, #b83b3b 0 7px, transparent 8px),
    radial-gradient(circle at 50% 14%, #f1c34c 0 7px, transparent 8px),
    radial-gradient(circle at 82% 14%, #2d6fb2 0 7px, transparent 8px),
    radial-gradient(circle at 18% 38%, #5a985a 0 7px, transparent 8px),
    radial-gradient(circle at 50% 38%, #7444a7 0 7px, transparent 8px),
    radial-gradient(circle at 82% 38%, #c96a3d 0 7px, transparent 8px),
    radial-gradient(circle at 18% 62%, #2d8ca2 0 7px, transparent 8px),
    radial-gradient(circle at 50% 62%, #e8d68a 0 7px, transparent 8px),
    radial-gradient(circle at 82% 62%, #7c4d31 0 7px, transparent 8px),
    radial-gradient(circle at 18% 86%, #d05275 0 7px, transparent 8px),
    radial-gradient(circle at 50% 86%, #4b6cc2 0 7px, transparent 8px),
    radial-gradient(circle at 82% 86%, #73a24a 0 7px, transparent 8px),
    linear-gradient(90deg, transparent 32%, rgba(74, 55, 34, 0.22) 32% 34%, transparent 34% 66%, rgba(74, 55, 34, 0.22) 66% 68%, transparent 68%),
    linear-gradient(0deg, transparent 24%, rgba(74, 55, 34, 0.22) 24% 26%, transparent 26% 49%, rgba(74, 55, 34, 0.22) 49% 51%, transparent 51% 74%, rgba(74, 55, 34, 0.22) 74% 76%, transparent 76%),
    linear-gradient(135deg, #e8ca63, #b98a2d);
  box-shadow: inset 0 0 0 4px rgba(255, 243, 185, 0.34), 0 8px 20px rgba(80, 52, 18, 0.24);
}

.attire-person__urim-thummim {
  left: 128px;
  top: 174px;
  z-index: 9;
  width: 54px;
  height: 18px;
  border: 2px solid rgba(210, 154, 45, 0.84);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 50%, #fffdf1 0 7px, rgba(243, 207, 85, 0.95) 8px, transparent 10px),
    radial-gradient(circle at 70% 50%, #f8fbff 0 7px, rgba(115, 175, 212, 0.95) 8px, transparent 10px),
    linear-gradient(180deg, rgba(255, 248, 214, 0.96), rgba(190, 131, 36, 0.7));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    0 7px 16px rgba(86, 54, 18, 0.2);
}

.attire-person__breastplate-cords {
  left: 101px;
  top: 171px;
  z-index: 5;
  width: 108px;
  height: 108px;
  border: 2px solid rgba(218, 174, 66, 0.68);
  border-radius: 18px;
  background:
    linear-gradient(45deg, transparent 0 47%, rgba(229, 187, 73, 0.52) 48% 51%, transparent 52%),
    linear-gradient(-45deg, transparent 0 47%, rgba(229, 187, 73, 0.52) 48% 51%, transparent 52%);
  opacity: 0.65;
}

.attire-person__sash {
  left: 79px;
  top: 300px;
  z-index: 7;
  width: 152px;
  height: 19px;
  border: 1px solid rgba(139, 73, 25, 0.42);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 242, 188, 0.24) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 48%, rgba(78, 42, 23, 0.18)),
    linear-gradient(90deg, #c9573a, #753a7b, #315d92, #deb054);
  box-shadow: 0 7px 14px rgba(80, 52, 18, 0.14);
}

.attire-person__sash::before,
.attire-person__sash::after {
  content: "";
  position: absolute;
  display: block;
}

.attire-person__sash::before {
  left: 63px;
  top: -5px;
  width: 28px;
  height: 29px;
  border: 1px solid rgba(121, 66, 28, 0.38);
  border-radius: 9px;
  background:
    radial-gradient(circle at 45% 42%, rgba(255, 239, 183, 0.28), transparent 46%),
    linear-gradient(90deg, #b14f35, #694181 46%, #285b91 72%, #d0a34d);
  box-shadow: 0 8px 14px rgba(80, 52, 18, 0.14);
}

.attire-person__sash::after {
  left: 86px;
  top: 18px;
  width: 22px;
  height: 82px;
  border-radius: 0 0 12px 12px;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
  background:
    repeating-linear-gradient(0deg, rgba(255, 242, 188, 0.18) 0 7px, transparent 7px 14px),
    linear-gradient(180deg, #d5aa55, #315d92 38%, #753a7b 70%, #c9573a);
  opacity: 0.88;
  box-shadow: 5px 8px 14px rgba(80, 52, 18, 0.12);
}

.attire-person__hem {
  left: 72px;
  top: 394px;
  z-index: 8;
  width: 166px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 10px 6px, #d6a435 0 3px, transparent 4px),
    radial-gradient(circle at 28px 6px, #b84b3a 0 4px, transparent 5px),
    radial-gradient(circle at 46px 6px, #d6a435 0 3px, transparent 4px),
    radial-gradient(circle at 64px 6px, #476ba2 0 4px, transparent 5px),
    radial-gradient(circle at 82px 6px, #d6a435 0 3px, transparent 4px);
}

.attire-person__legs {
  left: 108px;
  top: 390px;
  z-index: 1;
  width: 94px;
  height: 44px;
  border-radius: 0 0 18px 18px;
  background: rgba(238, 228, 207, 0.86);
}

.attire-person__feet {
  left: 94px;
  top: 429px;
  z-index: 2;
  width: 122px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 28px 8px, #8a5734 0 18px, transparent 19px),
    radial-gradient(ellipse at 76px 8px, #8a5734 0 18px, transparent 19px);
  opacity: 0.78;
}

.attire-figure--ordinary .attire-person__robe,
.attire-figure--ordinary .attire-person__ephod,
.attire-figure--ordinary .attire-person__ephod-strap,
.attire-figure--ordinary .attire-person__breastplate,
.attire-figure--ordinary .attire-person__urim-thummim,
.attire-figure--ordinary .attire-person__breastplate-cords,
.attire-figure--ordinary .attire-person__plate,
.attire-figure--ordinary .attire-person__shoulder-stone,
.attire-figure--ordinary .attire-person__hem {
  display: none;
}

.attire-figure--ordinary .attire-person::before,
.attire-figure--atonement .attire-person::before {
  content: "";
  position: absolute;
  left: 62px;
  top: 137px;
  z-index: 2;
  width: 186px;
  height: 272px;
  border-radius: 54px 54px 24px 24px;
  clip-path: polygon(15% 0, 85% 0, 95% 100%, 5% 100%);
  background:
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.48), transparent 38%),
    repeating-linear-gradient(90deg, rgba(116, 83, 43, 0.06) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, #fff7ea, #e9dcc5);
  box-shadow: inset 12px 0 22px rgba(255, 255, 255, 0.48), inset -14px 0 22px rgba(116, 83, 43, 0.12);
}

.attire-figure--ordinary .attire-person__inner-tunic,
.attire-figure--atonement .attire-person__inner-tunic {
  display: none;
}

.attire-figure--ordinary .attire-person__sash {
  top: 298px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 242, 188, 0.24) 0 6px, transparent 6px 12px),
    linear-gradient(90deg, #cc6d38, #7f4f92, #3a6d9f);
}

.attire-figure--ordinary .attire-person__sash::before {
  background:
    radial-gradient(circle at 45% 42%, rgba(255, 239, 183, 0.28), transparent 46%),
    linear-gradient(90deg, #cc6d38, #7f4f92, #3a6d9f);
}

.attire-figure--ordinary .attire-person__sash::after {
  background:
    repeating-linear-gradient(0deg, rgba(255, 242, 188, 0.18) 0 7px, transparent 7px 14px),
    linear-gradient(180deg, #cc6d38, #7f4f92 46%, #3a6d9f);
}

.attire-figure--ordinary .attire-person__shoulders,
.attire-figure--ordinary .attire-person__arm,
.attire-figure--atonement .attire-person__shoulders,
.attire-figure--atonement .attire-person__arm {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent 70%),
    linear-gradient(180deg, #fff8ec, #e9dcc5);
}

.attire-figure--atonement .attire-person__robe,
.attire-figure--atonement .attire-person__ephod,
.attire-figure--atonement .attire-person__ephod-strap,
.attire-figure--atonement .attire-person__breastplate,
.attire-figure--atonement .attire-person__urim-thummim,
.attire-figure--atonement .attire-person__breastplate-cords,
.attire-figure--atonement .attire-person__plate,
.attire-figure--atonement .attire-person__shoulder-stone,
.attire-figure--atonement .attire-person__hem {
  display: none;
}

.attire-figure--atonement .attire-person__sash {
  top: 298px;
  background:
    repeating-linear-gradient(90deg, rgba(120, 83, 44, 0.08) 0 6px, transparent 6px 12px),
    linear-gradient(90deg, #f7eee0, #dccbb2);
}

.attire-figure--atonement .attire-person__sash::before,
.attire-figure--atonement .attire-person__sash::after {
  border-color: rgba(120, 83, 44, 0.2);
  background:
    repeating-linear-gradient(0deg, rgba(120, 83, 44, 0.08) 0 7px, transparent 7px 14px),
    linear-gradient(180deg, #fff8eb, #dccbb2);
}

.attire-figure--active-head .attire-person__turban,
.attire-figure--active-mitre .attire-person__turban,
.attire-figure--active-plate .attire-person__plate,
.attire-figure--active-tunic .attire-person__inner-tunic,
.attire-figure--active-tunic.attire-figure--ordinary .attire-person::before,
.attire-figure--active-embroidered .attire-person__inner-tunic,
.attire-figure--active-breeches .attire-person__legs,
.attire-figure--active-sash .attire-person__sash,
.attire-figure--active-robe .attire-person__robe,
.attire-figure--active-atonement .attire-person::before,
.attire-figure--active-ephod .attire-person__ephod,
.attire-figure--active-shoulders .attire-person__shoulder-stone,
.attire-figure--active-shoulders .attire-person__ephod-strap,
.attire-figure--active-breastplate .attire-person__breastplate,
.attire-figure--active-breastplate .attire-person__breastplate-cords,
.attire-figure--active-urim .attire-person__urim-thummim,
.attire-figure--active-hem .attire-person__hem {
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--active-garment-accent), transparent 32%)) brightness(1.08) saturate(1.12);
}

.attire-figure--active-ephod .attire-person__ephod {
  box-shadow:
    inset 0 0 0 4px rgba(255, 235, 173, 0.2),
    0 0 0 3px color-mix(in srgb, var(--active-garment-accent), #fff7df 20%),
    0 18px 34px rgba(151, 91, 24, 0.22);
}

.attire-figure--active-hem .attire-person__hem,
.attire-figure--active-plate .attire-person__plate {
  outline: 3px solid color-mix(in srgb, var(--active-garment-accent), #fff7df 16%);
  outline-offset: 4px;
}

.attire-figure--active-sash .attire-person__sash {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--active-garment-accent), #fff7df 22%),
    0 10px 22px rgba(80, 52, 18, 0.22);
}

.attire-figure--active-breastplate .attire-person__breastplate {
  box-shadow:
    inset 0 0 0 4px rgba(255, 243, 185, 0.38),
    0 0 0 4px color-mix(in srgb, var(--active-garment-accent), #fff7df 22%),
    0 12px 26px rgba(80, 52, 18, 0.26);
}

.attire-figure--active-urim .attire-person__urim-thummim {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.55),
    0 0 0 4px color-mix(in srgb, var(--active-garment-accent), #fff7df 18%),
    0 0 24px rgba(243, 205, 89, 0.6),
    0 12px 28px rgba(80, 52, 18, 0.24);
}

.attire-hotspot-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 310px;
  height: 456px;
  transform: translate(-50%, -50%) translateY(var(--attire-person-y)) scale(var(--attire-person-scale));
  transform-origin: center center;
}

.attire-hotspot {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.attire-hotspot:hover,
.attire-hotspot:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.attire-hotspot.active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.attire-hotspot:hover,
.attire-hotspot:focus-visible {
  transform: translateY(-1px);
}

.attire-hotspot span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 3;
  width: max-content;
  max-width: 180px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 6px 10px;
  color: #201408;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 10px 25px rgba(80, 52, 18, 0.16);
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.attire-hotspot:hover span,
.attire-hotspot:focus-visible span {
  opacity: 1;
}

.attire-figure-hint {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 3;
  margin: 0;
  color: #6a7485;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
}

.attire-hotspot--head,
.attire-hotspot--mitre {
  left: 33%;
  top: 5%;
  width: 34%;
  height: 12%;
}

.attire-hotspot--plate {
  left: 39%;
  top: 9%;
  width: 22%;
  height: 5%;
}

.attire-hotspot--tunic,
.attire-hotspot--embroidered {
  left: 30%;
  top: 30%;
  width: 40%;
  height: 57%;
}

.attire-hotspot--breeches {
  left: 35%;
  top: 85%;
  width: 30%;
  height: 11%;
}

.attire-hotspot--sash {
  left: 26%;
  top: 64%;
  width: 48%;
  height: 24%;
}

.attire-hotspot--robe,
.attire-hotspot--atonement {
  left: 19%;
  top: 30%;
  width: 62%;
  height: 60%;
}

.attire-hotspot--ephod {
  left: 28%;
  top: 33%;
  width: 44%;
  height: 47%;
}

.attire-hotspot--shoulders {
  left: 26%;
  top: 29%;
  width: 48%;
  height: 9%;
}

.attire-hotspot--breastplate,
.attire-hotspot--urim {
  left: 36%;
  top: 40%;
  width: 28%;
  height: 20%;
}

.attire-hotspot--urim {
  left: 41%;
  top: 38%;
  width: 18%;
  height: 6%;
}

.attire-hotspot--hem {
  left: 23%;
  top: 86%;
  width: 54%;
  height: 6%;
}

.attire-garment-list {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
  max-height: 508px;
  overflow: auto;
  padding: 4px 6px 4px 0;
  scrollbar-width: thin;
}

.attire-garment-list button {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 64px;
  border: 1px solid rgba(179, 107, 30, 0.14);
  border-radius: 18px;
  padding: 12px;
  color: #1d2635;
  background: rgba(255, 253, 247, 0.82);
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.attire-garment-list button:hover,
.attire-garment-list button:focus-visible,
.attire-garment-list button.active {
  border-color: rgba(179, 107, 30, 0.42);
  background: linear-gradient(135deg, color-mix(in srgb, var(--garment-accent), #fff 70%), rgba(255, 253, 247, 0.96));
  outline: none;
  transform: translateY(-1px);
}

.attire-garment-list button span {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--garment-accent);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.attire-garment-list strong,
.attire-garment-list small {
  grid-column: 2;
}

.attire-garment-list strong {
  font-size: 13px;
  font-weight: 950;
}

.attire-garment-list small {
  margin-top: -4px;
  color: #647083;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
}

.attire-detail-panel {
  padding: 30px;
}

.attire-detail-panel header {
  margin-bottom: 24px;
}

.attire-detail-panel h2 {
  margin: 10px 0 10px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
}

.attire-detail-panel header p {
  max-width: 680px;
  margin: 0;
  color: #4a5566;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.attire-detail-grid {
  display: grid;
  gap: 14px;
}

.attire-detail-grid article,
.attire-source-note {
  border: 1px solid rgba(179, 107, 30, 0.15);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 250, 240, 0.72);
}

.attire-detail-grid h3,
.attire-source-note h3 {
  margin: 0 0 8px;
  color: #8b4a1d;
  font-family: var(--serif);
  font-size: 19px;
}

.attire-detail-grid p,
.attire-source-note p {
  margin: 0;
  color: #3e4858;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.attire-source-note {
  margin-top: 16px;
  background: linear-gradient(145deg, rgba(255, 246, 224, 0.92), rgba(246, 228, 195, 0.7));
}

.attire-source-note .source-line {
  margin-bottom: 10px;
  font-size: 10.5px;
}

.feast-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1100px;
  margin: 44px auto 34px;
}

.feast-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.8);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.feast-tabs button.active {
  color: #061c15;
  background: linear-gradient(135deg, #55e4b4, #d79b2f);
}

.feast-detail {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(248, 239, 221, 0.84)),
    radial-gradient(circle at 92% 10%, rgba(207, 138, 42, 0.18), transparent 32%);
}

.feast-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(179, 107, 30, 0.16);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.95), rgba(247, 232, 203, 0.72)),
    radial-gradient(circle at 95% 14%, color-mix(in srgb, var(--feast-accent, #d79b2f) 28%, transparent), transparent 30%);
  box-shadow: 0 24px 70px rgba(102, 72, 32, 0.12);
}

.feast-detail h2 {
  margin: 6px 0 10px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
}

.feast-season {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--feast-accent, #d79b2f) 42%, white);
  border-radius: 999px;
  padding: 0 12px;
  color: color-mix(in srgb, var(--feast-accent, #d79b2f) 82%, #1d2635);
  background: color-mix(in srgb, var(--feast-accent, #d79b2f) 10%, #fffdf7);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feast-movement {
  max-width: 720px;
  margin: 0;
  color: #384458;
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 620;
  line-height: 1.45;
}

.feast-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feast-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(112, 67, 35, 0.13);
  border-radius: 999px;
  padding: 0 12px;
  color: #576273;
  background: rgba(255, 253, 247, 0.72);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.feast-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 22px;
  color: #fffdf7;
  background: linear-gradient(135deg, var(--feast-accent, #d79b2f), #704323);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--feast-accent, #d79b2f) 24%, transparent);
}

.feast-icon svg,
.procedure-step-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feast-procedure-visual {
  position: relative;
  margin-top: 30px;
  border: 1px solid rgba(179, 107, 30, 0.16);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 20px 60px rgba(102, 72, 32, 0.1);
  overflow: hidden;
}

.feast-procedure-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(112, 67, 35, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 67, 35, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent);
  pointer-events: none;
}

.feast-section-heading {
  position: relative;
  max-width: 920px;
  margin-bottom: 28px;
}

.feast-section-heading span,
.feast-card-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: color-mix(in srgb, var(--feast-accent, #d79b2f) 76%, #704323);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feast-section-heading h3,
.feast-meaning-card h3 {
  margin: 0 0 12px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
}

.feast-section-heading p {
  max-width: 980px;
  color: #4a5568;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.procedure-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.procedure-flow::before {
  content: "";
  position: absolute;
  top: 53px;
  right: 7%;
  left: 7%;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--feast-accent, #d79b2f) 54%, transparent), transparent);
}

.procedure-step {
  position: relative;
  border: 1px solid rgba(179, 107, 30, 0.18);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 18px 44px rgba(102, 72, 32, 0.1);
}

.procedure-step-number {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: color-mix(in srgb, var(--feast-accent, #d79b2f) 78%, #704323);
  background: color-mix(in srgb, var(--feast-accent, #d79b2f) 12%, #fffdf7);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.procedure-step-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 18px 0 16px;
  place-items: center;
  border-radius: 20px;
  color: #fffdf7;
  background: linear-gradient(135deg, var(--feast-accent, #d79b2f), #7b421f);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--feast-accent, #d79b2f) 24%, transparent);
}

.procedure-step h4 {
  margin: 0 0 9px;
  color: #1d2635;
  font-size: 17px;
  line-height: 1.2;
}

.procedure-step p {
  color: #4a5568;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.feast-meaning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.feast-meaning-card {
  border: 1px solid rgba(179, 107, 30, 0.16);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 18px 50px rgba(102, 72, 32, 0.09);
}

.feast-meaning-card p {
  color: #384458;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.feast-fulfillment {
  border-color: color-mix(in srgb, var(--feast-accent, #d79b2f) 35%, rgba(179, 107, 30, 0.18));
  background: linear-gradient(145deg, #fff9e8, color-mix(in srgb, var(--feast-accent, #d79b2f) 12%, #f4e3c2));
  box-shadow: inset 7px 0 0 var(--feast-accent, var(--gold)), 0 22px 60px rgba(102, 72, 32, 0.13);
}

.feast-fulfillment h3 {
  color: #7b421f;
}

.feast-fulfillment p {
  color: #1d2635;
  font-weight: 520;
}

.feast-scholar {
  margin-top: 26px;
  border-color: var(--feast-accent, var(--gold));
  background: linear-gradient(145deg, #fff8e9, rgba(255, 253, 247, 0.86));
}

.scholar-note .scholar-intro {
  max-width: 780px;
  margin: 0 0 18px;
  color: #4a5568;
  font-family: var(--sans);
  font-size: 14.5px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.55;
}

.focus-study {
  width: min(1180px, 100%);
  margin: 44px auto 0;
}

.focus-study-hero,
.focus-logic-section,
.focus-daniel-link-section,
.focus-timeline-section,
.focus-assurance-section,
.focus-aid-card,
.focus-milestone-detail {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 18px 50px rgba(102, 72, 32, 0.1);
}

.focus-study-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 28px;
  align-items: start;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 86% 12%, rgba(217, 138, 38, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.96), rgba(246, 236, 217, 0.86));
}

.focus-hero-chain {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.focus-chain-step {
  position: relative;
  min-height: 148px;
  border: 1px solid rgba(116, 65, 21, 0.13);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 245, 224, 0.72));
  box-shadow: 0 14px 32px rgba(102, 72, 32, 0.08);
}

.focus-chain-step:not(:last-child)::after {
  position: absolute;
  top: 31px;
  right: -11px;
  z-index: 2;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: rgba(179, 107, 30, 0.42);
  content: "";
}

.focus-chain-step span,
.focus-logic-card span,
.focus-link-step small,
.focus-shared-start-card span,
.focus-daniel-bridge article span,
.focus-bridge-connector span,
.focus-milestone-detail > span,
.focus-verse-card span {
  display: inline-flex;
  color: var(--gold-3);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.focus-chain-step span {
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #2a1808;
  background: linear-gradient(145deg, #f1b65c, #d6822d);
  letter-spacing: 0;
}

.focus-chain-step strong {
  display: block;
  margin-top: 16px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.08;
}

.focus-chain-step small {
  display: block;
  margin-top: 10px;
  color: #596574;
  font-size: 13px;
  font-weight: 520;
  line-height: 1.45;
}

.focus-verse-card {
  border: 1px solid rgba(179, 107, 30, 0.26);
  border-radius: 26px;
  padding: 24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(138, 183, 157, 0.22), transparent 34%),
    #fff8e6;
  box-shadow: inset 6px 0 0 rgba(179, 107, 30, 0.68), 0 18px 48px rgba(102, 72, 32, 0.11);
}

.focus-verse-card strong {
  display: block;
  margin-top: 14px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.focus-verse-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-study-hero h2,
.focus-section-heading h3 {
  margin: 12px 0;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
}

.focus-study-hero p,
.focus-section-heading p,
.focus-logic-card p,
.focus-daniel-bridge p,
.focus-link-step p,
.focus-shared-start-card p,
.focus-milestone-detail p,
.focus-aid-card p {
  margin: 0;
  color: #3e4858;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.68;
}

.focus-study-hero p {
  max-width: 900px;
  font-size: 18px;
}

.focus-logic-section,
.focus-daniel-link-section,
.focus-timeline-section,
.focus-assurance-section {
  margin-top: 24px;
  padding: 30px;
}

.focus-section-heading {
  max-width: 900px;
}

.focus-section-heading h3 {
  font-size: clamp(30px, 4vw, 48px);
}

.focus-logic-grid,
.focus-assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.focus-logic-card,
.focus-aid-card {
  border: 1px solid rgba(116, 65, 21, 0.13);
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(255, 247, 232, 0.74));
  box-shadow: 0 16px 42px rgba(102, 72, 32, 0.08);
}

.focus-logic-card h4,
.focus-aid-card h3,
.focus-milestone-detail h4 {
  margin: 0 0 12px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.12;
}

.focus-logic-card span {
  margin: 18px 0 10px;
}

.focus-logic-icon,
.focus-assurance-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  color: #fffaf0;
  background: linear-gradient(145deg, #d98a26, #8d4a22);
  box-shadow: 0 16px 32px rgba(141, 74, 34, 0.18);
}

.focus-logic-icon svg,
.focus-assurance-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.focus-daniel-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 28px;
}

.focus-daniel-bridge article,
.focus-link-step,
.focus-shared-start-card {
  border: 1px solid rgba(116, 65, 21, 0.13);
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 247, 232, 0.76));
  box-shadow: 0 16px 42px rgba(102, 72, 32, 0.08);
}

.focus-daniel-bridge article {
  min-height: 210px;
}

.focus-daniel-bridge article h4,
.focus-link-step h4,
.focus-shared-start-card h4 {
  margin: 12px 0;
  color: #1d2635;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.12;
}

.focus-bridge-connector {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(138, 183, 157, 0.36);
  border-radius: 24px;
  padding: 24px 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(138, 183, 157, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(255, 250, 235, 0.94), rgba(236, 246, 239, 0.82));
}

.focus-bridge-connector::before,
.focus-bridge-connector::after {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: rgba(81, 116, 99, 0.5);
  content: "";
}

.focus-bridge-connector::before {
  left: -20px;
}

.focus-bridge-connector::after {
  right: -20px;
}

.focus-bridge-connector strong {
  display: block;
  margin-top: 10px;
  color: #315d51;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.05;
}

.focus-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.focus-link-step {
  position: relative;
  overflow: hidden;
}

.focus-link-step > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #2a1808;
  background: linear-gradient(145deg, #f1b65c, #d6822d);
  font-size: 12px;
  font-weight: 950;
}

.focus-link-step small {
  margin-top: 16px;
  color: #315d51;
}

.focus-shared-start-card {
  margin-top: 22px;
  border-color: rgba(179, 107, 30, 0.28);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 226, 152, 0.34), transparent 28%),
    linear-gradient(145deg, rgba(255, 250, 235, 0.98), rgba(244, 227, 194, 0.82));
  box-shadow: inset 7px 0 0 rgba(179, 107, 30, 0.82), 0 20px 54px rgba(102, 72, 32, 0.12);
}

.focus-prophecy-chart {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  border: 1px solid rgba(116, 65, 21, 0.14);
  border-radius: 24px;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(116, 65, 21, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(255, 247, 231, 0.86));
  background-size: 14.285% 100%, auto;
}

.focus-chart-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.26fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.focus-chart-label {
  color: #704323;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.focus-chart-bar {
  position: relative;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(116, 65, 21, 0.08);
  overflow: hidden;
}

.focus-chart-bar::before {
  position: absolute;
  inset: 0;
  width: var(--bar-width);
  margin-left: var(--bar-left);
  border-radius: inherit;
  background: var(--bar-fill);
  box-shadow: 0 12px 28px rgba(155, 88, 25, 0.18);
  content: "";
}

.focus-chart-bar span {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px 0 calc(var(--bar-left) + 14px);
  color: #fffaf0;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 1px rgba(47, 27, 9, 0.32);
}

.focus-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(116px, 1fr));
  gap: 0;
  margin-top: 34px;
  overflow-x: auto;
  padding: 0 4px 6px;
}

.focus-timeline::before {
  position: absolute;
  top: 28px;
  right: 54px;
  left: 54px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(179, 107, 30, 0.22), rgba(217, 138, 38, 0.7), rgba(179, 107, 30, 0.22));
  content: "";
}

.focus-timeline button {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 118px;
  align-content: start;
  justify-items: center;
  gap: 8px;
  border: 0;
  border-radius: 20px;
  padding: 10px 8px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 160ms ease, color 160ms ease;
}

.focus-timeline button:hover,
.focus-timeline button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.focus-timeline button.active {
  color: #211407;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: inset 0 0 0 1px rgba(179, 107, 30, 0.18), 0 16px 38px rgba(155, 88, 25, 0.14);
}

.focus-timeline i {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 4px solid #fffaf0;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff7e7, #dfcaa4);
  box-shadow: 0 8px 22px rgba(92, 57, 21, 0.18);
}

.focus-timeline i::before {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b66e1f;
  content: "";
}

.focus-timeline button.active i {
  border-color: #fbe6b8;
  background: linear-gradient(145deg, #f2b24a, #c26d21);
  box-shadow: 0 14px 34px rgba(190, 103, 30, 0.28);
}

.focus-timeline button.active i::before {
  background: #211407;
}

.focus-timeline strong {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.focus-timeline span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.focus-milestone-detail {
  margin-top: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 228, 150, 0.36), transparent 28%),
    #fff9e8;
}

.focus-milestone-detail > span {
  margin-bottom: 10px;
}

.focus-milestone-detail p + p {
  margin-top: 14px;
}

.focus-milestone-detail small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.focus-aid-card {
  min-height: 245px;
}

.faq-context-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  border: 1px solid rgba(179, 107, 30, 0.18);
  border-radius: 24px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(255, 244, 218, 0.72)),
    radial-gradient(circle at 95% 15%, rgba(215, 155, 47, 0.18), transparent 32%);
  box-shadow: 0 16px 42px rgba(102, 72, 32, 0.09);
}

.faq-context-link span,
.faq-library-heading span,
.faq-category,
.faq-related-links > span {
  display: inline-flex;
  color: var(--gold-3);
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq-context-link strong {
  display: block;
  margin-top: 5px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.1;
}

.faq-context-link p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #4b5667;
  font-size: 14px;
  font-weight: 520;
  line-height: 1.5;
}

.faq-context-link button,
.faq-related-links button {
  min-height: 42px;
  border: 1px solid rgba(138, 77, 25, 0.26);
  border-radius: 999px;
  padding: 0 18px;
  color: #241306;
  background: linear-gradient(135deg, #f0ad43, #d88324);
  box-shadow: 0 12px 28px rgba(179, 107, 30, 0.18);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.faq-hub {
  width: min(1220px, 100%);
  margin: 42px auto 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.faq-library,
.faq-reader {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 22px 60px rgba(102, 72, 32, 0.1);
}

.faq-library {
  position: sticky;
  top: 118px;
  padding: 22px;
}

.faq-library-heading h2 {
  margin: 8px 0 18px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.08;
}

.faq-card-grid {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 4px;
}

.faq-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(116, 65, 21, 0.12);
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  background: rgba(255, 253, 247, 0.82);
  cursor: pointer;
}

.faq-card.active {
  border-color: rgba(179, 107, 30, 0.44);
  background: linear-gradient(145deg, rgba(255, 248, 231, 0.96), rgba(246, 225, 188, 0.74));
  box-shadow: inset 4px 0 0 var(--gold), 0 16px 36px rgba(102, 72, 32, 0.12);
}

.faq-card span {
  color: var(--gold-3);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.faq-card strong {
  color: #1d2635;
  font-size: 17px;
  line-height: 1.16;
}

.faq-card small {
  color: #5e6877;
  font-size: 12.5px;
  font-weight: 560;
  line-height: 1.43;
}

.faq-reader {
  overflow: hidden;
}

.faq-reader-header {
  padding: clamp(24px, 4vw, 38px);
  background:
    radial-gradient(circle at 90% 12%, rgba(138, 183, 157, 0.18), transparent 33%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(247, 231, 199, 0.78));
  border-bottom: 1px solid rgba(116, 65, 21, 0.12);
}

.faq-reader-header h2 {
  margin: 10px 0 10px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.faq-reader-header p {
  max-width: 760px;
  margin: 0;
  color: #4a5568;
  font-size: 17px;
  font-weight: 540;
  line-height: 1.5;
}

.faq-summary-card,
.faq-answer-grid,
.faq-section-grid,
.faq-key-texts,
.faq-related-links {
  margin: 22px clamp(20px, 4vw, 34px) 0;
}

.faq-summary-card {
  border: 1px solid rgba(179, 107, 30, 0.2);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(145deg, #fff8e8, rgba(255, 253, 247, 0.9));
  box-shadow: inset 5px 0 0 var(--gold);
}

.faq-summary-card h3,
.faq-section-card h3 {
  margin: 0 0 10px;
  color: #7b421f;
  font-family: var(--serif);
  font-size: 25px;
}

.faq-summary-card p,
.faq-section-card p,
.faq-answer-grid p {
  margin: 0;
  color: #3f4a5b;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.65;
}

.faq-key-texts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.faq-key-texts span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(116, 65, 21, 0.13);
  border-radius: 999px;
  padding: 0 12px;
  color: #596574;
  background: rgba(255, 253, 247, 0.8);
  font-size: 12px;
  font-weight: 820;
}

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

.faq-answer-grid article {
  border: 1px solid rgba(179, 107, 30, 0.18);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 253, 247, 0.86);
}

.faq-answer-grid span {
  display: block;
  margin-bottom: 8px;
  color: #1d2635;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
}

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

.faq-section-card {
  border: 1px solid rgba(116, 65, 21, 0.13);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 253, 247, 0.82);
}

.faq-section-card--wide {
  grid-column: 1 / -1;
}

.faq-related-links {
  border: 1px solid rgba(179, 107, 30, 0.18);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 249, 235, 0.74);
}

.faq-related-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.focus-panel,
.ai-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 940px;
  margin: 52px auto 0;
}

.fake-input {
  min-height: 48px;
  min-width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 18px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.72);
  font-weight: 700;
}

.chronicles-shell {
  width: min(1180px, 100%);
  margin: 44px auto 0;
}

.chronicle-opening,
.chronicle-service-select,
.chronicle-deck {
  border: 1px solid rgba(120, 80, 35, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 4%, rgba(231, 154, 49, 0.22), transparent 31%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.94), rgba(250, 239, 219, 0.9));
  box-shadow: var(--shadow);
}

.chronicle-opening,
.chronicle-service-select {
  padding: clamp(26px, 4vw, 48px);
  text-align: center;
}

.chronicle-opening-copy {
  max-width: 760px;
  margin: 0 auto;
}

.chronicle-opening-copy h2,
.chronicle-deck-header h2 {
  margin: 12px 0 10px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 60px);
  line-height: 0.98;
}

.chronicle-opening-copy p,
.chronicle-deck-header p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.chronicle-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3.6vw, 44px);
  max-width: 1040px;
  margin: 38px auto 0;
}

.chronicle-opening--choices .chronicle-choice-grid {
  margin-top: 0;
}

.chronicle-choice-card {
  display: grid;
  min-height: clamp(300px, 28vw, 360px);
  align-content: center;
  justify-items: center;
  gap: 16px;
  border: 1px solid rgba(116, 65, 21, 0.16);
  border-radius: 34px;
  padding: clamp(30px, 4vw, 48px);
  text-align: center;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 16%, rgba(231, 154, 49, 0.14), transparent 30%),
    rgba(255, 253, 247, 0.9);
  box-shadow: 0 24px 60px rgba(102, 72, 32, 0.13);
  cursor: pointer;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.chronicle-choice-card:hover,
.chronicle-choice-card:focus-visible {
  border-color: rgba(217, 138, 38, 0.62);
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 30px 76px rgba(91, 60, 27, 0.2);
}

.chronicle-choice-icon {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 1px solid rgba(185, 111, 29, 0.22);
  border-radius: 50%;
  color: var(--gold-3);
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.95), rgba(250, 231, 188, 0.72));
  box-shadow: 0 20px 48px rgba(180, 113, 31, 0.14);
}

.chronicle-choice-icon svg,
.chronicle-back-link svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chronicle-card-kicker {
  color: var(--gold-3);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chronicle-choice-card strong {
  max-width: 430px;
  font-family: var(--serif);
  font-size: clamp(29px, 3.4vw, 46px);
  line-height: 1.03;
}

.chronicle-choice-card small {
  max-width: 520px;
  color: var(--soft);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.6;
}

.chronicle-choice-card--priest {
  background:
    radial-gradient(circle at 50% 18%, rgba(242, 174, 63, 0.18), transparent 31%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.96), rgba(250, 239, 219, 0.9));
}

.chronicle-choice-card--commoner {
  border-color: rgba(190, 68, 54, 0.2);
  background:
    radial-gradient(circle at 50% 18%, rgba(218, 79, 72, 0.13), transparent 31%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.96), rgba(250, 233, 226, 0.9));
}

.chronicle-choice-card--commoner .chronicle-choice-icon {
  color: #bf4a45;
  border-color: rgba(190, 68, 54, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.95), rgba(250, 224, 218, 0.8));
}

.chronicle-choice-card--commoner .chronicle-card-kicker,
.chronicle-choice-card--commoner strong {
  color: #a63b37;
}

.chronicle-choice-card--service {
  min-height: 300px;
}

.chronicle-choice-card--daily {
  background:
    radial-gradient(circle at 50% 18%, rgba(236, 145, 29, 0.2), transparent 32%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.96), rgba(247, 228, 204, 0.92));
}

.chronicle-choice-card--atonement {
  border-color: rgba(102, 57, 145, 0.18);
  background:
    radial-gradient(circle at 50% 18%, rgba(113, 68, 170, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.96), rgba(238, 228, 247, 0.9));
}

.chronicle-choice-card--atonement .chronicle-choice-icon {
  color: #7546a2;
  border-color: rgba(102, 57, 145, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.95), rgba(236, 224, 248, 0.85));
}

.chronicle-choice-card--atonement .chronicle-card-kicker,
.chronicle-choice-card--atonement strong {
  color: #56307a;
}

.chronicle-back-link {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 0 0 22px;
  border: 0;
  color: var(--soft);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.chronicle-back-link span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.chronicle-back-link svg {
  width: 20px;
  height: 20px;
}

.chronicle-back-link:hover,
.chronicle-back-link:focus-visible {
  color: var(--gold-3);
  outline: none;
}

.ghost-button {
  min-height: 38px;
  border: 1px solid rgba(116, 65, 21, 0.18);
  border-radius: 999px;
  padding: 0 16px;
  color: #7b421f;
  background: rgba(255, 253, 247, 0.72);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  outline: none;
  border-color: rgba(217, 138, 38, 0.54);
  background: #fff8ea;
}

.chronicle-deck {
  overflow: hidden;
}

.chronicle-deck-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(26px, 4vw, 44px) clamp(24px, 4vw, 46px) 24px;
}

.chronicle-progress-rail {
  position: relative;
  padding: 0 clamp(24px, 4vw, 46px) 24px;
}

.chronicle-progress-track {
  position: absolute;
  right: clamp(24px, 4vw, 46px);
  bottom: 36px;
  left: clamp(24px, 4vw, 46px);
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--gold-2) 0 var(--chronicle-progress), rgba(124, 85, 42, 0.16) var(--chronicle-progress) 100%);
}

.chronicle-progress-markers {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.chronicle-progress-markers button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(116, 65, 21, 0.2);
  border-radius: 50%;
  color: var(--muted);
  background: #fffaf0;
  cursor: pointer;
  font-size: 9px;
  font-weight: 950;
}

.chronicle-progress-markers button.active {
  color: #1b1208;
  border-color: rgba(116, 65, 21, 0.26);
  background: linear-gradient(135deg, #efad42, #c36d21);
  box-shadow: 0 8px 20px rgba(190, 103, 30, 0.22);
}

.chronicle-scene-layout {
  display: grid;
  grid-template-columns: 70px minmax(0, 880px) 70px;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  border-top: 1px solid rgba(116, 65, 21, 0.14);
  padding: clamp(24px, 4vw, 54px);
  background:
    radial-gradient(circle at 92% 0%, rgba(231, 154, 49, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.92), rgba(250, 239, 219, 0.8));
}

.chronicle-side-arrow {
  display: grid;
  width: clamp(52px, 5vw, 68px);
  height: clamp(52px, 5vw, 68px);
  place-items: center;
  border: 1px solid rgba(116, 65, 21, 0.16);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 16px 42px rgba(102, 72, 32, 0.12);
  cursor: pointer;
  transition:
    transform 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.chronicle-side-arrow svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chronicle-side-arrow:hover,
.chronicle-side-arrow:focus-visible {
  border-color: rgba(217, 138, 38, 0.56);
  color: var(--gold-3);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(102, 72, 32, 0.18);
}

.chronicle-side-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.32;
  transform: none;
}

.chronicle-story-panel {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(116, 65, 21, 0.16);
  border-radius: 30px;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 24px 70px rgba(102, 72, 32, 0.12);
}

.chronicle-story-panel--text-only::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, #d9862d, #f4d06e, #8c5b2f);
}

.chronicle-time {
  margin: 0;
  color: var(--gold-3);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chronicle-time span {
  color: var(--muted);
}

.chronicle-story-panel h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.chronicle-narrative {
  margin: 0;
  color: #2f3848;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 540;
  line-height: 1.78;
}

.chronicle-companion-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chronicle-companion {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(153, 94, 35, 0.16);
  border-radius: 20px;
  padding: 18px 18px 18px 20px;
  background:
    linear-gradient(145deg, rgba(255, 250, 240, 0.86), rgba(250, 235, 207, 0.72));
}

.chronicle-companion::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(217, 138, 38, 0.72);
}

.chronicle-companion--meaning {
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.9), rgba(239, 230, 212, 0.68));
}

.chronicle-companion--meaning::before {
  background: rgba(101, 128, 93, 0.58);
}

.chronicle-companion strong {
  display: block;
  margin-bottom: 7px;
  color: #844820;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chronicle-companion--meaning strong {
  color: #49633f;
}

.chronicle-companion p {
  margin: 0;
  color: #3b4351;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.chronicle-scripture {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chronicle-controls {
  display: none;
  justify-content: space-between;
  gap: 14px;
  padding: 22px clamp(24px, 4vw, 46px) 30px;
}

.chronicle-controls .tool-button {
  min-width: 120px;
  min-height: 44px;
}

.chronicle-controls .chronicle-next {
  background: linear-gradient(135deg, #efad42, #cf7924);
}

.chronicle-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.article-dialog {
  width: min(1060px, calc(100vw - 36px));
  max-height: min(92vh, 1100px);
  overflow: auto;
  border: 0;
  border-radius: 26px;
  padding: 0;
  color: var(--paper-text);
  background: var(--paper);
  box-shadow: 0 40px 120px rgba(72, 47, 19, 0.34);
}

.article-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: sticky;
  top: 14px;
  z-index: 8;
  display: grid;
  width: 46px;
  height: 46px;
  margin: 14px 14px -60px auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(90, 55, 20, 0.7);
  cursor: pointer;
  font-size: 29px;
  line-height: 1;
}

.article-reader {
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(255, 247, 231, 0.96)),
    var(--paper);
}

.article-compact-header {
  padding: 24px 76px 22px 28px;
  color: #fffaf1;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.2), transparent 32%),
    var(--article-gradient, linear-gradient(135deg, #dca837, #9d611f 62%, #7a421b));
}

.article-title-lockup {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.article-header-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.article-header-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-eyebrow {
  margin: 0 0 5px;
  color: rgba(255, 250, 241, 0.78);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article-compact-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.article-subtitle {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin: 10px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0 14px;
  color: #fff6e6;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-key-texts {
  margin: 16px 0 0 80px;
  max-width: 780px;
  color: rgba(255, 250, 241, 0.86);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.article-key-texts strong {
  color: #fff;
  font-weight: 900;
}

.article-body {
  padding: 24px 28px 30px;
}

.article-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.article-summary-card,
.article-glance-list {
  margin: 0;
  border: 1px solid rgba(190, 125, 39, 0.18);
  border-radius: 20px;
  background: rgba(255, 251, 242, 0.82);
  box-shadow: 0 12px 28px rgba(103, 71, 36, 0.08);
}

.article-summary-card {
  display: grid;
  gap: 8px;
  padding: 15px 18px;
}

.article-summary-card span {
  color: #9b5b18;
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-summary-card p {
  margin: 0;
  color: #2e3746;
  font-size: 14.5px;
  font-weight: 560;
  line-height: 1.52;
}

.article-glance-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.article-glance-list span {
  display: grid;
  gap: 3px;
  border-radius: 14px;
  padding: 10px 12px;
  color: #3d4554;
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.article-glance-list strong {
  color: #9b5b18;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.article-section {
  margin: 0;
  border: 1px solid rgba(95, 64, 28, 0.12);
  border-radius: 20px;
  padding: 18px 20px 20px;
  background: rgba(255, 252, 246, 0.74);
  box-shadow: 0 14px 34px rgba(88, 61, 29, 0.07);
}

.article-section-wide {
  grid-column: 1 / -1;
}

.article-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #7d3f20;
  font-family: var(--serif);
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.15;
}

.section-glyph {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--gold-2);
  font-family: var(--sans);
  font-size: 18px;
}

.citation-box {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

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

.meaning-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(190, 125, 39, 0.22);
  border-radius: 16px;
  padding: 15px 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 238, 0.96), rgba(255, 244, 221, 0.78)),
    radial-gradient(circle at 92% 10%, rgba(223, 161, 46, 0.16), transparent 32%);
  box-shadow: 0 10px 24px rgba(94, 62, 28, 0.07);
}

.meaning-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #d99624, #7d3f20);
}

.meaning-card strong {
  display: block;
  color: #7d3f20;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.2;
}

.meaning-card p {
  margin: 7px 0 0;
  color: #4a5363;
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.5;
}

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

.article-step-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  color: #34302c;
  font-size: 14.5px;
  line-height: 1.5;
}

.article-step-list p {
  margin: 2px 0 0;
}

.article-step-list span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff8ee;
  background: #8a421f;
  box-shadow: 0 10px 18px rgba(138, 66, 31, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.article-detail-list span {
  color: #7d3f20;
  border: 1px solid rgba(138, 66, 31, 0.18);
  background: rgba(213, 150, 52, 0.14);
  box-shadow: none;
}

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

.quote-card {
  margin: 0;
  border: 1px solid rgba(223, 161, 46, 0.28);
  border-radius: 16px;
  padding: 15px 16px;
  color: #26231f;
  background: #fff9e8;
  font-size: 14.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

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

.application-card {
  min-height: 0;
  border: 1px solid rgba(213, 150, 52, 0.2);
  border-radius: 16px;
  padding: 15px 16px;
  color: #1d2635;
  background: #fff7e7;
  box-shadow: 0 10px 24px rgba(102, 72, 32, 0.08);
}

.application-card strong {
  display: inline-grid;
  width: 34px;
  height: 26px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 999px;
  background: rgba(213, 150, 52, 0.14);
  color: var(--gold);
  font-size: 13px;
}

.application-card p {
  margin: 0;
  color: #3e4858;
  font-size: 14px;
  font-weight: 610;
  line-height: 1.5;
}

.citation-box {
  color: #4b453e;
  font-size: 13.5px;
  line-height: 1.55;
}

.citation-box strong {
  color: #7d3f20;
}

@media (max-width: 1380px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 22px 20px 18px;
  }

  .tab-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 1060px) {
  .map-stage {
    width: calc(100vw - 32px);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scene-frame {
    width: 100%;
  }

  #sanctuary-canvas {
    height: clamp(330px, 42vw, 400px);
    min-height: 330px;
  }

  .scene-control-dock {
    width: 100%;
    margin: 0;
    border-radius: 18px;
    padding: 10px;
  }

  .offering-columns,
  .ritual-grid,
  .source-insight-grid,
  .service-study-layout,
  .attire-intro-card,
  .attire-layout,
  .feast-grid,
  .focus-logic-grid,
  .focus-link-grid,
  .focus-assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-study-layout,
  .attire-intro-card,
  .attire-layout,
  .faq-layout,
  .focus-study-hero,
  .focus-daniel-bridge {
    grid-template-columns: 1fr;
  }

  .faq-library {
    position: static;
  }

  .faq-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }

  .faq-answer-grid {
    grid-template-columns: 1fr;
  }

  .attire-toggle-row {
    grid-template-columns: 1fr;
  }

  .attire-wardrobe-body {
    grid-template-columns: minmax(300px, 0.9fr) minmax(260px, 1fr);
  }

  .attire-garment-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 508px;
  }

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

  .focus-chain-step:not(:last-child)::after {
    display: none;
  }

  .focus-bridge-connector::before,
  .focus-bridge-connector::after {
    display: none;
  }

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

  .procedure-flow::before {
    display: none;
  }

  .feast-meaning-grid {
    grid-template-columns: 1fr;
  }

  .focus-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .focus-timeline::before {
    display: none;
  }

  .focus-timeline button {
    grid-template-columns: 46px minmax(0, 1fr);
    align-content: center;
    justify-items: start;
    min-height: 86px;
    padding: 14px;
    text-align: left;
    background: rgba(255, 250, 240, 0.68);
    box-shadow: inset 0 0 0 1px rgba(116, 65, 21, 0.1);
  }

  .focus-timeline i {
    grid-row: span 2;
  }

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

  .ministry-switcher {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 720px) {
  .view-panel {
    padding: 38px 16px 66px;
  }

  .brand-word {
    font-size: 16px;
  }

  .nav-tab {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero-copy h1,
  .section-intro h1,
  .map-hero h1 {
    font-size: 34px;
  }

  .phase-list {
    gap: 52px;
    margin-top: 58px;
  }

  .phase-summary {
    margin-bottom: 24px;
    padding: 20px;
    font-size: 14px;
    border-radius: 20px;
  }

  .article-card-grid--holy {
    grid-template-columns: minmax(210px, 280px);
    gap: 20px;
  }

  .article-card {
    width: min(100%, 280px);
    min-height: 198px;
    padding: 22px 18px;
  }

  .map-stage {
    width: calc(100vw - 24px);
  }

  .scene-frame {
    width: 100%;
    border-radius: 22px;
  }

  #sanctuary-canvas {
    height: clamp(300px, 58vw, 380px);
    min-height: 300px;
  }

  .scene-orbit-pad {
    right: 12px;
    bottom: 12px;
    grid-template-columns: repeat(3, 32px);
    gap: 6px;
    padding: 7px;
    border-radius: 15px;
  }

  .scene-orbit-button,
  .scene-orbit-center {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .scene-orbit-button {
    font-size: 17px;
  }

  .scene-orbit-center {
    font-size: 8px;
  }

  .scene-control-dock {
    width: 100%;
    margin: 0;
    border-radius: 16px;
    padding: 9px;
  }

  .scene-chip {
    min-height: 29px;
    padding: 0 9px;
    font-size: 10px;
  }

  .scene-path-caption {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 10px;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .scene-path-copy {
    padding: 0 4px;
  }

  .scene-path-arrow {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .scene-path-caption strong {
    font-size: 0.92rem;
  }

  .scene-path-text {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .ministry-switcher {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 28px auto;
  }

  .ministry-switch-card {
    min-height: 78px;
    border-radius: 18px;
    padding: 13px 14px;
  }

  .ministry-switch-card .ministry-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .ministry-icon--sacrifices::before {
    width: 13px;
    height: 18px;
    border-width: 2px;
  }

  .ministry-icon--sacrifices::after {
    width: 5px;
    height: 9px;
    border-width: 1.5px;
  }

  .ministry-icon--specialCeremonies::before,
  .ministry-icon--specialCeremonies::after {
    left: 10px;
    width: 19px;
    height: 11px;
    border-width: 2px;
  }

  .ministry-icon--specialCeremonies::before {
    top: 10px;
  }

  .ministry-icon--specialCeremonies::after {
    top: 17px;
  }

  .ministry-icon--services::before {
    width: 19px;
    height: 19px;
    border-width: 2px;
  }

  .ministry-icon--services::after {
    left: 20px;
    top: 11px;
    height: 13px;
    width: 2px;
  }

  .ministry-subintro h2 {
    font-size: 32px;
  }

  .chronicles-shell {
    margin-top: 30px;
  }

  .chronicle-opening,
  .chronicle-service-select,
  .chronicle-deck {
    border-radius: 24px;
  }

  .chronicle-choice-card {
    min-height: 220px;
    padding: 22px;
  }

  .chronicle-choice-grid {
    grid-template-columns: 1fr;
  }

  .chronicle-choice-icon {
    width: 86px;
    height: 86px;
  }

  .chronicle-choice-icon svg {
    width: 38px;
    height: 38px;
  }

  .chronicle-deck-header {
    display: grid;
  }

  .chronicle-progress-rail {
    overflow-x: auto;
    padding-bottom: 24px;
  }

  .chronicle-progress-track {
    display: none;
  }

  .chronicle-progress-markers {
    justify-content: flex-start;
    min-width: 560px;
  }

  .chronicle-scene-layout {
    position: relative;
    grid-template-columns: 1fr;
    padding: 18px 12px;
  }

  .chronicle-side-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
  }

  .chronicle-side-arrow:hover,
  .chronicle-side-arrow:focus-visible {
    transform: translateY(-50%);
  }

  .chronicle-side-arrow:disabled {
    transform: translateY(-50%);
  }

  .chronicle-side-arrow--prev {
    left: 8px;
  }

  .chronicle-side-arrow--next {
    right: 8px;
  }

  .chronicle-side-arrow svg {
    width: 24px;
    height: 24px;
  }

  .chronicle-story-panel {
    padding: 24px 50px;
  }

  .chronicle-narrative {
    font-size: 16px;
  }

  .chronicle-companion-notes {
    grid-template-columns: 1fr;
  }

  .chronicle-companion {
    padding: 16px 16px 16px 18px;
  }

  .chronicle-controls {
    padding: 18px 22px 24px;
  }

  .focus-study {
    margin-top: 30px;
  }

  .focus-study-hero,
  .focus-timeline-section,
  .focus-logic-section,
  .focus-daniel-link-section,
  .focus-assurance-section,
  .focus-logic-card,
  .focus-link-step,
  .focus-shared-start-card,
  .focus-aid-card,
  .focus-milestone-detail {
    border-radius: 22px;
    padding: 22px;
  }

  .focus-hero-chain,
  .focus-logic-grid,
  .focus-link-grid,
  .focus-assurance-grid {
    grid-template-columns: 1fr;
  }

  .focus-verse-card {
    padding: 22px;
  }

  .focus-timeline {
    grid-template-columns: 1fr;
    margin-right: 0;
    margin-left: 0;
    padding: 0;
  }

  .focus-timeline button {
    min-height: 84px;
  }

  .focus-chart-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .focus-chart-bar span {
    font-size: 11px;
  }

  .scene-toolbar {
    left: 12px;
    right: 12px;
    justify-content: flex-end;
  }

  .offering-columns,
  .ritual-grid,
  .source-insight-grid,
  .service-study-layout,
  .attire-garment-list,
  .faq-card-grid,
  .faq-section-grid,
  .feast-grid,
  .procedure-flow,
  .feast-meaning-grid,
  .meaning-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .offering-detail,
  .service-study-card,
  .attire-wardrobe-card,
  .attire-detail-panel,
  .faq-library,
  .faq-reader,
  .feast-detail {
    padding: 28px 20px;
  }

  .faq-context-link {
    display: grid;
    border-radius: 20px;
    padding: 16px;
  }

  .faq-context-link button,
  .faq-related-links button {
    width: 100%;
  }

  .faq-reader-header {
    padding: 22px;
  }

  .faq-summary-card,
  .faq-answer-grid,
  .faq-section-grid,
  .faq-key-texts,
  .faq-related-links {
    margin-right: 0;
    margin-left: 0;
  }

  .attire-module {
    margin-top: 34px;
  }

  .attire-intro-card {
    padding: 24px 20px;
  }

  .attire-toggle-row button {
    min-height: auto;
  }

  .attire-figure {
    min-height: 390px;
    --attire-person-y: 12px;
    --attire-person-scale: 0.88;
  }

  .attire-wardrobe-body {
    grid-template-columns: 1fr;
  }

  .attire-garment-list {
    max-height: none;
    padding-right: 0;
  }

  .attire-detail-panel h2 {
    font-size: 31px;
  }

  .service-tabs {
    display: grid;
    border-radius: 24px;
  }

  .service-tabs button {
    width: 100%;
  }

  .offering-detail header,
  .feast-detail header,
  .focus-panel,
  .ai-placeholder {
    display: grid;
  }

  .feast-hero {
    gap: 20px;
  }

  .feast-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .feast-meta span {
    width: 100%;
    border-radius: 18px;
  }

  .service-flow section {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .service-flow span {
    width: 40px;
    height: 40px;
  }

  .article-dialog {
    width: min(100vw - 18px, 1060px);
    border-radius: 22px;
  }

  .dialog-close {
    top: 10px;
    width: 42px;
    height: 42px;
    margin: 10px 10px -52px auto;
    font-size: 26px;
  }

  .article-compact-header {
    padding: 20px 62px 18px 18px;
  }

  .article-title-lockup {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
  }

  .article-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .article-header-icon svg {
    width: 25px;
    height: 25px;
  }

  .article-compact-header h1 {
    font-size: clamp(28px, 10vw, 39px);
  }

  .article-subtitle {
    min-height: 26px;
    padding: 0 11px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .article-key-texts {
    margin: 12px 0 0;
    font-size: 12.5px;
  }

  .article-body {
    padding: 18px 14px 22px;
  }

  .article-summary-row,
  .article-study-grid,
  .meaning-grid,
  .quote-stack,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .article-section {
    padding: 16px;
  }

  .article-section h2 {
    font-size: 20px;
  }

  .article-step-list li {
    font-size: 14px;
  }
}
