/* ==========================================================================
   ARMENAG — Armenian Manuscript Theme for Ghost
   Scriptorium precision. Parchment ground. Orthodox clarity.
   ========================================================================== */

:root {
  --parchment: #f4efe6;
  --parchment-dark: #ece4d6;
  --ink: #211b16;
  --ink-light: #4f4439;
  --ink-muted: #7b6e61;
  --vermillion: #92281d;
  --vermillion-deep: #6f1e16;
  --gold: #b58c35;
  --gold-muted: rgba(181, 140, 53, 0.18);
  --gold-faint: rgba(181, 140, 53, 0.05);
  --lapis: #1a3a5c;
  --body-font: 'EB Garamond', Georgia, serif;
  --heading-font: 'Cormorant Garamond', Georgia, serif;
  --armenian-font: 'Noto Serif Armenian', serif;
  --mono-font: 'JetBrains Mono', monospace;
  --content-width: 740px;
  --wide-width: 1100px;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.72;
}

.site-main {
  position: relative;
  z-index: 1;
}

a { color: var(--lapis); text-decoration: none; }
a:hover { color: var(--vermillion); }
img { max-width: 100%; height: auto; }

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--vermillion);
  z-index: 9999;
  width: 0%;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gold-muted);
  background: rgba(244, 239, 230, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav-logo img { height: 24px; width: auto; }

.site-nav-title {
  font-family: var(--heading-font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav-links {
  flex: 1;
  min-width: 0;
}

.site-nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav-item {
  list-style: none;
}

.site-nav-link {
  font-family: var(--heading-font);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
  position: relative;
}

.site-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--vermillion);
  transition: width 0.25s ease;
}

.site-nav-link:hover,
.site-nav-item.is-current .site-nav-link {
  color: var(--vermillion);
}

.site-nav-link:hover::after,
.site-nav-item.is-current .site-nav-link::after {
  width: 100%;
}

.site-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.nav-subscribe {
  font-family: var(--heading-font);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermillion);
  border: 1px solid var(--vermillion);
  padding: 6px 14px;
  transition: background 0.2s, color 0.2s;
}

.nav-subscribe:hover {
  background: var(--vermillion);
  color: var(--parchment);
}

/* ==========================================================================
   Site Header (homepage, author, tag)
   ========================================================================== */

.site-header {
  text-align: center;
  padding: 48px 28px 0;
  position: relative;
  z-index: 1;
}

.site-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.site-header-cross {
  width: 26px;
  height: 26px;
  margin: 0 auto 14px;
  color: var(--gold);
}

.site-header-cross .armenian-cross { width: 100%; height: 100%; }

.site-header-logo { max-height: 36px; margin: 0 auto 14px; display: block; }

.site-header-title {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}

.site-header-desc {
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 28rem;
  margin: 0 auto 16px;
}

.site-header-rule {
  width: 120px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold-muted);
  margin: 0 auto 12px;
}

/* ==========================================================================
   Manuscript TOC (homepage)
   ========================================================================== */

.manuscript-toc {
  max-width: 740px;
  margin: 0 auto;
  padding: 32px 36px 48px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(181, 140, 53, 0.22);
}

.manuscript-toc-label {
  text-align: center;
  font-family: var(--heading-font);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.toc-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(181, 140, 53, 0.1);
  text-decoration: none;
}

.toc-entry:last-child { border-bottom: none; }

.toc-entry:hover .toc-entry-title {
  color: var(--vermillion);
}

.toc-entry-body {
  min-width: 0;
}

.toc-entry-title {
  font-family: var(--heading-font);
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  font-weight: 500;
  color: var(--ink);
  display: block;
  line-height: 1.2;
  transition: color 0.2s;
}

.toc-entry-excerpt {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: normal;
  line-height: 1.5;
  margin-top: 3px;
  max-width: 36rem;
}

.toc-entry-meta {
  font-family: var(--heading-font);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  white-space: nowrap;
  text-align: right;
  padding-top: 2px;
}

.toc-entry-tag {
  display: inline-block;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-right: 4px;
}

.toc-entry-tag::after {
  content: '\00b7';
  margin-left: 4px;
  color: var(--gold);
}

.toc-entry-tag:last-of-type::after {
  content: none;
}

/* ==========================================================================
   Card Feed (fallback homepage)
   ========================================================================== */

.post-feed {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 28px 24px;
}

.post-card { border-bottom: 1px solid var(--gold-muted); }
.post-card:last-child { border-bottom: none; }

