/* 牛皮纸主题的独立源样式，无需编译。 */
body.page-answers,
body.page-single {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: #3f3022;
  background: #e5d0ad;
  font-family: 'Inter', 'Microsoft YaHei', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  perspective: none;
}

body.page-answers::before,
body.page-single::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  background-image: radial-gradient(ellipse at 50% 15%, rgba(255, 249, 226, 0.58), transparent 68%), repeating-linear-gradient(87deg, rgba(105, 75, 38, 0.022) 0, rgba(105, 75, 38, 0.022) 1px, transparent 1px, transparent 4px), repeating-linear-gradient(0deg, rgba(105, 75, 38, 0.023) 0, rgba(105, 75, 38, 0.023) 1px, transparent 1px, transparent 3px);
}

.page-answers ::selection,
.page-single ::selection {
  color: #fff8e8;
  background: #8e4830;
}

.page-answers a,
.page-single a {
  color: #8e4830;
  transition: color 0.2s ease;
}

.page-answers a:hover,
.page-single a:hover {
  color: #522e20;
}

.page-answers :is(button, a, summary):focus-visible,
.page-single :is(button, a, summary):focus-visible {
  outline: 2px solid #8e4830;
  outline-offset: 5px;
}

.page-answers > main,
.page-single > main {
  min-height: 600px;
}

.page-answers > main > .grid-container,
.page-single > main > .grid-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

/* 首页加载卡片先于 Vue 显示，组件挂载后由书本自然替换。 */
.book-loading,
.book-fallback-answer {
  width: calc(100% - 96px);
  max-width: 1280px;
  margin: 32px auto;
}

.book-loading-card,
.book-fallback-answer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 480px;
  padding: 64px 32px;
  border: 1px solid rgba(126, 91, 45, 0.3);
  border-radius: 4px;
  background: radial-gradient(ellipse at 50% 25%, rgba(255, 252, 234, 0.8), transparent 72%), #efdfbf;
  box-shadow: 0 18px 48px rgba(93, 65, 30, 0.09), 5px 5px 0 #dbc39d, 6px 6px 0 rgba(126, 91, 45, 0.25);
  text-align: center;
}

.book-loading-card {
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.book-loading-card::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(148, 112, 62, 0.16);
  content: '';
  pointer-events: none;
}

.book-loading-card::after {
  position: absolute;
  top: -25%;
  left: -60%;
  width: 40%;
  height: 150%;
  background: linear-gradient(90deg, transparent, rgba(255, 252, 232, 0.55), transparent);
  content: '';
  pointer-events: none;
  transform: skewX(-18deg);
  animation: book-loading-sheen 3.6s ease-in-out infinite;
}

.book-loading-card > * {
  position: relative;
  z-index: 1;
}

.book-loading-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
  color: #9c7041;
}

.book-loading-mark > span {
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.book-loading-mark > .fa {
  font-size: 62px;
  line-height: 1.2;
  text-shadow: 0 3px 0 rgba(255, 250, 226, 0.75);
}

.book-loading-title {
  max-width: 760px;
  margin: 0;
  color: #705335;
  font-family: 'Cormorant Garamond', Georgia, 'Microsoft YaHei', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.book-loading-copy,
.book-fallback-answer > p {
  max-width: 640px;
  margin: 14px 0 0;
  color: #927a58;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.book-fallback-answer > p {
  margin: 0;
}

.book-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}

.book-loading-indicator > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a77943;
  opacity: 0.3;
  animation: book-loading-pulse 1.5s ease-in-out infinite;
}

.book-loading-indicator > span:nth-child(2) {
  animation-delay: 0.18s;
}

.book-loading-indicator > span:nth-child(3) {
  animation-delay: 0.36s;
}

.answer-page-heading {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - 96px);
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 38px 48px 40px;
  border-top: 1px solid rgba(126, 91, 45, 0.22);
  text-align: center;
}

.answer-page-heading::before {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 56px;
  height: 2px;
  background: #a47b4d;
  content: '';
  transform: translateX(-50%);
}

