.reading-page {
  padding: 28px 5% 55px;
  text-align: left;
  width: 100%;
  max-width: 1280px;
  margin: auto;
}
.page-heading {
  text-align: center;
  margin: 0 auto 26px;
  max-width: 800px;
}
.page-heading h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: 0;
  margin-top: 12px;
}
.page-heading .eyebrow {
  line-height: 1.6;
  margin: 0;
}
.page-heading .title-rule {
  margin: 10px auto;
}
.page-intro {
  font-size: 13px;
  line-height: 1.7;
  color: #b6ad9b;
  max-width: 640px;
  margin: 0 auto;
}
.reading-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 65px;
}
.contents {
  position: sticky;
  top: 25px;
  border: 1px solid var(--line);
  padding: 22px;
  max-height: calc(100svh - 50px);
  overflow: auto;
}
.contents p {
  font:
    500 12px Cinzel,
    Georgia,
    serif;
  letter-spacing: 1px;
  margin: 0 0 18px;
}
.contents a {
  display: block;
  color: #b4a78c;
  font-size: 12px;
  line-height: 1.6;
  padding: 8px 0;
}
.contents a:hover,
.prose a:hover {
  color: #eed6a7;
  text-decoration: underline;
}
.contents .source-link {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.chapter {
  scroll-margin-top: 28px;
  padding-bottom: 30px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.prose {
  min-width: 0;
  color: #c1b9a9;
  font-size: 14px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.prose h2 {
  font-size: 25px;
  letter-spacing: 0.5px;
  line-height: 1.5;
  color: #dbc497;
  margin: 0 0 24px;
}
.prose .chapter > h2 ~ h2 {
  font-size: 19px;
  margin: 30px 0 15px;
}
.prose h3 {
  font:
    500 16px/1.6 Cinzel,
    Georgia,
    serif;
  color: #cfb688;
  margin: 22px 0 12px;
}
.prose h4 {
  color: #cfb688;
}
.prose p {
  margin: 0 0 18px;
}
.prose strong {
  color: #ded1b7;
}
.prose li {
  margin-bottom: 9px;
}
.prose ul,
.prose ol {
  padding-left: 24px;
}
.prose blockquote {
  margin: 20px 0;
  padding: 12px 22px;
  border-left: 2px solid #b59a63;
  background: #c2a57308;
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.prose a {
  color: #d6b77d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose img {
  max-width: 100%;
  height: auto;
}
.reading-end {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.source-note {
  font-size: 11px;
  margin-top: 25px !important;
  color: #978c77;
}
.community a {
  font-size: 9px;
  color: #aa9773;
  letter-spacing: 0.6px;
}
.community a span {
  margin-left: 10px;
}
@media (max-width: 900px) {
  .reading-layout {
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 30px;
  }
  .main-menu {
    gap: 18px;
  }
}
@media (max-width: 700px) {
  .reading-page {
    padding: 22px 6% 40px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .reading-layout {
    display: block;
  }
  .contents {
    position: static;
    max-height: none;
    margin-bottom: 32px;
  }
  .contents a {
    padding: 7px 0;
  }
  .prose {
    font-size: 14px;
  }
  .prose h2 {
    font-size: 22px;
  }
  .page-intro {
    font-size: 13px;
  }
  .reading-end {
    flex-wrap: wrap;
  }
  .community a {
    font-size: 8px;
    max-width: 140px;
    line-height: 1.8;
  }
}
.rules-search {
  max-width: 720px;
  margin: 0 auto 28px;
}
.rules-search label {
  display: block;
  font-size: 13px;
  color: #dbc497;
  margin-bottom: 12px;
}
.search-field {
  display: flex;
  border: 1px solid #a88b5066;
  background: #11140f;
  align-items: center;
}
.search-field:focus-within {
  outline: 2px solid #d6b77d;
  outline-offset: 3px;
}
.search-field input {
  min-width: 0;
  width: 100%;
  padding: 16px;
  border: 0;
  outline: none;
  background: transparent;
  color: #e0d1b5;
  font:
    14px Inter,
    Arial,
    sans-serif;
}
.search-field input::placeholder {
  color: #9b927f;
}
.search-field button {
  border: 0;
  background: transparent;
  color: #dbc497;
  padding: 14px;
  font-size: 12px;
}
.rules-search [role="status"] {
  font-size: 12px;
  color: #aaa08b;
  line-height: 1.7;
  margin: 12px 0 0;
}
.prose mark.search-match,
.prose mark.search-match strong {
  background: #d3b883;
  color: #241e14;
  border-radius: 2px;
}
.search-empty {
  border: 1px solid var(--line);
  padding: 24px;
}
.chapter[hidden],
.contents a[hidden],
[hidden] {
  display: none !important;
}
.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
  line-height: 1.7;
}
.shortcuts-table th,
.shortcuts-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.shortcuts-table thead th {
  color: #dbc497;
  background: #c2a5730a;
  font-weight: 600;
}
.shortcuts-table th:first-child {
  width: 34%;
}
.shortcuts-table tbody th {
  font-weight: 400;
}
.shortcuts-table kbd {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #a88b5055;
  border-bottom-width: 3px;
  border-radius: 4px;
  background: #171811;
  color: #e0d1b5;
  font: inherit;
}
.shortcuts-table tbody tr:hover {
  background: #c2a57306;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .shortcuts-table th,
  .shortcuts-table td {
    padding: 12px 8px;
  }
  .shortcuts-table th:first-child {
    width: 38%;
  }
  .shortcuts-table {
    font-size: 12px;
  }
}
