/*
 * Святые — визуальный слой в палитре толкований / Библии (Stitch).
 */

.saints-stitch-design {
  --stitch-card-bg: hsl(95 10% 95.5%);
  --stitch-card-border: hsl(95 10% 78% / 0.55);
  --stitch-card-top: hsl(var(--gold-dark) / 0.62);
  --stitch-card-shadow:
    0 1px 0 hsl(90 20% 99% / 0.55) inset,
    0 0.55rem 1.35rem hsl(100 8% 20% / 0.03);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 0.85rem 2rem;
  color: hsl(25 28% 14%);
}

.saints-stitch-design > .saints-top-nav {
  display: flex;
  align-items: center;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  position: relative;
  left: 50%;
  margin: 0 0 1.25rem;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0.72rem max(1rem, calc(50vw - min(50vw - 1rem, 460px)));
  border: 0;
  border-bottom: 1px solid hsl(35 20% 84% / 0.85);
  background: hsl(36 30% 94.5%);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.saints-stitch-design > .saints-top-nav .section-back-link {
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.saints-stitch-design > .saints-top-nav .section-back-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.saints-stitch-design .saints-header {
  display: block;
  margin-bottom: 1rem;
}

.saints-stitch-design .section-settings-title-inline {
  margin: 0 0 1rem;
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.2vw, 1.9rem);
  letter-spacing: 0.02em;
}

/* Инструменты сверху */
.saints-stitch-design .cmd-tools {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.saints-stitch-design .cmd-tools__card {
  padding: 0.95rem 1.05rem 1.05rem;
  border: 1px solid var(--stitch-card-border);
  border-top: 3px solid var(--stitch-card-top);
  border-radius: 0.7rem;
  background: var(--stitch-card-bg);
  box-shadow: var(--stitch-card-shadow);
}

.saints-stitch-design .cmd-tools__title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid hsl(var(--border) / 0.45);
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Row of controls packed to the left (never column + align-end = empty left hole). */
.saints-stitch-design .cmd-tools__filters,
.saints-stitch-design .cmd-tools__filters.commandments-filters-inline {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  justify-content: flex-start;
}

.saints-stitch-design .cmd-tools__filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 0 1 13rem;
}

.saints-stitch-design .cmd-tools__filters .cmd-tools__num {
  flex: 0 0 5.5rem;
}

.saints-stitch-design .cmd-tools__filters .cmd-input {
  width: 100%;
  min-width: 0;
}

.saints-stitch-design .cmd-tools__filters .cmd-btn {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-left: 0;
}

.saints-stitch-design .cmd-tools__filters label span,
.saints-stitch-design .cmd-tools__field > span,
.saints-stitch-design .cmd-tools__modes-label {
  color: hsl(30 10% 42%);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.saints-stitch-design .cmd-select,
.saints-stitch-design .cmd-input,
.saints-stitch-design .bible-reader-select,
.saints-stitch-design .msd-trigger {
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid hsl(var(--border) / 0.55);
  border-radius: 0.55rem;
  background: hsl(40 40% 99%);
  color: hsl(25 22% 16%);
  font-family: var(--font-display);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.saints-stitch-design .cmd-select {
  min-width: 0;
  width: 100%;
}

.saints-stitch-design .cmd-btn {
  min-height: 2.35rem;
  padding: 0.45rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: hsl(var(--gold-dark));
  color: hsl(40 33% 97%);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.saints-stitch-design .cmd-btn:hover {
  background: hsl(var(--gold));
  color: hsl(25 20% 12%);
  filter: none;
}

.saints-stitch-design .cmd-tools__modes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border) / 0.4);
}

.saints-stitch-design .settings-radio-label,
.saints-stitch-design .settings-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: hsl(25 22% 20%);
  font-family: var(--font-display);
  font-size: 0.92rem;
  cursor: pointer;
}

.saints-stitch-design .cmd-tools__modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.75rem 0.85rem;
}

.saints-stitch-design .cmd-tools__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.saints-stitch-design .cmd-tools__field .msd-wrapper,
.saints-stitch-design .cmd-tools__field .bible-reader-select {
  width: 100%;
}

.saints-stitch-design .msd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  cursor: pointer;
}

.saints-stitch-design .msd-trigger:hover,
.saints-stitch-design .msd-trigger.msd-open {
  border-color: hsl(var(--gold-dark) / 0.45);
  background: hsl(40 38% 97%);
}

