*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #333;
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.4rem;
}

body {
  font-family: "Lora", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.7;
  color: #333;
  background: #fff;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  margin-bottom: 2rem;
}

.header-bg {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(180deg, #f0ece3 0%, #f8f6f1 60%, #fff 100%);
  border-bottom: 1px solid #e2dacf;
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

header a {
  text-decoration: none;
}

header .site-title {
  font-family: "Lora", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: #3d3529;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

header .site-title:hover {
  color: #5c5347;
}

.site-title-cross {
  color: #b8a88a;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #8a7f72;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #b8a88a;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #5c5347;
}

.nav-links a:hover::after {
  width: 100%;
}

h1, h2, h3 { line-height: 1.3; margin-bottom: 0.5rem; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

a { color: #2563eb; }
a:hover { color: #1d4ed8; }

.meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tags a {
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  text-decoration: none;
  color: #475569;
  margin-left: 0.25rem;
}

.content { margin-top: 1rem; }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content blockquote {
  border-left: 3px solid #ddd;
  padding-left: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.content thead th {
  background: #f0ece3;
  color: #5a3e2b;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #d4c9b8;
}

.content tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e8e2d9;
  vertical-align: top;
}

.content tbody tr:last-child td {
  border-bottom: 2px solid #d4c9b8;
}

.content tbody tr:hover {
  background: #faf8f5;
}

.content tbody td:first-child {
  font-weight: 700;
  white-space: nowrap;
  color: #5a3e2b;
}

.summary {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.summary h2, .summary h3 { margin-bottom: 0.25rem; }
.summary h2 a, .summary h3 a { text-decoration: none; color: #111; }
.summary h2 a:hover, .summary h3 a:hover { color: #2563eb; }
.summary time { color: #999; font-size: 0.85rem; }

.youtube-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

footer {
  margin-top: 4rem;
  padding: 0;
  font-size: 0.85rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f8f6f1 8%, #f0ece3 100%);
  border-top: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
}

.footer-mission-block {
  margin-bottom: 2rem;
}

.footer-cross {
  font-size: 1.4rem;
  color: #b8a88a;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.footer-mission {
  font-family: "Lora", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: #5c5347;
  max-width: 520px;
  margin: 0 auto 0.5rem;
}

.footer-verse {
  font-size: 0.78rem;
  color: #a09585;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #8a7f72;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #5c5347;
}

.footer-links svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c4b9a8;
  display: inline-block;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid #e2dacf;
  color: #b0a595;
  font-size: 0.78rem;
}

/* List & home pages: keep narrow */
.list, .home {
  max-width: 800px;
}

/* Article two-column layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.article-layout--no-sidebar {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.article-main h1 {
  margin-bottom: 1rem;
}

/* Author sidebar */
.sidebar-card {
  background: linear-gradient(170deg, #faf8f4 0%, #f3efe8 100%);
  border: 1px solid #e2dacf;
  border-radius: 10px;
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.sidebar-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #3d3529;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #d4c9b8;
  letter-spacing: 0.02em;
}

.author-avatar {
  text-align: center;
  margin-bottom: 1.25rem;
}

.author-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2dacf;
  box-shadow: 0 2px 8px rgba(61, 53, 41, 0.1);
}

.sidebar-fields {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sidebar-field {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #5c5347;
  line-height: 1.4;
}

.sidebar-field svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #a09585;
}

.sidebar-section {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2dacf;
}

.sidebar-section-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3d3529;
  margin-bottom: 0.5rem;
}

.sidebar-tags {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-tags a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: #5c5347;
  transition: color 0.2s ease;
}

.sidebar-tags a:hover {
  color: #b8a88a;
}

.sidebar-tags a svg {
  width: 14px;
  height: 14px;
  color: #b8a88a;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2dacf;
}

.pagination a, .pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 0.88rem;
  border-radius: 4px;
  text-decoration: none;
}

.pagination a {
  color: #5c5347;
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination a:hover {
  background: #f0ece3;
  color: #3d3529;
}

.pagination-current {
  background: #3d3529;
  color: #fff;
  font-weight: 600;
}

.pagination-prev, .pagination-next {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Author/Series grid */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.author-card-link {
  text-decoration: none;
  color: inherit;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(170deg, #faf8f4 0%, #f3efe8 100%);
  border: 1px solid #e2dacf;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.author-card:hover {
  border-color: #b8a88a;
  box-shadow: 0 2px 8px rgba(61, 53, 41, 0.1);
}

.author-card-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2dacf;
}

.author-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #3d3529;
}

.author-card-country {
  font-size: 0.85rem;
  color: #8a7f72;
}

.author-card-count {
  font-size: 0.82rem;
  color: #a09585;
}

/* Author/Series profile header */
.author-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2dacf;
}

.author-profile-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2dacf;
  box-shadow: 0 2px 8px rgba(61, 53, 41, 0.1);
}

.author-profile-info h1 {
  margin-bottom: 0.25rem;
}

.author-profile-meta {
  font-size: 0.9rem;
  color: #8a7f72;
}

@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .author-sidebar {
    order: -1;
  }

  .article-layout:has(.doctrine-sidebar) .author-sidebar {
    order: 1;
  }

  .sidebar-card {
    position: static;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2dacf;
    border-radius: 0;
    padding: 0 0 0.75rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .sidebar-heading {
    display: none;
  }

  .author-avatar {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .author-avatar img {
    width: 40px;
    height: 40px;
    border-width: 2px;
  }

  .sidebar-fields {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem 0.75rem;
    flex-wrap: wrap;
    flex: 1;
  }

  .sidebar-field--author {
    font-weight: 600;
    color: #3d3529;
  }

  .sidebar-field--author svg,
  .sidebar-field--date svg {
    display: none;
  }

  .sidebar-field--phone,
  .sidebar-field--email,
  .sidebar-section {
    display: none;
  }
}

/* ===== Doctrines Section ===== */

.doctrines-index {
  max-width: 100%;
}

.doctrines-hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2dacf;
}

.doctrines-hero-cross {
  color: #b8a88a;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.2em;
}

.doctrines-hero h1 {
  font-size: 2rem;
  color: #3d3529;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.doctrines-hero-quote {
  font-style: italic;
  color: #6b5f52;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 0.95rem;
}

.doctrines-hero-quote p {
  margin: 0;
}

/* Doctrine list */
.doctrines-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doctrine-item {
  border-bottom: 1px solid #f0ece3;
}

.doctrine-item:last-child {
  border-bottom: none;
}

.doctrine-item-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  border-radius: 6px;
}

.doctrine-item-link:hover {
  background: #faf8f4;
}

.doctrine-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0ece3 0%, #e2dacf 100%);
  color: #5c5347;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.doctrine-item-link:hover .doctrine-num {
  background: linear-gradient(135deg, #d4c9b8 0%, #b8a88a 100%);
  color: #fff;
}

.doctrine-item-body {
  flex: 1;
  min-width: 0;
}

.doctrine-item-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #3d3529;
  margin-bottom: 0.2rem;
}

.doctrine-item-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.doctrine-kw {
  font-size: 0.75rem;
  color: #a09585;
  background: #f5f2ed;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
}

/* Author list avatar (reuses doctrine-item layout) */
.author-list-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e2dacf;
}

.doctrine-arrow {
  width: 18px;
  height: 18px;
  color: #c4b9a8;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.doctrine-item-link:hover .doctrine-arrow {
  color: #8a7f72;
  transform: translateX(2px);
}

/* Doctrine single page */
.doctrine-chapter-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a7f72;
  background: #f0ece3;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.doctrine-content h2 {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0ece3;
  color: #3d3529;
}

.doctrine-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doctrine-content h3 {
  color: #5c5347;
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

.doctrine-content blockquote {
  border-left: 3px solid #b8a88a;
  background: #faf8f4;
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #5c5347;
}

/* Prev/Next bottom nav */
.doctrine-nav-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2dacf;
}

.doctrine-nav-prev,
.doctrine-nav-next {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2dacf;
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.doctrine-nav-prev:hover,
.doctrine-nav-next:hover {
  border-color: #b8a88a;
  background: #faf8f4;
}

.doctrine-nav-prev svg,
.doctrine-nav-next svg {
  width: 20px;
  height: 20px;
  color: #b8a88a;
  flex-shrink: 0;
}

.doctrine-nav-next {
  text-align: right;
  justify-content: flex-end;
}

.doctrine-nav-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a09585;
  margin-bottom: 0.15rem;
}

.doctrine-nav-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3d3529;
}

/* Sidebar chapter TOC */
.doctrine-sidebar {
}

.doctrine-toc {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doctrine-toc-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  text-decoration: none;
  font-size: 0.82rem;
  color: #5c5347;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.3;
}

.doctrine-toc-item:hover {
  background: #eae5dc;
  color: #3d3529;
}

.doctrine-toc-active {
  background: #3d3529;
  color: #f0ece3;
  font-weight: 600;
}

.doctrine-toc-active:hover {
  background: #3d3529;
  color: #f0ece3;
}

.doctrine-toc-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: #a09585;
  min-width: 1.4em;
  flex-shrink: 0;
}

.doctrine-toc-active .doctrine-toc-num {
  color: #b8a88a;
}

.doctrine-toc-title {
  flex: 1;
}

@media (max-width: 860px) {
  .doctrine-nav-bottom {
    grid-template-columns: 1fr;
  }
}