.post-card-link {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  text-decoration: none;
  align-items: flex-start;
  transition: opacity 0.2s;
}

.post-card-link:hover { opacity: 0.85; }

.post-card-image {
  width: 120px;
  height: 88px;
  flex-shrink: 0;
  background-color: var(--gold-faint);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gold-muted);
}

.post-card-content { flex: 1; min-width: 0; }

.post-card-tag {
  font-family: var(--heading-font);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermillion);
  display: block;
  margin-bottom: 2px;
}

.post-card-title {
  font-family: var(--heading-font);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 3px;
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.55;
  margin-bottom: 4px;
}

.post-card-meta {
  font-family: var(--heading-font);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 24px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.pagination-link {
  font-family: var(--heading-font);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vermillion);
}

/* ==========================================================================
   Post Header
   ========================================================================== */

.post-header {
  text-align: left;
  padding: 36px 28px 20px;
  position: relative;
  z-index: 1;
}

.post-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-header-tag {
  font-family: var(--heading-font);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vermillion);
  display: block;
  margin-bottom: 8px;
}

.post-title {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 12px;
}

.post-excerpt {
  font-size: 1.02rem;
  font-style: normal;
  color: var(--ink-light);
  line-height: 1.6;
  max-width: 38rem;
  margin-bottom: 14px;
}

.post-header-rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 10px;
}