.answer-page-heading > h1 {
  margin: 0;
  color: #6b4d32;
  font-family: 'Cormorant Garamond', Georgia, 'Songti SC', 'SimSun', serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.answer-page-heading > p {
  max-width: 760px;
  margin: 18px auto 0;
  color: #796044;
  font-size: 18px;
  line-height: 1.9;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

/* 首页仪式感说明由 PHP 直接输出，样式无需等待 Vue 挂载。 */
.oracle-ritual {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px 62px;
  scroll-margin-top: 25px;
}

.oracle-ritual .ritual-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.oracle-ritual .ritual-heading > span {
  flex: 0 1 50px;
  height: 1px;
  background: #b69a73;
}

.oracle-ritual .ritual-title {
  min-width: 0;
  margin: 0;
  color: #8e5736;
  font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.23em;
  text-align: center;
  text-rendering: optimizeLegibility;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.oracle-ritual .ritual-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.oracle-ritual .ritual-steps > article {
  display: flex;
  min-width: 0;
  gap: 17px;
  text-align: start;
}

.oracle-ritual .ritual-steps > article > div {
  min-width: 0;
}

.oracle-ritual .step-number {
  flex-shrink: 0;
  color: #9e6f44;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 46px;
  line-height: 1;
}

.oracle-ritual .ritual-step-title {
  margin: 0 0 8px;
  color: #483322;
  font-family: 'Cormorant Garamond', Georgia, 'SimSun', serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}

.oracle-ritual .ritual-steps p {
  margin: 0;
  color: #7d6549;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

@keyframes book-loading-sheen {
  0%, 15% {
    transform: translateX(0) skewX(-18deg);
  }
  75%, 100% {
    transform: translateX(450%) skewX(-18deg);
  }
}

@keyframes book-loading-pulse {
  0%, 80%, 100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}

/* 页眉仅保留站内导航与语言切换。 */
#header {
  position: relative;
  z-index: 50;
  height: 80px;
  min-height: 80px;
  color: #3f3022;
  border-bottom: 1px solid rgba(77, 55, 32, 0.2);
  line-height: normal;
}

#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 100%;
  padding: 0 48px;
}

#header .header-inner > nav {
  width: 100%;
  min-width: 0;
}

#header .top-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  float: none;
  margin: 0;
  padding: 0;
}

#header .top-nav .nav-language {
  margin-left: auto;
}

#header .top-nav > li {
  display: block;
  margin: 0;
  padding: 0;
  line-height: normal;
}

#header .top-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #68503a;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

#header .top-nav > li > a:hover,
#header .top-nav > li > a[aria-current='page'] {
  color: #8e4830;
}

#header .top-nav .nav-donate > a {
  padding: 0 17px;
  border: 1px solid rgba(142, 72, 48, 0.45);
  color: #8e4830;
}

#header .top-nav .nav-donate > a:hover {
  border-color: #8e4830;
  background: rgba(142, 72, 48, 0.05);
}

#header .lang-btn {
  position: relative;
  color: #68503a;
  line-height: normal;
}

#header .lang-btn::before,
#header .lang-btn::after {
  display: none;
}

#header .lang-btn summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0;
  list-style: none;
  cursor: pointer;
  color: #68503a;
  font-size: 13px;
}

#header .lang-btn summary::-webkit-details-marker,
.paper-faq > summary::-webkit-details-marker {
  display: none;
}

#header .lang-btn summary:hover {
  color: #8e4830;
}

#header .lang-btn summary span {
  color: inherit;
  font-size: 12px;
}

#header .lang-btn summary .fa-angle-down {
  font-size: 12px;
  transition: transform 0.2s ease;
}

#header .lang-btn > ul {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  z-index: 999;
  width: 336px;
  max-width: calc(100vw - 32px);
  max-height: 65vh;
  margin: 0;
  padding: 9px;
  overflow-y: auto;
  flex-wrap: wrap;
  border: 1px solid #b69b76;
  border-radius: 2px;
  background: #f1e3c8;
  box-shadow: 0 18px 45px rgba(67, 42, 19, 0.18), inset 0 0 0 4px rgba(255, 249, 229, 0.45);
}

#header .lang-btn > ul li {
  width: 50%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  line-height: 38px;
}

#header .lang-btn > ul li a {
  display: block;
  padding: 0 12px;
  color: #68503a;
  font-size: 12px !important;
  text-align: left;
  text-decoration: none;
}