.saints-stitch-design .msd-panel {
  border: 1px solid var(--stitch-card-border);
  border-top: 3px solid var(--stitch-card-top);
  border-radius: 0.7rem;
  background: hsl(40 38% 97%);
  box-shadow: var(--stitch-card-shadow), 0 0.75rem 1.5rem hsl(100 8% 20% / 0.08);
}

.saints-stitch-design .mini-select-btn {
  border: 0;
  border-radius: 999px;
  background: hsl(var(--gold-dark));
  color: hsl(40 33% 97%);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
}

.saints-stitch-design .cmd-tools__behavior {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border) / 0.4);
}

/* Список правил */
.saints-stitch-design .result-summary {
  margin: 0 0 0.85rem;
  color: hsl(30 10% 42%);
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.saints-stitch-design .commandment-group {
  margin: 1.35rem 0 0.65rem;
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.saints-stitch-design .commandment-item {
  margin-bottom: 0.85rem;
  padding: 0.95rem 1.05rem 1.05rem;
  border: 1px solid var(--stitch-card-border);
  border-top: 3px solid var(--stitch-card-top);
  border-radius: 0.7rem;
  background: var(--stitch-card-bg);
  box-shadow: var(--stitch-card-shadow);
}

.saints-stitch-design .cmd-number,
.saints-stitch-design .cmd-title-link:hover,
.saints-stitch-design .cmd-verse-ref {
  color: hsl(var(--gold-dark));
}

.saints-stitch-design .cmd-title,
.saints-stitch-design .cmd-item-header-left,
.saints-stitch-design .cmd-number,
.saints-stitch-design .cmd-title-ref {
  font-family: var(--reader-ref-font, var(--font-display));
  font-size: var(--reader-ref-size, 1.05em);
  line-height: 1.4;
}

.saints-stitch-design .cmd-title-ref {
  font-size: calc(var(--reader-ref-size, 14px) * 0.92);
  font-weight: 400;
}

.saints-stitch-design .cmd-relevant-yes {
  color: #3d6b3a;
  border-color: #3d6b3a;
}

.saints-stitch-design .cmd-verse-btn {
  border: 1px solid hsl(95 10% 78% / 0.55);
  border-radius: 0.55rem;
  background: hsl(40 38% 95% / 0.85);
  box-shadow: none;
}

.saints-stitch-design .cmd-verse-btn:hover {
  border-color: hsl(var(--gold-dark) / 0.45);
  background: hsl(95 12% 91%);
  box-shadow: none;
}

.saints-stitch-design .cmd-verse-ref {
  font-family: var(--reader-ref-font, var(--font-display));
  font-size: var(--reader-ref-size, 14px);
}

.saints-stitch-design .cmd-verse-text,
.saints-stitch-design .cmd-verse-paragraph,
.saints-stitch-design .cmd-verse-word {
  font-family: var(--reader-font, inherit);
  font-size: var(--reader-size, 16px);
  line-height: 1.55;
  color: inherit;
}

.saints-stitch-design .pagination {
  margin-top: 1.25rem;
}

.saints-stitch-design .pagination button,
.saints-stitch-design .pagination a {
  border-radius: 0.55rem;
  border: 1px solid var(--stitch-card-border);
  background: var(--stitch-card-bg);
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
}

/* Боковые панели */
body:has(.saints-stitch-design) .bible-reader-panel {
  --portal-right-drawer-bg: hsl(95 10% 95.5%);
  --portal-right-drawer-border: 1px solid hsl(95 10% 78% / 0.55);
}

body:has(.saints-stitch-design) .bible-reader-panel .panel-header {
  border-bottom: 1px solid hsl(var(--border) / 0.55);
  background: hsl(36 30% 94.5%);
}

body:has(.saints-stitch-design) .bible-reader-panel .panel-header h2 {
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
  font-weight: 600;
}

body:has(.saints-stitch-design) .cmd-enoch-btn {
  border-radius: 999px;
  background: hsl(var(--gold) / 0.16);
  border-color: hsl(var(--gold-dark) / 0.45);
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
}

/* Комментарии — как в толкованиях / главе (персиковые пузыри + аватар) */
body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .panel-body.reader-comments-list {
  flex: 1;
  overflow: auto;
  padding: 1rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .panel-body .loading {
  margin: 0;
  padding: 0.5rem 0;
  color: hsl(30 10% 52%);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .comments-panel-form {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid hsl(var(--border) / 0.45);
  background: #F5EFEB;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 0.85rem;
  margin: 0;
  padding: 1rem 1.1rem 0.95rem;
  border: 0;
  border-radius: 0.75rem;
  background: hsl(32 22% 91%);
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form__avatar {
  grid-row: 1 / span 2;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: hsl(var(--gold-dark));
  color: hsl(var(--ivory));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form__fields {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form label {
  display: block;
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form input,
body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form textarea {
  width: 100%;
  min-height: 2.45rem;
  margin: 0;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 0.55rem;
  background: hsl(40 40% 99%);
  color: hsl(25 22% 16%);
  font-family: var(--font-display);
  font-size: 0.95rem;
  box-sizing: border-box;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form textarea {
  height: 2.7rem;
  min-height: 2.7rem;
  resize: vertical;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form input::placeholder,
body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form textarea::placeholder {
  color: hsl(30 8% 62%);
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form > button {
  grid-column: 2;
  justify-self: end;
  min-height: 2.2rem;
  margin-top: 0.15rem;
  padding: 0.45rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: hsl(var(--gold-dark));
  color: hsl(40 33% 97%);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-avatar {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: hsl(25 30% 18%);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-main {
  min-width: 0;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-bubble {
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 1.1rem;
  background: #FDF2E9;
  box-shadow: none;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-author {
  color: hsl(25 30% 8%);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-date {
  color: hsl(30 10% 52%);
  font-family: var(--font-display);
  font-size: 0.75rem;
  white-space: nowrap;
}

body:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-content {
  color: hsl(25 28% 8%);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

body.dark:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .comments-panel-form {
  background: hsl(25 12% 14%);
}

body.dark:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-bubble {
  background: hsl(30 18% 18%);
}

body.dark:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form {
  background: hsl(25 12% 16%);
}

body.dark:has(.saints-stitch-design) #saintsCommentsPanel.comments-panel--stitch .reader-comment-form > button {
  color: hsl(25 20% 10%);
}

body.dark .saints-stitch-design {
  color: hsl(var(--foreground));
  --stitch-card-bg: hsl(100 8% 16%);
  --stitch-card-border: hsl(var(--border) / 0.55);
}

body.dark .saints-stitch-design .cmd-select,
body.dark .saints-stitch-design .cmd-input,
body.dark .saints-stitch-design .bible-reader-select,
body.dark .saints-stitch-design .msd-trigger,
body.dark .saints-stitch-design .cmd-verse-btn {
  background: hsl(25 12% 14%);
  color: hsl(var(--foreground));
}

@media (max-width: 700px) {
  .saints-stitch-design > .saints-top-nav {
    padding-inline: max(0.85rem, env(safe-area-inset-left, 0px));
  }

  .saints-stitch-design .cmd-tools__filters {
    flex-direction: column;
    align-items: stretch;
  }

  .saints-stitch-design .saints-filter-source,
  .saints-stitch-design .saints-filter-letter,
  .saints-stitch-design .cmd-tools__filters label.saints-filter-source,
  .saints-stitch-design .cmd-tools__filters label.saints-filter-letter {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .saints-stitch-design .saints-names-inline .ency-topics-list {
    max-height: 9rem;
  }

  .saints-stitch-design .cmd-select,
  .saints-stitch-design .cmd-btn {
    width: 100%;
  }
}

.saints-stitch-design .pravo-intro {
  margin: 0 0 1rem;
  color: hsl(30 10% 42%);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.45;
}

.saints-stitch-design .pravo-empty {
  color: hsl(30 10% 42%);
  font-family: var(--font-display);
}

.saints-stitch-design .pravo-rule-item {
  margin-bottom: 0.85rem;
  padding: 0.95rem 1.05rem 1.05rem;
  border: 1px solid var(--stitch-card-border);
  border-top: 3px solid var(--stitch-card-top);
  border-radius: 0.7rem;
  background: var(--stitch-card-bg);
  box-shadow: var(--stitch-card-shadow);
}

.saints-stitch-design .pravo-rule-item:hover {
  background: hsl(95 12% 93%);
}

.saints-stitch-design .pravo-rule-title {
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.saints-stitch-design .pravo-rule-meta {
  font-family: var(--font-display);
}

.saints-stitch-design .pravo-comment-btn {
  border: 1px solid hsl(95 10% 78% / 0.55);
  border-radius: 0.55rem;
  background: hsl(40 38% 95% / 0.85);
}

.saints-stitch-design .pravo-comment-btn:hover {
  border-color: hsl(var(--gold-dark) / 0.45);
  background: hsl(95 12% 91%);
}

.saints-stitch-design .pravo-detail-back {
  border: 0;
  border-radius: 999px;
  background: hsl(var(--gold-dark));
  color: hsl(40 33% 97%);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saints-stitch-design .pravo-detail-back:hover {
  background: hsl(var(--gold));
  color: hsl(25 20% 12%);
}

.saints-stitch-design .pravo-detail-content h2,
.saints-stitch-design .pravo-subsection {
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
}

.saints-stitch-design .pravo-detail-content .text-ru,
.saints-stitch-design .pravo-detail-content .text-el,
.saints-stitch-design .pravo-detail-content .interpretations {
  border: 1px solid var(--stitch-card-border);
  border-top: 3px solid var(--stitch-card-top);
  background: var(--stitch-card-bg);
  box-shadow: var(--stitch-card-shadow);
}

.saints-stitch-design .pravo-source-link {
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
}

.saints-stitch-design .pravo-select.cmd-select {
  min-width: 0;
  width: 100%;
  max-width: 28rem;
}

.saints-stitch-design .cmd-tools__filters label {
  flex: 1 1 16rem;
  max-width: 28rem;
}


.saints-stitch-design {
  background: transparent;
  border-radius: 0;
}

.saints-stitch-design .ot-intro {
  margin: 0 0 1rem;
  color: hsl(30 10% 42%);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.45;
}

.saints-stitch-design .ot-toolbar {
  display: none;
}

.saints-stitch-design .cmd-tools__filters label {
  flex: 1 1 12rem;
  max-width: 28rem;
}

.saints-stitch-design .cmd-tools__filters label:first-child {
  flex: 0 1 7rem;
  max-width: 9rem;
}

.saints-stitch-design .ot-main-panel {
  margin: 0;
  padding: 0.95rem 1.05rem 1.15rem;
  min-height: 12rem;
  border: 1px solid var(--stitch-card-border);
  border-top: 3px solid var(--stitch-card-top);
  border-radius: 0.7rem;
  background: var(--stitch-card-bg);
  box-shadow: var(--stitch-card-shadow);
}

.saints-stitch-design .ot-empty {
  color: hsl(30 10% 42%);
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.saints-stitch-design .ot-author-heading,
.saints-stitch-design .ot-article-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.saints-stitch-design .ot-author-heading h2,
.saints-stitch-design .ot-article-title,
.saints-stitch-design .ot-works-list-title {
  margin: 0;
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
  font-weight: 600;
}

.saints-stitch-design .ot-author-image {
  border: 1px solid var(--stitch-card-border);
  border-radius: 0.55rem;
  background: hsl(40 38% 97%);
}

.saints-stitch-design .ot-author-dates,
.saints-stitch-design .ot-article-author,
.saints-stitch-design .ot-article-rubric {
  font-family: var(--font-display);
  color: hsl(30 10% 42%);
}

.saints-stitch-design .ot-author-bio-brief,
.saints-stitch-design .ot-author-bio-full,
.saints-stitch-design .ot-article-content,
.saints-stitch-design .ot-article-content-pre {
  font-family: var(--reader-font, var(--font-display));
  font-size: var(--reader-size, 16px);
  color: var(--reader-color, inherit);
  line-height: 1.55;
}

.saints-stitch-design .ot-comment-btn {
  flex-shrink: 0;
  padding: 0.25rem 0.4rem;
  border: 1px solid hsl(95 10% 78% / 0.55);
  border-radius: 0.55rem;
  background: hsl(40 38% 95% / 0.85);
  cursor: pointer;
  font-size: 1rem;
}

.saints-stitch-design .ot-comment-btn:hover {
  border-color: hsl(var(--gold-dark) / 0.45);
  background: hsl(95 12% 91%);
}

.saints-stitch-design .ot-work-line {
  margin-bottom: 0.65rem;
  padding: 0.75rem 0.9rem 0.85rem;
  border: 1px solid var(--stitch-card-border);
  border-top: 3px solid var(--stitch-card-top);
  border-radius: 0.7rem;
  background: hsl(40 38% 97% / 0.65);
  box-shadow: none;
}

.saints-stitch-design .ot-work-line-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.saints-stitch-design .ot-work-line-title {
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
}

.saints-stitch-design .ot-work-line-meta {
  font-family: var(--font-display);
}

.saints-stitch-design .ot-work-read-btn,
.saints-stitch-design .ot-article-pdf {
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
}

.saints-stitch-design .ot-article-back {
  border: 0;
  border-radius: 999px;
  background: hsl(var(--gold-dark));
  color: hsl(40 33% 97%);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  margin-bottom: 0.85rem;
}

.saints-stitch-design .ot-article-back:hover {
  background: hsl(var(--gold));
  color: hsl(25 20% 12%);
}

.saints-stitch-design .ot-article-content h1,
.saints-stitch-design .ot-article-content h2,
.saints-stitch-design .ot-article-content h3 {
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
}

body.dark .saints-stitch-design .ot-work-line,
body.dark .saints-stitch-design .ot-comment-btn {
  background: hsl(25 12% 14%);
}


.saints-page.saints-stitch-design {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 0.85rem 2rem;
}

.saints-stitch-design .encyclopedia-filters {
  display: none;
}

.saints-stitch-design .saints-intro {
  margin: 0 0 1rem;
  color: hsl(30 10% 42%);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.45;
}

.saints-stitch-design .cmd-tools__filters label:last-child {
  flex: 1 1 16rem;
  max-width: 28rem;
}

.saints-stitch-design .ency-content {
  display: block;
}

.saints-stitch-design .ency-article-panel {
  padding: 0.95rem 1.05rem 1.05rem;
  border: 1px solid var(--stitch-card-border);
  border-top: 3px solid var(--stitch-card-top);
  border-radius: 0.7rem;
  background: var(--stitch-card-bg);
  box-shadow: var(--stitch-card-shadow);
}

.saints-stitch-design .ency-topics-panel h2 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid hsl(var(--border) / 0.45);
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.saints-stitch-design .ency-empty {
  color: hsl(30 10% 42%);
  font-family: var(--font-display);
}

.saints-stitch-design .ency-topic-item {
  border-bottom: 1px solid hsl(var(--border) / 0.35);
}

.saints-stitch-design .ency-topic-item.active .ency-topic-btn {
  background: hsl(var(--gold) / 0.12);
  border-left: 3px solid hsl(var(--gold-dark));
}

.saints-stitch-design .ency-topic-btn .topic-title {
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
}

.saints-stitch-design .ency-topic-btn .topic-desc {
  font-family: var(--font-display);
}

.saints-stitch-design .saints-article-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.saints-stitch-design .saints-article-heading h2,
.saints-stitch-design .ency-article h2 {
  margin: 0;
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
  font-weight: 600;
}

.saints-stitch-design .saints-rank {
  font-family: var(--font-display);
}

.saints-stitch-design .saints-icon-wrap {
  border: 1px solid var(--stitch-card-border);
  border-radius: 0.55rem;
  background: hsl(40 38% 97%);
}

.saints-stitch-design .saints-comment-btn {
  flex-shrink: 0;
  padding: 0.25rem 0.4rem;
  border: 1px solid hsl(95 10% 78% / 0.55);
  border-radius: 0.55rem;
  background: hsl(40 38% 95% / 0.85);
  cursor: pointer;
  font-size: 1rem;
}

.saints-stitch-design .saints-comment-btn:hover {
  border-color: hsl(var(--gold-dark) / 0.45);
  background: hsl(95 12% 91%);
}

.saints-stitch-design .ency-btn,
.saints-stitch-design .saints-back-btn {
  border: 0;
  border-radius: 999px;
  background: hsl(var(--gold-dark));
  color: hsl(40 33% 97%);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saints-stitch-design .ency-btn:hover:not(:disabled),
.saints-stitch-design .saints-back-btn:hover {
  background: hsl(var(--gold));
  color: hsl(25 20% 12%);
}

.saints-stitch-design .ency-btn.secondary {
  background: hsl(40 38% 95% / 0.85);
  color: hsl(var(--gold-dark));
  border: 1px solid hsl(95 10% 78% / 0.55);
}

.saints-stitch-design .ency-btn.secondary:hover:not(:disabled) {
  background: hsl(95 12% 91%);
  color: hsl(var(--gold-dark));
}

.saints-stitch-design .saints-article-content,
.saints-stitch-design .saints-section-body {
  font-family: var(--reader-font, var(--font-display));
  font-size: var(--reader-size, 16px);
  color: var(--reader-color, inherit);
  line-height: 1.55;
}

.saints-stitch-design .saints-article-content .saints-section h3 {
  color: hsl(var(--gold-dark));
  font-family: var(--font-display);
}

.saints-stitch-design .ency-topic-row {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
}

.saints-stitch-design .ency-topic-row .ency-topic-btn {
  flex: 1;
  min-width: 0;
}

.saints-stitch-design .ency-topic-row .saints-comment-btn {
  align-self: center;
  margin-right: 0.25rem;
}

body.dark .saints-stitch-design .saints-comment-btn,
body.dark .saints-stitch-design .ency-btn.secondary,
body.dark .saints-stitch-design .saints-icon-wrap {
  background: hsl(25 12% 14%);
}