.post-meta {
  font-family: var(--heading-font);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.post-meta-sep { color: var(--gold); }

/* ==========================================================================
   Feature Image
   ========================================================================== */

.post-feature-image {
  max-width: var(--wide-width);
  margin: 0 auto 40px;
  padding: 0 28px;
}

.post-feature-image img {
  width: 100%;
  display: block;
  border: 1px solid var(--gold-muted);
}

.post-feature-image figcaption {
  font-family: var(--heading-font);
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

/* ==========================================================================
   Post Body (with optional TOC sidebar)
   ========================================================================== */

.post-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.post-body.has-toc {
  max-width: 1060px;
  display: flex;
  gap: 48px;
  transition: max-width 0.3s ease;
}

.post-body.has-toc .post-content {
  flex: 1;
  min-width: 0;
  max-width: var(--content-width);
}

.post-body.toc-collapsed {
  max-width: var(--content-width);
}

.post-body.toc-collapsed .post-toc {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.2s ease;
}

/* Post TOC sidebar */
.post-toc {
  display: none;
}

.post-body.has-toc .post-toc {
  display: block;
  width: 190px;
  flex-shrink: 0;
  position: sticky;
  top: 60px;
  align-self: flex-start;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  transition: width 0.3s ease, opacity 0.2s ease;
}

.post-toc-label {
  font-family: var(--heading-font);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-toc-label::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--ink-muted);
  border-bottom: 1px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -2px;
}

.post-toc-label[aria-expanded="false"]::after {
  transform: rotate(-45deg);
  margin-top: 2px;
}

.post-toc-links {
  transition: opacity 0.2s, max-height 0.3s ease;
  max-height: 80vh;
  opacity: 1;
  overflow: hidden;
}

.post-toc-links.is-collapsed {
  max-height: 0;
  opacity: 0;
}

.post-toc-link {
  display: flex;
  gap: 0;
  padding: 5px 0 5px 12px;
  align-items: baseline;
  border-left: 1px solid rgba(181, 140, 53, 0.2);
  transition: border-color 0.2s;
  text-decoration: none;
}

/* Indentation by heading depth */
.post-toc-link[data-depth="2"] {
  padding-left: 22px;
}

.post-toc-link[data-depth="3"] {
  padding-left: 32px;
}

.post-toc-link[data-depth="3"] .post-toc-text {
  font-size: 0.74rem;
}

.post-toc-link.active {
  border-left-color: var(--vermillion);
}

.post-toc-link.active .post-toc-text {
  color: var(--ink);
  font-weight: 500;
}

.post-toc-text {
  font-family: var(--body-font);
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.post-toc-link:hover .post-toc-text { color: var(--ink); }

/* ==========================================================================
   Post Content — Typography System
   ========================================================================== */

.post-content,
.post-content.gh-content,
.gh-content {
  overflow: visible !important;
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.78;
  margin-bottom: 18px;
  text-align: left;
  hyphens: none;
}

.post-content > p:first-of-type,
.post-content h1 + p,
.post-content h2 + p,
.post-content h3 + p,
.post-content h4 + p {
  position: relative;
  overflow: visible;
}

.post-content h1 + p::before,
.post-content h2 + p::before,
.post-content h3 + p::before,
.post-content h4 + p::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 26 26'%3E%3Cg fill='%23b58c35' transform='translate(12 12)'%3E%3Cpath d='M0-9.2C1.8-9.2 2.9-7.9 2.9-6.3C2.9-5 1.9-3.8 0-2.2C-1.9-3.8-2.9-5-2.9-6.3C-2.9-7.9-1.8-9.2 0-9.2Z'/%3E%3Cpath d='M0-9.2C1.8-9.2 2.9-7.9 2.9-6.3C2.9-5 1.9-3.8 0-2.2C-1.9-3.8-2.9-5-2.9-6.3C-2.9-7.9-1.8-9.2 0-9.2Z' transform='rotate(45)'/%3E%3Cpath d='M0-9.2C1.8-9.2 2.9-7.9 2.9-6.3C2.9-5 1.9-3.8 0-2.2C-1.9-3.8-2.9-5-2.9-6.3C-2.9-7.9-1.8-9.2 0-9.2Z' transform='rotate(90)'/%3E%3Cpath d='M0-9.2C1.8-9.2 2.9-7.9 2.9-6.3C2.9-5 1.9-3.8 0-2.2C-1.9-3.8-2.9-5-2.9-6.3C-2.9-7.9-1.8-9.2 0-9.2Z' transform='rotate(135)'/%3E%3Cpath d='M0-9.2C1.8-9.2 2.9-7.9 2.9-6.3C2.9-5 1.9-3.8 0-2.2C-1.9-3.8-2.9-5-2.9-6.3C-2.9-7.9-1.8-9.2 0-9.2Z' transform='rotate(180)'/%3E%3Cpath d='M0-9.2C1.8-9.2 2.9-7.9 2.9-6.3C2.9-5 1.9-3.8 0-2.2C-1.9-3.8-2.9-5-2.9-6.3C-2.9-7.9-1.8-9.2 0-9.2Z' transform='rotate(225)'/%3E%3Cpath d='M0-9.2C1.8-9.2 2.9-7.9 2.9-6.3C2.9-5 1.9-3.8 0-2.2C-1.9-3.8-2.9-5-2.9-6.3C-2.9-7.9-1.8-9.2 0-9.2Z' transform='rotate(270)'/%3E%3Cpath d='M0-9.2C1.8-9.2 2.9-7.9 2.9-6.3C2.9-5 1.9-3.8 0-2.2C-1.9-3.8-2.9-5-2.9-6.3C-2.9-7.9-1.8-9.2 0-9.2Z' transform='rotate(315)'/%3E%3Ccircle r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  vertical-align: -0.1em;
  opacity: 0.85;
}

.post-dropcap-paragraph::before {
  content: none !important;
}

.post-dropcap-letter {
  float: left;
  font-family: var(--heading-font);
  font-size: 3.8rem;
  line-height: 0.82;
  font-weight: 500;
  color: var(--vermillion);
  margin: 0.06em 0.1em 0 0;
}

/* Heading hierarchy: 1.8 / 1.4 / 1.15 / 0.95 — clear steps */
.post-content h1 {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: var(--ink);
  text-align: left;
  margin: 48px 0 12px;
  line-height: 1.1;
}

.post-content h2 {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 10px;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.post-content h3 {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 8px;
  line-height: 1.2;
}

.post-content h4 {
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 28px 0 8px;
}

.post-content a {
  color: var(--lapis);
  border-bottom: 1px solid rgba(26, 58, 92, 0.18);
  transition: border-color 0.2s;
}

.post-content a:hover { border-color: var(--lapis); }
.post-content strong { font-weight: 600; }

.post-content blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--gold);
  background: transparent;
}

.post-content blockquote p {
  font-style: normal;
  color: var(--ink);
  text-align: left;
}

.post-content blockquote p:last-child { margin-bottom: 0; }

.post-content ul, .post-content ol {
  margin: 16px 0;
  padding-left: 26px;
}

.post-content li {
  margin-bottom: 6px;
  line-height: 1.72;
}

.post-content ul li::marker { color: var(--gold); }
.post-content ol li::marker { color: var(--vermillion); font-weight: 600; }

.post-content hr {
  border: 0;
  height: 1px;
  background: var(--gold-muted);
  margin: 44px 0;
}