#header .lang-btn > ul li a:hover {
  color: #8e4830 !important;
}

#header .lang-btn > ul li.active,
#header .lang-btn > ul li:hover {
  border: 0;
  background: #e5d0ad;
}

#header .lang-btn > ul li.active a {
  color: #8e4830;
  font-weight: 600;
}

#header .lang-btn[open] > ul {
  display: flex;
}

#header .lang-btn[open] summary .fa-angle-down {
  transform: rotate(180deg);
}

/* 首页说明使用宽幅纸页与章节编号。 */
.paper-guide {
  max-width: 1360px;
  margin: 0 auto;
  padding: 82px 48px 84px;
}

.paper-guide-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 38px;
  padding-bottom: 28px;
  height: auto;
  min-height: 0;
  border-bottom: 1px solid rgba(77, 55, 32, 0.28);
  line-height: normal;
}

.paper-guide-heading h2,
.paper-faq-heading h2 {
  max-width: 750px;
  margin: 0;
  color: #3f3022;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1px;
}

.paper-eyebrow {
  display: block;
  margin: 0 0 18px;
  color: #8e4830;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.answer-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.paper-panel {
  position: relative;
  min-width: 0;
  padding: 32px 0 20px;
}

.chapter-number {
  display: block;
  margin-bottom: 18px;
  color: #8e4830;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.paper-panel h2,
.chapter-copy h2 {
  margin: 0 0 22px;
  color: #3f3022;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.4px;
}

.paper-panel .section-content p,
.chapter-copy p,
.paper-faq-content p,
.paper-note p {
  margin: 0 0 16px;
  color: #715c44;
  font-size: 14px;
  line-height: 1.95;
}

.paper-panel .section-content p:last-child,
.chapter-copy p:last-child,
.paper-faq-content p:last-child,
.paper-note p:last-child {
  margin-bottom: 0;
}

.paper-panel strong,
.chapter-copy strong,
.paper-faq-content strong {
  color: #3f3022;
  font-weight: 600;
}

.paper-how-steps {
  margin-top: 24px;
  padding: 22px 26px;
  border-left: 2px solid rgba(142, 72, 48, 0.48);
  background: rgba(248, 236, 208, 0.42);
}

.paper-panel .paper-how-steps p {
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid rgba(77, 55, 32, 0.13);
  font-size: 13px;
  line-height: 1.8;
}

.paper-panel .paper-how-steps p:first-child {
  padding-top: 0;
}

.paper-panel .paper-how-steps p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.paper-faq-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: start;
  gap: 70px;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid rgba(77, 55, 32, 0.28);
  scroll-margin-top: 30px;
}

.paper-faq-heading h2 {
  margin-bottom: 24px;
  font-size: 44px;
}

.paper-faq-heading > a,
.paper-guide-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(142, 72, 48, 0.45);
  font-size: 12px;
  text-decoration: none;
}

.paper-faq {
  margin: 0;
  border-bottom: 1px solid rgba(77, 55, 32, 0.2);
}

.paper-faq:first-child {
  border-top: 1px solid rgba(77, 55, 32, 0.2);
}

.paper-faq > summary {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 24px 0;
  color: #3f3022;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  list-style: none;
  cursor: pointer;
}

.paper-faq > summary:hover {
  color: #8e4830;
}

.paper-faq > summary .faq-number {
  flex-shrink: 0;
  width: 26px;
  color: #9c7a51;
  font-size: 11px;
  font-weight: 400;
}

.paper-faq > summary > span:not(.faq-number) {
  flex: 1;
}

.paper-faq > summary > .fa {
  flex-shrink: 0;
  width: 20px;
  margin-left: auto;
  color: #8e4830;
  font-size: 11px;
  text-align: center;
  transition: transform 0.25s ease;
}

.paper-faq[open] > summary > .fa {
  transform: rotate(45deg);
}

.paper-faq-content {
  padding: 0 38px 25px 44px;
}

/* 内页统一为可阅读的书稿页面。 */
.manuscript-main {
  padding: 0 48px;
}

.manuscript-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 0 96px;
}

.manuscript-heading {
  max-width: 850px;
  margin-bottom: 48px;
  height: auto;
  min-height: 0;
  color: #3f3022;
  line-height: normal;
}

.manuscript-heading h1 {
  margin: 0;
  color: #3f3022;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 76px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.8px;
  text-align: left;
}

.manuscript-main[dir="rtl"] .manuscript-heading h1 {
  text-align: right;
}

.manuscript-intro {
  max-width: 680px;
  margin: 24px 0 0;
  color: #715c44;
  font-size: 14px;
  line-height: 1.9;
}

.manuscript-sheet {
  position: relative;
  padding: 52px 56px;
  border: 1px solid rgba(77, 55, 32, 0.22);
  background: rgba(250, 240, 215, 0.48);
  box-shadow: 5px 6px 0 rgba(141, 109, 65, 0.08);
}

.manuscript-chapter {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(77, 55, 32, 0.18);
}

.manuscript-chapter:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.manuscript-chapter .chapter-number {
  padding-top: 3px;
}

.paper-note {
  margin-top: 36px;
  padding: 26px 30px;
  border-left: 3px solid #8e4830;
  background: rgba(142, 72, 48, 0.06);
}

.paper-note > .fa {
  margin-bottom: 12px;
  color: #8e4830;
}

.paper-note a,
.chapter-copy a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.paper-contact {
  display: flex;
  align-items: baseline;
  gap: 18px;
  color: #8e4830;
}

.paper-contact p {
  margin: 0;
  color: #715c44;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.paper-contact a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.paper-return {
  margin-top: 36px;
}

.paper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #8e4830;
  color: #8e4830;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
}

.paper-button:hover {
  background: rgba(142, 72, 48, 0.08);
}

.faq-sheet {
  padding-top: 16px;
  padding-bottom: 16px;
}

.faq-sheet .paper-faq:first-child {
  border-top: 0;
}

.faq-sheet .paper-faq:last-child {
  border-bottom: 0;
}

.faq-sheet .paper-faq > summary {
  padding: 28px 0;
  font-size: 16px;
}

/* 常见问答按主题分章，沿用纸页和原生折叠交互。 */
.faq-chapters {
  min-width: 0;
}

.faq-chapter {
  scroll-margin-top: 32px;
}

.faq-chapter + .faq-chapter {
  margin-top: 48px;
}

.faq-chapter h2 {
  margin: 0 0 22px;
  color: #3f3022;
  font-family: 'Cormorant Garamond', Georgia, 'Microsoft YaHei', serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.faq-page .faq-sheet {
  padding: 6px 30px;
}

.faq-page .paper-faq > summary {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.faq-page .paper-faq-content {
  overflow-wrap: anywhere;
}

.faq-page[dir="rtl"] .manuscript-heading h1 {
  text-align: right;
}

.faq-page[dir="rtl"] .paper-faq > summary > .fa {
  margin-right: auto;
  margin-left: 0;
}

.faq-page[dir="rtl"] .paper-faq-content {
  padding-right: 44px;
  padding-left: 38px;
}

.manuscript-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 42px;
}

.manuscript-toc {
  position: sticky;
  top: 32px;
  max-height: calc(100vh - 64px);
  padding: 26px 0;
  overflow-y: auto;
  border-top: 1px solid rgba(77, 55, 32, 0.3);
  border-bottom: 1px solid rgba(77, 55, 32, 0.2);
}

.manuscript-toc nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.manuscript-toc a {
  display: block;
  color: #715c44;
  font-size: 11px;
  line-height: 1.75;
  text-decoration: none;
}

.manuscript-toc a:hover {
  color: #8e4830;
}

.manuscript-toc a > span {
  display: inline-block;
  width: 25px;
  color: #9c7a51;
  font-size: 10px;
}

body.page-single article.manuscript-sheet {
  padding: 44px;
}

body.page-single .legal-sheet .content {
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  overflow-wrap: anywhere;
}

body.page-single .legal-sheet .content h2 {
  margin: 38px 0 18px;
  padding-top: 30px;
  border-top: 1px solid rgba(77, 55, 32, 0.18);
  color: #3f3022;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.22;
  scroll-margin-top: 110px;
}

body.page-single .legal-sheet .content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.page-single .legal-sheet .content h3 {
  margin: 26px 0 14px;
  color: #3f3022;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}

body.page-single .legal-sheet .content p,
body.page-single .legal-sheet .content li {
  margin-bottom: 16px;
  color: #715c44;
  font-size: 13px;
  line-height: 1.95;
}

body.page-single .legal-sheet .content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 页尾保留导航、友链和多语言声明。 */
#footer {
  position: relative;
  margin-top: 0;
  padding: 0 48px;
  border-top: 1px solid rgba(77, 55, 32, 0.25);
  background: rgba(195, 163, 116, 0.2);
  color: #806c53;
}

#footer .footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 64px 0 22px;
}