.post-content figure { margin: 28px 0; }

.post-content figure img {
  display: block;
  border: 1px solid var(--gold-muted);
}

.post-content figcaption {
  font-family: var(--heading-font);
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

.post-content .kg-width-wide {
  max-width: var(--wide-width);
  margin-left: calc(50% - var(--wide-width) / 2);
  margin-right: calc(50% - var(--wide-width) / 2);
}

.post-content .kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.post-content code {
  font-family: var(--mono-font);
  font-size: 0.84em;
  color: var(--vermillion-deep);
  background: rgba(178, 34, 34, 0.04);
  padding: 1px 5px;
  border-radius: 2px;
}

.post-content pre {
  background: rgba(42, 24, 16, 0.035);
  border: 1px solid rgba(42, 24, 16, 0.07);
  padding: 18px 22px;
  margin: 22px 0;
  overflow-x: auto;
  font-family: var(--mono-font);
  font-size: 0.8rem;
  line-height: 1.6;
}

.post-content pre code {
  background: none;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.9rem;
}

.post-content th {
  font-family: var(--heading-font);
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--vermillion-deep);
}

.post-content td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--gold-muted);
}

.post-content .footnotes {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-muted);
  font-size: 0.86rem;
  color: var(--ink-light);
}

.post-content sup a {
  color: var(--vermillion);
  font-weight: 600;
  font-size: 0.8em;
  border: none;
}

.post-content .kg-callout-card {
  margin: 22px 0;
  padding: 16px 20px;
  border: 1px solid var(--gold-muted);
  background: var(--gold-faint);
}

.post-content .kg-bookmark-card {
  margin: 22px 0;
  border: 1px solid var(--gold-muted);
}

.post-content .kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: var(--ink);
}

.post-content .kg-bookmark-content { padding: 12px; flex: 1; }

.post-content .kg-bookmark-title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.9rem;
}

.post-content .kg-bookmark-description {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 3px;
}

.post-content .kg-bookmark-metadata {
  font-size: 0.7rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.post-content .kg-bookmark-thumbnail img {
  width: 120px;
  height: 100%;
  object-fit: cover;
}

.post-content .kg-button-card { text-align: center; margin: 22px 0; }

.post-content .kg-btn {
  font-family: var(--heading-font);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 24px;
  border: 1px solid var(--vermillion);
  color: var(--vermillion);
  background: transparent;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.post-content .kg-btn:hover {
  background: var(--vermillion);
  color: var(--parchment);
}

/* ==========================================================================
   Post Footer
   ========================================================================== */

.post-footer {
  max-width: var(--content-width);
  margin: 36px auto 0;
  padding: 0 28px 40px;
  text-align: center;
}

.post-footer-ornament {
  width: 100px;
  margin: 0 auto 14px;
  color: var(--gold);
}

.post-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.post-tag {
  font-family: var(--heading-font);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--gold-muted);
  padding: 3px 10px;
  transition: color 0.2s, border-color 0.2s;
}

.post-tag:hover {
  color: var(--vermillion);
  border-color: var(--vermillion);
}

.post-comments {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 36px;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid rgba(181, 140, 53, 0.15);
  padding: 32px 28px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.site-footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}

.site-footer-cross {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
  color: var(--gold);
  opacity: 0.5;
}

.site-footer-cross .armenian-cross { width: 100%; height: 100%; }

.site-footer-name {
  font-family: var(--heading-font);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-footer-copy {
  display: none;
}

/* Hide portal button */
.gh-portal-triggerbtn-iframe { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .post-body.has-toc {
    flex-direction: column;
    max-width: var(--content-width);
  }

  .post-body.has-toc .post-toc {
    position: relative;
    top: 0;
    width: 100%;
    max-height: none;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gold-muted);
  }

  .post-content .kg-width-wide,
  .post-content .kg-width-full {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .site-nav-inner {
    gap: 12px;
    padding: 12px 16px;
  }

  .site-nav-links { display: none; }

  .post-card-link { flex-direction: column; gap: 10px; }
  .post-card-image { width: 100%; height: 160px; }

  .toc-entry {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .toc-entry-meta {
    text-align: left;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .site-header { padding: 28px 16px 6px; }
  .post-header { padding: 32px 16px 18px; }
  .post-body { padding: 0 16px; }
  .post-title { letter-spacing: 0.01em; }
  .manuscript-toc { padding: 20px 18px 28px; margin-left: 12px; margin-right: 12px; }
}