#footer .footer-main {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  padding-bottom: 52px;
}

#footer .footer-intro {
  max-width: 430px;
}

#footer .footer-intro p {
  margin: 0;
  color: #806c53;
  font-size: 13px;
  line-height: 1.9;
}

#footer .footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 22px 50px;
  width: 365px;
  padding-top: 0;
}

#footer .footer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(77, 55, 32, 0.16);
  color: #68503a;
  font-size: 12px;
  text-decoration: none;
}

#footer .footer-nav a:hover,
#footer .footer-nav a .fa {
  color: #8e4830;
}

#footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(77, 55, 32, 0.2);
}

#footer .friend-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
}

#footer .friend-link a {
  margin: 0;
  color: #806c53;
  font-size: 11px;
}

#footer .friend-link a:hover {
  color: #8e4830;
}

#footer p.copyright {
  margin: 0;
  color: #806c53;
  font-size: 11px;
  line-height: 1.9;
}

#footer p.copyright a {
  color: #68503a;
}

#footer .footer-translation {
  margin: 14px 0 0;
  color: #8a765c;
  line-height: 1.8;
}

#footer .footer-translation small {
  font-size: 10px;
}

@media (min-width: 1700px) {
  .paper-guide {
    max-width: 1480px;
  }

  #footer .footer-inner {
    max-width: 1480px;
  }
}

@media (max-width: 1100px) {
  #header .header-inner {
    padding: 0 32px;
  }

  #header .top-nav {
    gap: 22px;
  }

  .paper-guide,
  .manuscript-main,
  #footer {
    padding-right: 32px;
    padding-left: 32px;
  }

  .paper-faq-section {
    gap: 42px;
  }

  .manuscript-sheet {
    padding: 44px;
  }

  .manuscript-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 30px;
  }

  body.page-single article.manuscript-sheet {
    padding: 36px;
  }
}

@media (max-width: 820px) {
  #header .top-nav {
    gap: 18px;
  }

  #header .top-nav .nav-donate {
    display: none;
  }

  .answer-detail-grid {
    gap: 32px;
  }

  .paper-guide-heading h2 {
    font-size: 46px;
  }

  .paper-faq-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .paper-faq-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
  }

  .paper-faq-heading h2 {
    margin-bottom: 0;
  }

  .manuscript-heading h1 {
    font-size: 64px;
  }

  .manuscript-layout {
    grid-template-columns: 1fr;
  }

  .manuscript-toc {
    position: static;
    max-height: none;
    padding: 20px 0;
  }

  .manuscript-toc nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px 24px;
  }

  .faq-page .manuscript-toc nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #footer .footer-main {
    gap: 40px;
  }

  #footer .footer-nav {
    gap: 20px 30px;
    width: 290px;
  }

  #footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .oracle-ritual {
    padding: 12px 28px 42px;
  }

  .oracle-ritual .ritual-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    max-width: 420px;
    margin: auto;
  }

  .oracle-ritual .ritual-steps > article {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .book-loading,
  .book-fallback-answer {
    width: calc(100% - 40px);
    margin: 20px auto;
  }

  .book-loading-card,
  .book-fallback-answer {
    min-height: 420px;
    padding: 48px 24px;
  }

  .book-loading-title {
    font-size: 23px;
  }

  .answer-page-heading {
    width: calc(100% - 40px);
    margin-top: 32px;
    padding: 28px 4px 30px;
  }

  .answer-page-heading > h1 {
    font-size: 28px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .answer-page-heading > p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.85;
  }

  #header {
    height: auto;
    min-height: 68px;
  }

  #header .header-inner {
    gap: 12px;
    padding: 10px 20px;
  }

  #header .top-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 12px;
    text-align: center;
  }

  #header .top-nav > li > a {
    justify-content: center;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  #header .top-nav .nav-language {
    grid-column: 1 / -1;
    justify-self: center;
    margin-left: 0;
  }

  #header .lang-btn summary {
    gap: 6px;
    min-height: 32px;
  }

  #header .lang-btn summary span {
    max-width: 180px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  #header .lang-btn > ul {
    top: 44px;
    right: 50%;
    width: 292px;
    transform: translateX(50%);
  }

  .paper-guide {
    padding: 48px 24px 56px;
  }

  .paper-guide-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 12px;
    padding-bottom: 26px;
  }

  .paper-guide-heading h2,
  .paper-faq-heading h2 {
    font-size: 36px;
    letter-spacing: -0.5px;
  }

  .answer-detail-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .paper-panel {
    padding: 32px 0;
    border-bottom: 1px solid rgba(77, 55, 32, 0.18);
  }

  .paper-panel:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .paper-panel h2,
  .chapter-copy h2 {
    font-size: 30px;
  }

  .paper-panel .section-content p,
  .chapter-copy p,
  .paper-faq-content p,
  .paper-note p {
    font-size: 13px;
  }

  .paper-how-steps {
    padding: 20px;
  }

  .paper-faq-section {
    margin-top: 44px;
    padding-top: 40px;
  }

  .paper-faq > summary,
  .faq-sheet .paper-faq > summary {
    gap: 12px;
    padding: 23px 0;
    font-size: 14px;
  }

  .paper-faq > summary .faq-number {
    width: 22px;
  }

  .paper-faq-content {
    padding: 0 8px 23px 34px;
  }

  .manuscript-main {
    padding: 0 24px;
  }

  .manuscript-wrap {
    padding: 48px 0 64px;
  }

  .manuscript-heading {
    margin-bottom: 32px;
  }

  .manuscript-heading h1 {
    font-size: 48px;
    letter-spacing: -0.8px;
  }

  .manuscript-intro {
    margin-top: 20px;
    font-size: 13px;
  }

  .manuscript-sheet,
  body.page-single article.manuscript-sheet {
    padding: 28px 23px;
  }

  .manuscript-chapter {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .manuscript-chapter .chapter-number {
    margin-bottom: 18px;
  }

  .paper-note {
    margin-top: 28px;
    padding: 22px;
  }

  .faq-sheet {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .faq-sheet .paper-faq > summary .faq-number {
    display: none;
  }

  .faq-sheet .paper-faq-content {
    padding-left: 0;
  }

  .faq-chapter h2 {
    margin-bottom: 18px;
    font-size: 28px;
  }

  .faq-chapter + .faq-chapter {
    margin-top: 34px;
  }

  .faq-page .faq-sheet {
    padding: 4px 20px;
  }

  .faq-page .paper-faq > summary {
    font-size: 14px;
  }

  .faq-page[dir="rtl"] .paper-faq-content {
    padding-right: 0;
    padding-left: 8px;
  }

  .manuscript-toc nav {
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
  }

  body.page-single .legal-sheet .content h2 {
    margin-top: 30px;
    padding-top: 26px;
    font-size: 26px;
  }

  body.page-single .legal-sheet .content p,
  body.page-single .legal-sheet .content li {
    font-size: 12px;
  }

  #footer {
    padding: 0 24px;
  }

  #footer .footer-inner {
    padding-top: 42px;
  }

  #footer .footer-main {
    flex-direction: column;
    gap: 32px;
    padding-bottom: 36px;
  }

  #footer .footer-intro {
    max-width: 390px;
  }

  #footer .footer-intro p {
    font-size: 12px;
  }

  #footer .footer-nav {
    gap: 18px 34px;
    width: 100%;
    padding-top: 0;
  }
}

@media (max-width: 360px) {
  #header .header-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  #header .lang-btn summary span {
    max-width: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-loading-card::after,
  .book-loading-indicator > span {
    animation: none;
  }

  .page-answers a,
  .page-single a,
  #header .lang-btn summary .fa-angle-down,
  .paper-faq > summary > .fa {
    transition: none;
  }
}
